Skip to main content
Glama
thehive-mcp

thehive-mcp

by lidless-labs

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 build

Point 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.js

The 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

thehive_list_cases

List cases with filters (status, severity, tags, owner)

thehive_get_case

Get a specific case by ID

thehive_create_case

Create a new case

thehive_update_case

Update case fields. Requires operator approval

thehive_search_cases

Search cases by title keyword

thehive_close_case

Close a case with resolution status and summary. Requires operator approval

thehive_assign_case

Assign a case to a user. Requires operator approval

thehive_update_case_custom_fields

Update case custom fields

thehive_add_case_tags

Add tags without replacing existing tags

thehive_remove_case_tags

Remove selected tags

thehive_set_case_flag

Set or clear the case flag

thehive_bulk_assign_cases

Assign multiple cases to a user. Requires THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true

thehive_bulk_close_cases

Close multiple cases with the same resolution. Requires THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true

thehive_case_timeline_summary

Summarize case details, tasks, observables, and comments

thehive_delete_case

Permanently delete a case (with optional force). Requires THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true

thehive_merge_cases

Merge multiple cases into one (irreversible). Requires THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true

Alerts (10 tools)

Tool

Description

thehive_list_alerts

List alerts with filters (status, severity, source, type)

thehive_get_alert

Get a specific alert by ID

thehive_create_alert

Create a new alert

thehive_update_alert

Update alert fields. Requires operator approval

thehive_promote_alert

Promote an alert to a case (creates a new case). Requires THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true

thehive_delete_alert

Permanently delete an alert. Requires THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true

thehive_list_alert_observables

List observables attached to an alert

thehive_list_alert_comments

List comments on an alert

thehive_create_alert_observable

Add an observable to an alert without promoting it

thehive_create_alert_comment

Add a comment to an alert

Tasks (4 tools)

Tool

Description

thehive_list_tasks

List tasks for a case

thehive_get_task

Get a specific task by ID

thehive_create_task

Create a task in a case

thehive_update_task

Update task fields (status, assignee, etc.)

Observables (6 tools)

Tool

Description

thehive_list_observables

List observables for a case

thehive_get_observable

Get a specific observable by ID

thehive_create_observable

Add a single observable to a case

thehive_create_observable_bulk

Add multiple observables of the same type in one request

thehive_update_observable

Update an observable (IOC, sighted, TLP/PAP, tags, message)

thehive_search_observables

Search observables across all cases

Task Logs (2 tools)

Tool

Description

thehive_list_task_logs

List log entries for a task

thehive_create_task_log

Add a log entry to a task

Comments (2 tools)

Tool

Description

thehive_list_comments

List comments on a case

thehive_create_comment

Add a comment to a case

Users (2 tools)

Tool

Description

thehive_list_users

List users in the organization

thehive_get_current_user

Get the authenticated user's profile

Cortex (10 tools)

Tool

Description

thehive_list_analyzers

List available Cortex analyzers

thehive_get_observable_enrichment_options

List analyzers that can enrich an observable

thehive_run_analyzer

Run a Cortex analyzer on an observable

thehive_run_analyzer_and_wait

Submit an analyzer and wait for completion within a shared 50-second budget

thehive_get_job

Get analyzer job status and results

thehive_wait_for_job

Poll a job for up to 50 seconds

thehive_summarize_job_report

Return a compact analyzer report summary

thehive_list_responders

List Cortex responders available for a case, alert, task, or observable

thehive_run_responder

Run a Cortex responder on an entity. Requires THEHIVE_ALLOW_DESTRUCTIVE_TOOLS=true

thehive_list_actions

List past responder actions on an entity

Similarity (2 tools)

Tool

Description

thehive_get_similar_cases

Cases sharing observables with an alert or case

thehive_get_similar_alerts

Alerts sharing observables with an alert or case

Query (1 tool)

Tool

Description

thehive_query

Execute guarded raw TheHive Query DSL for complex searches when enabled with THEHIVE_ENABLE_RAW_QUERY=true

Templates (1 tool)

Tool

Description

thehive_list_case_templates

List available case templates

Status (1 tool)

Tool

Description

thehive_status

Get server health, version, and capabilities

Configuration

Set environment variables:

Variable

Required

Default

Description

THEHIVE_URL

Yes

-

TheHive instance URL using http or https (e.g. https://192.0.2.10:9000)

THEHIVE_API_KEY

Yes

-

API key for authentication

THEHIVE_VERIFY_SSL

No

true

Set to false only for trusted lab systems with self-signed TLS. When disabled, TLS verification is relaxed only for TheHive requests (via a scoped dispatcher), not for the whole process

THEHIVE_TIMEOUT

No

30

Request timeout in seconds (1-300)

THEHIVE_ALLOW_DESTRUCTIVE_TOOLS

No

false

Enable local previews for all 28 mutations, including additive writes and analyzer submissions. Execution also requires dryRun: false and confirm: true

THEHIVE_ALLOW_INSECURE_HTTP

No

false

Explicitly permit plaintext HTTP API credentials outside loopback

THEHIVE_ENABLE_RAW_QUERY

No

false

Set to true to enable the raw Query DSL MCP tool

Prompt Templates

Prompt

Description

case-summary

Generate a comprehensive incident case report

alert-triage

Triage and analyze an alert for escalation

incident-response

Guided incident response workflow

Resources

Resource

URI

Description

Open Cases

thehive://cases/open

Currently open cases

New Alerts

thehive://alerts/new

Unprocessed alerts

Current User

thehive://user/current

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.js

Add --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.js

Codex 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 list

Hermes 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 admin org only has platform permissions. Create a separate org (e.g. "SOC") with an org-admin user 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 data as an array.

  • Cortex connector endpoints live under /api/connector/ not /api/v1/.

  • description is 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, and thehive_bulk_close_cases require THEHIVE_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 both dryRun: false and confirm: true are 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. 3 is Amber+Strict and 4 is Red. PAP still uses the 0–3 range.

  • Raw query is gated. thehive_query requires THEHIVE_ENABLE_RAW_QUERY=true.

  • SSL verification is scoped. Setting THEHIVE_VERIFY_SSL=false relaxes 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_TOOLS hands 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 dev

Contributing

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

MIT


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 from https://github.com/lidless-labs/thehive-mcp.git.

  • NODE_VERSION: an exact Node 22 version at least 22.12.0, without a v prefix.

  • NODE_ARCH: x64 or arm64, matching the guest architecture.

  • NODE_SHA256: the 64-character SHA-256 of that version's node-v<VERSION>-linux-<ARCH>.tar.xz archive.

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 tools
thehive_add_case_tagsA
Idempotent

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_caseA
DestructiveIdempotent

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_casesA
DestructiveIdempotent

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_casesA
DestructiveIdempotent

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_summaryB
Read-onlyIdempotent

Summarize a case with related tasks, observables, and comments

Inputs: caseId (required), limit.

thehive_close_caseA
DestructiveIdempotent

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_alertA
Destructive

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_caseA
Destructive

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_alertB
Read-onlyIdempotent

Get detailed information about a specific alert

Inputs: alertId (required).

thehive_get_caseB
Read-onlyIdempotent

Get detailed information about a specific case

Inputs: caseId (required).

thehive_get_current_userA
Read-onlyIdempotent

Get the currently authenticated user's profile

Inputs: no named parameters.

thehive_get_jobB
Read-onlyIdempotent

Get the status and results of a Cortex analyzer job

Inputs: jobId (required).

thehive_get_observableB
Read-onlyIdempotent

Get detailed information about a specific observable

Inputs: observableId (required).

thehive_get_observable_enrichment_optionsA
Read-onlyIdempotent

List Cortex analyzers that can enrich a specific observable

Inputs: observableId (required).

thehive_get_similar_alertsB
Read-onlyIdempotent

List alerts that share observables with a given alert or case (TheHive similarity matching)

Inputs: entityId (required), entityType (required), limit.

thehive_get_similar_casesA
Read-onlyIdempotent

List cases that share observables with a given alert or case (TheHive similarity matching)

Inputs: entityId (required), entityType (required), limit.

thehive_get_taskC
Read-onlyIdempotent

Get detailed information about a specific task

Inputs: taskId (required).

thehive_list_actionsA
Read-onlyIdempotent

List past Cortex responder actions run on a case, alert, task, or observable

Inputs: entityId (required), entityType (required).

thehive_list_alert_commentsB
Read-onlyIdempotent

List comments on an alert, newest first

Inputs: alertId (required), limit.

thehive_list_alert_observablesB
Read-onlyIdempotent

List observables (IOCs) attached to an alert

Inputs: alertId (required), limit.

thehive_list_alertsC
Read-onlyIdempotent

List alerts from TheHive with optional filters

Inputs: tags, type, limit, source, +2 more.

thehive_list_analyzersB
Read-onlyIdempotent

List available Cortex analyzers that can be run on observables

Inputs: dataType.

thehive_list_casesC
Read-onlyIdempotent

List cases from TheHive with optional filters

Inputs: tags, limit, owner, status, +1 more.

thehive_list_case_templatesA
Read-onlyIdempotent

List available case templates. Use these when creating cases to auto-populate fields and tasks.

Inputs: limit.

thehive_list_commentsC
Read-onlyIdempotent

List comments on a specific case

Inputs: caseId (required), limit.

thehive_list_observablesA
Read-onlyIdempotent

List observables (IOCs) for a specific case

Inputs: caseId (required), ioc, limit, dataType.

thehive_list_respondersA
Read-onlyIdempotent

List Cortex responders available for a case, alert, task, or observable

Inputs: entityId (required), entityType (required).

thehive_list_task_logsB
Read-onlyIdempotent

List log entries for a specific task

Inputs: taskId (required), limit.

thehive_list_tasksC
Read-onlyIdempotent

List tasks for a specific case

Inputs: caseId (required), limit, status, assignee.

thehive_list_usersB
Read-onlyIdempotent

List users in the TheHive organization

Inputs: limit.

thehive_merge_casesA
Destructive

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_alertA
Destructive

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_queryA
Read-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_tagsA
DestructiveIdempotent

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_responderA
Destructive

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_casesB
Read-onlyIdempotent

Search cases by title keyword

Inputs: query (required), limit.

thehive_search_observablesB
Read-onlyIdempotent

Search observables across all cases

Inputs: ioc, data, tags, limit, +1 more.

thehive_set_case_flagA
DestructiveIdempotent

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_statusA
Read-onlyIdempotent

Get TheHive server health status, version info, and capabilities. No authentication required.

Inputs: no named parameters.

thehive_summarize_job_reportA
Read-onlyIdempotent

Fetch a Cortex job and return a compact report summary

Inputs: jobId (required), includeRawReport.

thehive_update_alertA
DestructiveIdempotent

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_caseA
DestructiveIdempotent

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_fieldsA
DestructiveIdempotent

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_observableA
DestructiveIdempotent

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_taskA
DestructiveIdempotent

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_jobB
Read-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

    B3.4/5.0

    Scored across 57 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count2/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      -
    • A
      license
      C
      quality
      C
      maintenance
      Gives 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.
      25
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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 PyPI
      1
      MIT