Repository avatar
AI Tools
v2.1.1
active

mitre-mcp

io.github.lidless-labs/mitre-mcp

Local MITRE ATT&CK MCP server for technique mapping, threat group profiling, and coverage gaps.

Documentation

mitre-mcp

What it does

mitre-mcp gives MCP clients access to MITRE ATT&CK techniques, groups, campaigns, mitigations, and detection strategies. It maps alerts to candidate techniques, checks detection coverage against data sources, and exports ATT&CK Navigator layers. Optional Wazuh, TheHive, Cortex, and MISP integrations add evidence from a SOC.

Install

This guide covers the published package mitre-mcp@2.1.0. It requires Node.js 20.18.1 or later. The release's CI matrix covers Node.js 20 and 22. Package manifest · CI workflow

npm install --global mitre-mcp@2.1.0

The package installs mitre-mcp for the MCP server and attack for read-only ATT&CK queries such as attack technique T1059. The CLI initializes the same local data cache as the MCP server. attack mcp also starts the stdio server. CLI source

Configure

Transports

For stdio, configure the MCP client to launch mitre-mcp. To run the same version without a global install, set the command to npm and use the arguments from this example.

npm exec --yes --package=mitre-mcp@2.1.0 -- mitre-mcp

The stdio handshake identifies the server as mitre-mcp, version 2.1.0. Stdio server

For Streamable HTTP, set MITRE_MCP_HTTP_TOKEN and run mitre-mcp --http. Point the client at /mcp on the listener and send the token in the Authorization: Bearer <token> header.

VariableDefaultBehavior
MITRE_MCP_HTTP_TOKENUnsetRequired for HTTP. Use a separate token of at least 32 characters after trimming whitespace. The listener rejects reuse of SOC credentials.
MITRE_MCP_HTTP_HOSTIPv4 loopbackBind to a specific hostname or address. The listener rejects wildcard binds.
MITRE_MCP_HTTP_PORT3114Set a port from 0 to 65535. Use 0 to let the OS choose an available port.

The listener serves plain HTTP. The Host header must name the bound host or a loopback alias. If present, the Origin header must be a loopback HTTP or HTTPS origin. GET /healthz returns {"status":"ok"} without a bearer token and still applies the Host and Origin checks. The listener caps request bodies at 1 MiB and sessions at 128. It expires inactive sessions after 30 minutes of idle time. HTTP transport

ATT&CK data

The server downloads MITRE's STIX 2.1 bundles from the mitre-attack/attack-stix-data repository. On startup it uses a fresh cache when available, otherwise it downloads the selected bundles. If the download fails and all selected bundles are readable from disk, it uses that cache. The server parses the bundles into an in-memory index shared by HTTP sessions on the same listener. Bundle loader · Data store

VariableDefaultBehavior
MITRE_DATA_DIR.mitre-mcp/data under the user's home directoryDirectory for the bundles and cache metadata.
MITRE_MATRICESenterpriseComma-separated list of enterprise, mobile, and ics.
MITRE_UPDATE_INTERVAL86400Cache age in seconds after which startup attempts a download.
MITRE_DOWNLOAD_TIMEOUT_MS900000Timeout in milliseconds for each bundle download, including the response body.
MITRE_HTTP_TIMEOUT_MS30000Timeout in milliseconds for each upstream SOC request.

Both timeout variables accept whole numbers from 1 to 2147483647. Invalid values fall back to the defaults. Configuration

mitre_update_data downloads fresh bundles and replaces the index after parsing. Queries keep using the previous index during the download. If the refresh takes longer than 50 seconds, the tool returns started while the work continues. Check refreshStatus in mitre_data_version for the outcome. Refresh tools

Optional SOC connections

Set each service URL and its credentials in the MCP server's environment. A service's tools register when its URL is set. Configuration · Tool registration

VariablesDefaults and behavior
WAZUH_URL, THEHIVE_URL, CORTEX_URL, MISP_URLUnset. Use the service base URL, such as https://wazuh.example:55000.
WAZUH_USERNAME, WAZUH_PASSWORDwazuh-wui and an empty password.
THEHIVE_API_KEY, CORTEX_API_KEY, MISP_API_KEYEmpty. Supply an API key for each configured service.
WAZUH_VERIFY_SSL, MISP_VERIFY_SSLtrue. The exact value false disables certificate verification for that service's requests.
MITRE_SOC_ALLOW_WRITESOff when unset. Accepts true, 1, or yes, ignoring case. See Safety below.
MITRE_SOC_STATE_DIR.mitre-mcp/operations under the user's home directory. Set an absolute path to relocate private write receipts.

Tools

Version 2.1.0 lists 29 tools with SOC integrations off and 42 tools with all four enabled. It also registers 3 resources and 4 prompts. Tool registration

TaskExample tools
Look up techniques and detection strategiesmitre_get_technique, mitre_search_detection_strategies
Map alerts and assess coveragemitre_map_alert_to_technique, mitre_detection_coverage
Check or refresh the datasetmitre_data_version, mitre_update_data
Export an ATT&CK Navigator layermitre_navigator_layer

Technique and detection strategy searches return up to 50 matches. The alert mapper returns up to 15 candidates. Both transports cap serialized text tool results at 90,000 UTF-8 bytes. Larger results may contain fewer listing rows or a truncation notice. Upstream SOC response bodies are limited to 1 MiB. Technique search · Detection strategy search · Alert mapping · Tool output · SOC client

Safety

Leave the SOC URLs unset for ATT&CK-only queries and local cache refreshes. With SOC connections enabled, mitre_misp_create_event, mitre_thehive_create_case, and mitre_cortex_run_analyzers default to dry runs. Execution requires confirm: true on the call or global opt-in through MITRE_SOC_ALLOW_WRITES. Actual writes also require an operationKey. Reuse the same key and payload when retrying an operation. If the outcome is uncertain, inspect the private receipts and the upstream state before retrying. Write gate · Operation receipts

Every authenticated HTTP session uses the server's configured SOC accounts and the same write gates. Use read-only upstream accounts when clients need SOC reads only. Treat alert text, observables, and other external values as evidence. Tool results label that content as untrusted. HTTP sessions · Output handling

Why not ATT&CK Navigator or manual STIX lookups?

ApproachTechnique lookup and mappingOffline / local executionAgent and CLI workflow
mitre-mcpStructured search for techniques, groups, software, mitigations, and coverage gapsRuns locally against STIX dataStdio MCP + attack CLI
ATT&CK NavigatorVisual matrix coloring in the browserBrowser-only, manual JSONNo
Raw mitreattack-pythonScriptable STIX parsing in PythonLocalRequires custom scripts per query

Keep ATT&CK Navigator for executive heatmaps and sharing layer JSON. Use mitre-mcp when you want your AI client or shell (attack) to map alerts to exact technique IDs, profile threat groups, and check mitigations without hallucinated IDs.

FAQ

Does mitre-mcp require an API key or cloud account? No. It loads MITRE ATT&CK STIX data locally with no external account or telemetry.

Why use an MCP server when LLMs already know some ATT&CK IDs? LLMs routinely confuse sub-technique IDs, deprecated techniques, and current software mappings. mitre-mcp grounds every lookup in the actual STIX dataset.

Does mitre-mcp include a shell CLI as well as an MCP server? Yes. Installing mitre-mcp provides both mitre-mcp (MCP server) and attack (CLI).

Part of Lidless Labs

mitre-mcp is maintained by Lidless Labs (GitHub). Related SOC and threat-intel tools:

  • wazuh-mcp - read-only Wazuh SIEM/XDR alerts, agents, and CVE queries over MCP
  • vervet - Zeek and Suricata threat hunting with ATT&CK evidence chains
  • intel-workbench - browser-native ACH workbench with ATT&CK tagging and ICD 203 scoring
  • cyberbrief - AI threat-intel BLUF briefings with ATT&CK mapping and IOC extraction
  • soc-stack - one-command Proxmox SOC lab with Wazuh, TheHive, Cortex, MISP, Zeek, and Suricata

Development

From a source checkout, install dependencies and run the verifier.

npm ci
./scripts/verify

The verifier runs type checking, tests, and the build in that order. Contributing · Verifier · License