← Lidless / SECURITY / SOC / cortex-mcp
cortex-mcp
ActiveMCP server for Cortex (StrangeBee/TheHive) - observable analysis.
WHAT IT DOES
cortex-mcp is a Model Context Protocol server for Cortex by StrangeBee / TheHive Project. Cortex automates observable analysis (IPs, URLs, hashes, domains, emails, files) through analyzers and executes response actions through responders.
This server exposes 31 tools covering the complete Cortex API surface, plus resources and guided prompts for setup, investigation, and triage. It auto-detects observable data types, can fan out across all applicable analyzers with taxonomy aggregation, and supports both org-level and superadmin keys for administration.
Real-world actions are secured by default: arbitrary file reads are blocked, responders and deletes require an explicit environment flag plus per-call confirmation, and bulk analysis is conservative unless you opt into fan-out.
INSTALL
Published on npm as thehive-cortex-mcp; the binary is cortex-mcp. Requires Node.js 20+ and a running Cortex instance (v3.x recommended). Set CORTEX_URL and CORTEX_API_KEY; add CORTEX_SUPERADMIN_KEY for org/user management.
TOOLS EXPOSED
Analyzers (5)
Analyzer definitions (3)
Jobs (7)
Responders (5)
Bulk + status
Orgs + users (superadmin)
CLIENT CONFIG
A sample mcpServers entry for an MCP client such as Claude Desktop. The server speaks MCP over stdio.
{
"mcpServers": {
"cortex": {
"command": "cortex-mcp",
"env": {
"CORTEX_URL": "http://cortex.example.com:9001",
"CORTEX_API_KEY": "your-org-admin-key",
"CORTEX_SUPERADMIN_KEY": "your-superadmin-key"
}
}
}
}