Connects Claude to the NIST National Vulnerability Database API 2.0 for CVE research and CPE auditing. Exposes five tools: keyword search with severity and CWE filters, batch CVE lookup with full CVSS scoring across v2/v3/v4, CPE dictionary search, product version audit via exact CPE name or virtual match strings with version ranges, and CVE change history tracking. Built with token bucket rate limiting that respects NVD's 5 req/30s unauthenticated and 50 req/30s authenticated limits, automatic retry with backoff, and HTML response guards for their rate limit pages. Includes CISA KEV filtering for known exploited vulnerabilities. Useful for security audits, dependency scanning, and vulnerability surveillance workflows where you need structured access to official CVE data without writing your own NVD client.
Search and audit CVEs by keyword, severity, CWE, CISA KEV status, and CPE via the NIST National Vulnerability Database. STDIO or Streamable HTTP.
Public Hosted Server: https://nist-nvd.caseyjhand.com/mcp
Five tools for vulnerability research, CPE auditing, and change tracking against the NIST NVD API 2.0:
| Tool | Description |
|---|---|
nvd_search_cves | Search CVEs by keyword, severity, CWE, date range, or CISA KEV status. |
nvd_get_cve | Fetch one or more CVEs by ID — full CVSS scores, CWE, CPE configs, KEV fields, and references. |
nvd_search_cpes | Search the NVD CPE dictionary by product keyword or partial match string. |
nvd_audit_cpe | Find all CVEs affecting a specific product version by CPE name or virtual match string. |
nvd_get_cve_history | Retrieve the change history for a CVE — score revisions, status transitions, and reference additions. |
nvd_search_cvesThe primary discovery tool for vulnerability surveillance and triage workflows.
CWE-79, NVD-CWE-Other)pubDays and lastModDays for "last N days" queriespubStartDate/pubEndDate, etc.) with 120-day max spanqueryMetalimit (up to 2000) and offsetnvd_get_cve for full detailnvd_get_cveFetch one or more CVEs by ID with full detail or brief summaries.
brief: true): ID, status, top severity, KEV name — recommended for batches larger than 10includeReferences: false to strip the references array and reduce response sizequeryMeta.missingIds lists any requested IDs NVD didn't returnnvd_search_cpesLook up product identifiers before auditing.
"apache http server", "openssl") or partial CPEv2.3 patterntotalResults > returnednvd_audit_cpe — CPE names are arcane strings; guessing audits the wrong productnvd_audit_cpeFull CVE audit for a specific product version.
cpeName (NVD auto-applies isVulnerable) or virtualMatchString with optional version range boundsversionStart/versionEnd with inclusive/exclusive type controlseverityMin) to strip low-signal entriesqueryMeta so callers can verify the correct product was queriednvd_get_cve_historyTrack a CVE's lifecycle over time.
limit and offsetNVD_API_KEY and raise NVD_REQUEST_TIMEOUT_MS for reliable operation| Type | Name | Description |
|---|---|---|
| Resource | nvd://cve/{cveId} | Full CVE record by ID — same data as nvd_get_cve for a single ID, as a stable URI for injectable context. |
All resource data is also reachable via tools.
Built on @cyanheads/mcp-ts-core:
none, jwt, oauthin-memory, filesystem, Supabase, Cloudflare KV/R2/D1NVD-specific:
withRetry; parses Retry-After header on 403 responsesAgent-friendly output:
queryMeta on every response — total results, returned count, page offset, and any date-clamping events so agents can reason about what was actually queriedmissingIds in batch CVE lookups — per-ID parity check instead of a silent partial resultcpeName or virtualMatchString reflected back so callers can verify the correct product was auditedAdd the following to your MCP client configuration file.
{
"mcpServers": {
"nist-nvd-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/nist-nvd-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info",
"NVD_API_KEY": "your-api-key"
}
}
}
}
Or with npx (no Bun required):
{
"mcpServers": {
"nist-nvd-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/nist-nvd-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info",
"NVD_API_KEY": "your-api-key"
}
}
}
}
Or with Docker:
{
"mcpServers": {
"nist-nvd-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "MCP_TRANSPORT_TYPE=stdio",
"-e", "NVD_API_KEY=your-api-key",
"ghcr.io/cyanheads/nist-nvd-mcp-server:latest"
]
}
}
}
For Streamable HTTP, set the transport and start the server:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 NVD_API_KEY=... bun run start:http
# Server listens at http://localhost:3010/mcp
git clone https://github.com/cyanheads/nist-nvd-mcp-server.git
cd nist-nvd-mcp-server
bun install
cp .env.example .env
# edit .env and set NVD_API_KEY if you have one
| Variable | Description | Default |
|---|---|---|
NVD_API_KEY | NVD API key. Without it, rate limit is 5 req/30s; with it, 50 req/30s. Get one free at nvd.nist.gov/developers/request-an-api-key. | — |
NVD_REQUEST_TIMEOUT_MS | Per-request timeout in milliseconds. The history endpoint is slow without an API key — raise to 60000 if using nvd_get_cve_history without a key. | 10000 |
MCP_TRANSPORT_TYPE | Transport: stdio or http. | stdio |
MCP_HTTP_PORT | Port for HTTP server. | 3010 |
MCP_AUTH_MODE | Auth mode: none, jwt, or oauth. | none |
MCP_LOG_LEVEL | Log level (RFC 5424). | info |
LOGS_DIR | Directory for log files (Node.js only). | <project-root>/logs |
OTEL_ENABLED | Enable OpenTelemetry instrumentation. | false |
See .env.example for the full list of optional overrides.
Build and run:
# One-time build
bun run rebuild
# Run the built server
bun run start:stdio
# or
bun run start:http
Run checks and tests:
bun run devcheck # Lint, format, typecheck, security
bun run test # Vitest test suite
bun run lint:mcp # Validate MCP definitions against spec
docker build -t nist-nvd-mcp-server .
docker run --rm -e NVD_API_KEY=your-key -p 3010:3010 nist-nvd-mcp-server
The Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/nist-nvd-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
| Directory | Purpose |
|---|---|
src/index.ts | createApp() entry point — registers tools/resources and inits services. |
src/config | Server-specific environment variable parsing and validation with Zod. |
src/mcp-server/tools | Tool definitions (*.tool.ts). |
src/mcp-server/resources | Resource definitions (*.resource.ts). |
src/services/nvd-http | NVD HTTP client with token-bucket rate limiting and retry. |
src/services/nvd-cve | CVE service — search, fetch-by-ID, CPE audit, change history, normalization. |
src/services/nvd-cpe | CPE service — dictionary search and normalization. |
tests/ | Unit and integration tests mirroring src/. |
See CLAUDE.md for development guidelines and architectural rules. The short version:
try/catch in tool logicctx.log for request-scoped logging, ctx.state for tenant-scoped storagesrc/mcp-server/*/definitions/index.tsIssues and pull requests are welcome. Run checks and tests before submitting:
bun run devcheck
bun run test
Apache-2.0 — see LICENSE for details.
NVD_API_KEYNVD API key. Without it, rate limit is 5 req/30s; with it, 50 req/30s. Get one free at nvd.nist.gov/developers/request-an-api-key.
NVD_REQUEST_TIMEOUT_MSdefault: 10000Per-request timeout in milliseconds. Raise to 60000 when using nvd_get_cve_history without an API key.
MCP_LOG_LEVELdefault: infoSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
MCP_HTTP_HOSTdefault: 127.0.0.1The hostname for the HTTP server.
MCP_HTTP_PORTdefault: 3010The port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHdefault: /mcpThe endpoint path for the MCP server.
MCP_AUTH_MODEdefault: noneAuthentication mode to use: 'none', 'jwt', or 'oauth'.
com.mcparmory/google-search
io.github.pipeworx-io/brave-search
marcopesani/mcp-server-serper
brave/brave-search-mcp-server
com.mcparmory/google-search-console
acamolese/google-search-console-mcp