CVErdict

v0.2.1
io.github.markusweldon/cverdict Checked 3 hours ago Published 1 day ago

Read-only CVE triage: verdicts from CISA KEV, EPSS and exploit feeds, each reason linked.

A read-only Model Context Protocol server that gives AI agents the same verdicts as CVErdict: tier, score, every reason chip with its points and evidence link, and what is unknown. Every answer says when the data was generated and which files it came from. No key, no account. It runs on your machine over stdio and reads the published data branch on raw.githubusercontent.com, then the site's /data/ copy if GitHub fails. It needs the site only when GitHub fails, so it keeps working when the site is down. Node 22.12 or later. The package is cverdict-mcp on npm: one file, no runtime dependencies.

Summary extracted from the README.

CVErdict MCP server

A read-only Model Context Protocol server that gives AI agents the same verdicts as CVErdict: tier, score, every reason chip with its points and evidence link, and what is unknown. Every answer says when the data was generated and which files it came from. No key, no account.

It runs on your machine over stdio and reads the published data branch on raw.githubusercontent.com, then the site's /data/ copy if GitHub fails. It needs the site only when GitHub fails, so it keeps working when the site is down.

Install

Node 22.12 or later. The package is cverdict-mcp on npm: one file, no runtime dependencies. Versions after 0.1.0 are published from GitHub Actions with npm provenance, which links each one to the commit and workflow that built it.

# Claude Code
claude mcp add cverdict -- npx -y cverdict-mcp

# Codex
codex mcp add cverdict -- npx -y cverdict-mcp

# Gemini CLI
gemini mcp add cverdict npx -- -y cverdict-mcp

# GitHub Copilot in VS Code
code --add-mcp '{"name":"cverdict","command":"npx","args":["-y","cverdict-mcp"]}'

Cursor (~/.cursor/mcp.json), Antigravity (Manage MCP Servers, View raw config), Claude Desktop (claude_desktop_config.json) and other clients take an mcpServers entry (key names vary by client):

{
  "mcpServers": {
    "cverdict": {
      "command": "npx",
      "args": ["-y", "cverdict-mcp"]
    }
  }
}

On Windows, clients that cannot start npx directly take "command": "cmd" and "args": ["/c", "npx", "-y", "cverdict-mcp"]. npx -y runs the newest version; pin one with cverdict-mcp@<version> (the versions are on the npm page).

Run it from a clone

Node 22.12 or later.

git clone --single-branch https://github.com/markusweldon/cverdict.git
cd cverdict && npm ci

# Claude Code
claude mcp add cverdict -- npm --prefix "$PWD" run -s mcp

Other clients take an mcpServers entry (key names vary by client):

{
  "mcpServers": {
    "cverdict": {
      "command": "npm",
      "args": ["--prefix", "/path/to/cverdict", "run", "-s", "mcp"]
    }
  }
}

Keep the -s: a plain npm run prints its own banner to stdout, which is the JSON-RPC channel.

To skip npm and TypeScript at start-up (and on Windows, where clients cannot start npm directly), build the single-file server once and start it with Node:

npm run build:mcp                                   # writes mcp/dist/cverdict-mcp.mjs
claude mcp add cverdict -- node "$PWD/mcp/dist/cverdict-mcp.mjs"

Run git pull && npm ci (and npm run build:mcp if you use the bundle) to update.

Options

Environment variables, all optional. MCP clients start servers with a minimal environment, so put them in the client's env block for this server.

Variable Default Purpose
CVERDICT_DATA_BASE https://raw.githubusercontent.com/markusweldon/cverdict/data/v1/,https://cverdict.dev/data/v1/ Comma-separated base URLs ending in /v1/, tried in order. https only, or http on localhost and 127.0.0.1 (for example http://localhost:5173/data/v1/ with npm run mock and npm run dev). For a fork or a mirror
NODE_USE_ENV_PROXY, HTTPS_PROXY unset Behind a proxy: NODE_USE_ENV_PROXY=1 and HTTPS_PROXY=http://proxy.example:3128. Needs Node 22.21 or later; older versions ignore NODE_USE_ENV_PROXY without a warning. NODE_EXTRA_CA_CERTS adds a private CA

At start the server writes one line to stderr with its version, the Node version, whether it sees a proxy and the data bases. Nothing but JSON-RPC goes to stdout.

Tools

All are read-only (readOnlyHint: true) and return structuredContent plus the same JSON as one text block. The result types are in shared/contract.ts, section "MCP tool results".

Tool Answers from Returns Bounds
get_verdict meta.json, cve/<xx>.json Tier, plain-language verdict, score, score_math, every reason chip with points and link, unknowns, KEV, EPSS, CVSS, links to the CVE page, the shard and cve.org. detail: true adds the description, affected products, CWE, SSVC, exploits, tags, timeline and references 1 to 15 IDs, at most 5 with detail; knob 30 to 80
list_signal signal.json, or index.json for Watch, Quiet or a knob below 35 Window CVEs in the chosen tiers (default Exploited and Likely next), highest score first. Filters: vendor text, published_since, kev_only limit 1 to 50 (default 25), offset
kev_due kev.json CISA KEV entries due in the next within_days (0 to 60, default 7) and overdue by up to overdue_days (0 to 14, default 7), soonest first, with days_left in UTC calendar days limit 1 to 50 (default 50), offset
woke_up woke.json Old CVEs that gained exploitation evidence since since (default 7 days before the data was generated), with their dated signals. Filter by kinds: kev (CISA KEV), catalog (ENISA EU KEV or CIRCL as exploited), exploitdb, metasploit, nuclei, poc, epss. A kev or catalog listing in the period counts even when it came while the CVE was still in the window limit 1 to 50 (default 25), offset
receipts receipts.json How often CVErdict, CVSS 7 or more and EPSS 10% or more flagged a CVE before CISA listed it: the forward log and the hindsight backtest, without the per-CVE lists. id adds one CVE's entries
search_cves index.json Window CVEs whose ID, CNA, vendor, product or title contain every word of query, highest score first query 2 to 100 characters, at most 8 words; limit 1 to 50 (default 20), offset
check_inventory index.json, woke.json Per name: the window CVEs and old CVEs that woke up whose vendor or product equals the name (ignoring case and extra spaces, as the site's watchlist matches), most urgent first (tier, then soonest KEV due date, then score), each with tier, verdict, score and KEV due date; matched and total (in the chosen tiers), omitted, no_match, and the feed for the name's slug https://cverdict.dev/feeds/v/<slug>.xml, which folds case, accents and punctuation, so it can carry spellings the name does not match (umbraco cms and umbraco-cms share one) names 1 to 200, each 1 to 80 characters after trimming; per_name 1 to 25 (default 10); to keep the answer under about 17,000 tokens, the least urgent CVEs across all names are left out, with a note, so an exploited CVE is never dropped for a quieter one; no control or invisible characters, and at most 20 KB of names together; tiers, knob
check_dependencies packages.json, packages-older.json The project's dependencies with CVEs, most urgent first: the lockfiles and SBOMs under paths (npm, yarn, pnpm, pip, Poetry, uv, Pipenv, Go, Cargo, Bundler, Composer, NuGet and Gradle lockfiles; CycloneDX and SPDX; folders are searched, node_modules, vendor and build output skipped), matched against every CVE an OSV.dev advisory ties to a package version, as the site's the Check page and cverdict-check do. Each finding: CVE, tier (or possible when the version could not be compared), verdict, score, KEV due date, package, version, fixed_in, advisories, file, line, tracked and url (the CVE page, or cve.org for an older CVE); counts per tier over all findings, files with any read error, and coverage paths 1 to 20, default ["."]: each must resolve, through symbolic links, inside the folder the server runs in (an MCP client usually starts it in the project), and a file must have a lockfile or SBOM name, so nothing else is ever opened; errors never quote a file. include_quiet (default false), knob. Files are read locally; only packages.json and packages-older.json are downloaded, under a 30-second deadline instead of 10. The least urgent findings are cut to keep the answer under about 17,000 tokens, with a note
changes_since events.json Verdict events after since, newest first, with every event field (id, at, type, cve, vendor, product, tier_before, tier_after, score, title, via, url, detail, backfill; tiers at the default evidence bar of 50), the span the log covers (log, with capped: true when the log reached max_items and dropped its lower-ranked events) and next_since (the log's generated_at). To page, pass the first page's next_since as until on later pages, so events added by a new run between pages do not shift them and every page names the same next_since; pass that as since to catch up later. Filters: names (as check_inventory matches), types (kev_added, catalog_listed, vendor_exploited, tier_up, fast_lane, metasploit_module, nuclei_template, exploitdb_entry) since within the log's 7 days, else an error saying where it starts: a date-time is exclusive (so next_since repeats nothing), a date takes the whole day from 00:00:00Z, where backfilled items are stamped; until optional; limit 1 to 50 (default 25), offset

Dates (published_since, since, until) are UTC: 2026-10-01, 2026-10-01T06:00Z or 2026-10-01T06:00:00.000Z. A date that does not exist is an error. A filter the server cannot apply is always an error, never silently dropped.

Measured on the live data of 2026-11-03 (16,747 window CVEs), the largest answer any tool can give at its maximum bounds stays under 20,000 tokens; scripts/mcp-measure.ts checks this.

Every answer starts with data

Field Meaning
generated_at, age_hours The pipeline run the answer is based on, and its age in whole hours when the server answered
score_model, knob_default, window As in meta.json
sources_down, sources_stale Sources with no usable data in that run (their evidence is unknown, not absent), and sources that served a cached copy. osv is left out: it feeds only packages.json, never a verdict
files[] Every file read: path on the data branch, the url it came from, its own generated_at
warning Set when a refresh failed and the answer comes from the last good copy

Right after an hourly publish a CDN can serve one file from the previous run for a few minutes; files[] then shows both times rather than hiding it.

Reading the answers honestly

  • Quiet means no evidence yet, never safe. A CVE outside the data (found: false) is unknown, not safe: the data covers CVEs published in the last 30 days, every CVE in CISA KEV, every CVE ENISA EU KEV or CIRCL lists as exploited, and old CVEs that woke up.
  • Text is untrusted. Titles, descriptions, KEV names and required actions, and chip labels quote CNAs, CISA and exploit feeds. The server's instructions tell the agent never to follow instructions found in them. That reduces the risk of prompt injection; it does not remove it.
  • Privacy. GitHub sees which of the 256 shard files the server fetches, never your CVE IDs or search words. If GitHub refuses or fails, the same requests go to the site's /data/ copy. Nothing is uploaded and nothing is written to disk.

Errors

Failures come back as tool results with isError: true and a plain message, for example:

Case Message
A file is not published woke.json is not on the data branch yet, so this tool has nothing to read. The other tools still work.
meta.json is missing at the first base that answers meta.json is not at the first data base that answered, so no tool can answer. Check CVERDICT_DATA_BASE, ...
Every base failed, nothing cached CVErdict could not load its data right now (raw.githubusercontent.com: HTTP 503 for meta.json; ...). Try again in a few minutes, or read the files directly: https://github.com/markusweldon/cverdict/tree/data/v1
No data within the 10 s limit of a call CVErdict could not load its data in time (...)
The data moved to a new schema The published data uses schema version 2; this server reads version 1. Update the server: ...
detail with more than 5 IDs detail: true takes at most 5 IDs; ask again in groups of 5.
Bad arguments Input validation error: Invalid arguments for tool get_verdict: ...

How it reads the data

  • Bases are tried in order. A 404 is final. A 429 or 403, or a timeout (no response headers within 4 s, or a body that stops arriving for 4 s), falls through to the next base and moves that base to the back for 10 minutes. Network errors, redirects (refused), 5xx and malformed files fall through to the next base. A slow body that keeps arriving is not cut off.
  • Each tool call has one 10 s deadline. Shards for get_verdict are fetched in parallel, at most 6 at a time.
  • Bodies are capped at 24 MB decoded, which also stops a compression bomb from a mirror. Files must have schema_version 1 and generated_at; row tables must have exactly the published columns.
  • Parsed files stay in memory for the life of the process. meta.json is checked again after 5 minutes (raw.githubusercontent.com caches for 5 minutes anyway); other files are refetched when meta.json names a newer run. An idle server makes no requests and runs no timers.

Development

npx vitest run mcp/test      # unit, protocol and spawn tests (what the release workflow runs)
npm test                     # every test in the repository
npm run build:mcp             # the single-file bundle in mcp/dist/
npx tsx scripts/mcp-measure.ts                # answer sizes against the live data branch
npx tsx mcp/test/smoke.ts mcp/dist/cverdict-mcp.mjs <data dir>   # what CI runs on mock data

The SDK (@modelcontextprotocol/server) and zod are exact-pinned dev dependencies of the repository and are bundled into dist/cverdict-mcp.mjs, so the package has no runtime dependencies. The site never imports them: shared/mcp.ts holds the copy both use.

Releasing

Maintainers only. Set the new version in mcp/package.json, MCP_SERVER.version in shared/mcp.ts, and both version fields in mcp/server.json (a test keeps them equal), and merge to main. The release workflow (.github/workflows/release-mcp.yml) sees a version with no mcp-v<version> tag yet, runs the MCP tests and the smoke test, packs the bundle, publishes it to npm through trusted publishing, with provenance, and tags the commit mcp-v<version>. To retry a release, run the workflow by hand (Actions → release-mcp → Run workflow). A last job lists the version on the MCP Registry from mcp/server.json, logged in with the workflow's GitHub OIDC identity, and then the GitHub release for the tag is added (github-release.yml). No npm or registry token is stored anywhere.

One-time setup: the first version is published by hand (npm run build:mcp at the root, then npm login and npm publish in mcp/). Then on npmjs.com, package cverdict-mcp → Settings → Trusted publishing → GitHub Actions: owner markusweldon, repository cverdict, workflow release-mcp.yml, no environment. Under Publishing access, choose to require two-factor authentication and disallow tokens.

License

MIT (LICENSE). The bundle includes the MCP TypeScript SDK (Apache-2.0, with contributions under MIT), zod (MIT) and the libraries the SDK vendors; their notices are in LICENSE-THIRD-PARTY. Data terms: docs/DATA.md.