Skip to main content

certindex-mcp

CI PyPI License: MIT

Install in VS Code Install in Cursor

Hosted MCP (no install)

CertIndex runs a hosted MCP server at https://api.ctindex.io/mcp (Streamable HTTP). Sign in with OAuth from any client that supports it, or send an X-API-Key header. Get a free key at ctindex.io.

Client Setup
Claude (claude.ai, Desktop) Add a custom connector with the URL https://api.ctindex.io/mcp and sign in. Claude setup
ChatGPT Plugins → Add custom MCP server, URL https://api.ctindex.io/mcp, OAuth. ChatGPT setup
Claude Code claude mcp add --transport http certindex https://api.ctindex.io/mcp, then /mcp to sign in. Headless: add --header "X-API-Key: $CERTINDEX_API_KEY".
VS Code Click the VS Code badge above, or see VS Code setup
Cursor Click the Cursor badge above (OAuth sign-in on first use), or see Cursor setup
Other clients Point any Streamable HTTP MCP client at https://api.ctindex.io/mcp. Full guide

Coverage scope: results come from CertIndex's own CT log ingestion. The default inventory is active (currently valid) certificates. All-history results are a lower bound unless a domain has a completed deep-historical backfill (coverage.enumeration_scope=full), so treat a missing name as not observed rather than never issued.

An MCP (Model Context Protocol) server that exposes CertIndex's Certificate Transparency search tools to any MCP-compatible client (Claude Desktop, the MCP Inspector, Continue, etc.).

CertIndex ingests certificates directly from public Certificate Transparency logs and serves them from its own index. Historical backfill is still in progress, so results, especially for older certificates, may be incomplete. This server wraps the public CertIndex REST API so an LLM can ask questions like:

  • "List the TLS certificates CertIndex has indexed for example.com."
  • "What subdomains has Let's Encrypt seen for mycompany.io?"
  • "Show me certs expiring in the next 30 days for api.mycompany.io."
  • "Pull the full PEM and CT log metadata for SHA-256 <fingerprint>."

Why this repo exists

The CertIndex monorepo bundles an MCP server (mounted at https://api.ctindex.io/mcp) that talks directly to the production Postgres index. This standalone package is a thin client-side shim: it speaks MCP to your editor / agent and forwards every tool call to the hosted CertIndex REST API over HTTPS. Two consequences:

  1. You don't need a copy of the index — sign up for a free API key at https://ctindex.io and you're done.
  2. The package has a tiny dependency footprint (mcp, httpx, pydantic) — easy to audit, easy to vendor, no DB drivers.

Install

Version 0.3.x uses MCP Python SDK 2.x (mcp>=2,<3) and Python 3.11+. The console command and environment variables are unchanged. 0.3.2 removes the two async sweep tools, leaving eight (see the changelog). For applications that must retain SDK 1.x, use certindex-mcp==0.2.1.

pip install certindex-mcp

Or with uvx for one-shot use:

uvx certindex-mcp

To install the latest development version from source instead:

pip install git+https://github.com/certindex/certindex-mcp

Quickstart — Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "certindex": {
      "command": "uvx",
      "args": ["certindex-mcp"],
      "env": {
        "CERTINDEX_API_KEY": "ctx_live_..."
      }
    }
  }
}

Restart Claude Desktop. The eight CertIndex tools appear in the tool tray.

Tools

Eight tools, matching the hosted CertIndex MCP server 1:1:

Tool What it does Notable parameters
search_certificates Search the CT index by domain, CN, issuer, SAN, validity, or wildcard status. domain, cn, issuer, san, expired, is_wildcard, page/limit
get_certificate Fetch a single cert by SHA-256 fingerprint. sha256, include_enrichment
get_domain_certificates Indexed certs for an exact domain. valid_only, include_enrichment, include_signals (paid plans), page/limit
get_subdomains Enumerate unique subdomains seen in CT. Offset (page/limit) or keyset cursor mode — pass cursor="" to start, then feed back each response's next_cursor
get_latest_cert Most recent currently-valid cert for a domain. include_enrichment, include_signals, include_precerts (let precertificates compete for "latest")
get_expiring_certs Certs for a domain expiring within days days. days
get_usage Caller's tier, current usage, remaining quota, and entitlements. —
get_historical_backfill_status Check / start the paid deep-history backfill for a domain. domain

Quickstart — MCP Inspector

export CERTINDEX_API_KEY=ctx_live_...
npx @modelcontextprotocol/inspector uvx certindex-mcp

Configuration

Env var Default Description
CERTINDEX_API_KEY (required) Your CertIndex API key. Mint one at https://ctindex.io/app/keys
CERTINDEX_BASE_URL https://api.ctindex.io Override for self-hosted deployments / staging
CERTINDEX_TIMEOUT 30 Per-request HTTP timeout (seconds)

Security

Input validation, rate-limit handling, and our supply-chain posture are documented in SECURITY.md. Please report vulnerabilities to security@ctindex.io rather than filing public issues.

Development

git clone https://github.com/certindex/certindex-mcp
cd certindex-mcp
pip install -e ".[dev]"
pytest

CI runs on Python 3.11 / 3.12 / 3.13 with both SDK 2.0.0 and the latest allowed 2.x release. It also installs the built wheel into a fresh environment and exercises initialization, tool enumeration and calls over real stdio. HTTP fixtures run on loopback; tests do not require production credentials.

License

MIT © CertIndex contributors.

Metadata

Release files for certindex-mcp 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for certindex-mcp 0.3.2
File Size Uploaded Provenance Actions
certindex_mcp-0.3.2.tar.gz 21.0 kB Without provenance Details for certindex_mcp-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for certindex-mcp 0.3.2
File Interpreter ABI Platform Actions
certindex_mcp-0.3.2-py3-none-any.whl Python 3 none any Details for certindex_mcp-0.3.2-py3-none-any.whl

Total release size: 35.2 kB

Release files / certindex_mcp-0.3.2.tar.gz

Download URL certindex_mcp-0.3.2.tar.gz
Size 21.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4cc1da14302bc25c183a7bb02e34cd3ff699c814adbe3bbb8fb531ae3a4c7867
BLAKE2b-256 checksum
How to use checksums
d6fdcd21bee81297cc5d78b523179f131260e9e7d7b5feb65de576ef62a8f5b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / certindex_mcp-0.3.2-py3-none-any.whl

Download URL certindex_mcp-0.3.2-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa09dda25b9d6451e5ca790f5176cd3eae12933fc68682517155cfcc50710f9e
BLAKE2b-256 checksum
How to use checksums
c10e027ce2f7398858922400b95eae6fab1187ca64218b4e9a1802a28e457b8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for certindex-mcp 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page