How it works

Tools, tool calls, and the MCP server behind CVE Explainer.

The short version

CVE Explainer is a chat app backed by a free open-weight model (gpt-oss-120b on Groq, with OpenRouter's free models as a fallback). Left alone, a model will happily describe a CVE from memory, and get the score, the affected versions or the exploitation status wrong. So it is given tools: small functions that fetch real data from the National Vulnerability Database, CISA's Known Exploited Vulnerabilities catalog and FIRST's EPSS service. Every fact about a specific CVE has to come from one of them.

The same tools are also published as an MCP server, so any MCP client (Claude, an IDE, the MCP Inspector) can use them directly, without this website.

What happens when you ask a question

  1. Browser → Worker Your question, plus the conversation so far, goes to a Cloudflare Worker. The API keys live there as secrets and never reach your browser.
  2. Worker ↔ MCP server The Worker acts as an MCP host. It runs initialize, then tools/list, to learn which tools exist and what arguments they take.
  3. Worker → model It sends the model your conversation and the tool definitions (names, descriptions, JSON Schemas). The model never sees the tool code.
  4. Model → Worker The model replies with a tool call such as get_cve({"cve_id": "CVE-2021-44228"}). It cannot run anything itself.
  5. Worker → tool → model The Worker checks the call (see "What the Worker does in code" below), runs it with MCP tools/call, and sends the result back to the model. This repeats (at most four rounds of tool calls) until the model answers in plain text.
  6. Worker → browser You get the answer, a summary strip built from the tool data (severity, KEV, EPSS), and a trace of every tool call. Expand "Used N tools" under any answer to see the exact arguments and raw results.

The tools

Loading the tool list from the MCP server…

When the model calls which tool

The model picks a tool by reading its description, so the descriptions are written as instructions. In practice:

If a tool finds nothing, the model is told to say so instead of filling the gap from memory. A CVE that NVD hasn't analyzed yet, or one that was rejected, is called out before anything else.

What the Worker does in code, not the model

Prompts are requests; code is a guarantee. Anything that can be checked or computed exactly is done by the Worker, because a free model gets these things wrong often enough to matter. While building this app the model mistyped CVE digits in almost every test run.

Use the MCP server directly

Endpoint: …/mcp

List the tools from a terminal:

curl -s …/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Call one directly:

curl -s …/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"kev_status","arguments":{"cve_id":"CVE-2021-44228"}}}'

Or connect a client: in the MCP Inspector, choose Streamable HTTP and paste the endpoint URL. In Claude, add it as a custom connector.

Honest limits

Security notes