thehive-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@thehive-mcp list open high-severity cases from this week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
thehive-mcp is a Model Context Protocol server for TheHive, the open-source security incident response platform. It lets an AI client run the SOC workflow end to end: open and triage cases, promote alerts, track observables, drive tasks, and run Cortex analyzers, all through one stdio process. It differs from a generic REST wrapper because the dangerous verbs (delete, merge, promote, raw query) ship disabled and only turn on behind explicit environment flags, so an agent cannot quietly destroy case data.
What it does
thehive-mcp is an MCP server for TheHive incident response and case management. It exposes 57 Model Context Protocol tools that map onto the full TheHive 5 API surface, so an MCP client (Claude Desktop, Claude Code, Codex CLI, OpenClaw, Hermes, or any other) can drive a security operations center: create and triage cases, manage alerts, add and search observables, run and poll Cortex analyzers, file task logs and comments, and orchestrate SOAR-style incident response workflows in plain language. It talks to your TheHive instance over its REST API and speaks MCP over stdio, so it slots into any agent that supports the protocol with no extra service to run.
All 28 mutating tools are disabled by default, including record creation, additive writes, state changes, bulk operations, and Cortex analyzer and responder submissions. Operator authority enables local previews. Execution requires dryRun: false and confirm: true for each approved call. The raw Query DSL has a separate default-off gate. TLS relaxation is scoped to TheHive requests only. The server is tested against TheHive 5.4.11.
Related MCP server: ThreatConnect v3 MCP Server
Quickstart
Build the MCP server from this repository to use the tools and mutation controls described here. The published thehive-mcp@1.2.3 comes from an earlier CLI release line and does not provide the mutation preview or confirmation controls on main.
git clone https://github.com/lidless-labs/thehive-mcp.git
cd thehive-mcp
npm ci
npm run buildPoint it at your TheHive instance with two environment variables:
THEHIVE_URL=https://192.0.2.10:9000 \
THEHIVE_API_KEY=your-api-key \
node dist/index.jsThe server speaks MCP over stdio, so it is meant to be launched by an MCP client rather than run by hand. The client config below is the normal entry point.
MCP client config
Drop this into any MCP client that reads the standard mcpServers map (Claude Desktop, Claude Code, and most others use this exact shape):
{
"mcpServers": {
"thehive": {
"command": "node",
"args": ["/absolute/path/to/thehive-mcp/dist/index.js"],
"env": {
"THEHIVE_URL": "https://192.0.2.10:9000",
"THEHIVE_API_KEY": "your-api-key"
}
}
}
}To enable mutation previews and the raw Query DSL tool, add the flags to env:
{
"mcpServers": {
"thehive": {
"command": "node",
"args": ["/absolute/path/to/thehive-mcp/dist/index.js"],
"env": {
"THEHIVE_URL": "https://192.0.2.10:9000",
"THEHIVE_API_KEY": "your-api-key",
"THEHIVE_ALLOW_DESTRUCTIVE_TOOLS": "true",
"THEHIVE_ENABLE_RAW_QUERY": "true"
}
}
}
}For Claude Desktop, the config file lives at ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows). Per-harness instructions (Claude Code, Codex CLI, OpenClaw, Hermes) are in Client setup below.
Tools
57 tools across cases, alerts, tasks, observables, Cortex, and more. All 28 mutating tools require operator authority, default to preview, and require explicit confirmation for execution. The 29 read/query tools retain their existing behavior, including the separate raw query flag.
Cases (16 tools)
Tool | Description |
| List cases with filters (status, severity, tags, owner) |
| Get a specific case by ID |
| Create a new case |
| Update case fields. Requires operator approval |
| Search cases by title keyword |
| Close a case with resolution status and summary. Requires operator approval |
| Assign a case to a user. Requires operator approval |
| Update case custom fields |
| Add tags without replacing existing tags |
| Remove selected tags |
| Set or clear the case flag |
| Assign multiple cases to a user. Requires |
| Close multiple cases with the same resolution. Requires |
| Summarize case details, tasks, observables, and comments |
| Permanently delete a case (with optional force). Requires |
| Merge multiple cases into one (irreversible). Requires |
Alerts (10 tools)
Tool | Description |
| List alerts with filters (status, severity, source, type) |
| Get a specific alert by ID |
| Create a new alert |
| Update alert fields. Requires operator approval |
| Promote an alert to a case (creates a new case). Requires |
| Permanently delete an alert. Requires |
| List observables attached to an alert |
| List comments on an alert |
| Add an observable to an alert without promoting it |
| Add a comment to an alert |
Tasks (4 tools)
Tool | Description |
| List tasks for a case |
| Get a specific task by ID |
| Create a task in a case |
| Update task fields (status, assignee, etc.) |
Observables (6 tools)
Tool | Description |
| List observables for a case |
| Get a specific observable by ID |
| Add a single observable to a case |
| Add multiple observables of the same type in one request |
| Update an observable (IOC, sighted, TLP/PAP, tags, message) |
| Search observables across all cases |
Task Logs (2 tools)
Tool | Description |
| List log entries for a task |
| Add a log entry to a task |
Comments (2 tools)
Tool | Description |
| List comments on a case |
| Add a comment to a case |
Users (2 tools)
Tool | Description |
| List users in the organization |
| Get the authenticated user's profile |
Cortex (10 tools)
Tool | Description |
| List available Cortex analyzers |
| List analyzers that can enrich an observable |
| Run a Cortex analyzer on an observable |
| Submit an analyzer and wait for completion within a shared 50-second budget |
| Get analyzer job status and results |
| Poll a job for up to 50 seconds |
| Return a compact analyzer report summary |
| List Cortex responders available for a case, alert, task, or observable |
| Run a Cortex responder on an entity. Requires |
| List past responder actions on an entity |
Similarity (2 tools)
Tool | Description |
| Cases sharing observables with an alert or case |
| Alerts sharing observables with an alert or case |
Query (1 tool)
Tool | Description |
| Execute guarded raw TheHive Query DSL for complex searches when enabled with |
Templates (1 tool)
Tool | Description |
| List available case templates |
Status (1 tool)
Tool | Description |
| Get server health, version, and capabilities |
Configuration
Set environment variables:
Variable | Required | Default | Description |
| Yes | - | TheHive instance URL using |
| Yes | - | API key for authentication |
| No |
| Set to |
| No |
| Request timeout in seconds (1-300) |
| No |
| Enable local previews for all 28 mutations, including additive writes and analyzer submissions. Execution also requires |
| No |
| Explicitly permit plaintext HTTP API credentials outside loopback |
| No |
| Set to |
Prompt Templates
Prompt | Description |
| Generate a comprehensive incident case report |
| Triage and analyze an alert for escalation |
| Guided incident response workflow |
Resources
Resource | URI | Description |
Open Cases |
| Currently open cases |
New Alerts |
| Unprocessed alerts |
Current User |
| Authenticated user info |
Client setup
The MCP client config above works for clients that read the standard mcpServers map. Replace the example path with the absolute path to your built server.
Claude Code
claude mcp add thehive \
--env THEHIVE_URL=https://192.0.2.10:9000 \
--env THEHIVE_API_KEY=your-api-key \
-- node /absolute/path/to/thehive-mcp/dist/index.jsAdd --scope user to make it available from any directory instead of only the current project.
Codex CLI
Codex CLI registers MCP servers via codex mcp add:
codex mcp add thehive \
--env THEHIVE_URL=https://192.0.2.10:9000 \
--env THEHIVE_API_KEY=your-api-key \
-- node /absolute/path/to/thehive-mcp/dist/index.jsCodex writes the entry to ~/.codex/config.toml under [mcp_servers.thehive]. Verify with codex mcp list.
OpenClaw
openclaw mcp set thehive '{
"command": "node",
"args": ["/absolute/path/to/thehive-mcp/dist/index.js"],
"env": {
"THEHIVE_URL": "https://192.0.2.10:9000",
"THEHIVE_API_KEY": "your-api-key"
}
}'Then restart the gateway and confirm registration:
systemctl --user restart openclaw-gateway
openclaw mcp listHermes Agent
Hermes Agent reads MCP config from ~/.hermes/config.yaml under the mcp_servers key:
mcp_servers:
thehive:
command: "node"
args: ["/absolute/path/to/thehive-mcp/dist/index.js"]
env:
THEHIVE_URL: "https://192.0.2.10:9000"
THEHIVE_API_KEY: "your-api-key"Then reload MCP from inside a Hermes session with /reload-mcp.
TheHive 5 notes
Organizations matter. The
adminorg only has platform permissions. Create a separate org (e.g. "SOC") with anorg-adminuser for full case/alert/task/observable access.Case statuses changed in v5. Closed statuses are: TruePositive, FalsePositive, Indeterminate, Duplicated, Other. There is no "Resolved" status.
PATCH returns 204. Update operations return no body; the client re-fetches the entity automatically.
Observable creation returns arrays. The client handles this transparently. Bulk creation uses
dataas an array.Cortex connector endpoints live under
/api/connector/not/api/v1/.descriptionis required when creating cases and alerts.Destructive MCP tools are gated.
thehive_delete_case,thehive_delete_alert,thehive_merge_cases(irreversible),thehive_promote_alert,thehive_run_responder,thehive_bulk_assign_cases, andthehive_bulk_close_casesrequireTHEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true. The same gate protects single-case close/assign, generic case state/ownership changes, case creation with an owner, and alert status changes. Calls preview locally until bothdryRun: falseandconfirm: trueare supplied.Tool output and upstream responses are bounded. JSON tool responses use a 90,000 UTF-8 byte budget. Upstream response bodies are capped at 10 MB, and bulk tools issue at most five concurrent requests.
TLP uses the TheHive 5.2+ scale.
3is Amber+Strict and4is Red. PAP still uses the 0–3 range.Raw query is gated.
thehive_queryrequiresTHEHIVE_ENABLE_RAW_QUERY=true.SSL verification is scoped. Setting
THEHIVE_VERIFY_SSL=falserelaxes TLS certificate validation only for requests to TheHive (via a per-client undici dispatcher) and never disables it process-wide. A warning is logged to stderr when enabled.
Why not the TheHive REST API directly?
You can, and for a script you should. The REST API is the right tool when you already know exactly which endpoint you want. thehive-mcp exists for the case where an AI agent is doing the deciding: it turns the API into 57 named, typed, described tools an MCP client can pick from in natural language, handles the TheHive 5 quirks (204 PATCH responses, array-shaped observable creation, connector endpoints under /api/connector/), and puts safety rails in front of the irreversible verbs so a model cannot delete or merge case data unless you explicitly opted in. A raw HTTP client gives you none of that.
Why not a generic OpenAPI-to-MCP bridge?
A generic bridge exposes every endpoint flat, with no notion of which calls are dangerous and no awareness of TheHive 5's behavioral edges. thehive-mcp is hand-built for TheHive: destructive tools are gated, the raw Query DSL is gated and shape-checked, TLS relaxation is scoped to TheHive requests only, sensitive values are redacted from error output, and the tool descriptions carry the correct TheHive 5 status enums (TruePositive, FalsePositive, and so on, not the old "Resolved"). Those are decisions a generic bridge cannot make for you.
What thehive-mcp is not
It is not a replacement for TheHive. You need a running TheHive 5 instance and a valid API key; this server only talks to one.
It is not a hosted service or daemon. It is a stdio process your MCP client launches on demand. Nothing listens on a port and nothing phones home.
It is not a Cortex server. It drives Cortex analyzers through TheHive's connector, but analyzer execution happens in your own Cortex deployment. For a dedicated Cortex MCP server, see cortex-mcp.
It is not safe-by-omission. Destructive tools exist; they are gated, not removed. Turning on
THEHIVE_ALLOW_DESTRUCTIVE_TOOLShands an agent the ability to delete and merge real case data.
Development
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm test
# Run read-only live integration tests (skips when env vars are missing)
THEHIVE_URL=https://192.0.2.10:9000 THEHIVE_API_KEY=your-key npx tsx scripts/live-test.ts
# Run live write tests
THEHIVE_URL=https://192.0.2.10:9000 THEHIVE_API_KEY=your-key THEHIVE_LIVE_ALLOW_WRITES=true npx tsx scripts/live-test.ts
# Run live write tests with destructive cleanup, deletes, and merge checks
THEHIVE_URL=https://192.0.2.10:9000 THEHIVE_API_KEY=your-key THEHIVE_LIVE_ALLOW_WRITES=true THEHIVE_LIVE_ALLOW_DESTRUCTIVE=true npx tsx scripts/live-test.ts
# Type check
npm run typecheck
# Development mode
THEHIVE_URL=https://192.0.2.10:9000 THEHIVE_API_KEY=your-key npm run devContributing
Bug reports and patches are welcome. See CONTRIBUTING.md for what lands easily, SECURITY.md for reporting vulnerabilities, and CODE_OF_CONDUCT.md. Issue templates are under .github/ISSUE_TEMPLATE.
Container root access
The installer creates no guest root password and locks password login after starting the container. Manage the guest from its Proxmox host with pct enter. Service API credentials continue to use protected stdin delivery and root-only storage.
License
Operator approval for every mutation
All 28 tools that create, update, delete, merge, promote, or submit jobs require
THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true. This includes tasks, observables, tags,
custom fields, flags, comments, task logs, bulk operations, and Cortex analyzers
and responders. Classification uses an explicit reviewed read inventory,
independent of MCP annotations. Unknown tool names receive the mutation policy.
After enabling the flag, mutating calls preview their tool, targets, and
parameters locally by default. Preview sends no network requests and does not
validate target existence or permissions. Review the plan with the operator.
Execution requires both dryRun: false and confirm: true on that call.
These controls are never forwarded to TheHive. Confirmation records the caller's
assertion of approval. The server cannot authenticate a human decision.
Confirmation does not supply idempotency. After an uncertain response, inspect
upstream state before repeating a mutation. Analyzer polling failures return the
started job as untrusted evidence with an uncertain outcome. Inspect that job
with thehive_get_job or thehive_wait_for_job instead of resubmitting it.
The server never automatically replays an analyzer submission.
Untrusted evidence in outputs
Tool JSON and JSON resources now return { provenance, data }. Consumers that
previously read an object or array at the top level must read data instead.
The server marks data from TheHive and Cortex as untrusted evidence. Instructions
inside incident descriptions, comments, observable values, and analyzer reports
must never authorize tool calls. Markup delimiters and Unicode line separators
are escaped in serialized JSON, including object keys, and decode to their
original values when parsed. Truncated outputs keep their provenance and remain
valid JSON. Prompt arguments use an escaped input block, with operator approval
required before mutations.
HTTPS and private certificate authorities
Remote API URLs now require HTTPS by default. Migration: deployments that
intentionally use plaintext beyond loopback must explicitly set
THEHIVE_ALLOW_INSECURE_HTTP=true. This sends API credentials over plaintext.
HTTP remains supported for literal IPv4 loopback addresses, IPv6 loopback, and
localhost. Redirects are rejected for API and status requests, so an HTTPS
endpoint cannot redirect a credential-bearing call elsewhere.
For a private CA, keep THEHIVE_VERIFY_SSL=true and set
NODE_EXTRA_CA_CERTS=/path/to/ca-bundle.pem before starting Node. Node loads the
PEM bundle at process startup. This extends trust while keeping certificate and
hostname verification enabled. The existing THEHIVE_VERIFY_SSL=false escape
hatch still affects only this client's dispatcher and never disables TLS
verification process-wide.
Installer service permissions
New installer services run as the dedicated thehive-mcp system account. The
application tree and credential file stay root-owned, with the credential file
readable only by root. Systemd reads that file before dropping privileges.
The service uses a read-only system view, a private temporary directory, no
capabilities, and no privilege escalation. Systemd manages writable state,
cache, and runtime directories under the service name. The sandbox keeps Node's
JIT available. Existing installations must recreate the service unit and
service account to adopt these settings.
Reviewed Proxmox installer inputs
Before running the installer, review a local copy of the script and set these immutable inputs. There are no defaults:
THEHIVE_SOURCE_COMMIT: the full 40-character hexadecimal commit reviewed for installation fromhttps://github.com/lidless-labs/thehive-mcp.git.NODE_VERSION: an exact Node 22 version at least22.12.0, without avprefix.NODE_ARCH:x64orarm64, matching the guest architecture.NODE_SHA256: the 64-character SHA-256 of that version'snode-v<VERSION>-linux-<ARCH>.tar.xzarchive.
Obtain the archive checksum from the official release's signed
SHASUMS256.txt.asc. Verify its signature with a separately trusted Node release
keyring using the official binary verification instructions
before supplying the checksum. Do not copy a checksum from the same unverified
download as the archive.
The installer rejects missing or malformed pins before any host command or LXC
creation. It downloads only from https://nodejs.org/dist/v<VERSION>/, checks the
archive against the supplied checksum before extraction, then fetches the reviewed
source commit from the canonical repository and checks its exact hash before
npm ci --ignore-scripts or the build. Node is installed in /usr/local, including
the service executable /usr/local/bin/node. Ubuntu template and apt prerequisites
still follow their upstream repositories. This does not freeze the whole OS or
provide a reproducible apt snapshot. An interrupted install leaves its guest for
operator inspection. A retry refuses an existing container ID.
Available Tools
57 toolsthehive_add_case_tagsAIdempotent
Add tags to a case without removing existing tags Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: tags (required), caseId (required), dryRun, confirm.
thehive_assign_caseADestructiveIdempotent
Assign a case to a TheHive user by username or login Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: owner (required), caseId (required), dryRun, confirm.
thehive_bulk_assign_casesADestructiveIdempotent
Assign multiple cases to a TheHive user. Requires THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true. Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: owner (required), caseIds (required), dryRun, confirm.
thehive_bulk_close_casesADestructiveIdempotent
Close multiple cases with the same resolution status and summary. Requires THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true. Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: status (required), caseIds (required), summary (required), dryRun, +2 more.
thehive_case_timeline_summaryBRead-onlyIdempotent
Summarize a case with related tasks, observables, and comments
Inputs: caseId (required), limit.
thehive_close_caseADestructiveIdempotent
Close/resolve a case. In TheHive 5, the status field is the resolution status directly. Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: caseId (required), status (required), summary (required), dryRun, +2 more.
thehive_create_alertA
Create a new alert in TheHive Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: type (required), title (required), source (required), sourceRef (required), +9 more.
thehive_create_alert_commentA
Add a comment to an alert Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: alertId (required), message (required), dryRun, confirm.
thehive_create_alert_observableA
Add an observable (IOC) to an alert without promoting it to a case Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: data (required), alertId (required), dataType (required), ioc, +8 more.
thehive_create_caseA
Create a new case in TheHive Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: title (required), pap, tlp, flag, +8 more.
thehive_create_commentA
Add a comment to a case Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: caseId (required), message (required), dryRun, confirm.
thehive_create_observableA
Add a new observable (IOC) to a case Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: data (required), caseId (required), dataType (required), ioc, +8 more.
thehive_create_observable_bulkA
Add multiple observables of the same type to a case in one request. More efficient than creating one at a time. Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: data (required), caseId (required), dataType (required), ioc, +7 more.
thehive_create_taskA
Create a new task in a case Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: title (required), caseId (required), flag, group, +7 more.
thehive_create_task_logA
Add a log entry to a task Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: taskId (required), message (required), dryRun, confirm, +1 more.
thehive_delete_alertADestructive
Permanently delete an alert Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: alertId (required), dryRun, confirm.
thehive_delete_caseADestructive
Permanently delete a case. Use force=true to delete even if the case has tasks/observables. Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: caseId (required), force, dryRun, confirm.
thehive_get_alertBRead-onlyIdempotent
Get detailed information about a specific alert
Inputs: alertId (required).
thehive_get_caseBRead-onlyIdempotent
Get detailed information about a specific case
Inputs: caseId (required).
thehive_get_current_userARead-onlyIdempotent
Get the currently authenticated user's profile
Inputs: no named parameters.
thehive_get_jobBRead-onlyIdempotent
Get the status and results of a Cortex analyzer job
Inputs: jobId (required).
thehive_get_observableBRead-onlyIdempotent
Get detailed information about a specific observable
Inputs: observableId (required).
thehive_get_observable_enrichment_optionsARead-onlyIdempotent
List Cortex analyzers that can enrich a specific observable
Inputs: observableId (required).
thehive_get_similar_alertsBRead-onlyIdempotent
List alerts that share observables with a given alert or case (TheHive similarity matching)
Inputs: entityId (required), entityType (required), limit.
thehive_get_similar_casesARead-onlyIdempotent
List cases that share observables with a given alert or case (TheHive similarity matching)
Inputs: entityId (required), entityType (required), limit.
thehive_get_taskCRead-onlyIdempotent
Get detailed information about a specific task
Inputs: taskId (required).
thehive_list_actionsARead-onlyIdempotent
List past Cortex responder actions run on a case, alert, task, or observable
Inputs: entityId (required), entityType (required).
thehive_list_alert_commentsBRead-onlyIdempotent
List comments on an alert, newest first
Inputs: alertId (required), limit.
thehive_list_alert_observablesBRead-onlyIdempotent
List observables (IOCs) attached to an alert
Inputs: alertId (required), limit.
thehive_list_alertsCRead-onlyIdempotent
List alerts from TheHive with optional filters
Inputs: tags, type, limit, source, +2 more.
thehive_list_analyzersBRead-onlyIdempotent
List available Cortex analyzers that can be run on observables
Inputs: dataType.
thehive_list_casesCRead-onlyIdempotent
List cases from TheHive with optional filters
Inputs: tags, limit, owner, status, +1 more.
thehive_list_case_templatesARead-onlyIdempotent
List available case templates. Use these when creating cases to auto-populate fields and tasks.
Inputs: limit.
thehive_list_commentsCRead-onlyIdempotent
List comments on a specific case
Inputs: caseId (required), limit.
thehive_list_observablesARead-onlyIdempotent
List observables (IOCs) for a specific case
Inputs: caseId (required), ioc, limit, dataType.
thehive_list_respondersARead-onlyIdempotent
List Cortex responders available for a case, alert, task, or observable
Inputs: entityId (required), entityType (required).
thehive_list_task_logsBRead-onlyIdempotent
List log entries for a specific task
Inputs: taskId (required), limit.
thehive_list_tasksCRead-onlyIdempotent
List tasks for a specific case
Inputs: caseId (required), limit, status, assignee.
thehive_list_usersBRead-onlyIdempotent
List users in the TheHive organization
Inputs: limit.
thehive_merge_casesADestructive
Merge multiple cases into a single case. This is irreversible and data-destructive. Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: caseIds (required), dryRun, confirm.
thehive_promote_alertADestructive
Promote an alert to a case. Creates a new case from the alert data. Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: alertId (required), dryRun, confirm.
thehive_queryARead-onlyIdempotent
Execute a raw TheHive Query API request. Use this for complex searches that other tools can't handle (date ranges, AND/OR logic, nested queries, counting, etc.).
Common query filters:
List entities: {"_name": "listCase"}, {"_name": "listAlert"}, {"_name": "listObservable"}
Filter by field: {"_name": "filter", "_field": "severity", "_value": 3}
Filter by date range: {"_name": "filter", "_gte": {"_field": "_createdAt", "_value": <timestamp_ms>}}
Like search: {"_name": "filter", "_like": {"_field": "title", "_value": "phishing"}}
Get children: {"_name": "getCase", "idOrName": ""}, {"_name": "tasks"}
Count: {"_name": "count"}
Inputs: query (required), name, sort, range.
thehive_remove_case_tagsADestructiveIdempotent
Remove tags from a case while preserving other tags Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: tags (required), caseId (required), dryRun, confirm.
thehive_run_analyzerA
Run a Cortex analyzer on a specific observable. Returns the job ID for tracking. Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: cortexId (required), analyzerId (required), observableId (required), dryRun, +1 more.
thehive_run_analyzer_and_waitA
Run a Cortex analyzer on an observable and wait up to 50 seconds for a terminal job status Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: cortexId (required), analyzerId (required), observableId (required), dryRun, +3 more.
thehive_run_responderADestructive
Run a Cortex responder on a case, alert, task, or observable. Responders have real-world side effects. Requires THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true. Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: objectId (required), objectType (required), responderId (required), tlp, +4 more.
thehive_search_casesBRead-onlyIdempotent
Search cases by title keyword
Inputs: query (required), limit.
thehive_search_observablesBRead-onlyIdempotent
Search observables across all cases
Inputs: ioc, data, tags, limit, +1 more.
thehive_set_case_flagADestructiveIdempotent
Set or clear the case flag Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: flag (required), caseId (required), dryRun, confirm.
thehive_statusARead-onlyIdempotent
Get TheHive server health status, version info, and capabilities. No authentication required.
Inputs: no named parameters.
thehive_summarize_job_reportARead-onlyIdempotent
Fetch a Cortex job and return a compact report summary
Inputs: jobId (required), includeRawReport.
thehive_update_alertADestructiveIdempotent
Update an existing alert Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: alertId (required), pap, tlp, tags, +7 more.
thehive_update_caseADestructiveIdempotent
Update an existing case Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: caseId (required), pap, tlp, flag, +12 more.
thehive_update_case_custom_fieldsADestructiveIdempotent
Update custom fields on an existing case Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: caseId (required), customFields (required), dryRun, confirm.
thehive_update_observableADestructiveIdempotent
Update metadata of an existing observable (IOC flag, sighted, TLP/PAP, tags, message). At least one field is required. Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: observableId (required), ioc, pap, tlp, +9 more.
thehive_update_taskADestructiveIdempotent
Update an existing task Requires operator authority (THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true). Preview by default. Execution requires dryRun=false and confirm=true after approval.
Inputs: taskId (required), flag, group, order, +7 more.
thehive_wait_for_jobBRead-onlyIdempotent
Wait up to 50 seconds for a Cortex analyzer job to reach a terminal status
Inputs: jobId (required), intervalMs, maxAttempts.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 57 tools
Most tools target a clearly distinct resource+action (get_case, create_alert, list_tasks, etc.). A few pairs overlap mildly: thehive_run_analyzer vs thehive_run_analyzer_and_wait, and thehive_get_job vs thehive_wait_for_job vs thehive_summarize_job_report, but descriptions clarify the boundaries well enough.
Strong thehive_verb_noun convention throughout. Fine, but with a few deviations: thehive_status and thehive_query lack verbs, and case comments use thehive_create_comment while alert comments use thehive_create_alert_comment, which is asymmetric.
57 tools is very heavy for a single MCP server, well beyond the 25+ threshold. While the domain is broad (cases, alerts, observables, tasks, analytics, responders), many operations could be consolidated, making the surface feel bloated.
Near-complete lifecycle coverage: full CRUD for cases, alerts, observables and tasks, plus comments, logs, tags, bulk ops, similarity search, Cortex analyzers/responders, and a raw query escape hatch. Minor gaps like no task/observable delete or comment edit exist but are workable.
Maintenance
Related MCP Connectors
Lets AI agents analyze API metrics, request logs, and traces, and manage apps and alerts.
Access Pollinations models and API capabilities through agent tools.
SOAR security playbooks for AI agents: fetch, full-text search, and count. Metered via Stripe.
AI-callable tools for API mocking, testing, monitoring, security, and automation.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with Splunk SIEM and TheHive SOAR through a unified MCP interface, providing 12 tools for alert triage, case management, and security operations.MIT
- FlicenseNot gradedqualityDmaintenanceEnables LLM clients to interact with ThreatConnect v3 for case management and threat intelligence, providing typed tools for creating/updating cases, indicators, and artifacts while handling HMAC authentication and API quirks.-
- AlicenseCqualityCmaintenanceGives AI agents analyst-oriented workflows for MISP threat intelligence, including IOC search, pivot, event summarization, report generation, and controlled write proposals with safety and audit logging.251MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to query and manage OpenCTI threat intelligence data, including indicators, observables, reports, malware, and more, with read-only and optional write operations.39 PyPI1MIT