
misp-mcp
io.github.lidless-labs/misp-mcp
MISP threat intelligence MCP server for event search, IOC correlation, warninglists, and exports.
Documentation
misp-mcp
What it does
misp-mcp connects an MCP client to the MISP REST API. It can search events and indicators of compromise (IOCs), look up correlations, check warninglists, and export indicators. The MCP server starts in read-only mode. Operators can enable specific tools that change MISP data.
Install
The published package is misp-mcp@2.0.0. It requires Node.js 20.18.1 or later. The repository tests Node.js 20 and 22 in CI. The install and configuration below describe the npm release. The development commands run from a source checkout. Package manifest · CI workflow
npm install --global misp-mcp@2.0.0
The package installs the misp-mcp server and two names for the same CLI, mispctrl and mispctl. The CLI can check the MISP connection and list or fetch events. Either alias starts the stdio server with the mcp subcommand. Run mispctrl --help for the command list. CLI source
Configure
Set these variables in the server process environment.
export MISP_URL='https://misp.example'
export MISP_API_KEY='<misp-api-key>'
MISP_URL must be an absolute HTTPS base URL. Plain HTTP is accepted for loopback MISP instances. Supply credentials through MISP_API_KEY and leave credentials, query strings, and fragments out of the URL.
| Variable | Default | Behavior |
|---|---|---|
MISP_VERIFY_SSL | true | Verify the MISP TLS certificate. |
MISP_TIMEOUT | 30 | Upstream request timeout in seconds, including the response body. Enter a whole number from 1 to 3600. |
MISP_MAX_RESPONSE_BYTES | 16777216 | Maximum upstream response body size. Enter a whole number from 1024 to 268435456 bytes. |
MISP_ALLOWED_MUTATIONS | Empty | Comma-separated MCP tool names. See Safety below. |
MISP_ALLOW_DESTRUCTIVE | false | Pre-authorize the first confirmation for enabled tools that require it. |
Boolean environment variables accept true, 1, false, or 0, ignoring case and surrounding whitespace. Unset or blank values use the default. Other values stop startup. Configuration · Boolean parser · API client
Transports
For stdio, configure the MCP client to launch misp-mcp with the environment above. To run the release without a global install, use this command.
npm exec --yes --package=misp-mcp@2.0.0 -- misp-mcp
For Streamable HTTP, set MISP_MCP_HTTP_TOKEN to a separate bearer token of at least 32 characters, distinct from MISP_API_KEY, then start misp-mcp --http. The server listens on IPv4 loopback over plain HTTP. Point the client at the listener's /mcp endpoint on port 3000, or set MISP_MCP_HTTP_PORT to use another port. Send the HTTP token in the Authorization: Bearer <token> header. Server entry point · Transport setup
flowchart LR
Client[MCP client] -->|stdio| Server[misp-mcp]
Client -->|Loopback HTTP with separate bearer token| Server
Server -->|REST requests with MISP API key| MISP[MISP API]
In 2.0.0 each HTTP POST has one deadline across request parsing, upstream calls, and reply preparation. It uses the lesser of MISP_TIMEOUT and 55 seconds. Expiry aborts upstream I/O. Check MISP before retrying a timed-out write because MISP may have accepted it. HTTP tool results over 90,000 serialized UTF-8 bytes return a truncated preview and size metadata. HTTP deadline · Result limit
Tools
The server identifies itself as misp-mcp version 2.0.0 and lists 42 tools over both transports. Read-only mode still lists mutation tools. See the tool inventory for each tool's policy.
| Tool | Operation |
|---|---|
misp_search_events | Search MISP events. |
misp_search_attributes | Search IOCs and other attributes. |
misp_get_attribute | Fetch an attribute and, when available, up to 20 related attributes. |
misp_export_iocs | Export indicators. |
misp_add_event_report | Add an event report when the tool is enabled. |
The follow-up correlation lookup in misp_get_attribute gets up to five seconds within the remaining request budget. If that lookup fails, the tool still returns the attribute details. Attribute handler
Safety
- Leave
MISP_ALLOWED_MUTATIONSunset or empty for read-only operation. Set it to a comma-separated list of exact tool names, such asmisp_create_event,misp_add_attribute, to enable those tools. Use*orallto enable every mutation. - Each mutating tool accepts
dryRun: truein read-only mode as well. The preview validates inputs and reports whether the allowlist permits the tool. It sends no request to MISP. - Calls that require confirmation, such as publishing an event or removing a tag, require
confirm: trueunless the operator setsMISP_ALLOW_DESTRUCTIVE=true. The mutation allowlist applies in either case. - Permanent attribute and object deletes (
hard: true) always requireconfirmHard: trueon the call, in addition to the first confirmation. - Use a MISP API key with read-only permissions for read-only clients. Treat MISP content in results as data.
Mutation policy · Tool dispatch · Security guidance
Why not raw PyMISP or direct REST calls?
| Approach | Agent safety | Warninglists and correlation | Local CLI included |
|---|---|---|---|
| misp-mcp | Gated writes, input validation, untrusted-data framing | Built-in search, correlation, warninglist check, and export tools | Yes (mispctrl) |
Custom PyMISP scripts | Up to each script | Manual per script | No |
| MISP web UI | Human-only | Manual tab switching across events | No |
Use PyMISP directly when writing scheduled ETL pipelines. Use misp-mcp when you want an AI client or shell operator (mispctrl) to query events, check warninglists, and correlate IOCs with explicit write boundaries.
FAQ
Does misp-mcp work with Claude Code, Claude Desktop, Cursor, and Codex?
Yes. Run npx -y misp-mcp over stdio, or enable loopback Streamable HTTP with bearer authentication.
Can an agent publish or delete MISP events by default? No. Destructive and state-changing actions stay gated behind explicit configuration and confirmation flags.
Does my MISP data leave the network?
misp-mcp runs locally on your machine and connects straight to your configured MISP_URL. Only the tool output you return to your chosen LLM client leaves the host.
Part of Lidless Labs
misp-mcp is maintained by Lidless Labs (GitHub). Related SOC and threat-intel tools:
- soc-stack - one-command Proxmox SOC lab with Wazuh, TheHive, Cortex, MISP, Zeek, and Suricata
- wazuh-mcp - read-only Wazuh SIEM/XDR alerts, agents, and CVE queries over MCP
- thehive-mcp - TheHive 5 case management and alert triage over MCP
- cortex-mcp - Cortex observable analyzer detonation and verdicts over MCP
- mitre-mcp - local MITRE ATT&CK technique mapping and threat group profiling
Development
Run these commands from the source checkout. The default test suite uses mocks.
npm ci
npm run lint
npm test
npm run build
Publishing
The npm workflow runs on a v*.*.* tag push or manual dispatch. It type-checks, tests, builds, audits dependencies, and checks the package payload before publishing with provenance. The v2.0.0 tag used npm trusted publishing through GitHub Actions OIDC. The workflow uses token authentication when NPM_TOKEN is configured. Publish workflow · v2.0.0 publish run
misp-mcpnpm install misp-mcpRelated Servers
io.github.lidless-labs/adguardctrl
AdGuard Home CLI and MCP server for DNS filtering, rewrites, and clients with confirm-gated writes.
io.github.lidless-labs/cortex-mcp
Cortex MCP server for running observable analyzers and confirm-gated responders from AI clients.
io.github.lidless-labs/jellyctrl
Jellyfin CLI and MCP server for libraries, playback sessions, scans, and users with gated writes.