Skip to main content
Glama
d4ngkh04w

NVD/NIST MCP server

by d4ngkh04w

Search CVEs

nvd_search_cves
Read-onlyIdempotent

Search CVE records using NVD 2.0 filters such as keyword, CVE IDs, CPE, CWE, CVSS, dates, and CISA KEV to find vulnerabilities and page through results.

Instructions

Search CVE records with the NVD 2.0 filters: keyword, CVE IDs, CPE name or match string, CWE, source identifier, vuln statuses, published/last-modified windows, KEV window, CVSS metrics and CERT flags. Rules: keywordExactMatch requires keyword; isVulnerable requires cpeName; cpeName and virtualMatchString are mutually exclusive; date windows are limited to 120 days. NVD evaluates every filter, so totalResults is the exact upstream total. Cached for 15 minutes; paginate by passing pagination.nextCursor back as cursor with the same filters and pageSize.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kevNo
cvssNoCVSS metric filter; requires at least one of severity or metrics
cweIdNoCWE identifier such as CWE-79
cursorNoOpaque signed cursor from the previous page: pass the response's pagination.nextCursor. Never build it by hand; it expires after 30 minutes and is bound to the filters, pageSize and date window.
cveIdsNoRestrict the search to these CVE identifiers
cpeNameNoCPE name filter; translates to the upstream cpeName parameter
hasOvalNoOnly CVEs with OVAL definitions
keywordNoKeyword matched against CVE descriptions
pageSizeNoPage size (default 20, maximum 50)
publishedNoFilter on the published date (max 120 days)
noRejectedNoExclude rejected CVEs (upstream noRejected)
hasCertNotesNoOnly CVEs with CERT notes
isVulnerableNoOnly CVEs where cpeName is marked vulnerable; requires cpeName, incompatible with virtualMatchString
lastModifiedNoFilter on the last-modified date (max 120 days)
vulnStatusesNoVulnerability statuses (Received, Awaiting Analysis, Undergoing Analysis, Analyzed, Modified, Deferred, Rejected). Spaced and camel-case spellings are both canonicalized, and the filter is applied by NVD.
hasCertAlertsNoOnly CVEs with CERT alerts
sourceIdentifierNoCNA or NVD source identifier, for example secalert@redhat.com
keywordExactMatchNoRequire the exact keyword phrase (requires keyword)
virtualMatchStringNoCPE match string (supports wildcards and version ranges); mutually exclusive with cpeName

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
metaYesCache/freshness metadata; warnings carries stale-fallback and truncation notices
itemsYes
paginationYesPagination block; nextCursor is null on the last page

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only, idempotent, open-world behavior, so the description need not restate safety. It adds genuinely non-obvious traits: results are cached for 15 minutes, and NVD evaluates every filter so totalResults is the exact upstream total, plus how to paginate via nextCursor. Missing details like rate limits or cache-staleness implications keep it below 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with purpose then rules then caching/pagination, with no filler. The opening filter enumeration slightly overlaps with what the schema already lists, so it is not maximally economical, but every clause carries usable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 19-parameter, nested-object tool with an output schema present, the description covers the essential non-schema gaps: constraint interactions, window caps, caching, exactness of totals, and pagination mechanics. An agent can call it correctly without opening the schema, though sibling routing is the one untouched area.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 95%, so the baseline is 3, but the description adds cross-parameter semantics the schema only partially encodes: the keyword/keywordExactMatch and cpeName/isVulnerable dependencies, the exclusivity pair, and the shared 120-day window limit. It also clarifies that statuses and filters are applied upstream by NVD, which is meaning beyond the field-level text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Search CVE records') and enumerates the exact NVD 2.0 filter dimensions the tool accepts, so the agent knows precisely what surface it covers. It is clearly distinct from get-style siblings in name and behavior, but never explicitly names those siblings or contrasts itself with them, keeping it short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'Rules' sentence gives real operational constraints (keywordExactMatch requires keyword; isVulnerable requires cpeName; cpeName/virtualMatchString mutually exclusive; 120-day windows) and explains pagination. However, there is no guidance on when to choose this over sibling tools like nvd_get_cves or nvd_get_recent_cves, which is the main 'when-to-use' question for a search tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.