Contrastapi — Security Intelligence
RemoteAbout Contrastapi — Security Intelligence
ContrastAPI is a security intelligence API and MCP server built for AI agents, covering CVE, KEV and CWE lookup with EPSS scoring, domain and IP investigation, IOC enrichment and code security checks. It requires no API key or signup, and ships with Python and Node SDKs.
Key features
- 01CVE, KEV and CWE lookup with EPSS enrichment
- 02Domain and IP investigation including DNS, WHOIS and SSL
- 03IOC enrichment and code security checks
- 04Seven MCP resources and three prompts
- 05Python and Node SDKs for all endpoints
Use cases
- 01Ground agent answers on vulnerability and threat data
- 02Run attack surface reconnaissance on domains or IPs
- 03Check code for secrets, injection and header issues
MCP support
This project is a remote MCP server that exposes 55 security tools, 7 resources and 3 prompts to MCP clients, and can be connected through mcp-remote.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://api.contrastcyber.com/mcp/claude mcp add --transport http contrastapi https://api.contrastcyber.com/mcp/{"mcpServers":{"contrastapi":{"type":"http","url":"https://api.contrastcyber.com/mcp/"}}}Open in Cursor{"servers":{"contrastapi":{"type":"http","url":"https://api.contrastcyber.com/mcp/"}}}Open in VS Code{"mcpServers":{"contrastapi":{"type":"http","url":"https://api.contrastcyber.com/mcp/"}}}{"mcpServers":{"contrastapi":{"serverUrl":"https://api.contrastcyber.com/mcp/"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
55| Parameter | Type | Required | Description |
|---|---|---|---|
| domain | string | Yes | Root domain to analyze, without protocol or path (e.g. 'example.com', 'shopify.com') |
| include_all_txt | boolean | No | Return every TXT record (default: False, only SPF/DMARC/DKIM/MTA-STS/TLS-RPT kept). dns.total_txt_records is always emitted with the honest pre-filter count. Default filter strips vendor verification strings (google-site-verification, ms=, facebook-domain-verification, etc.) that bloat the response without security signal. Set True only when you need the raw TXT inventory. |
Details
From the project READMEContrastAPI — 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
Also available on
Smithery · npm · VS Code Marketplace · Awesome OSINT MCP · RapidAPI
Multi-agent verdict metadata
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
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.