Skip to main content
Glama

BreachSpider MCP server

BreachSpider MCP server mcptry

A local, read only MCP server that lets AI agents (Claude Code, Claude Desktop, Cursor and any other MCP client) check industrial and IT devices against the BreachSpider device API.

Give it a vendor, product and firmware version exactly as your inventory says. It returns the CVEs that affect that version, the affected range and where it comes from, the fix, the vendor advisory and a fix plan. No CPE strings needed.

Tools

Tool

Arguments

What it does

correlate_devices

assets (list of vendor, product, version, optional asset_id); optional confirmed_only, known_exploited_only, fix_available_only, max_findings

CVEs for each device at its exact version, in priority order, with the fix plan, coverage, warnings, needs_review, a result_hash and a status_hash with its status_facts

check_changes

assets (as above, each with its stored result_hash; optional status_hash and status_facts)

Cheap repeat check: get back which devices changed, and with status_hash which ones changed status (known-exploited, lifecycle, firmware currency) and why

get_fix_plan

asset (one vendor, product, version)

Fix groups and fix plan for one device

lookup_cve

cve_id (for example CVE-2024-9137)

BreachSpider's record for one CVE, trimmed

check_windows_host

assets (list of os_product, edition_id, os_build, architecture, optional installed_kbs, installation_type, esu_enrolled, display_version, asset_id); optional max_findings

Windows hosts against Microsoft's own patch data, stored nowhere: confirmed open, cleared and needs review counts, the top open and needs review CVEs with fixed build, KB and Microsoft source, fix groups and a result_hash

submit_device_batch

assets (as for correlate_devices, up to 5,000); optional max_findings (default 10)

Queues one batch job for a long inventory and returns a job_id at once. The same list sent again within 24 hours returns the original job, so a retry never charges twice

get_device_batch

job_id; optional cursor, page_size (default 20, at most 50)

Progress while the job runs; once finished, the summary and a page of results (each the same as a correlate_devices result) with next_cursor

All are read only except submit_device_batch, which queues a job and uses the key's quota. The first four use the three endpoints a trial key can call: POST /api/v1/assets/correlate-cves, POST /api/v1/assets/correlate-cves/check and GET /api/v1/cves/{id}. check_windows_host uses POST /api/v2/assets/check-windows, which stores nothing about the hosts and needs a partner or customer key; trial keys and demo mode cannot use it. It takes at most 25 hosts per call. The batch tools use POST /api/v1/batches and GET /api/v1/batches/{id} (and /results). They need a partner or customer key with batch jobs enabled; trial keys and demo mode cannot use them. Results are kept 30 days.

Related MCP server: cve-mcp-server

Install

Requires Python 3.10 or newer. Install with pipx, which puts a breachspider-mcp command on your path.

  1. Install pipx and add its folder to your path:

    # macOS
    brew install pipx
    pipx ensurepath
    
    # Debian / Ubuntu
    sudo apt install pipx
    pipx ensurepath
    
    # Windows (PowerShell)
    py -m pip install --user pipx
    py -m pipx ensurepath
  2. Open a new terminal so the path change applies, then install:

    pipx install breachspider-mcp

Option: run with uvx instead

To run it without installing, install uv first, then use uvx breachspider-mcp wherever this README uses breachspider-mcp.

Try it with no key

With no key the server runs in demo mode on six example devices. Ask your agent:

Check a Moxa EDS-518A on firmware V3.5 for vulnerabilities.

It returns three CVEs (CVE-2024-9137, CVE-2024-7695, CVE-2024-9404) with the fix, security patch 3.11.2, and Moxa's advisory. Example devices: Moxa EDS-518A V3.5; Siemens SCALANCE XC208 V4.2.0; Siemens SCALANCE X200 5.2.0; Rockwell Automation 1756-EN2TR Series C 11.002; Schneider Electric EGX150/Link150 Ethernet Gateway 5.0.24; ABB AC500 CPU Firmware 3.8.0.

To check your own devices, start a free 14 day trial (750 device checks, no card).

API key

Set BREACHSPIDER_API_KEY to your key. Get a free 14 day trial key at breachspider.com/developers/start.

With no key the server runs in demo mode: public example access only, using a short lived public demo token. Every result says so. For your own devices, start a free trial at breachspider.com/developers/start; for partner keys, use "Talk to us" on breachspider.com/developers.

The key is only read from the environment. It is never logged or returned in tool output.

Setup

Claude Code

With the key in your shell's BREACHSPIDER_API_KEY variable:

claude mcp add breachspider -e BREACHSPIDER_API_KEY="$BREACHSPIDER_API_KEY" -- breachspider-mcp

If you use uv instead of pipx, end the command with -- uvx breachspider-mcp.

Add --scope user to make it available in every project. Leave out -e ... for demo mode.

Claude Code stores the key in its MCP config, and claude mcp get breachspider prints it in plain text. Don't run that command while sharing your screen or recording, and don't paste its output anywhere.

Claude Desktop

Edit claude_desktop_config.json (Settings, Developer, Edit Config) and restart Claude Desktop:

{
  "mcpServers": {
    "breachspider": {
      "command": "/full/path/to/breachspider-mcp",
      "env": { "BREACHSPIDER_API_KEY": "bs_live_your_key" }
    }
  }
}

Use the full path from which breachspider-mcp; Claude Desktop does not read your shell path.

Cursor

Add the same block to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{
  "mcpServers": {
    "breachspider": {
      "command": "/full/path/to/breachspider-mcp",
      "env": { "BREACHSPIDER_API_KEY": "bs_live_your_key" }
    }
  }
}

Example question

We have a Moxa EDS-518A switch on firmware V3.5. Which CVEs affect it, are any known-exploited, and what version fixes them? Cite the sources.

The agent calls correlate_devices and answers with three CVEs, all fixed by security patch 3.11.2, citing Moxa advisory MPSA-241156.

Is our Windows Server 2019 Standard on build 10.0.17763.6189 with KB5041578 installed missing any security updates? Which known-exploited CVEs are still open, and which update closes them?

The agent calls check_windows_host, reports the confirmed open count, the known-exploited CVEs first, the cumulative update that clears them, and any CVEs that need review. Nothing about the host is stored.

Privacy

Only vendor, product, version and an optional asset_id (plus result_hash, status_hash and the API's own status_facts for check_changes) are sent. Any other field is dropped before the request. Fields that look identifying (host name, IP or MAC address, user, site, location, serial number and similar) are listed in the output under privacy.dropped_identifying_fields. For check_windows_host, only the Windows host fields listed in the tools table are sent, and the same identifying-field rules apply. An asset_id that contains an IP, MAC or email address, or is a domain or fully qualified host name (for example 10.20.30.40 or sw-core-1.plant.example.com), is replaced with a neutral id such as asset-1. Tag-shaped ids such as PLC-LINE-2 or plant-a-sw01 are kept, so results map back to your own equipment.

Honest results

Each device gets an assessment sentence. An unresolved device, partial coverage, a product with no version data or an empty list is never reported as clean, and needs_review is always passed through. Agents are told to repeat this in their answer.

Trial limits and errors

API errors come back as plain messages, including TRIAL_REQUIRED, TRIAL_SCOPE, TRIAL_BATCH_LIMIT (25 devices per call on a trial), the trial limit (750 device checks; the message gives usage and when the trial ends) and TRIAL_ENDED, each with a link to the developer page and a way to talk to us. check_changes costs a tenth of a device check, so use it for repeat checks.

Every failed tool call starts with one sentence the agent acts on and ends with the API's retry guidance:

Do not retry this call; the trial has ended. Tell the user to start a new trial or ask for a partner key. TRIAL_ENDED: ...
retry_guidance: {"retryable": false, "retry_after_seconds": null, "action": "contact_us"}

retryable is true only when the same call may succeed later (then the sentence is "Retry after N seconds."); action is one of retry_later, wait_until_reset, reduce_batch, fix_input, use_different_key and contact_us. The tool descriptions tell the agent never to retry when retryable is false. The server itself never retries.

Development

python3 -m venv .venv && .venv/bin/pip install -e ".[dev]"
.venv/bin/python -m pytest                          # unit tests (mocked) plus live demo mode tests
BREACHSPIDER_SKIP_LIVE=1 .venv/bin/python -m pytest # offline only
npx @modelcontextprotocol/inspector --cli .venv/bin/breachspider-mcp --method tools/list

BREACHSPIDER_BASE_URL points the server at another deployment (default https://breachspider.com).

License

MIT, same as the BreachSpider Python SDK. See LICENSE.

Available Tools

8 tools
check_changesCheck devices for changesA
Read-onlyIdempotent
Inspect

Cheap repeat check. For devices you already checked with correlate_devices, send the same vendor, product and version plus the result_hash you kept. Returns which devices changed and their new hash; only changed devices need a fresh correlate_devices call. Also send the status_hash and status_facts you kept: then status_changed lists devices whose known-exploited flags, lifecycle or firmware currency changed with the same findings, and reasons names each change. Use this for repeat checks. Never send host names, IP or MAC addresses, user names or site names. If a call fails, the error starts with what to do and ends with retry_guidance (retryable, retry_after_seconds, action): never retry when retryable is false.

Inputs: assets (required).

check_windows_hostCheck Windows patch levelA
Read-onlyIdempotent
Inspect

Check Windows hosts against Microsoft's own patch data, without storing anything: nothing about the hosts is saved by BreachSpider. Send per host the OS product, edition_id, the full os_build (with the revision number), the architecture and, if known, the installed updates as KB numbers. Returns per host an honest assessment, counts of CVEs confirmed open, cleared and needs review, the top open and needs review findings in priority order (known-exploited first) with the fixed build, KB and Microsoft source, the fix groups (which update clears which CVEs) and a result_hash. Report needs review and hosts that are not patch resolved honestly: never call them clean, and repeat the assessment. Needs a partner or customer API key; trial keys and demo mode cannot use it. At most 25 hosts per call. Never send host names, IP or MAC addresses, user names or site names; such fields are stripped and listed under privacy. If a call fails, the error starts with what to do and ends with retry_guidance (retryable, retry_after_seconds, action): never retry when retryable is false.

Inputs: assets (required), max_findings.

correlate_devicesCheck devices for CVEsA
Read-onlyIdempotent
Inspect

Find the CVEs that affect specific devices at their exact firmware or software version. Use this for any specific device and firmware. Send vendor, product and version exactly as the inventory says; no CPE is needed. Returns, per device: how it resolved, data coverage, an honest assessment, warnings, needs_review, result_hash (keep it for check_changes), the fix plan, and the top findings in priority order (known-exploited and confirmed first). Each finding gives the affected range with its source, the fix, advisory guidance and vendor advisories: cite the range source and the vendor advisory when explaining it. On client plans each device also gets lifecycle (vendor end of sale / end of support: quote its text and source_url; 'unknown' means the vendor publishes no date, never 'supported') and firmware (current or behind, latest version, security notes from the releases it misses). Zero CVEs on an unsupported device is not secure: future vulnerabilities will not be fixed. Report needs_review and partial coverage honestly and never call an empty, unresolved or partial result clean. Never send host names, IP or MAC addresses, user names or site names; such fields are stripped and listed under privacy. If a call fails, the error starts with what to do and ends with retry_guidance (retryable, retry_after_seconds, action): never retry when retryable is false.

Inputs: assets (required), max_findings, confirmed_only, fix_available_only, +1 more.

get_device_batchGet batch job resultsA
Read-onlyIdempotent
Inspect

Status and results of a batch job from submit_device_batch. While the job is queued or running it returns progress (done, failed, total); once finished it returns the summary and one page of results in submission order. Each result has the same fields and honesty rules as correlate_devices: report needs_review and partial coverage honestly and never call an empty, unresolved or partial result clean. When next_cursor is not null, call again with cursor=next_cursor for the next page. Devices that failed are listed with an error_code. Results are kept 30 days. If a call fails, the error starts with what to do and ends with retry_guidance (retryable, retry_after_seconds, action): never retry when retryable is false.

Inputs: job_id (required), cursor, page_size.

get_fix_planGet a device fix planA
Read-onlyIdempotent
Inspect

Fix plan for one device: fix groups (which update clears which CVEs) and the fix plan (the single step that clears the known-exploited CVEs, and the one that clears everything fixable). Send vendor, product and version exactly as the inventory says. Says so plainly when the device did not resolve or coverage is partial. Never send host names, IP or MAC addresses, user names or site names. If a call fails, the error starts with what to do and ends with retry_guidance (retryable, retry_after_seconds, action): never retry when retryable is false.

Inputs: asset (required).

lookup_cveLook up a CVEA
Read-onlyIdempotent
Inspect

Look up one CVE by id (for example CVE-2024-9137) and return BreachSpider's record, trimmed: severity, CVSS, known-exploited status, EPSS, fix status, vendor and CISA ICS advisories and links. It is not device specific; to know whether a device is affected, use correlate_devices. If a call fails, the error starts with what to do and ends with retry_guidance (retryable, retry_after_seconds, action): never retry when retryable is false.

Inputs: cve_id (required).

search_productsSearch the product catalogA
Read-onlyIdempotent
Inspect

Find how BreachSpider's catalog names a vendor and its products, for example to check the spelling of a product before correlate_devices. Send the vendor as written and, optionally, part of the product name. Returns up to 3 matching vendors, each with up to 15 matching products and their CVE counts. Only products with at least one CVE are listed: a product that is not listed may still exist, and this is never an answer about whether a device is affected. For that, use correlate_devices with the inventory's own vendor, product and version; it resolves names itself. Needs a customer API key; trial and partner keys cannot use it. If a call fails, the error starts with what to do and ends with retry_guidance (retryable, retry_after_seconds, action): never retry when retryable is false.

Inputs: vendor (required), product.

submit_device_batchSubmit a device batch jobA
Idempotent
Inspect

Queue a batch job that checks a long device list (up to 5,000 devices) for the CVEs affecting each exact version. Returns at once with a job_id; then call get_device_batch with it until the job is finished and read the results page by page. Each result is the same as a correlate_devices result. Use this instead of correlate_devices for hundreds or thousands of devices. The job uses the key's quota for every device when it is queued (devices left unprocessed after a cancel are refunded). Sending the exact same list and max_findings again within 24 hours returns the original job instead of a new one, so a retry never charges twice. Needs a partner or customer key with batch jobs enabled; trial keys and demo mode cannot use it. Never send host names, IP or MAC addresses, user names or site names; such fields are stripped and listed under privacy. If a call fails, the error starts with what to do and ends with retry_guidance (retryable, retry_after_seconds, action): never retry when retryable is false.

Inputs: assets (required), max_findings.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 8 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes: single CVE lookup, device correlation, change detection, Windows patch checking, batch submit/poll, and catalog search. The main overlap is between correlate_devices (which already returns a fix plan per device) and get_fix_plan, plus check_changes vs correlate_devices; the descriptions mitigate this but an agent could still hesitate over which to call for fix information.

    Naming Consistency5/5

    All eight tools follow a consistent snake_case verb_noun pattern (lookup_cve, correlate_devices, check_changes, get_fix_plan, check_windows_host, submit_device_batch, get_device_batch, search_products). The submit/get batch pair reads naturally as a job lifecycle.

    Tool Count5/5

    Eight tools is well within the sweet spot and each maps to a distinct workflow step: CVE reference, single-device check, cheap re-check, fix plan, Windows patch check, bulk job submit, bulk job polling, and name resolution. Nothing feels redundant or missing at this count.

    Completeness4/5

    Coverage is strong across the domain: reference lookup, device/firmware correlation, change tracking, fix planning, Windows host patching, and batch processing. Minor gaps exist — there is no explicit batch cancel tool despite cancel being referenced in submit_device_batch, and no advisory-centric lookup or inventory/reporting operation — but agents can work around these.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to search, correlate, and monitor real-time vulnerability intelligence from NVD, CISA KEV, EPSS, and MITRE ATT&CK, including CVE details, critical CVE tracking, known exploited vulnerabilities, and exploitation probability scores.
      5
      2
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables LLMs to access realtime CVE intelligence aggregated from NVD, CISA KEV, EPSS, GitHub advisories, PoC discovery, and Metasploit/Nuclei tooling, providing vulnerability details, exploitation signals, and prioritized triage verdicts.
      12
      32 npm
      3
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents to query the Shodan API and CVEDB for internet-connected device reconnaissance, returning open ports, banners, TLS certificates, cloud and location details, plus DNS records and subdomains. Also delivers vulnerability intelligence such as CVSS, EPSS, and KEV status for CVEs, products, and CPEs.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Connects AI agents to structured vulnerability intelligence from NVD, EPSS, KEV, and OSV, enabling deterministic, policy-scored incident triage, CVE lookup, vulnerability search, and package scanning through auditable MCP tools.
      6
      2
      MIT