ContrastAPI MCP server
Commit Nov 2, 2026Lets AI agents look up CVEs, KEV entries, CWE weaknesses, MITRE techniques, Sigma rules, and domain or IP security posture.
Also known as UPinar/contrastapi
- Stars
- 37
- Tools
- —
- Downloads, 30 days
- —
- Latest version
- 2.0.1
- Last commit
- Nov 2, 2026
- License
- MIT
What is ContrastAPI MCP?
ContrastAPI lets AI agents look up CVEs, KEV entries, CWE weaknesses, MITRE techniques, Sigma rules, and domain or IP security posture.
Summary generated from the project's README
About ContrastAPI MCP server
Security researchers and AI agents can access a wide range of vulnerability and infrastructure intelligence through ContrastAPI. By connecting to this server, an AI client can query public security data from sources like NVD, CISA KEV, and MITRE to analyze risks. The server provides specific tools for looking up CVE details, checking package versions across ecosystems like npm or PyPI, and inspecting domain security posture through DNS and TLS checks.
Users can interact with the server via a free hourly credit budget without an API key for most endpoints. For advanced features such as monitoring watchlists for changes or saving vendor keys for Shodan and AbuseIPDB, a Pro API key is required. The server is written in C and uses a PostgreSQL backend to serve information about IP addresses, subdomains, and even Windows drivers against LOLDrivers lists.
What you can do with it
- 1Analyze specific vulnerability detailsAsk the agent to retrieve CVSS scores, EPSS data, and affected products for a specific CVE.
- 2Audit software dependenciesHave the AI check a specific package version in registries like Maven or Go for known advisories.
- 3Evaluate domain security postureRequest a check of a domain's DNS, mail authentication, and security headers.
- 4Monitor security changesSet up a watchlist to receive events when a specific IP or domain changes status.
Written from the project's README. Every use case is checked against a quote from it.
How to install ContrastAPI MCP
Formats verified 10 Nov 2026Install ContrastAPI MCP in Claude Code
$ claude mcp add --transport http contrastapi https://api.contrastcyber.com/mcp/Install ContrastAPI MCP in Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"contrastapi": {
"url": "https://api.contrastcyber.com/mcp/"
}
}
}Install ContrastAPI MCP in VS Code
.vscode/mcp.json
{
"servers": {
"contrastapi": {
"type": "http",
"url": "https://api.contrastcyber.com/mcp/"
}
}
}Install ContrastAPI MCP in Codex
~/.codex/config.toml
[mcp_servers.contrastapi] url = "https://api.contrastcyber.com/mcp/"
Install ContrastAPI MCP in Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"contrastapi": {
"httpUrl": "https://api.contrastcyber.com/mcp/"
}
}
}Automated checks
Ran Nov 13, 2026Full report →Not verified yet. A server needs a score of 80, no serious finding, and enough data for us to check. How checks work
- Source repository linked and reachableupinar/contrastapi is public and reachablegithub.com/upinar/contrastapi ↗Pass
- Package names this repository as its sourceNot checked
- Build provenance (Sigstore attestation)Not checked
- Open source license (OSI)MITspdx.org/licenses/MIT.html ↗Pass
- Commit or release in the last yearLast commit or release 2026-11-02github.com/upinar/contrastapi ↗Pass
- OpenSSF ScorecardNot checked
- Package name not close to a popular packageNot checked
- No critical advisory in the package or its dependenciesNot checked
- No hidden instructions to the model0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersPass
- Destructive tools are labelledNot checked
- Remote endpoint answers the MCP handshakeinitialize answered with protocol 2025-06-18 in 324 msPass
README
View on GitHubContrastAPI — 55 Security Tools + 7 MCP Resources for AI Agents
Security intelligence, built for AI agents. Give your agent grounded answers about vulnerabilities, threats, and attack surface — backed by authoritative sources (NVD, CISA KEV, FIRST EPSS, MITRE ATLAS & D3FEND), never guesswork. CVE/KEV/CWE lookup with EPSS exploit-probability and composite risk scoring, domain & IP investigation, IOC enrichment, code-security checks, and live web intelligence. 55 tools, 7 Resources, and 3 Prompts — free, no API key, no signup.
中文 · Live: api.contrastcyber.com
Documentation
- API Documentation — REST reference: 60+ endpoints, authentication, rate limits, token costs, and response envelope.
- MCP Documentation — MCP tool-selection guide, 7 Resources, 3 Prompts, and copy-paste agent prompts.
Setup (MCP)
Any MCP client
{
"mcpServers": {
"contrastapi": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://api.contrastcyber.com/mcp/"]
}
}
}
Restart your agent. Other clients (Python SDK, Node SDK, cURL, VS Code): mcp-setup · quickstart
Claude Desktop — one-click extension
Grab the .mcpb file from the latest release and double-click it (or Claude Desktop → Settings → Extensions → Install Extension…). No signup, no API key — all 55 tools ready immediately.
SDKs
pip install contrastapi # Python 3.10+ — sync + async, typed responses, shortcut helpers
npm install contrastapi # Node 14+ — concrete TypeScript types, 14 namespaces
Both SDKs cover every HTTP endpoint and MCP tool — CVE/KEV/CWE, ATLAS, D3FEND, Sigma rules, email security posture, domain, IP, IOC, code security, and web intelligence — with wire-exact response shapes and a typed exception hierarchy that mirrors the API error envelope. They also expose MCP Resources for browsing the ATLAS, D3FEND, and CWE catalogs (see docs/MCP_Documentation.md) and a conditional triage Prompt (see docs/MCP_Documentation.md#contrast-triage). Web-intelligence tools — robots_txt, redirect_chain, email_verify, brand_assets, seo_audit, geo_audit — ship with an explicit ethical floor: per-target throttling, robots.txt respected, no SMTP probing.
Links
OpenAPI: openapi.json
Smithery · npm · VS Code Marketplace · Awesome OSINT MCP · RapidAPI
Responses include a verdict block — deterministic, falsifiable_fields, data_age_seconds, sources_queried / sources_unavailable, completeness — so a verifier agent can independently re-derive specific fields from the upstream authority (NVD, RDAP, CT logs, URLhaus). Probe GET /v1/capabilities for "verdict_metadata": true.
CVE responses also embed next_calls: list[PivotHint] — {tool, input, reason} triples that suggest the next MCP tool to call (e.g. kev_detail when kev.in_kev=true, cwe_lookup when cwe_id is set). Agents chain workflows without manual prompting.
MIT
ContrastAPI MCP questions
How do I add ContrastAPI MCP to Claude Code?
Run claude mcp add --transport http contrastapi https://api.contrastcyber.com/mcp/ in your terminal. Add --scope user to make it available in every project.
How do I add ContrastAPI MCP to Cursor?
Open ~/.cursor/mcp.json and add the server under mcpServers, using the Cursor config shown in the install section above.
Does ContrastAPI require an API key?
No. The MCP server is free and works without an API key or signup.
How do I connect ContrastAPI to an MCP client?
Run it through npx mcp-remote pointing at the hosted MCP endpoint, or install the Claude Desktop extension file.
Which vulnerability data sources does ContrastAPI use?
It draws on NVD, CISA KEV, FIRST EPSS, MITRE ATLAS and D3FEND for grounded answers.
What can AI agents query about CVEs?
Agents can look up CVE/KEV/CWE details, EPSS exploit probability, and a composite risk score, plus suggested follow-up tool calls.
Are there SDKs for ContrastAPI?
Yes, Python and Node SDKs cover every HTTP endpoint and MCP tool with typed responses.