API documentation
OpenAPI 3.1 spec, authentication, rate limits, and code samples for the CVE Explore REST API and MCP server.
Programmatically search the CVE corpus and surface it inside any AI assistant. Same dataset as this UI; same response shapes; bearer-authenticated.
You'll need an API key
Sign up to generate keys for the REST API and MCP server. Create an account or sign in.
REST API
Authenticate with a bearer token
Send your API key in the Authorization header. Keys begin with cve_test_ in dev or cve_live_ in production.
Search example shell
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://cve-explore.com/api/v1/cves/search?q=log4j&has_poc=true"More examples shell
# Get a single CVE
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://cve-explore.com/api/v1/cves/CVE-2021-44228
# Recent CVEs
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://cve-explore.com/api/v1/cves/recent?limit=20"
# Aggregate stats
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://cve-explore.com/api/v1/statsEndpoints
The full surface is anonymous-friendly (240 req/min/IP) and upgrades to 1,000 req/min/key with a bearer token.
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/search?q= | Natural-language search: reading + answer |
| GET | /api/v1/search/interpret?q= | How a query reads, without running it |
| GET | /api/v1/cves/search | Full-text + facet search |
| GET | /api/v1/vendors/{vendor}/products/{product}/affected | CVEs affecting one version |
| GET | /api/v1/cves/{id} | Detail for a single CVE |
| GET | /api/v1/cves/{id}/pocs | Public PoCs for a CVE |
| GET | /api/v1/cves/recent | Most recently published |
| GET | /api/v1/cves/trending | Trending by PoC discovery |
| GET | /api/v1/vendors | List vendors with CVE counts |
| GET | /api/v1/vendors/{vendor}/products | Products for a vendor |
| GET | /api/v1/stats | Aggregate counts |
| GET | /api/v1/health | Health probe |
MCP server
Connect from your AI assistant
Use CVE Explore from inside Claude Desktop, Cursor, Codex, Gemini CLI, Qwen Code, Continue, or any custom HTTP client. Pick a client below; drop the snippet into the listed config file.
Claude Desktop
Add it in one command from your terminal:
Claude Desktop · CLI shell
claude mcp add cve-explore \
--env MCP_TRANSPORT=stdio \
--env CVE_EXPLORE_API_KEY=YOUR_API_KEY \
-- docker exec -i cve-explore-mcp-1 /app/mcpOr edit: ~/Library/Application Support/Claude/claude_desktop_config.json
Claude Desktop json
{
"mcpServers": {
"cve-explore": {
"command": "docker",
"args": ["exec", "-i", "cve-explore-mcp-1", "/app/mcp"],
"env": {
"MCP_TRANSPORT": "stdio",
"CVE_EXPLORE_API_KEY": "YOUR_API_KEY"
}
}
}
}Available tools
Each tool is implemented in-process against the same services that power this UI.
| Tool | Arguments | Returns |
|---|---|---|
smart_searchNatural-language search: “nginx 1.20.1”, “critical log4j since 2021 with exploit”, “log4shell”. Returns how the words were read plus the answer. | query: string (the user's words), limit?, page? | { interpretation, cves? | affected? | results? } |
search_cvesFilter the CVE corpus by severity, score, year, vendor, product, and PoC presence. | query, severity?, vendor?, product?, year?, has_poc?, limit?, offset? | { items: CveSummary[], total: number, facets } |
get_cveFull advisory: description, CVSS, affected products, references, PoCs. | id: string (CVE-YYYY-NNNNN) | CveDetail |
list_pocsPublic proof-of-concept exploits associated with a CVE. | id: string | { pocs: PocReference[] } |
list_recent_cvesMost recently published CVEs. Optionally restrict to those with public PoCs. | limit?, with_poc_only? | { items: CveSummary[] } |
list_trendingCVEs trending by recently discovered PoCs (rolling 14-day window). | window_days? | { items: TrendingCve[] } |
find_cves_by_softwareCVEs affecting one software version, in two buckets that must not be merged: confirmed and not-evaluable. | product, vendor?, version?, has_poc?, limit?, page? | { affected: { confirmed, possible, coverage } } | { candidates } |
get_statsAggregate counts: total CVEs, totals by severity, ingestion freshness per source. | (none) | { totals, by_severity, freshness } |
OpenAPI
OpenAPI 3.1 specification
The full machine-readable schema of every endpoint, including auth and API-key management routes. Cached for 5 minutes; served from the same origin as this UI.
/api/openapi.json
AI-generated PoCs
Some CVEs include a PoC entry with source: "ai-generated". These are produced by an AI model from the public CVE description and ship with extra fields: code, language, entrypoint, dependencies, validation_method, model, prompt_version.
Treat as research lead, not verified exploit
This proof-of-concept was generated by an AI model from the public CVE description. It passed a syntax check and a structured self-review but has not been executed against a real target.