exploitwatch-mcp 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. exploitwatch_mcp-0.1.0/.env.example +4 -0
  2. exploitwatch_mcp-0.1.0/.gitignore +8 -0
  3. exploitwatch_mcp-0.1.0/CHANGELOG.md +16 -0
  4. exploitwatch_mcp-0.1.0/LICENSE +21 -0
  5. exploitwatch_mcp-0.1.0/PKG-INFO +253 -0
  6. exploitwatch_mcp-0.1.0/README.md +230 -0
  7. exploitwatch_mcp-0.1.0/evals/exec_domain_cases.yaml +145 -0
  8. exploitwatch_mcp-0.1.0/evals/make_report.py +186 -0
  9. exploitwatch_mcp-0.1.0/evals/mvp_cases.yaml +143 -0
  10. exploitwatch_mcp-0.1.0/evals/report_notes.yaml +50 -0
  11. exploitwatch_mcp-0.1.0/evals/report_notes_exec_domain.yaml +62 -0
  12. exploitwatch_mcp-0.1.0/evals/run_mvp_validation.py +392 -0
  13. exploitwatch_mcp-0.1.0/pyproject.toml +54 -0
  14. exploitwatch_mcp-0.1.0/scripts/live_check.py +94 -0
  15. exploitwatch_mcp-0.1.0/src/exploitwatch_mcp/__init__.py +0 -0
  16. exploitwatch_mcp-0.1.0/src/exploitwatch_mcp/epss.py +24 -0
  17. exploitwatch_mcp-0.1.0/src/exploitwatch_mcp/http.py +23 -0
  18. exploitwatch_mcp-0.1.0/src/exploitwatch_mcp/ids.py +14 -0
  19. exploitwatch_mcp-0.1.0/src/exploitwatch_mcp/kev.py +51 -0
  20. exploitwatch_mcp-0.1.0/src/exploitwatch_mcp/methodology.md +46 -0
  21. exploitwatch_mcp-0.1.0/src/exploitwatch_mcp/news.py +75 -0
  22. exploitwatch_mcp-0.1.0/src/exploitwatch_mcp/nvd.py +83 -0
  23. exploitwatch_mcp-0.1.0/src/exploitwatch_mcp/rules.py +29 -0
  24. exploitwatch_mcp-0.1.0/src/exploitwatch_mcp/server.py +195 -0
  25. exploitwatch_mcp-0.1.0/tests/fixtures/nvd/CVE-2010-0050.json +118 -0
  26. exploitwatch_mcp-0.1.0/tests/fixtures/nvd/CVE-2012-0001.json +80 -0
  27. exploitwatch_mcp-0.1.0/tests/fixtures/nvd/CVE-2021-44228.json +149 -0
  28. exploitwatch_mcp-0.1.0/tests/fixtures/nvd/CVE-2026-101147.json +54 -0
  29. exploitwatch_mcp-0.1.0/tests/fixtures/nvd/CVE-2026-103534.json +143 -0
  30. exploitwatch_mcp-0.1.0/tests/fixtures/nvd/CVE-2026-103656.json +26 -0
  31. exploitwatch_mcp-0.1.0/tests/fixtures/nvd/CVE-2026-103678.json +92 -0
  32. exploitwatch_mcp-0.1.0/tests/fixtures/nvd/CVE-2026-13313.json +76 -0
  33. exploitwatch_mcp-0.1.0/tests/fixtures/nvd/CVE-2026-98167.json +51 -0
  34. exploitwatch_mcp-0.1.0/tests/test_epss.py +47 -0
  35. exploitwatch_mcp-0.1.0/tests/test_http.py +27 -0
  36. exploitwatch_mcp-0.1.0/tests/test_kev.py +86 -0
  37. exploitwatch_mcp-0.1.0/tests/test_news.py +126 -0
  38. exploitwatch_mcp-0.1.0/tests/test_nvd.py +118 -0
  39. exploitwatch_mcp-0.1.0/tests/test_rules.py +55 -0
  40. exploitwatch_mcp-0.1.0/tests/test_server.py +114 -0
  41. exploitwatch_mcp-0.1.0/uv.lock +1623 -0
@@ -0,0 +1,4 @@
1
+ # Optional. Without it, news search uses Tavily's rate-limited keyless mode. Get a key at https://tavily.com
2
+ TAVILY_API_KEY=
3
+ # Optional. Raises the NVD rate limit. Request one at https://nvd.nist.gov/developers/request-an-api-key
4
+ NVD_API_KEY=
@@ -0,0 +1,8 @@
1
+ .env
2
+ .venv/
3
+ __pycache__/
4
+ *.pyc
5
+ .pytest_cache/
6
+ dist/
7
+ build/
8
+ *.egg-info/
@@ -0,0 +1,16 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0 (2026-11-05)
4
+
5
+ First release as a standalone package.
6
+
7
+ - Tools: `lookup_cve`, `check_kev`, `get_epss`, `search_cve_news`; resource `exploitwatch://methodology`; prompt `triage_cve`.
8
+ - Urgency methodology version 1: exploitation (CISA KEV, checked live) first, then CVSS bands; `needs review` when no score exists; rejected CVEs return an error.
9
+ - One CVSS score chosen in a fixed order (NVD before CNA or CISA; 3.1, 4.0, 3.0, then 2.0), reported with its version, source and NVD status.
10
+ - Strict input: exactly one CVE ID per call.
11
+ - News search: the server drops any result outside the domain allowlist instead of trusting the search provider to filter.
12
+ - KEV catalog cached for 6 hours, with the last copy kept if a refresh fails (retried every 10 minutes during an outage); `kev_checked` and `kev_catalog_version` show whether and which catalog was used.
13
+ - `triage_cve` prompt: the engineer format names the score's source and version and asks for affected versions and fix steps only where the data states them; the exec format is exactly three sentences (risk; urgency and its reason; decision) with no scores, CVSS versions, sources or acronyms (software versions only where the data states them), and one or two sentences when the lookup returns an error.
14
+ - `lookup_cve` guidance: no own severity verdict for `needs review`.
15
+ - `urgency_reason` names the rule that set the urgency; answers must say when "patch now" is because the CVE is actively exploited.
16
+ - Pre-release validation: 10 cases end to end with an LLM judge (`evals/`).
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Charles Bryant
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,253 @@
1
+ Metadata-Version: 2.5
2
+ Name: exploitwatch-mcp
3
+ Version: 0.1.0
4
+ Summary: MCP server for CVE triage: NVD details, CISA KEV exploitation status, EPSS scores, trusted news, and a rule-based patch urgency.
5
+ Project-URL: Homepage, https://github.com/charlesdata1/exploitwatch-mcp
6
+ Project-URL: Repository, https://github.com/charlesdata1/exploitwatch-mcp
7
+ Project-URL: Issues, https://github.com/charlesdata1/exploitwatch-mcp/issues
8
+ Author: Charles Bryant
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: cve,epss,kev,mcp,nvd,security,vulnerability
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Information Technology
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Topic :: Security
16
+ Requires-Python: >=3.11
17
+ Requires-Dist: mcp<2,>=1.30
18
+ Requires-Dist: pydantic>=2
19
+ Requires-Dist: python-dotenv>=1
20
+ Requires-Dist: requests>=2.31
21
+ Requires-Dist: tavily-python>=0.8.5
22
+ Description-Content-Type: text/markdown
23
+
24
+ # exploitwatch-mcp
25
+
26
+ <!-- mcp-name: io.github.charlesdata1/exploitwatch-mcp -->
27
+
28
+ An [MCP](https://modelcontextprotocol.io) server for CVE triage. Give your AI assistant a CVE ID and it can
29
+ look up what the vulnerability is, whether attackers are exploiting it right now, how likely exploitation
30
+ is, and how urgently to patch.
31
+
32
+ It is the vulnerability-intelligence half of [ExploitWatch](#about), packaged so any MCP client can use it.
33
+
34
+ ## Who it's for, and who it isn't
35
+
36
+ Everything it returns comes from free public sources (NVD, CISA KEV, FIRST EPSS, trusted news sites). What it
37
+ adds is a consistent, versioned triage method; a score that always says who gave it and under which CVSS
38
+ version; and access from inside the AI assistant your team already uses.
39
+
40
+ **Good fit**
41
+
42
+ - **Analysts with one CVE in front of them**, from a scanner finding, an advisory or a ticket, who want a sourced
43
+ first answer in seconds instead of checking NVD, KEV and EPSS by hand.
44
+ - **Explaining a CVE to leadership.** The `triage_cve` prompt's `exec` format writes a short summary: the risk,
45
+ the urgency and why, and the decision needed.
46
+ - **Teams that want one method across different assistants.** Everyone gets the same urgency rules and score
47
+ order whether they use Claude, Cursor or another MCP client, and `methodology_version` records which rules
48
+ applied.
49
+ - **Builders of security agents**, as a tested tool layer that keeps the urgency decision in code rather than
50
+ in the model.
51
+
52
+ **Not a fit**
53
+
54
+ - **Not a scanner or asset inventory.** It doesn't know what you run or how exposed it is. Use it alongside the
55
+ tool that does.
56
+ - **Not a backlog prioritiser.** It handles one CVE per call. For thousands of findings, use the KEV and EPSS
57
+ feeds directly or your vulnerability management platform.
58
+ - **Little new data if you already have a vulnerability management platform.** If yours already shows KEV and
59
+ EPSS, this adds conversational access and a shared method, not new intelligence.
60
+ - **Not a compliance decision.** The urgency bands are a sensible default, not your organisation's patch SLAs.
61
+
62
+ ## What it provides
63
+
64
+ | Kind | Name | What it does |
65
+ |---|---|---|
66
+ | 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 |
67
+ | 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 |
68
+ | Tool | `get_epss` | FIRST's EPSS probability that the CVE is exploited in the next 30 days, and its percentile |
69
+ | Tool | `search_cve_news` | Recent articles about the CVE from an allowlist of trusted security news sites and vendor advisories |
70
+ | Resource | `exploitwatch://methodology` | How urgency is calculated and which data sources are used |
71
+ | Prompt | `triage_cve` | A full triage of one CVE, written for an `engineer` or an `exec` |
72
+
73
+ ## Patch urgency is decided by rules, not the model
74
+
75
+ The same data always gets the same urgency, so results are consistent and auditable and can't be
76
+ changed by prompt wording or web content. The first matching rule wins:
77
+
78
+ 1. Actively exploited (in CISA KEV, checked live as well as NVD's copy, which can lag by days): **patch now**
79
+ 2. No CVSS score yet: **needs review**. Nobody has rated it, which is not the same as low risk.
80
+ 3. CVSS 9.0 or higher: **patch now**
81
+ 4. CVSS 7.0 to 8.9: **patch this week**
82
+ 5. CVSS 4.0 to 6.9: **patch this month**
83
+ 6. Below 4.0: **monitor**
84
+
85
+ Rejected (withdrawn) CVEs get no urgency; `lookup_cve` says the CVE was rejected. EPSS is reported
86
+ as context and does not change the urgency.
87
+
88
+ ### Which CVSS score
89
+
90
+ Most CVEs have several scores, and NVD no longer analyses most new ones, so the score is usually
91
+ the one from the CNA (the organisation that assigned the CVE). The order is: NVD's own score, then
92
+ the CNA's or CISA's; within each, CVSS 3.1, then 4.0, then 3.0; CVSS 2.0 only when nothing newer
93
+ exists. 3.1 comes first because the thresholds are the CVSS 3 bands. In a sample of 2,000 October
94
+ 2026 CVEs, a CVE's 4.0 and 3.1 scores fell in different bands 41% of the time.
95
+
96
+ Every result shows its working:
97
+
98
+ ```json
99
+ {
100
+ "id": "CVE-2021-44228",
101
+ "cvss_score": 10.0,
102
+ "severity": "CRITICAL",
103
+ "cvss_version": "3.1",
104
+ "cvss_source": "NVD",
105
+ "nvd_status": "Analyzed",
106
+ "actively_exploited": true,
107
+ "kev_checked": true,
108
+ "kev_catalog_version": "2026.10.30",
109
+ "urgency": "patch now",
110
+ "urgency_reason": "actively exploited; exploitation outranks the CVSS score",
111
+ "methodology_version": "1"
112
+ }
113
+ ```
114
+
115
+ `kev_checked: false` means CISA's catalog could not be reached, so exploitation status rests on
116
+ NVD's copy alone; `kev_catalog_version` is the date of the catalog used. The full rules are in the `exploitwatch://methodology` resource.
117
+
118
+ ## Does it have a UI?
119
+
120
+ No. An MCP server has no interface of its own: your MCP client (Claude Desktop, Claude Code, Cursor and
121
+ others) is the interface. You ask in plain language, for example "Triage CVE-2024-3094", and the client
122
+ calls these tools.
123
+
124
+ To try the tools by hand, the MCP Inspector opens a browser page where you can call each one:
125
+
126
+ ```bash
127
+ npx @modelcontextprotocol/inspector uvx exploitwatch-mcp
128
+ ```
129
+
130
+ ## Install
131
+
132
+ You need [uv](https://docs.astral.sh/uv/). There is nothing else to install: `uvx` fetches and runs the server.
133
+
134
+ **Claude Code**
135
+
136
+ ```bash
137
+ claude mcp add exploitwatch -- uvx exploitwatch-mcp
138
+ # with API keys: claude mcp add exploitwatch -e TAVILY_API_KEY=your-key -e NVD_API_KEY=your-key -- uvx exploitwatch-mcp
139
+ ```
140
+
141
+ **Claude Desktop** (`claude_desktop_config.json`)
142
+
143
+ ```json
144
+ {
145
+ "mcpServers": {
146
+ "exploitwatch": {
147
+ "command": "uvx",
148
+ "args": ["exploitwatch-mcp"],
149
+ "env": {
150
+ "TAVILY_API_KEY": "your-key",
151
+ "NVD_API_KEY": "optional"
152
+ }
153
+ }
154
+ }
155
+ }
156
+ ```
157
+
158
+ **From a clone**: replace `uvx exploitwatch-mcp` with `uv run --directory /path/to/exploitwatch-mcp exploitwatch-mcp`.
159
+
160
+ ## Configuration
161
+
162
+ | Variable | Needed for | |
163
+ |---|---|---|
164
+ | `TAVILY_API_KEY` | `search_cve_news` | Optional. Without a key, news search uses Tavily's keyless mode, which is rate-limited and may be refused. Set a key from [tavily.com](https://tavily.com) for dependable results. The other tools never need it. |
165
+ | `NVD_API_KEY` | `lookup_cve` | Optional. Raises NVD's rate limit. [Request one from NIST](https://nvd.nist.gov/developers/request-an-api-key). |
166
+
167
+ 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`).
168
+
169
+ ## Data sources
170
+
171
+ | Source | Used for | Notes |
172
+ |---|---|---|
173
+ | [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. |
174
+ | [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. |
175
+ | [FIRST EPSS](https://www.first.org/epss/) | Exploitation probability | Updated daily by FIRST. |
176
+ | [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. |
177
+
178
+ ## Validation
179
+
180
+ Before release, 10 base and edge cases were run end to end: Claude answered each one using this server's
181
+ tools, code checked the raw tool output, and a separate LLM judge (gpt-5-mini) scored every answer on a
182
+ 7-point rubric, with 3 runs per case. The server's output was correct in all 60 runs. Round 1 found two
183
+ defects in the guidance the server gives assistants, both fixed before round 2; round 3 confirmed the
184
+ urgency reason ("patch now" because it is actively exploited) on Heartbleed.
185
+
186
+ - Report (2 pages): [evals/results/2026-11-04-mvp-validation.pdf](https://github.com/charlesdata1/exploitwatch-mcp/blob/main/evals/results/2026-11-04-mvp-validation.pdf)
187
+ - Every case, run, tool output, answer and judge verdict: [evals/results/2026-11-04-mvp-validation.csv](https://github.com/charlesdata1/exploitwatch-mcp/blob/main/evals/results/2026-11-04-mvp-validation.csv)
188
+ - Cases: [evals/mvp_cases.yaml](https://github.com/charlesdata1/exploitwatch-mcp/blob/main/evals/mvp_cases.yaml); rerun: `uv run --group eval python evals/run_mvp_validation.py --out new.csv`
189
+
190
+ A second validation tested executive summaries and the news domain allowlist (10 cases, 3 runs each).
191
+ Exec summaries met the sentence limit in 12 of 15 runs, up from 1 of 3, and no answer claimed to have read
192
+ a site outside the allowlist. Two exec wording gaps it found were fixed and re-tested (6 of 6 runs). After the
193
+ human review, exec summaries may again name an affected or fixed software version where the data states it,
194
+ because the version to upgrade to is part of the decision.
195
+
196
+ - Report (2 pages): [evals/results/2026-11-04-exec-domain-validation.pdf](https://github.com/charlesdata1/exploitwatch-mcp/blob/main/evals/results/2026-11-04-exec-domain-validation.pdf)
197
+ - Every case, run and verdict: [evals/results/2026-11-04-exec-domain-validation.csv](https://github.com/charlesdata1/exploitwatch-mcp/blob/main/evals/results/2026-11-04-exec-domain-validation.csv)
198
+ - Cases: [evals/exec_domain_cases.yaml](https://github.com/charlesdata1/exploitwatch-mcp/blob/main/evals/exec_domain_cases.yaml); rerun: `uv run --group eval python evals/run_mvp_validation.py --spec evals/exec_domain_cases.yaml --out new.csv`
199
+
200
+ A human review checked the evaluation by hand: 10 of the judge's verdicts across both validations, and 3
201
+ expected values against NVD's and CISA's own pages (all 3 matched). The reviewer agreed with 6 of 9 judge
202
+ verdicts. All 3 disagreements were the judge or a test criterion being too strict, and none was a wrong
203
+ answer the judge had passed. Record and evidence: [evals/human_review/](https://github.com/charlesdata1/exploitwatch-mcp/blob/main/evals/human_review/).
204
+
205
+ ## Limits
206
+
207
+ - It knows about CVEs, not about you: it can't tell whether you run the affected software or how exposed it is.
208
+ - One CVE per call, and no search by product.
209
+ - CVSS is a severity score, not a risk score. Treat the urgency as a first answer, not a compliance decision.
210
+ - Without an `NVD_API_KEY`, NVD allows about 5 requests per 30 seconds.
211
+ - The urgency is enforced in code, but the wording of an answer is the client model's. In validation the
212
+ server's own output was correct in every run, but some answers added background from the model's own
213
+ knowledge, and exec summaries sometimes ran a sentence long.
214
+ - The domain allowlist governs `search_cve_news` only. If your client also has its own web search or browsing,
215
+ the model can use that, and no MCP server can prevent it.
216
+
217
+ ## Safety
218
+
219
+ - **News is untrusted.** Search results are third-party web content. The tool description tells the model to
220
+ treat them as information, never as instructions, and they never change the urgency rating.
221
+ - **Clean errors.** Requests retry timeouts, rate limits and server errors. When a source is still
222
+ unavailable, the tool returns a short message telling the model to report the data as missing rather
223
+ than guess. Full errors go to the server log on stderr.
224
+ - **Strict input.** Every tool accepts exactly one CVE ID (`CVE-YYYY-NNNN`, any case) and rejects anything else before a request is sent.
225
+ - **Read only.** The server only reads public data. It changes nothing on your systems.
226
+
227
+ ## Roadmap
228
+
229
+ - **Several CVEs per request**, for triaging a list from a scanner or an advisory.
230
+ - **Organisation context**: pair this data with your own asset lists and policies (ExploitWatch's RAG layer).
231
+ - **Source traceability**: anything an answer takes from outside these tools is labelled as such, with its source.
232
+ - **Configurable allowlist**: an organisation can approve additional news and advisory domains.
233
+ - **Optional decision inputs**: SSVC decision points, and EPSS as an optional urgency input.
234
+ - **Readability and upkeep**: CNA names instead of IDs, and a scheduled live check against the real APIs.
235
+
236
+ ## Development
237
+
238
+ ```bash
239
+ uv sync
240
+ uv run pytest # offline, uses saved NVD records
241
+ uv run python scripts/live_check.py # live end to end against NVD, KEV, EPSS and Tavily (about 1.5 minutes)
242
+ uv run exploitwatch-mcp
243
+ ```
244
+
245
+ ## About
246
+
247
+ ExploitWatch is a multi-agent CVE triage system, in development, that pairs this public intelligence with an
248
+ organisation's own documents, to answer both how dangerous a vulnerability is and what the organisation must
249
+ do about it.
250
+
251
+ ## License
252
+
253
+ [MIT](https://github.com/charlesdata1/exploitwatch-mcp/blob/main/LICENSE)
@@ -0,0 +1,230 @@
1
+ # exploitwatch-mcp
2
+
3
+ <!-- mcp-name: io.github.charlesdata1/exploitwatch-mcp -->
4
+
5
+ An [MCP](https://modelcontextprotocol.io) server for CVE triage. Give your AI assistant a CVE ID and it can
6
+ look up what the vulnerability is, whether attackers are exploiting it right now, how likely exploitation
7
+ is, and how urgently to patch.
8
+
9
+ It is the vulnerability-intelligence half of [ExploitWatch](#about), packaged so any MCP client can use it.
10
+
11
+ ## Who it's for, and who it isn't
12
+
13
+ Everything it returns comes from free public sources (NVD, CISA KEV, FIRST EPSS, trusted news sites). What it
14
+ adds is a consistent, versioned triage method; a score that always says who gave it and under which CVSS
15
+ version; and access from inside the AI assistant your team already uses.
16
+
17
+ **Good fit**
18
+
19
+ - **Analysts with one CVE in front of them**, from a scanner finding, an advisory or a ticket, who want a sourced
20
+ first answer in seconds instead of checking NVD, KEV and EPSS by hand.
21
+ - **Explaining a CVE to leadership.** The `triage_cve` prompt's `exec` format writes a short summary: the risk,
22
+ the urgency and why, and the decision needed.
23
+ - **Teams that want one method across different assistants.** Everyone gets the same urgency rules and score
24
+ order whether they use Claude, Cursor or another MCP client, and `methodology_version` records which rules
25
+ applied.
26
+ - **Builders of security agents**, as a tested tool layer that keeps the urgency decision in code rather than
27
+ in the model.
28
+
29
+ **Not a fit**
30
+
31
+ - **Not a scanner or asset inventory.** It doesn't know what you run or how exposed it is. Use it alongside the
32
+ tool that does.
33
+ - **Not a backlog prioritiser.** It handles one CVE per call. For thousands of findings, use the KEV and EPSS
34
+ feeds directly or your vulnerability management platform.
35
+ - **Little new data if you already have a vulnerability management platform.** If yours already shows KEV and
36
+ EPSS, this adds conversational access and a shared method, not new intelligence.
37
+ - **Not a compliance decision.** The urgency bands are a sensible default, not your organisation's patch SLAs.
38
+
39
+ ## What it provides
40
+
41
+ | Kind | Name | What it does |
42
+ |---|---|---|
43
+ | 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 |
44
+ | 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 |
45
+ | Tool | `get_epss` | FIRST's EPSS probability that the CVE is exploited in the next 30 days, and its percentile |
46
+ | Tool | `search_cve_news` | Recent articles about the CVE from an allowlist of trusted security news sites and vendor advisories |
47
+ | Resource | `exploitwatch://methodology` | How urgency is calculated and which data sources are used |
48
+ | Prompt | `triage_cve` | A full triage of one CVE, written for an `engineer` or an `exec` |
49
+
50
+ ## Patch urgency is decided by rules, not the model
51
+
52
+ The same data always gets the same urgency, so results are consistent and auditable and can't be
53
+ changed by prompt wording or web content. The first matching rule wins:
54
+
55
+ 1. Actively exploited (in CISA KEV, checked live as well as NVD's copy, which can lag by days): **patch now**
56
+ 2. No CVSS score yet: **needs review**. Nobody has rated it, which is not the same as low risk.
57
+ 3. CVSS 9.0 or higher: **patch now**
58
+ 4. CVSS 7.0 to 8.9: **patch this week**
59
+ 5. CVSS 4.0 to 6.9: **patch this month**
60
+ 6. Below 4.0: **monitor**
61
+
62
+ Rejected (withdrawn) CVEs get no urgency; `lookup_cve` says the CVE was rejected. EPSS is reported
63
+ as context and does not change the urgency.
64
+
65
+ ### Which CVSS score
66
+
67
+ Most CVEs have several scores, and NVD no longer analyses most new ones, so the score is usually
68
+ the one from the CNA (the organisation that assigned the CVE). The order is: NVD's own score, then
69
+ the CNA's or CISA's; within each, CVSS 3.1, then 4.0, then 3.0; CVSS 2.0 only when nothing newer
70
+ exists. 3.1 comes first because the thresholds are the CVSS 3 bands. In a sample of 2,000 October
71
+ 2026 CVEs, a CVE's 4.0 and 3.1 scores fell in different bands 41% of the time.
72
+
73
+ Every result shows its working:
74
+
75
+ ```json
76
+ {
77
+ "id": "CVE-2021-44228",
78
+ "cvss_score": 10.0,
79
+ "severity": "CRITICAL",
80
+ "cvss_version": "3.1",
81
+ "cvss_source": "NVD",
82
+ "nvd_status": "Analyzed",
83
+ "actively_exploited": true,
84
+ "kev_checked": true,
85
+ "kev_catalog_version": "2026.10.30",
86
+ "urgency": "patch now",
87
+ "urgency_reason": "actively exploited; exploitation outranks the CVSS score",
88
+ "methodology_version": "1"
89
+ }
90
+ ```
91
+
92
+ `kev_checked: false` means CISA's catalog could not be reached, so exploitation status rests on
93
+ NVD's copy alone; `kev_catalog_version` is the date of the catalog used. The full rules are in the `exploitwatch://methodology` resource.
94
+
95
+ ## Does it have a UI?
96
+
97
+ No. An MCP server has no interface of its own: your MCP client (Claude Desktop, Claude Code, Cursor and
98
+ others) is the interface. You ask in plain language, for example "Triage CVE-2024-3094", and the client
99
+ calls these tools.
100
+
101
+ To try the tools by hand, the MCP Inspector opens a browser page where you can call each one:
102
+
103
+ ```bash
104
+ npx @modelcontextprotocol/inspector uvx exploitwatch-mcp
105
+ ```
106
+
107
+ ## Install
108
+
109
+ You need [uv](https://docs.astral.sh/uv/). There is nothing else to install: `uvx` fetches and runs the server.
110
+
111
+ **Claude Code**
112
+
113
+ ```bash
114
+ claude mcp add exploitwatch -- uvx exploitwatch-mcp
115
+ # with API keys: claude mcp add exploitwatch -e TAVILY_API_KEY=your-key -e NVD_API_KEY=your-key -- uvx exploitwatch-mcp
116
+ ```
117
+
118
+ **Claude Desktop** (`claude_desktop_config.json`)
119
+
120
+ ```json
121
+ {
122
+ "mcpServers": {
123
+ "exploitwatch": {
124
+ "command": "uvx",
125
+ "args": ["exploitwatch-mcp"],
126
+ "env": {
127
+ "TAVILY_API_KEY": "your-key",
128
+ "NVD_API_KEY": "optional"
129
+ }
130
+ }
131
+ }
132
+ }
133
+ ```
134
+
135
+ **From a clone**: replace `uvx exploitwatch-mcp` with `uv run --directory /path/to/exploitwatch-mcp exploitwatch-mcp`.
136
+
137
+ ## Configuration
138
+
139
+ | Variable | Needed for | |
140
+ |---|---|---|
141
+ | `TAVILY_API_KEY` | `search_cve_news` | Optional. Without a key, news search uses Tavily's keyless mode, which is rate-limited and may be refused. Set a key from [tavily.com](https://tavily.com) for dependable results. The other tools never need it. |
142
+ | `NVD_API_KEY` | `lookup_cve` | Optional. Raises NVD's rate limit. [Request one from NIST](https://nvd.nist.gov/developers/request-an-api-key). |
143
+
144
+ 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`).
145
+
146
+ ## Data sources
147
+
148
+ | Source | Used for | Notes |
149
+ |---|---|---|
150
+ | [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. |
151
+ | [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. |
152
+ | [FIRST EPSS](https://www.first.org/epss/) | Exploitation probability | Updated daily by FIRST. |
153
+ | [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. |
154
+
155
+ ## Validation
156
+
157
+ Before release, 10 base and edge cases were run end to end: Claude answered each one using this server's
158
+ tools, code checked the raw tool output, and a separate LLM judge (gpt-5-mini) scored every answer on a
159
+ 7-point rubric, with 3 runs per case. The server's output was correct in all 60 runs. Round 1 found two
160
+ defects in the guidance the server gives assistants, both fixed before round 2; round 3 confirmed the
161
+ urgency reason ("patch now" because it is actively exploited) on Heartbleed.
162
+
163
+ - Report (2 pages): [evals/results/2026-11-04-mvp-validation.pdf](https://github.com/charlesdata1/exploitwatch-mcp/blob/main/evals/results/2026-11-04-mvp-validation.pdf)
164
+ - Every case, run, tool output, answer and judge verdict: [evals/results/2026-11-04-mvp-validation.csv](https://github.com/charlesdata1/exploitwatch-mcp/blob/main/evals/results/2026-11-04-mvp-validation.csv)
165
+ - Cases: [evals/mvp_cases.yaml](https://github.com/charlesdata1/exploitwatch-mcp/blob/main/evals/mvp_cases.yaml); rerun: `uv run --group eval python evals/run_mvp_validation.py --out new.csv`
166
+
167
+ A second validation tested executive summaries and the news domain allowlist (10 cases, 3 runs each).
168
+ Exec summaries met the sentence limit in 12 of 15 runs, up from 1 of 3, and no answer claimed to have read
169
+ a site outside the allowlist. Two exec wording gaps it found were fixed and re-tested (6 of 6 runs). After the
170
+ human review, exec summaries may again name an affected or fixed software version where the data states it,
171
+ because the version to upgrade to is part of the decision.
172
+
173
+ - Report (2 pages): [evals/results/2026-11-04-exec-domain-validation.pdf](https://github.com/charlesdata1/exploitwatch-mcp/blob/main/evals/results/2026-11-04-exec-domain-validation.pdf)
174
+ - Every case, run and verdict: [evals/results/2026-11-04-exec-domain-validation.csv](https://github.com/charlesdata1/exploitwatch-mcp/blob/main/evals/results/2026-11-04-exec-domain-validation.csv)
175
+ - Cases: [evals/exec_domain_cases.yaml](https://github.com/charlesdata1/exploitwatch-mcp/blob/main/evals/exec_domain_cases.yaml); rerun: `uv run --group eval python evals/run_mvp_validation.py --spec evals/exec_domain_cases.yaml --out new.csv`
176
+
177
+ A human review checked the evaluation by hand: 10 of the judge's verdicts across both validations, and 3
178
+ expected values against NVD's and CISA's own pages (all 3 matched). The reviewer agreed with 6 of 9 judge
179
+ verdicts. All 3 disagreements were the judge or a test criterion being too strict, and none was a wrong
180
+ answer the judge had passed. Record and evidence: [evals/human_review/](https://github.com/charlesdata1/exploitwatch-mcp/blob/main/evals/human_review/).
181
+
182
+ ## Limits
183
+
184
+ - It knows about CVEs, not about you: it can't tell whether you run the affected software or how exposed it is.
185
+ - One CVE per call, and no search by product.
186
+ - CVSS is a severity score, not a risk score. Treat the urgency as a first answer, not a compliance decision.
187
+ - Without an `NVD_API_KEY`, NVD allows about 5 requests per 30 seconds.
188
+ - The urgency is enforced in code, but the wording of an answer is the client model's. In validation the
189
+ server's own output was correct in every run, but some answers added background from the model's own
190
+ knowledge, and exec summaries sometimes ran a sentence long.
191
+ - The domain allowlist governs `search_cve_news` only. If your client also has its own web search or browsing,
192
+ the model can use that, and no MCP server can prevent it.
193
+
194
+ ## Safety
195
+
196
+ - **News is untrusted.** Search results are third-party web content. The tool description tells the model to
197
+ treat them as information, never as instructions, and they never change the urgency rating.
198
+ - **Clean errors.** Requests retry timeouts, rate limits and server errors. When a source is still
199
+ unavailable, the tool returns a short message telling the model to report the data as missing rather
200
+ than guess. Full errors go to the server log on stderr.
201
+ - **Strict input.** Every tool accepts exactly one CVE ID (`CVE-YYYY-NNNN`, any case) and rejects anything else before a request is sent.
202
+ - **Read only.** The server only reads public data. It changes nothing on your systems.
203
+
204
+ ## Roadmap
205
+
206
+ - **Several CVEs per request**, for triaging a list from a scanner or an advisory.
207
+ - **Organisation context**: pair this data with your own asset lists and policies (ExploitWatch's RAG layer).
208
+ - **Source traceability**: anything an answer takes from outside these tools is labelled as such, with its source.
209
+ - **Configurable allowlist**: an organisation can approve additional news and advisory domains.
210
+ - **Optional decision inputs**: SSVC decision points, and EPSS as an optional urgency input.
211
+ - **Readability and upkeep**: CNA names instead of IDs, and a scheduled live check against the real APIs.
212
+
213
+ ## Development
214
+
215
+ ```bash
216
+ uv sync
217
+ uv run pytest # offline, uses saved NVD records
218
+ uv run python scripts/live_check.py # live end to end against NVD, KEV, EPSS and Tavily (about 1.5 minutes)
219
+ uv run exploitwatch-mcp
220
+ ```
221
+
222
+ ## About
223
+
224
+ ExploitWatch is a multi-agent CVE triage system, in development, that pairs this public intelligence with an
225
+ organisation's own documents, to answer both how dangerous a vulnerability is and what the organisation must
226
+ do about it.
227
+
228
+ ## License
229
+
230
+ [MIT](https://github.com/charlesdata1/exploitwatch-mcp/blob/main/LICENSE)