# ContrastAPI

> ContrastAPI is a freemium MCP server for security. Free security data API: CVEs, packages, domains and IPs, with optional watchlist alerts. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** API
- **Website:** https://api.contrastcyber.com
- **Repository:** https://github.com/upinar/contrastapi
- **MCP Registry name:** com.contrastcyber/api
- **Categories:** security
- **Listing updated:** 2026-11-16

## About

ContrastAPI answers from public sources such as NVD, CISA KEV, FIRST EPSS, OSV and MITRE, kept in a local PostgreSQL database by a server written in C. Tools cover CVE lookup and risk scoring, exploit references, CVSS vector decoding, package advisories across npm, PyPI, Maven, Go, NuGet, RubyGems, crates.io, Packagist and SwiftURL, domain checks for DNS, mail authentication, TLS, headers and WHOIS, subdomain and takeover checks, IP and ASN data, Windows driver lookups against LOLDrivers, and breached-password checks that send only a hash prefix.

It is explicit about limits: it does not scan targets or run exploits, serves no exploit code, and answers are as fresh as each feed's last sync, reported by a health endpoint.

The free tier needs no key and allows 30 credits an hour per IP. A Pro key allows 500 credits an hour, adds monitoring of CVEs, packages, domains and IPs with change events, and lets ip_lookup use your Shodan and AbuseIPDB keys. Without a key you can also pay per call with x402, $0.01 per credit in USDC on Solana.

## Features

- **CVE intelligence:** CVSS, EPSS, KEV, CWE and a risk score per CVE.
- **Package advisories:** Check dependencies across nine ecosystems.
- **Domain checks:** DNS, SPF/DKIM/DMARC, TLS, headers and WHOIS.
- **IP and ASN data:** AS, country, cloud range and Tor exit status.
- **Watchlist monitoring:** Pro keys record change events for watched items.
- **Credit-based limits:** Responses show remaining credits.
- **Pay per call:** x402 payments in USDC on Solana.

## Good for

- Rank a vendor's CVEs by risk
- Check a lockfile's packages for advisories
- Audit a domain's email authentication and TLS
- Look up an IP address's network and Tor status
- Watch a set of CVEs and domains for changes

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http api https://api.contrastcyber.com/mcp/
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://api.contrastcyber.com/mcp/
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "api": {
      "url": "https://api.contrastcyber.com/mcp/"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "api": {
      "type": "http",
      "url": "https://api.contrastcyber.com/mcp/"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "api": {
      "serverUrl": "https://api.contrastcyber.com/mcp/"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "api": {
      "type": "http",
      "url": "https://api.contrastcyber.com/mcp/"
    }
  }
}
```

## Tools

- `cve_lookup`: Read one CVE with CVSS, EPSS, KEV and affected products
- `cve_lookup_bulk`: Look up several CVEs
- `cve_products`: Affected products of a CVE
- `cve_risk_score`: Risk score for a CVE
- `kev_lookup`: Read a CISA KEV entry
- `cwe_lookup`: Read a CWE weakness
- `cvss_calculator`: Decode and score a CVSS v3 vector
- `cve_exploit`: Public exploit and Metasploit references for a CVE
- `cpe_search`: Find product names
- `cve_triage`: Rank CVEs of a product by risk
- `cve_triage_bulk`: Bulk CVE triage
- `product_exposure`: Exposure of a product
- `cve_search`: Find CVEs by severity, CWE, EPSS, KEV or date
- `cve_leading`: Leading CVEs
- `package_check`: Check a dependency version for advisories
- `package_check_bulk`: Check many packages
- `dns_lookup`: DNS records of a domain
- `email_auth_check`: SPF, DKIM and DMARC check
- `ssl_check`: TLS certificate check
- `headers_check`: Security header check
- `whois_lookup`: Registration data
- `email_address_check`: Check whether an email domain takes mail or is disposable
- `wayback_lookup`: Wayback Machine captures of a host
- `subdomain_enum`: Find subdomains
- `cert_search`: Certificate search
- `dns_takeover_check`: Check for subdomain takeover
- `ip_lookup`: IP address intelligence
- `asn_lookup`: ASN lookup
- `d3fend_for_attack`: D3FEND defenses for an ATT&CK technique
- `driver_lookup`: Check a Windows driver against LOLDrivers
- `driver_lookup_bulk`: Check many drivers
- `password_check`: Check a SHA-1 hash against a breach list
- `watchlist_edit`: Edit the watchlist (Pro key)
- `watchlist_events`: Read watchlist change events (Pro key)
- `vendor_key_edit`: Save your Shodan and AbuseIPDB keys (Pro key)
- `health`: Server and data feed status
- `privacy_my_data`: What the service keeps about you

## FAQ

### Do I need an API key?

Not for the free tier. Monitoring tools and saving your own vendor keys need a Pro key.

### What are the rate limits?

Free is 30 credits an hour per IPv4 address or IPv6 /64; a Pro key has 500.

### Does it scan targets?

No. It reports what public sources and a domain's own DNS, TLS and HTTP answers show.

### Can I pay without a key?

Yes, with x402 at $0.01 per credit in USDC on Solana.

### How do I check it is up?

Call /health, which shows each data feed's last sync and costs no credit.

### Is ContrastAPI free?

ContrastAPI has a free plan, with paid plans for more usage or features.

### How do I add ContrastAPI to Claude Code?

Run this command in your terminal: claude mcp add --transport http api https://api.contrastcyber.com/mcp/

### What are the best alternatives to ContrastAPI?

The closest alternatives to ContrastAPI are REA, Agent Roast, Midplane, Leash and Tinplate Edge AI Safety, Security & EU Compliance.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.
- [SecureCloud](https://ai-powered.com/mcp/securecloud): SecureCloud is a free MCP server for security.
- [Eikino](https://ai-powered.com/mcp/eikino): Eikino is a freemium MCP server for security.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.

---
Source: https://ai-powered.com/mcp/contrastapi
