ExploitWatch MCP
# exploitwatch-mcp
<!-- mcp-name: io.github.charlesdata1/exploitwatch-mcp -->
An [MCP](https://modelcontextprotocol.io) server for CVE triage. Give your AI assistant a CVE ID and it can
look up what the vulnerability is, whether attackers are exploiting it right now, how likely exploitation
is, and how urgently to patch.
## Who it's for, and who it isn't
Everything it returns comes from free public sources (NVD, CISA KEV, FIRST EPSS, trusted news sites). What it
adds is a consistent, versioned triage method; a score that always says who gave it and under which CVSS
version; and access from inside the AI assistant your team already uses.
**Good fit**
- **Analysts with one CVE in front of them**, from a scanner finding, an advisory or a ticket, who want a sourced
first answer in seconds instead of checking NVD, KEV and EPSS by hand.
- **Explaining a CVE to leadership.** The `triage_cve` prompt's `exec` format writes a short summary: the risk,
the urgency and why, and the decision needed.
- **Teams that want one method across different assistants.** Everyone gets the same urgency rules and score
order whether they use Claude, Cursor or another MCP client, and `methodology_version` records which rules
applied.
- **Builders of security agents**, as a tested tool layer that keeps the urgency decision in code rather than
in the model.
**Not a fit**
- **Not a scanner or asset inventory.** It doesn't know what you run or how exposed it is. Use it alongside the
tool that does.
- **Not a backlog prioritiser.** It handles one CVE per call. For thousands of findings, use the KEV and EPSS
feeds directly or your vulnerability management platform.
- **Little new data if you already have a vulnerability management platform.** If yours already shows KEV and
EPSS, this adds conversational access and a shared method, not new intelligence.
- **Not a compliance decision.** The urgency bands are a sensible default, not your organisation's patch SLAs.
## What it provides
| Kind | Name | What it does |
|---|---|---|
| Tool | `lookup_cve` | Description, one CVSS score with its version and source, NVD's analysis status, publish date and references from the NIST National Vulnerability Database, plus a patch urgency rating |
| Tool | `check_kev` | Whether CISA's Known Exploited Vulnerabilities catalog lists the CVE, with the date added, required action, federal due date and ransomware use |
| Tool | `get_epss` | FIRST's EPSS probability that the CVE is exploited in the next 30 days, and its percentile |
| Tool | `search_cve_news` | Recent articles about the CVE from an allowlist of trusted security news sites and vendor advisories |
| Resource | `exploitwatch://methodology` | How urgency is calculated and which data sources are used |
| Prompt | `triage_cve` | A full triage of one CVE, written for an `engineer` or an `exec` |
## Patch urgency is decided by rules, not the model
The same data always gets the same urgency, so results are consistent and auditable and can't be
changed by prompt wording or web content. The first matching rule wins:
1. Actively exploited (in CISA KEV, checked live as well as NVD's copy, which can lag by days): **patch now**
2. No CVSS score yet: **needs review**. Nobody has rated it, which is not the same as low risk.
3. CVSS 9.0 or higher: **patch now**
4. CVSS 7.0 to 8.9: **patch this week**
5. CVSS 4.0 to 6.9: **patch this month**
6. Below 4.0: **monitor**
Rejected (withdrawn) CVEs get no urgency; `lookup_cve` says the CVE was rejected. EPSS is reported
as context and does not change the urgency.
### Which CVSS score
Most CVEs have several scores, and NVD no longer analyses most new ones, so the score is usually
the one from the CNA (the organisation that assigned the CVE). The order is: NVD's own score, then
the CNA's or CISA's; within each, CVSS 3.1, then 4.0, then 3.0; CVSS 2.0 only when nothing newer
exists. 3.1 comes first because the thresholds are the CVSS 3 bands. In a sample of 2,000 October
2026 CVEs, a CVE's 4.0 and 3.1 scores fell in different bands 41% of the time.
Every result shows its working:
```json
{
"id": "CVE-2021-44228",
"cvss_score": 10.0,
"severity": "CRITICAL",
"cvss_version": "3.1",
"cvss_source": "NVD",
"nvd_status": "Analyzed",
"actively_exploited": true,
"kev_checked": true,
"kev_catalog_version": "2026.10.30",
"urgency": "patch now",
"urgency_reason": "actively exploited; exploitation outranks the CVSS score",
"methodology_version": "1"
}
```
`kev_checked: false` means CISA's catalog could not be reached, so exploitation status rests on
NVD's copy alone; `kev_catalog_version` is the date of the catalog used. The full rules are in the `exploitwatch://methodology` resource.
## Does it have a UI?
No. An MCP server has no interface of its own: your MCP client (Claude Desktop, Claude Code, Cursor and
others) is the interface. You ask in plain language, for example "Triage CVE-2024-3094", and the client
calls these tools.
To try the tools by hand, the MCP Inspector opens a browser page where you can call each one:
```bash
npx @modelcontextprotocol/inspector uvx exploitwatch-mcp
```
## Install
You need [uv](https://docs.astral.sh/uv/). There is nothing else to install: `uvx` fetches and runs the server.
**Claude Code**
```bash
claude mcp add exploitwatch -- uvx exploitwatch-mcp
# with API keys: claude mcp add exploitwatch -e TAVILY_API_KEY=your-key -e NVD_API_KEY=your-key -- uvx exploitwatch-mcp
```
**Claude Desktop** (`claude_desktop_config.json`)
```json
{
"mcpServers": {
"exploitwatch": {
"command": "uvx",
"args": ["exploitwatch-mcp"],
"env": {
"TAVILY_API_KEY": "your-key",
"NVD_API_KEY": "optional"
}
}
}
}
```
**From a clone**: replace `uvx exploitwatch-mcp` with `uv run --directory /path/to/exploitwatch-mcp exploitwatch-mcp`.
## Configuration
| Variable | Needed for | |
|---|---|---|
| `TAVILY_API_KEY` | `search_cve_news`, `triage_cve` | **Required to use the `triage_cve` prompt**, which calls the news search on every triage for context the databases don't give (such as how widely the affected software is used). Without a key, news search falls back to Tavily's keyless mode, which is rate-limited and may be refused; triage answers will then say the news context is missing. Get a key from [tavily.com](https://tavily.com). The other tools never need it. |
| `NVD_API_KEY` | `lookup_cve` | Optional. Raises NVD's rate limit. [Request one from NIST](https://nvd.nist.gov/developers/request-an-api-key). |
Set them in your MCP client's `env` block, as above. When running from a clone, a `.env` file in the directory you start the server from also works (see `.env.example`).
## Data sources
| Source | Used for | Notes |
|---|---|---|
| [NIST NVD](https://nvd.nist.gov/developers) | CVE details and CVSS | This product uses the NVD API but is not endorsed or certified by the NVD. |
| [CISA KEV](https://www.cisa.gov/known-exploited-vulnerabilities-catalog) | Confirmed exploitation | The catalog is downloaded once and cached for 6 hours. If it can't be reached, urgency falls back to NVD's exploitation flag. |
| [FIRST EPSS](https://www.first.org/epss/) | Exploitation probability | Updated daily by FIRST. |
| [Tavily](https://tavily.com) | News search | Limited to an allowlist of security news and vendor sites, checked by the server on every result, not just requested from Tavily. Only articles that mention the exact CVE ID are returned. |
## Validation
**0.2.1 (Nov 29): eval set v2.** 100 CVE questions, frozen before any model ran, answered by seven host models
using this server (1,010 scored answers). Code checks scored tool use and key facts; an LLM judge (gpt-5-mini)
scored each rubric criterion; the owner reviewed every split judge vote. Read the scores as a likely floor:
the judge was stricter than the human reviewer.
| Model | Pass rate | Critical (target 98%) | Ready to host |
|---|---|---|---|
| Gemini 4 Hydrogen | 88.3% | 98.6% | yes |
| Claude Sonnet 5.5 | 79.3% | 92.4% | no |
| Gemini 3.8 Flash | 69.9% | 86.7% | no |
| Claude Haiku 5.5 | 66.0% | 77.1% | no |
| Qwen3.8-27B | 64.8% | 85.5% | no |
| GPT-6.2 Sol | 57.6% | 84.0% | no |
| GPT-6 Luna | 49.3% | 86.1% | no |
- Summary (2 pages): [evals/public/eval_v2_summary.pdf](https://github.com/charlesdata1/exploitwatch-mcp/blob/main/evals/public/eval_v2_summary.pdf)
- Results, tier targets, 20 public cases and method: [evals/public](https://github.com/charlesdata1/exploitwatch-mcp/tree/main/evals/public)
## Limits
- It knows about CVEs, not about you: it can't tell whether you run the affected software or how exposed it is.
- One CVE per call, and no search by product.
- CVSS is a severity score, not a risk score. Treat the urgency as a first answer, not a compliance decision.
- Without an `NVD_API_KEY`, NVD allows about 5 requests per 30 seconds.
- The urgency is enforced in code, but the wording of an answer is the client model's. In eval set v2 the most
common failures were facts the tools didn't support and skipped lookups, and they varied widely by host model.
- The domain allowlist governs `search_cve_news` only. If your client also has its own web search or browsing,
the model can use that, and no MCP server can prevent it.
## Safety
- **News is untrusted.** Search results are third-party web content. The tool description tells the model to
treat them as information, never as instructions, and they never change the urgency rating.
- **Clean errors.** Requests retry timeouts, rate limits and server errors. When a source is still
unavailable, the tool returns a short message telling the model to report the data as missing rather
than guess. Full errors go to the server log on stderr.
- **Strict input.** Every tool accepts exactly one CVE ID (`CVE-YYYY-NNNN`, any case) and rejects anything else before a request is sent.
- **Read only.** The server only reads public data. It changes nothing on your systems.
## Roadmap
- **An updated judge rubric**: context-aware, not more lenient. The current judge was stricter than the human
reviewer, so scores read as a floor; the new rubric is adopted only once it still catches the real errors.
- **Several CVEs per request**, for triaging a list from a scanner or an advisory.
- **Organisation context**: pair this data with your own asset lists and policies.
- **exploitwatch-mcp SLM**: a small model tuned to use these tools. In eval set v2 only one of seven host models
met the accuracy bar, and the cheaper ones failed most on unsupported facts and skipped lookups. A small tuned
model could give reliable answers at low cost and run locally.
## Development
```bash
uv sync
uv run pytest # offline, uses saved NVD records
uv run python scripts/live_check.py # live end to end against NVD, KEV, EPSS and Tavily (about 1.5 minutes)
uv run exploitwatch-mcp
```
## License
[MIT](https://github.com/charlesdata1/exploitwatch-mcp/blob/main/LICENSE)
TDQS
Scored across 4 tools
Each tool targets a different source (NVD, CISA KEV, EPSS, news) and the descriptions explicitly route the agent (e.g. search_cve_news says do not use it for scores). The one real overlap is lookup_cve, which already returns an exploitation flag and urgency, versus check_kev which returns richer KEV detail (ransomware use, due date); this is intentional aggregate-vs-detail layering but an agent could reasonably skip check_kev and miss fields.
All four names are snake_case verb_noun compounds (lookup_cve, check_kev, get_epss, search_cve_news). Verbs vary appropriately with the action and each name states its data source, so the convention is predictable and readable.
Four tightly scoped tools map one-to-one onto the enrichment sources a CVE triage workflow needs, with no filler or near-duplicates. The count is on the lean side but every tool earns its place and none is redundant.
Triage by CVE ID is well covered (NVD details, KEV, EPSS, news), but the surface is ID-only: there is no way to search by product/vendor/keyword, list recently added KEV entries, or enrich a batch of CVEs, so 'what affects product X' questions dead-end. No tool exposes affected-version/CPE data or vendor advisories directly either.