Skip to content
MCP server
RegistryRemote

nist-nvd-mcp-server MCP Server

Search and audit NIST NVD CVEs by keyword, severity, CWE, CISA KEV status, and CPE.

nist-nvd-mcp-server scores 72 (Good), licensed Apache-2.0 and written in TypeScript. It can be reached as a remote MCP endpoint. It declares 6 tools. Filed under Search. GitHub shows 2 stars. Package registries report about 498 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by cyanheadsApache-2.0TypeScript2 stars
Trust score
72Good
Trust score 72 of 100, Good

Good trust

72 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 72 comes from

22 + 20 + 6 + 10 + 4 + 10 = 72. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity6 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 6 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Remote auth: No sign-in detected. Our check reached the endpoint without being asked for credentials. Some servers only check keys after connecting, so follow the provider's setup notes. Security tips

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "cyanheads-nist-nvd-mcp-server": {      "command": "npx",      "args": [        "-y",        "@cyanheads/nist-nvd-mcp-server@0.4.1"      ],      "env": {        "NVD_CLAMP_LIMITS": "true",        "NVD_API_KEY": "",        "NVD_REQUEST_TIMEOUT_MS": "10000",        "MCP_LOG_LEVEL": "info"      }    }  }}

Environment variables

NameRequiredNotes
NVD_CLAMP_LIMITSOptionalClamp oversized reads to 2000 CVEs/events, 10000 CPEs, or 100 distinct CVE IDs. False restores rejection.
NVD_API_KEYOptionalNVD 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_MSOptionalTimeout for each NVD request attempt in milliseconds. Every attempt is also capped by what remains of the tool call's 55s deadline, so raising it lengthens attempts, never the call.
MCP_LOG_LEVELOptionalSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
NVD_CLAMP_LIMITSOptionalClamp oversized reads to 2000 CVEs/events, 10000 CPEs, or 100 distinct CVE IDs. False restores rejection.
MCP_TRANSPORT_TYPEOptionalSelects the HTTP transport.
NVD_API_KEYOptionalNVD 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_MSOptionalTimeout for each NVD request attempt in milliseconds. Every attempt is also capped by what remains of the tool call's 55s deadline, so raising it lengthens attempts, never the call.
MCP_HTTP_HOSTOptionalThe hostname for the HTTP server.
MCP_HTTP_PORTOptionalThe port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHOptionalThe endpoint path for the MCP server.
MCP_AUTH_MODEOptionalAuthentication mode to use: 'none', 'jwt', or 'oauth'.
MCP_LOG_LEVELOptionalSets the minimum log level for output (e.g., 'debug', 'info', 'warn').

Tools6Tool docs quality grade F

All capabilities

About

Version License Docker MCP SDK npm TypeScript Bun

Install in Claude Desktop Install in Cursor Install in VS Code

Framework

Public Hosted Server: https://nist-nvd.caseyjhand.com/mcp


Overview

CVE and CPE data from the NIST National Vulnerability Database. Search and audit vulnerabilities by keyword, severity, CWE, or CISA KEV status, resolve products to CPE names, and track a CVE's revision history.

Tools

ToolDescription
nvd_search_cvesSearch CVEs by keyword, severity, CWE, publication or last-modified date, CISA KEV status, or the date CISA added a CVE to KEV.
nvd_get_cveFetch one or more CVEs by ID — full CVSS scores with their suppliers, CWE, CPE configs, CNA/ADP affected products, KEV fields, and references.
nvd_search_cpesSearch the NVD CPE dictionary by product keyword or partial match string.
nvd_audit_cpeFind all CVEs affecting a specific product version by CPE name or virtual match string, optionally narrowed server-side by KEV status, severity band, or date window.
nvd_get_cve_historyRetrieve the change history for a CVE — score revisions, status transitions, and reference additions.

Resources

ResourceDescription
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.
skill://nist-nvd-guide/SKILL.mdProduct applicability, identifier chains, severity interpretation, and coverage guidance.

CVE resource data is also reachable via nvd_get_cve. The published guide is also available to plugin installs under skills/nist-nvd-guide/SKILL.md.

Capability reference

Oversized read limits clamp by default: 2000 for CVE search, audit, and history; 10000 for CPE search; 100 distinct IDs for batch lookup. Clamped calls report requestedLimit, effectiveLimit, and a notice on both output surfaces. Batch lookup validates every supplied ID and lists normalized, deduplicated IDs beyond the processed prefix in unprocessedIds; missingIds covers queried IDs only. Set NVD_CLAMP_LIMITS=false before startup to restore advertised maxima and reject oversized requests (a cveIds string naming more than 100 distinct IDs fails too_many_cve_ids). Zero, negative, and fractional limits remain invalid.

nvd_search_cves tool

  • Full-text keyword search (AND-semantics across words), or exactPhrase: true for an exact-phrase match — requires keyword
  • Filters: CVSS severity band (LOW/MEDIUM/HIGH/CRITICAL — CRITICAL requires severityVersion: "v3" or "v4"), CWE ID, CISA KEV status (kevOnly), noRejected (default true)
  • Date filters on three axes — publication, last modification, and the date CISA added the CVE to KEV: pubDays/lastModDays/kevDays shorthands (exactly N × 24 hours up to call time, auto-clamped to 120 days, clamping reported in the enrichment) or explicit ranges (pubStartDate/pubEndDate, lastModStartDate/lastModEndDate, kevStartDate/kevEndDate; 120-day max span, both ends required); the two forms per axis are mutually exclusive. A KEV window returns only catalog members
  • Explicit dates are YYYY-MM-DDThh:mm[:ss[.fraction]] with an optional Z or ±hh:mm offset; a value without an offset is read as UTC
  • A shorthand re-expands on every call: page with the dates echoed in filtersApplied (the next-page notice names them) so every page reads one window
  • Pagination via limit (up to 2000, default 20) and offset
  • Always returns brief summaries with a truncated description; call nvd_get_cve for full detail

nvd_get_cve tool

  • Batch up to 100 distinct CVE IDs per call, as an array or one comma- or whitespace-separated string; IDs match regardless of case and a repeat is fetched once
  • Full mode (default): CVSS scores across v2.0/v3.0/v3.1/v4.0, each with the contributor that supplied it, CWE weaknesses, CPE configurations from NVD analysis, the affected products the CNA and any ADP state themselves (affectedProducts), the record's sourceIdentifier and cveTags, CISA KEV fields, references
  • brief: true returns trimmed rows (ID, status, top severity, KEV name, truncated description) — recommended for batches over 10
  • includeReferences, includeConfigurations, and includeAffected default to true; set any false to omit that field from both output surfaces. allLanguages: true keeps every localized description instead of English-only
  • missingIds enrichment field lists any requested IDs NVD didn't return
  • Both output surfaces carry every selected reference, CPE configuration, and affected-product statement; optional SSVC assessments appear when NVD supplies them

nvd_search_cpes tool

  • Keyword search (e.g. "apache http server") or a partial CPEv2.3 pattern via cpeMatchString — at least one required
  • Returns full CPE name, human-readable title, deprecation status, and superseding CPEs
  • Pagination via limit (up to 10,000, default 20) and offset — a vendor-level keyword can match tens of thousands of entries, so page rather than narrowing further
  • Use before nvd_audit_cpe to resolve the exact CPE name a product needs

nvd_audit_cpe tool

  • Two modes: exact cpeName (NVD auto-applies isVulnerable) or virtualMatchString with optional versionStart/versionEnd bounds (inclusive/exclusive)
  • Server-side filters, same forms as nvd_search_cves: kevOnly, an exact severity band (severity + severityVersion, CRITICAL requires v3 or v4), and the publication, last-modified, and KEV-addition date windows (pubDays/lastModDays/kevDays shorthands or explicit pairs). totalCount and paging count within them; the echoed dates in filtersApplied page a shorthand window
  • Client-side severityMin filters the fetched page by the highest severity band across all CVSS metrics; the headline still follows the highest numerical score. It can only remove what limit retrieved, composes with severity as AND, and leaves totalCount unchanged
  • A zero total under a server-side filter is reported as no match for the filters, not a clean audit; only an unfiltered zero reads as "no known vulnerabilities"
  • Returns full CVE records (CVSS scores with their suppliers, CWE, CPE configurations, CNA/ADP affected products, KEV fields, references)
  • includeReferences, includeConfigurations, and includeAffected default to true; false omits that field from both output surfaces. SSVC assessments remain optional
  • Pagination via limit (up to 2000, default 20) and offset — page at a modest limit rather than raising it, since each result is a full record
  • auditTarget enrichment field echoes the CPE identifier used, so callers can verify the correct product was queried

nvd_get_cve_history tool

  • Returns change events: CVSS revisions, status transitions, reference additions, CPE configuration updates
  • order picks the anchor end — newest (default) reads most-recent-first, oldest reads NVD's native order
  • Paginated via limit (up to 2000, default 20) and offset, counted from the end order anchors to
  • The history endpoint is markedly slower than the others, especially on a server running without an API key (NVD_API_KEY raises the rate limit)

nvd://cve/{cveId} resource

  • Full CVE record as application/json — same data as nvd_get_cve for one ID, with references, CNA/ADP affectedProducts, and English-only descriptions
  • cveId must match CVE-YYYY-NNNNN; a well-formed but unknown ID throws cve_not_found

Features

Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.

NVD-specific:

  • Request pacer enforces NVD's 5 req/30s (no key) and 50 req/30s (with key) limits with automatic queuing, at a minimum inter-request gap derived from the window and limit
  • Retry wraps the pacer rather than sitting inside it — every attempt takes its own turn in the queue, so retries count against the rate budget instead of bursting past it
  • A 403's Retry-After holds the whole queue until NVD's window resets; keyless, a 403 fails fast and names NVD_API_KEY rather than spending the 5-request budget on retries that cannot outlast a 30-second window
  • Deterministic rejections fail fast instead of consuming retries — NVD answers both a bad parameter and a refused API key with HTTP 404, separated only by a message header, so a refused key surfaces as a config fault naming NVD_API_KEY rather than as a malformed CVE ID
  • NVD block pages return a nonretryable blocked-request error; malformed JSON and response envelopes return an invalid-response error with recovery guidance
  • One 55-second deadline covers every NVD request a tool call makes — queue wait, attempts, backoff, and any Retry-After wait — so a slow or failing NVD ends the call with a retryable nvd_timeout or nvd_unavailable before MCP clients' 60-second default timeout; each attempt's timeout is capped by what remains of it
  • Request timeouts and caller cancellation remain active through response-body reads

Agent-friendly output:

  • An enrichment block on every response, carried on both structuredContent and the rendered text — total results, returned count, page offset, the filters actually applied, and any date-clamping events, so agents can reason about what was really queried
  • missingIds in batch CVE lookups — a per-ID parity check instead of a silent partial result
  • CPE echo in audit responses — cpeName or virtualMatchString reflected back so callers can verify the correct product was audited
  • Empty-result notices that name the cause — an unmatched query, a severity threshold that emptied the page, an offset past the end of the result set, a filtered audit with no match, and a clean audit ("no known vulnerabilities") are told apart rather than all reading as errors or "nothing found"

Getting started

Public Hosted Instance

A public instance is available at https://nist-nvd.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:

{
  "mcpServers": {
    "nist-nvd-mcp-server": {
      "type": "streamable-http",
      "url": "https://nist-nvd.caseyjhand.com/mcp"
    }
  }
}

Self-Hosted / Local

Add 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

Prerequisites

  • Bun v1.4.4 or higher (or Node.js v24+).
  • Optional: NVD API key — free, raises rate limit from 5 req/30s to 50 req/30s.

Installation

  1. Clone the repository:
git clone https://github.com/cyanheads/nist-nvd-mcp-server.git
  1. Navigate into the directory:
cd nist-nvd-mcp-server
  1. Install dependencies:
bun install
  1. Configure environment:
cp .env.example .env
# edit .env and set NVD_API_KEY if you have one

Configuration

VariableDescriptionDefault
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_MSTimeout for each NVD request attempt in milliseconds. Every attempt is also capped by what remains of the tool call's 55-second deadline, so raising it lengthens attempts, never the call.10000
NVD_CLAMP_LIMITSClamp oversized reads to 2000 CVEs/events, 10000 CPEs, or 100 distinct CVE IDs. false restores schema maxima and rejection.true
MCP_TRANSPORT_TYPETransport: stdio or http.stdio
MCP_HTTP_PORTPort for HTTP server.3010
MCP_AUTH_MODEAuth mode: none, jwt, or oauth.none
MCP_LOG_LEVELLog level (RFC 5424).info
LOGS_DIRDirectory for log files (Node.js only).<project-root>/logs
OTEL_ENABLEDEnable OpenTelemetry instrumentation.false

See .env.example for the full list of optional overrides.

Node and Bun load .env from the working directory before server configuration is parsed. Exported variables take precedence. Invalid NVD_CLAMP_LIMITS values fail configuration validation; use true or false.

Running the server

Local development

  • 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

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.

Project structure

DirectoryPurpose
src/index.tscreateApp() entry point — registers tools/resources and inits services.
src/configServer-specific environment variable parsing and validation with Zod.
src/mcp-server/toolsTool definitions (*.tool.ts).
src/mcp-server/resourcesResource definitions (*.resource.ts).
src/services/nvd-httpNVD HTTP client with rate-limit pacing and retry.
src/services/nvd-cveCVE service — search, fetch-by-ID, CPE audit, change history, normalization.
src/services/nvd-cpeCPE service — dictionary search and normalization.
src/services/nvd-sourceSource service — resolves NVD contributor identifiers to their published names.
tests/Unit and integration tests mirroring src/.

Development guide

See CLAUDE.md for development guidelines and architectural rules. The short version:

  • Handlers throw, framework catches — no try/catch in tool logic
  • Use ctx.log for request-scoped logging, ctx.state for tenant-scoped storage
  • Register new tools and resources via the barrels in src/mcp-server/*/definitions/index.ts
  • Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields

Contributing

Issues are welcome. Run checks and tests before submitting:

bun run devcheck
bun run test

License

Apache-2.0 — see LICENSE for details.

Frequently asked questions

What is nist-nvd-mcp-server MCP Server?

Search and audit NIST NVD CVEs by keyword, severity, CWE, CISA KEV status, and CPE.

How do I install nist-nvd-mcp-server MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. nist-nvd-mcp-server MCP Server runs locally from the npm package @cyanheads/nist-nvd-mcp-server with the command npx -y @cyanheads/nist-nvd-mcp-server@0.4.1.

Is nist-nvd-mcp-server MCP Server free and open source?

Yes. nist-nvd-mcp-server MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does nist-nvd-mcp-server MCP Server support remote (HTTP) connections?

Yes. nist-nvd-mcp-server MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.

What tools does nist-nvd-mcp-server MCP Server provide?

nist-nvd-mcp-server MCP Server provides 6 tools, including ctx.log, nvd_audit_cpe, nvd_get_cve, and nvd_get_cve_history. See the full tool list for descriptions and parameters.

How is nist-nvd-mcp-server MCP Server's trust score calculated?

nist-nvd-mcp-server MCP Server scores 72 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server