CVE MCP Server
The CVE MCP Server is an AI-powered security intelligence platform consolidating 27 tools across 21 data sources for vulnerability research, threat analysis, and risk prioritization.
CVE Lookup & Search
Fetch full CVE records from NVD including CVSS scores, descriptions, weaknesses, and affected products
Search CVEs by keyword, product, severity, or date range
Get one-page CVE summaries and full lifecycle timelines (publication, KEV addition, patch lag, exploit window)
Parse and explain CVSS v2, v3.x, and v4.0 vector strings
Fetch vendor advisories from Microsoft MSRC, Red Hat, and Ubuntu
Exploit & Attack Intelligence
Retrieve EPSS scores (exploitation probability) for one or more CVEs
Check CISA KEV catalog status for active exploitation
Find PoC exploits across GitHub, Exploit-DB, and Nuclei templates
Map CVEs to MITRE ATT&CK techniques, tactics, and associated threat groups
Risk Scoring & Reporting
Calculate composite risk scores (0β100) using CVSS, EPSS, KEV status, and PoC availability
Compare and prioritize multiple CVEs with ranked patch recommendations
Generate executive, technical, or full-format vulnerability reports with remediation guidance
Network Intelligence
Check IP reputation via AbuseIPDB and GreyNoise (abuse score, ISP, Tor status, noise classification)
Shodan host lookups for open ports, services, OS, and detected CVEs
Passive DNS lookups (CIRCL PDNS) and domain certificate transparency logs (crt.sh)
Threat Intelligence
Look up file hashes (MD5/SHA1/SHA256) against MalwareBazaar and VirusTotal
Check URL/domain safety via URLScan.io
Query ThreatFox for malware family attribution by IP, domain, URL, or hash
Look up Bitcoin addresses against Ransomwhere for ransomware association
DevSecOps & Dependency Scanning
Scan application dependencies (PyPI, npm, Maven, etc.) via OSV.dev for known CVEs
Scan Alpine, Debian, or Ubuntu container OS packages for vulnerabilities
Search GitHub repositories for exposed credentials or secrets
Server Health
Verify NVD connectivity, KEV catalog status, and cache statistics
Provides tools for retrieving EPSS (Exploit Prediction Scoring System) exploitation probability scores and percentiles for CVEs, which are maintained by the FIRST organization.
Provides tools for searching GitHub for public proof-of-concept exploits and exploit code repositories, and checking patch availability and security advisories through GitHub Security Advisories (GHSA).
Provides tools for scanning Python package names and versions against vulnerability databases to identify known security issues in dependencies through the PyPI ecosystem.
Provides tools for analyzing file hashes, URLs, domains, or IP addresses against 70+ antivirus engines and threat intelligence databases for malware detection and reputation checking.
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 MCP Server What's the risk score for CVE-2024-3400 and should we patch it immediately?"
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 MCP Server

AI-powered security intelligence at your fingertips β 28 tools + a one-call triage_cve orchestrator, 24 data sources, one protocol.
A production-grade Model Context Protocol (MCP) server that turns Claude into a full-spectrum security analyst. Instead of juggling 15+ browser tabs across NVD, EPSS, CISA KEV, Shodan, VirusTotal, and GreyNoise, ask Claude one question and get correlated intelligence in seconds. Built with Python, FastMCP, httpx, aiosqlite, Pydantic v2, and defusedxml.
The problem: Triaging a single CVE means querying NVD for CVSS scores, EPSS for exploitation probability, CISA KEV for active exploitation status, GitHub for patches, and VirusTotal for malware associations β then mentally correlating everything. For 50 CVEs, that's an entire day lost.
The solution: CVE MCP Server gives Claude direct access to 28 security tools across 24 APIs β fronted by the triage_cve one-call orchestrator. Ask "Should we patch CVE-2024-3400?" and Claude fans out to every relevant source in parallel, calculates a composite risk score (with a CISA KEV hard override), and delivers a prioritized recommendation with evidence.
π GARS-2026 β Global Agentic AI Readiness Survey
I'm running a global academic study measuring how ready security professionals, developers, and enterprise teams actually are for agentic AI β MCP servers, tool calling, governance, and human-in-the-loop workflows.
If you use this repo, your response would be a genuinely valuable data point.
π Take the survey (10 min): Survey
60 questions Β· Anonymous Β· Supervised by SRH Berlin
You get 50 Casky Tokens for early access to casky.ai
Results published open access under CC-BY 4.0
Related MCP server: cve-mcp
π Table of contents
ποΈ Architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Claude Desktop / Claude Code β
β (MCP Client via stdio) β
ββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β Model Context Protocol (stdio)
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CVE MCP Server (Python) β
β βββββββββββββββ ββββββββββββββββ βββββββββββββββββ β
β β 27 MCP β β Composite β β SQLite Cache β β
β β Tools β β Risk Engine β β + Audit Log β β
β ββββββββ¬βββββββ ββββββββ¬ββββββββ βββββββββ¬ββββββββ β
β β β β β
β ββββββββ΄βββββββββββββββββ΄ββββββββββββββββββββ΄βββββββ β
β β Async HTTP Client (httpx) β β
β β Rate Limiter Β· Response Cache β β
β ββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββ
β HTTPS (outbound only)
βββββββββββββββββΌββββββββββββββββββββββββββββ
βΌ βΌ βΌ
ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ
β VULNERABILITYβ β NETWORK β β THREAT β
β INTELLIGENCE β β INTELLIGENCE β β INTELLIGENCE β
ββββββββββββββββ€ ββββββββββββββββ€ ββββββββββββββββ€
β NVD API 2.0 β β AbuseIPDB β β VirusTotal β
β EPSS / FIRST β β GreyNoise v3 β β MalwareBazaarβ
β CISA KEV β β Shodan β β ThreatFox β
β OSV.dev β β CIRCL PDNS β β Ransomwhere β
β GitHub GHSA β β β β AlienVault β
β MITRE ATT&CK β β β β URLScan.io β
ββββββββββββββββ ββββββββββββββββ ββββββββββββββββAll traffic is outbound HTTPS only β no inbound ports are opened. API keys are loaded from environment variables and never logged. Private/internal IP addresses are blocked from all lookup tools.
π Tool catalog (28 tools)
β Orchestration (v0.2.0) β start here
Tool | Description | API Key Required | Example Usage |
| One-call triage that fans out NVD + EPSS + CISA KEV (+ public PoC for | Free / No key (key recommended) |
|
Also exposed via MCP primitives β Resources:
kev://catalog,epss://scores/{cve_id},manifest://tool-hash(SHA-256 over the registered tool surface, for tamper detection). Prompts:patch_decision,compare_and_prioritize,dependency_triage.
Core Vulnerability Intelligence (8 tools)
Tool | Description | API Key Required | Example Usage |
| Fetch detailed CVE record from NVD including CVSS scores, CWEs, affected products, references, and timeline | Free / No key (key recommended) |
|
| Search NVD for CVEs by keyword, product name, severity, or date range | Free / No key (key recommended) |
|
| Get EPSS exploitation probability (0β1) and percentile for one or more CVEs | Free / No key |
|
| Check whether a CVE appears in CISA's Known Exploited Vulnerabilities catalog | Free / No key |
|
| Parse and explain a CVSS v3.1 vector string with per-metric breakdown | Free / No key |
|
| Look up Common Weakness Enumeration details by CWE ID from embedded database | Free / No key |
|
| Extract and categorize all reference links for a CVE (patches, advisories, exploits) | Free / No key (key recommended) |
|
| Batch-fetch details for up to 20 CVEs in a single call with parallel enrichment | Free / No key (key recommended) |
|
Exploit & Attack Intelligence (4 tools)
Tool | Description | API Key Required | Example Usage |
| Search GitHub for public proof-of-concept exploits and exploit code repositories |
|
|
| Map a CVE or CWE to relevant MITRE ATT&CK techniques, tactics, and mitigations | Free / No key |
|
| Determine if known proof-of-concept code exists for a CVE across multiple sources |
|
|
| Retrieve CAPEC attack pattern details associated with a CWE or CVE | Free / No key |
|
Phase 3: Advanced Risk & Reporting (4 tools)
Tool | Description | API Key Required | Example Usage |
| Compute composite 0β100 risk score using CVSS, EPSS, KEV status, and PoC availability | Free / No key (key recommended) |
|
| Generate a formatted executive security report for one or more CVEs with recommendations | Free / No key (key recommended) |
|
| Rank a list of CVEs by composite risk score for triage prioritization | Free / No key (key recommended) |
|
| Retrieve trending CVEs based on high EPSS scores and recent KEV additions | Free / No key |
|
Network Intelligence (4 tools)
Tool | Description | API Key Required | Example Usage |
| Check IP address abuse history and confidence score via AbuseIPDB |
|
|
| Query GreyNoise for IP scan/attack activity, classification, and associated CVEs |
|
|
| Get open ports, services, banners, and vulnerabilities for an IP via Shodan |
|
|
| Retrieve historical DNS resolution data for a domain from CIRCL Passive DNS |
|
|
Threat Intelligence (4 tools)
Tool | Description | API Key Required | Example Usage |
| Analyze file hashes, URLs, domains, or IPs against 70+ antivirus engines |
|
|
| Search MalwareBazaar for malware samples by hash, tag, or signature |
|
|
| Query ThreatFox for Indicators of Compromise linked to malware families |
|
|
| Look up ransomware payment addresses and transaction data from Ransomwhere | Free / No key |
|
DevSecOps (3 tools)
Tool | Description | API Key Required | Example Usage |
| Scan package names and versions against OSV.dev for known vulnerabilities | Free / No key |
|
| Search GitHub Security Advisories by ecosystem, package, or severity |
|
|
| Submit a URL for scanning or retrieve previous scan results from URLScan.io |
|
|
π¦ Installation
Prerequisites
Python 3.10+ (3.11 or 3.12 recommended)
pip or uv package manager
Git for cloning the repository
A terminal with access to environment variables
Step-by-step setup
# 1. Clone the repository
git clone https://github.com/mukul975/cve-mcp-server.git
cd cve-mcp-server
# 2. Create and activate a virtual environment
python -m venv venv
# macOS / Linux:
source venv/bin/activate
# Windows (PowerShell):
.\venv\Scripts\Activate.ps1
# Windows (CMD):
venv\Scripts\activate.bat
# 3. Install dependencies
pip install -e .
# 4. Copy and configure environment variables
cp .env.example .env
# Edit .env with your API keys (see API Keys Setup section below)
# 5. Verify the server starts
python -m cve_mcp.serverUsing uv (faster alternative)
git clone https://github.com/mukul975/cve-mcp-server.git
cd cve-mcp-server
uv venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
uv pip install -e .
cp .env.example .envWith test dependencies
pip install -e ".[test]"π API keys setup
API keys are organized by priority β get the Tier 1 keys first for maximum coverage with free tools, then progressively add Tier 2 and Tier 3 as needed.
Tier 1: High priority (free, instant access, maximum coverage)
ENV Variable | Enables | How to Get | Free Tier Limits | Required? |
| 10Γ faster NVD lookups (50 req/30s vs 5) | 50 requests per 30 seconds | Optional but strongly recommended | |
| GitHub Advisory search + exploit PoC search | 5,000 requests/hour | Optional (60/hr without) |
Tier 2: Recommended (free accounts, significant value)
ENV Variable | Enables | How to Get | Free Tier Limits | Required? |
| IP reputation lookups | 1,000 checks/day | Required for IP tools | |
| File/URL/domain/IP malware scanning | 500 lookups/day, 4/min | Required for VT tools | |
| IP noise/scan activity intelligence | 50 queries/week (community) | Required for GreyNoise tools | |
| Host/port/service reconnaissance | Basic host lookups (free tier) | Required for Shodan tools |
Tier 3: Optional (extended intelligence)
ENV Variable | Enables | How to Get | Free Tier Limits | Required? |
| URL scanning and website analysis | 5,000 public scans/day | Optional | |
| CIRCL Passive DNS lookups | Partner access only | Optional | |
| CIRCL Passive DNS authentication | Provided with CIRCL registration | Partner access only | Optional |
β‘ Zero-key start: Eight tools work without any API key β EPSS, CISA KEV, OSV.dev, MITRE ATT&CK, CWE lookups, CVSS parsing, Ransomwhere, and NVD (at reduced rate). You can start using the server immediately and add keys progressively.
βοΈ Configuration
Environment variables (.env.example)
# NVD API key β free at https://nvd.nist.gov/developers/request-an-api-key
# Without key: 5 req/30s | With key: 50 req/30s
NVD_API_KEY=
# GitHub token β increases rate limit from 60/hr to 5000/hr (no scopes needed)
GITHUB_TOKEN=
# Threat intelligence keys (all optional β tools degrade gracefully without them)
ABUSEIPDB_KEY= # https://www.abuseipdb.com/account/api
VIRUSTOTAL_KEY= # https://www.virustotal.com/gui/join-us
URLSCAN_KEY= # https://urlscan.io/user/signup
SHODAN_KEY= # https://account.shodan.io/register
# GreyNoise β uses /v3/ip/{ip} endpoint (NOT the deprecated /v3/community)
GREYNOISE_API_KEY= # https://viz.greynoise.io/signup
# CIRCL Passive DNS β requires partner registration
CIRCL_PDNS_USER=
CIRCL_PDNS_PASS=
# Optional overrides
CACHE_DB_PATH= # defaults to ~/.cve-mcp/cache.db
AUDIT_LOG_PATH= # defaults to ~/.cve-mcp/audit.log
REQUEST_TIMEOUT=30 # HTTP timeout in seconds
MAX_RETRIES=3 # retries on transient errorsClaude Desktop configuration
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"cve-mcp": {
"command": "python",
"args": ["-m", "cve_mcp.server"],
"cwd": "/absolute/path/to/cve-mcp-server",
"env": {
"NVD_API_KEY": "your-key-here",
"GITHUB_TOKEN": "ghp_xxxxxxxxxxxxxxxxxxxx",
"ABUSEIPDB_KEY": "your-abuseipdb-key",
"GREYNOISE_API_KEY": "your-greynoise-key",
"SHODAN_KEY": "your-shodan-key"
}
}
}
}β οΈ Important: Always use absolute paths. Fully quit Claude Desktop (Cmd+Q / Alt+F4) after changing the config β reloading is not enough.
Claude Code configuration
# Basic setup
claude mcp add cve-mcp -- python -m cve_mcp.server
# With environment variables (repeat -e for each key)
claude mcp add cve-mcp -e NVD_API_KEY=your_key -e VULNCHECK_TOKEN=your_token -- python -m cve_mcp.server
# Or just run from the project directory β python-dotenv auto-loads .env on startup
# Verify it's connected
claude mcp listπ Quick start
Step 1: Install (2 minutes)
git clone https://github.com/mukul975/cve-mcp-server.git
cd cve-mcp-server
python -m venv venv && source venv/bin/activate
pip install -e .Step 2: Test with free tools first
No .env file needed. Add the server to Claude Desktop or Claude Code and try:
"What is CVE-2021-44228? Is it actively exploited?"
Claude will use lookup_cve (NVD), get_epss_score (EPSS), and check_kev (CISA KEV) β all free, no keys required.
"Scan these Python packages for vulnerabilities: requests 2.28.0, flask 2.2.0, django 3.2.0"
Step 3: Add your first key for 10Γ performance
echo 'NVD_API_KEY=your-key-here' > .envRequest a free NVD key at nvd.nist.gov β instant via email, increases rate limit from 5 to 50 requests per 30 seconds.
Step 4: Full power mode
Once you've added Tier 1 and Tier 2 keys:
"Calculate the risk score for CVE-2024-3400 and tell me if we should patch immediately."
π¬ Usage examples
Scenario 1: "Should we patch Log4Shell immediately?"
You: Analyze if CVE-2021-44228 (Log4Shell) needs immediate patching. Give me the risk score and your recommendation.
Claude orchestrates multiple tools behind the scenes:
β lookup_cve("CVE-2021-44228")
CVSS 3.1: 10.0 (CRITICAL) | AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
β get_epss_score("CVE-2021-44228")
EPSS: 0.97531 (97.5%) | Percentile: 99.99%
β check_kev("CVE-2021-44228")
β
IN CISA KEV β Added 2021-12-10 | Known ransomware use: Yes
β check_poc_exists("CVE-2021-44228")
β
WEAPONIZED β 300+ public PoC repositories found
β calculate_risk_score("CVE-2021-44228")
Risk Score: 97/100 (CRITICAL) | Urgency: PATCH IMMEDIATELYClaude's response: "CVE-2021-44228 scores 97/100 (CRITICAL). Remote code execution in Apache Log4j, CVSS 10.0, 97.5% EPSS probability, confirmed active exploitation in CISA KEV including ransomware campaigns, 300+ public exploits. Patch immediately."
Scenario 2: "Scan my Python requirements.txt"
You: Scan these dependencies: requests==2.28.0, flask==2.2.0, django==3.2.0, pillow==9.0.0, cryptography==37.0.0
β scan_dependencies(ecosystem="PyPI", packages={...})
Found 12 vulnerabilities across 4 packagesClaude's response: "Found 12 vulnerabilities across your packages. Immediate action: Django 3.2.0 (3 critical CVEs including SQL injection), Pillow 9.0.0 (heap overflow), cryptography 37.0.0 (OpenSSL chain). Upgrade to: django>=4.2.16, pillow>=10.3.0, cryptography>=42.0.0."
Scenario 3: "Investigate a suspicious IP"
You: Investigate suspicious IP 185.220.101.34 β is it malicious?
β check_ip_reputation("185.220.101.34")
AbuseIPDB Confidence: 100% | Reports: 4,832 | ISP: Tor Exit Node
β check_ip_noise("185.220.101.34")
GreyNoise: MALICIOUS | Tags: [Tor Exit Node, Web Scanner]
CVEs targeted: CVE-2024-3400, CVE-2023-46805
β shodan_host_lookup("185.220.101.34")
Open ports: 22, 80, 443, 9001 | OS: LinuxClaude's response: "185.220.101.34 is a known Tor exit node rated 100% malicious by AbuseIPDB with 4,832 abuse reports. GreyNoise confirms active scanning for CVE-2024-3400 (Palo Alto) and CVE-2023-46805 (Ivanti). Recommendation: Block at firewall."
Scenario 4: "Generate an executive security report"
You: Generate an executive security report for: CVE-2024-3400, CVE-2023-44487, CVE-2023-4966, CVE-2024-21887
β compare_cves([...])
Compiles: NVD, EPSS, KEV, PoC availability, MITRE ATT&CK mapping
Generates: Ranked risk table, remediation timeline, executive summaryπ Risk score explained
The calculate_risk_score tool produces a composite risk score from 0 to 100 by weighting four independent signals.
The formula
Risk Score = (CVSS Γ 0.20) + (EPSS Γ 0.35) + (KEV Γ 0.30) + (PoC Γ 0.15)Component | Weight | What It Captures |
CVSS v3.1 Base Score | 20% | Theoretical worst-case severity |
EPSS Probability | 35% | Statistical likelihood of exploitation in the next 30 days |
CISA KEV Status | 30% | Confirmed active exploitation in the wild |
PoC Availability | 15% | Public exploit code lowers the barrier for attackers |
Boost multipliers
KEV + active PoC β Γ1.15
CVSS β₯ 9.0 + EPSS > 0.7 β Γ1.10
Published < 7 days ago β Γ1.05
Score is capped at 100.
Risk Scoring β v1 (2026-06)
The numeric scorer is scoring_version 1.0 (surfaced in triage_cve, calculate_risk_score, and health_check). The linear weighted sum above is the v1 default for the numeric score, with one hard override:
CISA KEV hard override: a KEV-listed CVE is confirmed exploited in the wild, the single strongest exploitation signal. Its label can never be lower than CRITICAL and its score is clamped to β₯ 76, regardless of CVSS/EPSS. (A KEV CVE with a low CVSS and low EPSS still returns CRITICAL / 76.)
CVSS is treated as a severity signal, not an exploitation-likelihood signal (per Allodi & Massacci 2014); EPSS and KEV carry the exploitation signal.
An experimental SSVC v2 gated decision (CISA Deployer model β
Act/Attend/Track*/Track) is available viatriage_cve(depth="deep")as a qualitative, explainable alternative to the 0β100 number.
Score | Label | Recommended Action |
0 β 25 | LOW | Schedule for next maintenance window |
26 β 50 | MEDIUM | Patch within 30 days per SLA |
51 β 75 | HIGH | Patch within 7 days; escalate to team lead |
76 β 100 | CRITICAL | Patch within 24β48 hours. Emergency change window. |
Why these weights?
EPSS gets the highest weight (35%) because it's the single best predictor of actual exploitation β far better than CVSS alone. A CVSS 10.0 with EPSS 0.01 is theoretically dangerous but practically unlikely. KEV at 30% is ground truth: confirmed exploitation, not a prediction. CVSS at 20% captures severity context for new CVEs with insufficient EPSS data. PoC at 15% reflects that public exploits dramatically accelerate real-world attacks.
π What's new in v0.2.0
triage_cveorchestrator β one tool call that fans out NVD + EPSS + CISA KEV (+ public PoC discovery fordepth != "quick") concurrently, computes the composite risk score, and returns a clean report.depthisquick/standard(default) /deep;deepadditionally emits the SSVC v2 gated decision.New upstream sources β VulnCheck NVD++ (a transparent NVD fallback used automatically inside
triage_cvewhen NIST NVD is unreachable/throttled), CIRCL hashlookup, and the HIBP Pwned Passwords range API.KEV hard-override scoring +
scoring_versionβ KEV-listed CVEs are always CRITICAL (score β₯ 76); the scoring version is reported intriage_cveandhealth_check.HTTP transport β set
MCP_TRANSPORT=httpto serve streamable-HTTP onHOST:PORT(default0.0.0.0:8000, stateless) instead of stdio. Ships with aDockerfile.Resources & prompts β resources
kev://catalog,epss://scores/{cve_id}, andmanifest://tool-hash(SHA-256 over the registered tool surface); promptspatch_decision,compare_and_prioritize, anddependency_triage.Security posture β the server never registers a sampling handler / never issues
sampling/createMessage(Unit 42 MCP-sampling attack vector); new outbound paths are scheme/host-allowlisted.
π Data sources
# | Source | Data Provided | Auth | Rate Limit (Free) |
1 | NVD | CVE details, CVSS, CWEs, CPEs |
| 5 req/30s (50 with key) |
2 | EPSS | Exploitation probability and percentiles | None | 1,000 req/min |
3 | CISA KEV | Actively exploited CVE catalog | None | Static file |
4 | OSV.dev | Open-source package vulnerabilities | None | No published limit |
5 | GitHub Advisories | GHSA advisories, patches, affected versions |
| 60/hr (5,000 with PAT) |
6 | MITRE ATT&CK | TTPs, techniques, mitigations | None | No published limit |
7 | AbuseIPDB | IP abuse confidence, reports, ISP, geo |
| 1,000 checks/day |
8 | GreyNoise | IP noise/scan activity, classification |
| 50 queries/week |
9 | Shodan | Open ports, services, banners, CVEs |
| Basic lookups |
10 | VirusTotal | Multi-AV scan results, reputation |
| 500/day, 4/min |
11 | MalwareBazaar | Malware samples, hashes, signatures |
| Fair use |
12 | ThreatFox | IOCs linked to malware families |
| Fair use |
13 | Ransomwhere | Ransomware BTC addresses and transactions | None | No published limit |
14 | URLScan.io | URL scanning, screenshots, DOM |
| 5,000 public scans/day |
15 | CIRCL PDNS | Historical passive DNS records | HTTP Basic Auth | Partner access |
16 | GitHub Code Search | Exploit PoC repository search |
| Shared with GHSA limits |
17 | Exploit-DB | Public exploit database CSV | None | No published limit |
18 | Nuclei Templates | Community detection templates | None | No published limit |
19 | MSRC | Microsoft security advisories | None | No published limit |
20 | Red Hat Security | Red Hat CVE advisories | None | No published limit |
21 | Ubuntu Security | Ubuntu CVE tracker | None | No published limit |
22 | VulnCheck NVD++ | NVD-schema CVE records (transparent NVD fallback) |
| Per VulnCheck Community tier |
23 | CIRCL hashlookup | Known-good file metadata (NSRL + others), | None | Best-effort |
24 | HIBP Pwned Passwords | Breached-password counts via k-anonymity range API | None | No hard limit |
π§ͺ Running tests
# Run the full test suite
pytest tests/ -v
# Run specific test files
pytest tests/test_validators.py tests/test_risk_scorer.py -v
# Run with coverage
pytest tests/ -v --cov=src/cve_mcp --cov-report=term-missingTest with the MCP Inspector
npx @modelcontextprotocol/inspector python -m cve_mcp.serverOpens at http://localhost:6274 β interactively test each tool, view input schemas, and inspect response formats.
What tests cover
Unit tests: Risk score calculation, CVSS vector parsing, input validation
Integration tests: Tool registration, parameter validation, error handling for missing keys
Cache tests: SQLite cache writes, TTL expiration, cache hit/miss
Security tests: Private IP blocking, XML bomb protection (defusedxml), input sanitization
ποΈ Architecture deep dive
File structure
src/cve_mcp/
βββ server.py # FastMCP server β all 27 @mcp.tool() definitions
βββ config.py # Environment config and API base URLs
βββ models.py # Pydantic models (CVERecord, KEVEntry, EPSSScore, ...)
βββ audit.py # Rotating audit log (50MB, 5 backups)
βββ api/
β βββ nvd_client.py # NVD REST API v2.0
β βββ osv_client.py # OSV.dev package vulnerability API
β βββ epss_client.py # FIRST EPSS API
β βββ kev_client.py # CISA KEV catalog
β βββ ip_intel.py # AbuseIPDB + GreyNoise
β βββ domain_intel.py # crt.sh + CIRCL passive DNS
β βββ shodan_client.py # Shodan host intelligence
β βββ hash_intel.py # MalwareBazaar + VirusTotal
β βββ url_safety.py # URLScan.io
β βββ malware_intel.py # ThreatFox IOC lookup
β βββ ransomware_intel.py# Ransomwhere Bitcoin address lookup
β βββ exploit_intel.py # GitHub PoC/exploit search
β βββ vendor_advisory.py # MSRC + Red Hat + Ubuntu advisories
β βββ attack_mapping.py # MITRE ATT&CK STIX mapping
β βββ cve_timeline.py # CVE event timeline builder
β βββ dependency_scan.py # OSV-based dependency scanning
β βββ poc_checker.py # GitHub + Exploit-DB + Nuclei PoC search
β βββ report_generator.py# Vuln report + CVE comparison matrix
β βββ rate_limiter.py # Token bucket rate limiter for NVD
βββ cache/
β βββ sqlite_cache.py # Async SQLite cache with per-key TTL
βββ utils/
βββ validators.py # CVE ID normalization, IP/hash validation
βββ risk_scorer.py # Composite risk score computationCaching strategy
Resource | TTL |
CVE records (NVD) | 1 hour |
EPSS scores | 6 hours |
KEV catalog | 1 hour |
IP / domain intel | 1 hour |
Exploit-DB CSV | 24 hours |
ATT&CK STIX data | 24 hours |
Ransomware intel | 24 hours |
Audit log
Every tool invocation is logged to ~/.cve-mcp/audit.log:
{
"timestamp": "2026-04-14T10:23:45.123Z",
"tool": "lookup_cve",
"parameters": {"cve_id": "CVE-2024-3400"},
"duration_ms": 342,
"cache_hit": false,
"status": "ok"
}API keys and response payloads are never written to audit logs.
π Security and privacy
What data leaves your machine
Outbound HTTPS only β no inbound ports opened, no telemetry
CVE IDs, IPs, hashes, domains, and package names are sent to respective APIs for lookup
API responses are cached locally in SQLite β cached data stays on your machine
Private IP blocking
All network intelligence tools block private and reserved IP ranges before any external API call:
10.0.0.0/8,172.16.0.0/12,192.168.0.0/16(RFC 1918)127.0.0.0/8(loopback),169.254.0.0/16(link-local)::1,fc00::/7(IPv6 private)
API key protection
Keys loaded from environment variables only β never hardcoded
.envis gitignoredKeys never logged, cached, or included in audit entries
XML safety
defusedxml is used for all XML parsing to prevent XML bomb attacks (billion laughs, XXE injection).
π§ Troubleshooting
Server won't start
# Ensure virtual environment is activated and package is installed
pip install -e .
python --version # must be 3.10+Claude Desktop doesn't show the hammer icon (π¨)
Check for JSON syntax errors (no trailing commas) in your config
Use absolute paths β relative paths silently fail
Fully quit Claude Desktop (Cmd+Q / Alt+F4) and restart
NVD rate limited
# Add your free NVD API key to .env
NVD_API_KEY=your-key-here
# https://nvd.nist.gov/developers/request-an-api-keyThe server queues excess requests automatically, but with a key you get 10Γ throughput.
GreyNoise 401 Unauthorized
# Verify your key works:
curl -H "key: YOUR_KEY" https://api.greynoise.io/v3/ip/8.8.8.8
# The server uses /v3/ip/{ip} β NOT the deprecated /v3/community endpointWindows encoding issues
$env:PYTHONUTF8 = "1"
$env:PYTHONIOENCODING = "utf-8"πΊοΈ Roadmap and known limitations
What the server does NOT do
No active scanning β intelligence/lookup only, does not probe your infrastructure
No write operations β reads from external APIs only (except URLScan submissions)
No CVSS v4.0 scoring β built-in calculator handles v3.1 only; NVD-provided v4.0 scores are displayed but not recalculated
Known API limitations
NVD returns max 2,000 results per query
EPSS scores for brand-new CVEs (< 24 hours old) may not exist yet
CISA KEV updates on US business days only
GreyNoise community tier: 50 queries/week
VirusTotal free tier: 4 requests/minute
CIRCL PDNS requires manual registration and approval
Ransomwhere has a 90-day embargo on new addresses
Planned improvements
CVSS v4.0 local calculator
Webhook/alerting for KEV additions and EPSS score changes on a CVE watchlist
STIX 2.1 export for SIEM integration
Docker container with zero-install deployment
Streamable HTTP transport (MCP SSE)
Additional sources: Censys, SecurityTrails, VulnCheck
π€ Contributing
Contributions are welcome.
Adding a new tool
Add the tool function in
server.pywith the@mcp.tool()decoratorAdd input validation in
utils/validators.pyImplement the API client in
api/Add tests in
tests/Update this README
@mcp.tool()
async def my_new_tool(param: str, ctx: Context = None) -> str:
"""
One-line description for Claude to know when to use this tool.
Args:
param: Description of the parameter
"""
app = _get_app(ctx)
# validate β cache check β API call β cache write β audit β returnTesting requirements
All new tools must have at least one offline test with mocked responses
Risk score changes must include formula verification test cases
Network tools must include a test verifying private IP blocking
All tests must pass:
pytest tests/ -v
π License
MIT License β see LICENSE for details.
Copyright (c) 2025-2026 Mahipal Jangra (mukul975)Available Tools
28 toolscalculate_risk_scoreB
Calculate a composite 0-100 risk score using CVSS, EPSS, KEV, and PoC data.
Inputs: cve_id (required). Returns: result
check_exploit_availabilityA
Search GitHub for public proof-of-concept (PoC) exploit repositories for a CVE. Results are sorted by star count to surface the most credible exploits first.
Args: cve_id: CVE identifier (e.g. CVE-2021-44228)
Inputs: cve_id (required). Returns: result
check_ip_reputationA
Check an IP address reputation via AbuseIPDB and GreyNoise Community. Returns abuse confidence score, country, ISP, Tor status, and noise classification.
Args: ip: IPv4 or IPv6 address to check (e.g. 1.2.3.4 or 2001:db8::1)
Inputs: ip (required). Returns: result
check_kevB
Check if a CVE is in the CISA Known Exploited Vulnerabilities (KEV) catalog.
Args: cve_id: CVE identifier (e.g. CVE-2021-44228)
Inputs: cve_id (required). Returns: result
check_package_vulnsB
Check a package for known vulnerabilities via OSV.dev.
Args: package: Package name (e.g. log4j-core, requests, lodash) ecosystem: Package ecosystem β PyPI, npm, Go, Maven, NuGet, crates.io, Packagist, Hex, RubyGems, Android, CocoaPods, GitHub Actions version: Optional specific version to check (e.g. 2.14.1)
Inputs: package (required), ecosystem (required), version. Returns: result
check_poc_existsB
Search for proof-of-concept exploits across GitHub, Exploit-DB, and Nuclei templates.
Inputs: cve_id (required), include_github, include_exploitdb. Returns: result
check_ransomware_intelA
Check if a Bitcoin address is associated with a known ransomware family using the Ransomwhere database.
Args: bitcoin_address: Bitcoin wallet address to look up (P2PKH, P2SH, or bech32)
Inputs: bitcoin_address (required). Returns: result
check_url_safetyA
Check a URL or domain for malicious activity via URLScan.io. Returns scan verdicts, malicious flag, score, and categories.
Args: url_or_domain: URL (https://example.com/path) or bare domain (example.com)
Inputs: url_or_domain (required). Returns: result
compare_cvesB
Compare multiple CVEs by risk score and generate a patch priority ranking.
Inputs: cve_ids (required). Returns: result
generate_vuln_reportC
Generate a vulnerability report in executive, technical, or full format.
Inputs: cve_id (required), format, include_remediation. Returns: result
get_attack_mappingA
Map a CVE to MITRE ATT&CK techniques and associated threat groups. Downloads the ATT&CK dataset lazily (cached 24h). Searches technique descriptions and references for the CVE ID.
Args: cve_id: CVE identifier (e.g. CVE-2021-44228)
Inputs: cve_id (required). Returns: result
get_cve_summaryA
Get a comprehensive one-page summary of a CVE: severity, EPSS, KEV status, description, weaknesses, and timeline. Fetches NVD + EPSS concurrently.
Args: cve_id: CVE identifier (e.g. CVE-2021-44228)
Inputs: cve_id (required). Returns: result
get_cve_timelineA
Build a complete CVE lifecycle timeline: NVD publication date, EPSS score history, CISA KEV addition date, patch lag, and exploit window estimation.
Args: cve_id: CVE identifier (e.g. CVE-2021-44228)
Inputs: cve_id (required). Returns: result
get_domain_intelC
Get domain intelligence: certificate transparency logs (crt.sh) and passive DNS records (CIRCL PDNS). Returns subdomains and certificate history.
Args: domain: Domain name to investigate (e.g. example.com)
Inputs: domain (required). Returns: result
get_epss_scoreB
Get EPSS (Exploit Prediction Scoring System) scores for one or more CVEs.
Args: cve_ids: Comma-separated CVE IDs (e.g. CVE-2021-44228,CVE-2022-22965)
Inputs: cve_ids (required). Returns: result
get_vendor_advisoryA
Fetch vendor security advisories for a CVE from Microsoft (MSRC), Red Hat, and Ubuntu. Shows patch availability and affected products.
Args: cve_id: CVE identifier (e.g. CVE-2021-44228)
Inputs: cve_id (required). Returns: result
health_checkA
Check the health of the CVE MCP server: NVD connectivity, KEV catalog status, cache, risk scoring version, tool manifest hash, and which optional API keys are configured (names only β never the key values).
Note: This tool pings NVD without rate limiting β do not call it in a loop.
Inputs: no named parameters. Returns: result
lookup_cveA
Look up a CVE by ID from NVD. Returns full details including CVSS scores, description, weaknesses, and CISA KEV status.
Args: cve_id: CVE identifier (e.g. CVE-2021-44228)
Inputs: cve_id (required). Returns: result
lookup_file_hashB
Look up a file hash (MD5/SHA1/SHA256) against MalwareBazaar and VirusTotal. Returns malware family, detection stats, and file metadata.
Args: hash_str: MD5 (32 hex), SHA1 (40 hex), or SHA256 (64 hex) hash
Inputs: hash_str (required). Returns: result
lookup_malware_familyA
Look up an IOC (IP, domain, URL, or hash) against ThreatFox for malware family attribution. Returns confidence level, IOC type, and threat classification.
Args: ioc: Indicator of Compromise β IP address, domain, URL, MD5/SHA256 hash
Inputs: ioc (required). Returns: result
parse_cvssA
Parse and explain a CVSS vector string (v2, v3.x, or v4.0).
Args: vector: CVSS vector string (e.g. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
Inputs: vector (required). Returns: result
passive_dns_lookupA
Query CIRCL Passive DNS for historical DNS resolutions of an IP or domain. Shows what hostnames have resolved to this IP, or what IPs a domain has pointed to.
Args: ip_or_domain: IPv4/IPv6 address or domain name to query
Inputs: ip_or_domain (required). Returns: result
scan_container_packagesA
Scan container image packages (Alpine, Debian, Ubuntu OS packages) for known CVEs via OSV.dev. Input should be 'name:ecosystem:version' lines, one package per line, e.g. from 'apk info -v' or 'dpkg -l' output.
Supported ecosystems: Alpine, Debian, Ubuntu, and any OSV-supported ecosystem.
Args: packages: Newline-separated 'name:ecosystem:version' entries. Example: openssl:Alpine:3.0.7-r0 musl:Alpine:1.2.4_r2 libssl3:Debian:3.0.7-1
Inputs: packages (required). Returns: result
scan_dependenciesA
Bulk scan application dependencies for known CVEs via OSV.dev. Supports requirements.txt (PyPI), package.json (npm), pom.xml (Maven), or generic 'name:ecosystem:version' lines. Returns only vulnerable packages.
Args: dependency_list: Raw contents of requirements.txt, package.json, pom.xml, or newline-separated 'name:ecosystem:version' entries. Max 1000 packages per call.
Inputs: dependency_list (required). Returns: result
scan_repo_secretsA
Search GitHub public repositories for potential exposed credentials or secrets related to a search term (CVE ID, tool name, or keyword). Requires GITHUB_TOKEN for best results. For security research only.
Args: search_term: CVE ID, tool name, or keyword to search for in public repo files (e.g. CVE-2024-1234, AWS_SECRET_ACCESS_KEY, log4j)
Inputs: search_term (required). Returns: result
search_cvesA
Search NVD for CVEs by keyword and optional severity filter.
Args: query: Keyword to search (letters, numbers, spaces, hyphens, dots β max 200 chars) severity: Optional CVSS v3 severity filter: NONE, LOW, MEDIUM, HIGH, CRITICAL limit: Max results (1β50, default 10)
Inputs: query (required), severity, limit. Returns: result
shodan_host_lookupA
Look up a host on Shodan: open ports, running services, OS, CVEs on the host. Requires SHODAN_KEY environment variable.
Args: ip: IPv4 address to look up (e.g. 8.8.8.8)
Inputs: ip (required). Returns: result
triage_cveA
One-call CVE triage orchestrator (v0.2.0).
Fans out the relevant upstream sources concurrently β NVD (with a transparent VulnCheck NVD++ fallback when NVD fails), EPSS, the CISA KEV catalog, and (for depth != "quick") public PoC/exploit discovery β then computes the composite risk score (KEV hard-override applies: a KEV-listed CVE is always CRITICAL with score >= 76). For depth == "deep" it additionally emits an SSVC v2 gated decision (Act / Attend / Track* / Track).
Args: cve_id: CVE identifier (e.g. CVE-2021-44228). depth: "quick" β NVD + EPSS + KEV (no PoC search; fastest), "standard" β adds PoC/exploit discovery (default), "deep" β adds an SSVC v2 qualitative decision.
Inputs: cve_id (required), depth. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 28 tools
Most tools have distinct purposes, but there is redundancy: check_kev duplicates KEV status already in lookup_cve, and get_cve_summary overlaps lookup_cve plus EPSS/KEV. Overall, however, the majority of tools serve clearly different functions.
Tool names mix multiple verb styles (lookup, search, check, get, parse, scan) without a consistent mapping between verb and action type. For example, check_kev, lookup_cve, and get_cve_summary use different verbs for overlapping CVE data access, making the API harder to predict.
28 tools is heavy, and some are redundant (check_kev duplicates part of lookup_cve; get_cve_summary assembles existing tools). The number feels inflated for the actual domain and could be consolidated.
The toolset covers CVE lookup, search, EPSS, KEV, CVSS parsing, vendor advisories, exploits, ATT&CK mapping, package scanning, plus general threat intel on IPs, domains, URLs, hashes, and ransomware. Main gaps are modest (e.g., no CPE matching or Exploit-DB search), but the domain is well covered.
Maintenance
Related MCP Connectors
The main MCP server has 10 tools, including six public, read-only CVE tools, site search and page reading. CVE results include source software/version evidence and available CISA KEV and dated FIRST EPSS data. The separate request_security_test action requires an agent key, consent and authorization. A no-account, read-only CVE-only endpoint is https://excessionlabs.ai/mcp/cve. Docs: https://excessionlabs.ai/cve-intelligence/.
ZEN SecDB MCP server for CVE intelligence, CVSS/EPSS scoring, advisories, SSVC, and package audits.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Related MCP Servers
- AlicenseAqualityBmaintenanceAn MCP server for vulnerability management that provides tools for automated severity and CWE classification using NLP models. It enables AI agents to query the Vulnerability Lookup API for detailed CVE information and search for security vulnerabilities across various sources.1644AGPL 3.0
- AlicenseAqualityCmaintenanceUnifies NVD, EPSS, CISA KEV, GitHub Advisory, and OSV into a single MCP server, enabling AI agents to query vulnerability intelligence conversationally with 23 tools for incident response, prioritization, dependency audits, and threat monitoring.411,150 npm32MIT
- FlicenseAqualityDmaintenanceAn MCP server that brings NIST National Vulnerability Database (NVD) intelligence directly into Claude, enabling CVE lookup, product search, and prioritized risk assessment via natural language.3-
- AlicenseCqualityDmaintenanceAI-powered security scanning MCP server that exposes 25+ professional tools, enabling penetration testing and security assessments through natural language interaction with AI agents like Claude Desktop.31MIT