contrastapi
Security intelligence API for AI models. CVE lookup with EPSS/KEV, domain recon (DNS, WHOIS, SSL, subdomains, WAF), and code security checks (secrets, injection, headers). 16 tools, no API key required.
README
ContrastAPI
Security intelligence API for AI models and developers. CVE lookup, domain reconnaissance, and code security verification. Structured JSON with LLM-optimized summaries.
Live: https://api.contrastcyber.com
Endpoints
Domain Intelligence
GET /v1/domain/{domain} Full domain report
GET /v1/dns/{domain} DNS records
GET /v1/whois/{domain} WHOIS lookup
GET /v1/subdomains/{domain} Subdomain enumeration
GET /v1/certs/{domain} CT log certificates
GET /v1/ip/{ip} Reverse DNS
CVE Intelligence
GET /v1/cve/{cve_id} CVE details + EPSS + KEV
GET /v1/cves?product=&severity= Search CVEs
GET /v1/cves/recent?hours=24 Latest CVEs
GET /v1/cves/kev CISA exploited vulns
GET /v1/epss/{cve_id} Exploit probability
Code Security
POST /v1/check/headers Validate HTTP security headers
POST /v1/check/secrets Detect hardcoded secrets
POST /v1/check/injection SQL/cmd injection patterns
POST /v1/check/dependencies Check packages for known CVEs
Quick Start
curl https://api.contrastcyber.com/v1/domain/example.com
{
"domain": "example.com",
"summary": "example.com resolves to 93.184.216.34. SSL by DigiCert. No WAF. 3 subdomains.",
"dns": { "a": ["93.184.216.34"], "ns": ["a.iana-servers.net"] },
"whois": { "registrar": "RESERVED-Internet Assigned Numbers Authority" },
"ssl": { "issuer": "DigiCert", "not_after": "Mar 01 2025" },
"subdomains": { "count": 3, "subdomains": ["www.example.com"] },
"waf": { "waf_present": false }
}
Authentication
| Tier | Rate Limit | Auth |
|---|---|---|
| Free | 100 req/hr | No key needed |
| Pro | 1,000 req/hr | Authorization: Bearer cc_xxx |
Pro keys available at api.contrastcyber.com -- $9/month.
Docs
- Swagger UI: https://api.contrastcyber.com/docs
- OpenAPI spec: https://api.contrastcyber.com/openapi.json
- LLM discovery: https://api.contrastcyber.com/llms.txt
Data Sources
| Source | Records | Update |
|---|---|---|
| NVD (NIST) | 340k+ CVEs | Every 2 hours |
| CISA KEV | 1,500+ exploited vulns | Every 2 hours |
| FIRST EPSS | 323k+ exploit scores | Every 2 hours |
Self-Hosting
git clone https://github.com/UPinar/contrastapi.git
cd contrastapi
python3 -m venv venv
venv/bin/pip install -r requirements.txt
cd app
../venv/bin/uvicorn main:app --host 127.0.0.1 --port 8002
Tests
cd app
python -m pytest tests/ -v
270 tests covering auth, rate limiting, validation, database operations, domain intelligence, CVE intelligence, code security, and API routes.
Stack
- Runtime: Python 3.12, FastAPI, uvicorn
- Database: SQLite (WAL mode, 3 databases)
- DNS: dnspython
- HTTP: httpx
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.