cortex-mcp
ActiveDetonating one indicator in Cortex means picking analyzers by hand, launching a job per analyzer, then clicking through each report to reconcile the verdicts. cortex-mcp hands the whole engine to your agent: auto-detect the observable, fan out across every applicable analyzer, and get one aggregated taxonomy verdict back in plain language.
See it workrepresentative session
Representative session. Illustrative values, RFC 5737 addresses. Nothing leaves the box except calls to the Cortex instance you configure.
What it does
cortex-mcp points any MCP client at a running Cortex instance and turns StrangeBee/TheHive's analyzer and responder engine into typed tools the agent can call. It exists because analysts already drive Cortex by hand through its web UI or raw REST API, and an agent can do that work conversationally: auto-detect an observable's data type, fan out analysis across every applicable analyzer, aggregate the taxonomy verdicts, and extract IOC artifacts without clicking through a dozen jobs. It differs from a generic HTTP bridge by modeling Cortex's real domain surface (analyzers, responders, jobs, definitions, orgs, users) as 31 typed tools with capped fan-out and safety gates, so the agent works in Cortex's vocabulary instead of reconstructing the API. It calls a Cortex instance you already run and never replaces it.
Capabilities31 tools across the Cortex pipeline
Analyzers
5 toolsList and get enabled analyzers, run by ID or name, run against a path-confined or base64 file.
Analyzer & responder definitions
6 toolsBrowse available definitions with filters, enable or disable them in the current org.
Jobs & artifacts
7 toolsGet status, wait for reports, list jobs, extract IOC artifacts, delete or bulk-clean with dry-run.
Responders
2 toolsList responders and execute a response action against a TheHive entity, gated behind confirm.
Bulk analysis & status
2 toolsAuto-detect an observable, fan out with taxonomy aggregation, and read instance health.
Orgs & users (superadmin)
9 toolsList, create, and update organizations and users, and rotate or retrieve API keys.
Setup
npx -y thehive-cortex-mcp
Set CORTEX_URL and CORTEX_API_KEY. Add CORTEX_SUPERADMIN_KEY for org/user management, CORTEX_FILE_BASE_DIR to allow path-based file reads, and CORTEX_ALLOW_DESTRUCTIVE=1 to permit responders.
{ "mcpServers": { "cortex": { "command": "npx", "args": ["-y", "thehive-cortex-mcp"], "env": { "CORTEX_URL": "http://cortex.example.com:9001", "CORTEX_API_KEY": "your-org-admin-key" } } } }