CVE Search MCP Server
This MCP server lets you search, look up, and summarize CVE and vulnerability data for security and PR review.
Look up a specific CVE by exact ID with CVSS and severity details.
Bulk-look up up to 20 CVE IDs concurrently.
Search vulnerabilities by vendor and product; this can be slow.
Get recent CVEs published in the last 1–365 days.
Get high-severity CVEs (CVSS >= 7.0) for a recent window.
Search by technology/library keyword across NVD, GitHub Advisory, and OSV, with normalization and deduplication.
Retrieve CVE database statistics, source info, and freshness for health checks.
Get detailed CVSS v3/v4 metrics and vector breakdown for a CVE.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CVE Search MCP Server search for spring boot vulnerabilities"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CVE Search MCP Server
A Model Context Protocol (MCP) server for CVE and vulnerability searching, optimized for PR reviews. It answers the question a reviewer actually asks — "is this dependency at this version vulnerable, and what's the fix?" — and covers CVEs newer than an LLM's training data.
Features
10 tools: precise dependency checks (single + batch), CVE lookup (single + bulk), keyword and product search, recent and high-severity CVEs, CVSS breakdown, data-source health
Current APIs: CIRCL Vulnerability-Lookup, NVD CVE API 2.0, GitHub security advisories, OSV.dev
Best available CVSS: v4.0 > v3.1 > v3.0 > v2.0, scored from the vector when a source only gives a vector
Compact output: one small record shape per vulnerability (no multi-KB raw JSON unless asked), so a PR review can call several tools
Honest results: every result carries
sources: {name: "ok" | "error: …"}andpartial: truewhen a source failed, so a failed source is never reported as "no vulnerabilities"Rate-limit aware: one shared NVD limiter (5 req/30 s without a key, 50 with); a call waits at most 20 s for NVD capacity, then returns partial results that say so
3 transports: stdio (default), SSE, Streamable HTTP
Related MCP server: Git-Fabric CVE
Installation
Requires Python 3.10+ and uv.
cd cve-search
uv syncDevelopment
uv sync --extra dev
uv run pytest # unit tests (no network)
uv run ruff check src tests
uv run mypy src
uv run python test_server.py # live smoke test against the real APIsConfiguration
Env var | Default | Description |
| none | Recommended. Raises NVD's limit from 5 to 50 requests / 30 s, so recent/high-severity searches don't come back partial. Free at nvd.nist.gov. |
| none | Raises the GitHub advisory API limit from 60 to 5,000 requests/hour (used by |
|
| HTTP request timeout in seconds. |
Running
uv run python main.py # stdio (Claude Desktop / IDEs)
uv run python main.py --transport sse --host 127.0.0.1 --port 8000
uv run python main.py --transport streamable-http --host 127.0.0.1 --port 8000Claude Desktop config
{
"mcpServers": {
"cve-search": {
"command": "uv",
"args": ["--directory", "/path/to/cve-search", "run", "python", "main.py"],
"env": { "NVD_API_KEY": "your-key", "GITHUB_TOKEN": "your-token" }
}
}
}Tools
Tool | Use it for | Source |
| Dependencies added or bumped in a PR — up to 100 | OSV |
| One package at one exact version → | OSV |
| One CVE in detail: best CVSS, CWEs, affected products, EPSS, GHSA ids, | CIRCL, NVD, GitHub |
| Up to 20 CVE ids, compact | CIRCL, NVD |
| Technology/library keyword, newest first ("log4j", "spring boot") | NVD, CIRCL |
| Vendor + product, paged ( | CIRCL |
| Published in the last 1–120 days, optional | NVD |
| High/Critical (v3 or v4) in the last 1–120 days, worst first | NVD |
| Every CVSS version NVD has for a CVE, plus the best score | NVD |
| Size and last update of each data source | CIRCL |
Dependency checks
Ecosystems use OSV's names —
PyPI,npm,Maven,Go,crates.io,RubyGems,NuGet,Packagist,Hex,Pub, … — and common aliases (pip,node,cargo,golang,composer,gem,java,dotnet).Maven names are
group:artifact, e.g.org.apache.logging.log4j:log4j-core.Versions must be exact (from the lockfile). Ranges like
^4.17.0,>=2.0,[1.0,2.0)or1.x, placeholders like${version}orlatest, and — for npm, crates.io, Go, Pub, Hex and NuGet — short versions like1.0(a range in those manifests) are rejected, because checking them could wrongly report "not vulnerable". Without a version, all known vulnerabilities are listed and flaggedversion_checked: false.The fix for your version: each vulnerability lists
affectedranges paired with their fix, andfix_for_version— the fix of the range that contains your version (a vulnerability can have several ranges, e.g. log4j-core CVE-2021-45046:<2.12.2and>=2.13.0, <2.16.0; for 2.14.1 the fix is 2.16.0, not 2.12.2).recommended_versionis the lowest version that fixes everything listed.GHSA/PYSEC/CVE duplicates of the same vulnerability are merged per package.
check_package_vulnerabilitieslists up to 20 vulnerabilities, worst first, withtotalandtruncated.check_dependenciesstays compact for 100 packages: the worst 5 per package in a slim form (150 in total), clean packages in onenot_vulnerablelist, details fetched for at most 200 vulnerabilities, andtruncatedwhen anything was cut.
check_dependencies([
{"ecosystem": "Maven", "name": "org.apache.logging.log4j:log4j-core", "version": "2.14.1"},
{"ecosystem": "npm", "name": "lodash", "version": "4.17.20"},
{"ecosystem": "PyPI", "name": "requests", "version": "2.32.3"}
])PR review workflow
Dependencies changed? Take exact versions from the lockfile diff →
check_dependencies([...]). Recommendrecommended_version(or each vulnerability'sfix_for_version).Need more on one CVE?
search_cve_by_id("CVE-…")for exploit likelihood (epss), affected products and GitHub'sfixed_in.New technology without a package version (e.g. a service or base image)?
search_by_keyword("…")orsearch_vulnerabilities_by_product(vendor, product).Context for a release:
check_high_severity_cves(7).
Project structure
cve-search/
├── src/mcp_server_cve_search/
│ ├── config.py # Config from env vars
│ ├── server.py # FastMCP app + transport dispatch
│ ├── tools/
│ │ ├── common.py # CVE id validation, per-source status, client bundle
│ │ ├── dependencies.py # check_package_vulnerabilities, check_dependencies
│ │ ├── cve_lookup.py # search_cve_by_id, bulk_cve_lookup
│ │ ├── keyword_search.py # search_by_keyword
│ │ ├── product_search.py # search_vulnerabilities_by_product
│ │ ├── recent_cves.py # get_recent_cves, check_high_severity_cves
│ │ ├── cvss.py # cvss_score_lookup
│ │ └── stats.py # get_vulnerability_stats
│ ├── sources/
│ │ ├── http.py # shared HTTP helper; failures raise SourceError
│ │ ├── ratelimit.py # shared NVD rate limiter
│ │ ├── circl.py # CIRCL Vulnerability-Lookup
│ │ ├── nvd.py # NVD CVE API 2.0
│ │ ├── github.py # GitHub security advisories (lookup by CVE)
│ │ └── osv.py # OSV.dev
│ └── utils/
│ ├── cvss.py # CVSS v2/v3/v4 scoring and precedence
│ ├── records.py # compact record normalisers + merge
│ ├── ecosystems.py # OSV ecosystem names, exact-version validation
│ ├── formatting.py # severity summaries
│ ├── normalization.py # keyword normalisation
│ └── severity.py # score → severity level
├── tests/ # unit tests; fixtures recorded from the live APIs
├── examples/
├── main.py
└── test_server.py # live smoke test (one call per tool)Test fixtures are trimmed real responses. If an upstream API changes shape, re-record them with uv run python tests/fixtures/record_fixtures.py.
Data sources
Source | Endpoint | Used for |
| Package/version checks, fixed versions | |
| CVE records (CVE JSON 5), product and full-text search, EPSS, source stats | |
| Keyword search, date/severity windows, CVSS detail | |
| CVE → GHSA ids and patched versions |
License
MIT License
Available Tools
8 toolsbulk_cve_lookupA
Look up multiple CVEs by ID concurrently (max 20 IDs). Useful for scanning dependency lists extracted from pull requests. Returns a dict of {cve_id: result} with severity info for each entry.
Inputs: cve_ids (required). Returns: object
check_high_severity_cvesA
Get high-severity CVEs (CVSS >= 7.0) from the last N days (1-365). Fast. Covers Critical (9.0-10.0) and High (7.0-8.9) severity. Example: check_high_severity_cves(7) — this week's critical threats.
Inputs: days. Returns: object
cvss_score_lookupA
Get a detailed CVSS v3/v4 breakdown for a CVE: base score, vector string, and individual metrics (Attack Vector, Complexity, Privileges Required, User Interaction, Scope, Confidentiality/Integrity/Availability Impact). Uses NVD which carries the richest CVSS data.
Inputs: cve_id (required). Returns: object
get_recent_cvesA
Get CVEs published in the last N days (1-365). Fast. Returns a list with severity analysis and alert level. Example: get_recent_cves(7, 30) — last week's top 30 CVEs.
Inputs: days, limit. Returns: object
get_vulnerability_statsA
Get CVE database statistics: total count, last updated timestamp, and source info. Fast. Useful for health checks and confirming database freshness before analysis.
Inputs: no named parameters. Returns: object
search_by_keywordA
Smart CVE search by technology/library keyword. Fast. Normalizes common variations ("Node.js", "Spring Boot", "log4j2"). Searches NVD, GitHub Advisory, and OSV concurrently and deduplicates results. Example: search_by_keyword("nodejs"), search_by_keyword("spring boot").
Inputs: keyword (required), limit. Returns: object
search_cve_by_idA
Search for a specific CVE by exact ID (e.g., CVE-2021-44228). Use when you have a CVE ID from code, docs, or security reports. Returns complete CVE details with CVSS score and severity analysis.
Inputs: cve_id (required). Returns: object
search_vulnerabilities_by_productA
Search vulnerabilities by vendor and product name (e.g., vendor="apache", product="struts"). WARNING: This can be slow (10-15 seconds). Use search_by_keyword for faster results. Returns matched vulnerabilities with severity summary.
Inputs: vendor (required), product (required), limit. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Tools have mostly distinct purposes, but get_recent_cves and check_high_severity_cves both retrieve recent CVEs, differing only by severity filter. Bulk vs single CVE lookup also overlap slightly. Descriptions help disambiguate.
All tool names follow a consistent verb_noun pattern with underscores and are descriptive, e.g., search_by_keyword, get_recent_cves. No mixing of conventions.
8 tools is well-scoped for a CVE search server, covering various lookup methods and utility functions without being excessive.
Covers key CVE lookup methods (by ID, keyword, product, date range, severity) and stats. Missing advanced features like subscription or CVE creation, but core search is complete.
Maintenance
Related MCP Connectors
Deep security scans of repos you own from your editor: dependency CVEs, SAST, git-history secrets.
Look up CVEs, CISA KEV, EPSS and open-source package vulnerabilities, including malicious packages.
Defensive vulnerability intelligence search across public CVE/NVD and GitHub advisory APIs with CVSS
Threat intel + your scans/findings/Shield posture. CVE, EPSS, KEV, package vuln lookup, DAST.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to scan project dependencies and Infrastructure as Code files for security vulnerabilities and misconfigurations. It also provides automated fixing capabilities to remediate identified security issues.183MIT

Git-Fabric CVEofficial
AlicenseNot gradedqualityCmaintenanceProvides tools for autonomous CVE detection, enrichment, and remediation across managed repositories using GHSA and NVD data. It enables automated triage and pull request creation for dependency fixes based on configurable severity policies.2MIT- AlicenseNot gradedqualityDmaintenanceProvides security vulnerability scanning for code snippets, codebases, and code changes through integration with the Asterisk security API.35Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables querying CVE vulnerability data from the NIST National Vulnerability Database, including CVE lookup, product/version search via CPE filters, CVSS severity scores, and recent high-severity disclosures.74 npmMIT