thehive-mcp
ActiveRunning a SOC through TheHive means clicking through cases, alerts, observables, and Cortex jobs one screen at a time. thehive-mcp hands the whole incident-response workflow to your agent: triage alerts, open and update cases, enrich observables, and run analyzers in plain language, with the irreversible verbs gated off by default.
See it workrepresentative session
Representative session. Illustrative values, RFC 5737 addresses. Promote and delete are gated off by default. Your data never leaves the box.
What it does
thehive-mcp is a Model Context Protocol server for TheHive 5, the open-source incident-response and case-management platform. Point any MCP client at it and TheHive becomes 47 named, typed tools your agent can call in natural language: open and triage cases, promote and manage alerts, add and search observables, run and poll Cortex analyzers, and file task logs and comments. It differs from a raw REST client or a generic OpenAPI-to-MCP bridge because it is hand-built for TheHive: the irreversible verbs (delete case, delete alert, merge, promote) and the raw Query DSL ship disabled behind explicit environment flags, TLS relaxation is scoped to TheHive requests only, and the tool descriptions carry the correct TheHive 5 status enums so an agent cannot destroy case data or drift on stale semantics. It speaks stdio and launches on demand, so nothing listens on a port and nothing phones home.
Capabilities47 tools across the SOC workflow
Cases
16 toolsList, get, create, update, search, close, assign, tag, flag, bulk-assign and bulk-close cases, plus timeline summaries; delete and merge are gated.
Alerts
6 toolsList, get, create, and update alerts; promote-to-case and delete are gated behind the destructive flag.
Observables & tasks
11 toolsAdd single or bulk observables, search across all cases, and manage tasks with their log entries.
Cortex analyzers
7 toolsList analyzers, find enrichment options, run analyzers, poll jobs to completion, and summarize reports.
Comments, users & templates
6 toolsAdd and list case comments, list users and the current profile, and list case templates.
Query & status
2 toolsGuarded raw TheHive Query DSL (gated) for complex searches, plus a server health and capability check.
Setup
npx -y thehive-mcp
Configure with THEHIVE_URL and THEHIVE_API_KEY. Add THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true and THEHIVE_ENABLE_RAW_QUERY=true only to opt into the gated tools.
{ "mcpServers": { "thehive": { "command": "npx", "args": ["-y", "thehive-mcp"], "env": { "THEHIVE_URL": "https://192.0.2.10:9000", "THEHIVE_API_KEY": "your-api-key" } } } }