mitre-mcp
This server provides MITRE ATT&CK knowledge via MCP tools for querying adversary techniques, tactics, groups, software, and mitigations.
Technique lookup: Get all techniques with filtering, fetch by ID (e.g., T1055), or list techniques by tactic.
Tactic listing: Retrieve all tactical categories for enterprise, mobile, or ICS domains.
Threat group intelligence: List threat actor groups and see the techniques a specific group uses.
Software and malware: List software/tools with optional type filtering (e.g., malware).
Mitigation mapping: List mitigations and discover which techniques each mitigation addresses.
Filtering and pagination: Control results with domain selection, subtechnique inclusion, revoked/deprecated removal, and limit/offset paging.
Deployment flexibility: Run over stdio for local clients or HTTP for web/remote access with CORS support and optional bearer-token authentication.
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., "@mitre-mcp List techniques used by APT29"
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.
mitre-mcp: MITRE ATT&CK MCP Server
Production-ready Model Context Protocol (MCP) server that exposes the MITRE ATT&CK® framework to LLMs, AI assistants, and automation workflows. Built with the official MCP Python SDK and mitreattack-python library for secure, high-performance access to adversary tactics, techniques, groups, software, and mitigations.
Available in the MCP Registry (search for io.github.luongnv89/mitre-mcp).
Highlights
LLM-native experience – Seamless integration with Claude, Windsurf, Cursor, and any MCP-compatible client
Secure-by-default – Validated inputs, TLS verification, disk-space checks, and structured error handling
High performance – O(1) technique lookups using pre-built indices (80-95% faster than scanning)
Flexible deployment – stdio for local clients or HTTP server for web-based integrations
Related MCP server: MITRE ATT&CK MCP Server
Table of Contents
Features
Comprehensive MITRE ATT&CK Coverage - All techniques, tactics, groups, software, and mitigations
Multi-Domain Support - Enterprise, Mobile, and ICS ATT&CK domains
Intelligent Caching - Atomic, per-user caching with conditional refreshes, stale-serve with background refresh, and configurable expiry (default: 14 days)
Fast Startup - Enterprise loads eagerly; mobile and ICS domains lazy-load on first use
Performance Optimized - O(1) lookups using pre-built indices (80-95% faster)
Dual Transport Modes - stdio for local clients, HTTP for web integrations
CORS-Enabled HTTP Server - Async notifications and cross-origin request support
Comprehensive Testing - pytest suite with an enforced coverage gate
Pre-commit Quality Checks - Automated formatting, linting, type checking, and security scanning
Input Validation - Secure-by-default with validated inputs and sanitized responses
Programmatic API - Python and Node.js clients (see API-INTEGRATION.md)
Available MCP Tools
Tool Name | Description |
| List all techniques with filtering options |
| Look up specific technique by ID (e.g., T1055) |
| Get techniques for a specific tactic (e.g., persistence) |
| List all tactical categories |
| List all threat actor groups |
| Get techniques used by a specific group (e.g., APT29) |
| List malware and tools with filtering |
| List all security mitigations |
| Get techniques addressed by a specific mitigation |
All list and relationship tools accept limit/offset paging parameters
(default page size 20, maximum 200 — see MITRE_DEFAULT_PAGE_SIZE and
MITRE_MAX_PAGE_SIZE in CONTRIBUTING.md) and return a pagination
block (total, offset, limit, has_more).
Quick Start
Installation
Create and activate a virtual environment:
python3 -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate.batInstall from PyPI:
pip install mitre-mcpVerify installation:
mitre-mcp --helpHTTP Mode (Recommended)
Start the server:
mitre-mcp --httpExpected output:
2025-11-17 22:40:10,991 - mitre_mcp.mitre_mcp_server - INFO - Starting MITRE ATT&CK MCP Server (HTTP mode on localhost:8000)
======================================================================
MITRE ATT&CK MCP Server is ready (Streamable HTTP mode)
Server URL: http://localhost:8000
MCP Endpoint: http://localhost:8000/mcp
Add this to your MCP client configuration:
{
"mcpServers": {
"mitreattack": {
"url": "http://localhost:8000/mcp"
}
}
}
======================================================================Configure your MCP client:
Add this JSON to your client's configuration file:
{
"mcpServers": {
"mitreattack": {
"url": "http://localhost:8000/mcp"
}
}
}Configuration file locations:
macOS (Claude Desktop):
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows (Claude Desktop):
%APPDATA%\Claude\claude_desktop_config.jsonLinux (Claude Desktop):
~/.config/Claude/claude_desktop_config.jsonVSCode: Configure in your MCP extension settings
Custom host and port:
mitre-mcp --http --host 0.0.0.0 --port 8080Then use http://your-server-ip:8080/mcp in your client configuration.
Security — a non-loopback bind is unauthenticated by default. Binding
--host 0.0.0.0(or any non-loopback address) exposes the MCP endpoint to the whole network: the data is public, but the endpoint is an open CPU and memory amplifier. Either setMITRE_HTTP_AUTH_TOKENso every request must carryAuthorization: Bearer <token>:MITRE_HTTP_AUTH_TOKEN=$(openssl rand -hex 32) mitre-mcp --http --host 0.0.0.0 --port 8080or place an authenticating reverse proxy in front of a loopback-only server — nginx example (TLS + basic auth →
127.0.0.1:8000):server { listen 443 ssl; server_name mcp.example.com; ssl_certificate /etc/nginx/certs/mcp.example.com.pem; ssl_certificate_key /etc/nginx/certs/mcp.example.com.key; location / { auth_basic "mitre-mcp"; auth_basic_user_file /etc/nginx/.htpasswd; proxy_pass http://127.0.0.1:8000; proxy_set_header Host $host; } }The server logs a warning at startup whenever it binds a non-loopback host without
MITRE_HTTP_AUTH_TOKENset.
Why HTTP mode?
Multiple clients can connect simultaneously
Better concurrency and async support
Easier debugging with HTTP tools
CORS support for web-based clients
No path configuration needed
stdio Mode (Alternative)
For local-only clients that require stdio transport:
mitre-mcpClient configuration:
{
"mcpServers": {
"mitreattack": {
"command": "/absolute/path/to/.venv/bin/python",
"args": ["-m", "mitre_mcp.mitre_mcp_server"]
}
}
}Note: Use absolute paths. HTTP mode is recommended for most use cases.
Force Data Download
Force a fresh download of MITRE ATT&CK data:
mitre-mcp --http --force-downloadExample Screenshots
VSCode Configuration:

Tool Invocation:

Results:

Web Frontend
A React chat UI lives in frontend/. A hosted copy is at
https://montimage.github.io/mitre-mcp/. That public HTTPS page can call
cloud LLM providers (Gemini, OpenRouter). It cannot reach anything
on this machine — mitre-mcp on localhost:8000, Ollama, LM Studio, or
any other loopback endpoint. The browser blocks public sites from the
loopback address space (net::ERR_SSL_PROTOCOL_ERROR if it upgrades the
MCP URL to https://localhost:8000/mcp, CORS / private-network errors for
http://localhost:…/v1/models).
Use the local UI whenever the MCP server or the LLM runs on your computer.
Local setup (MCP server + chat UI)
Two terminals, from a clone of this repository.
1. Install and start the MCP server (Python >= 3.11):
uv sync --locked --extra dev
source .venv/bin/activate
mitre-mcp --httpWait for MCP Endpoint: http://localhost:8000/mcp. The first start
downloads ATT&CK data into ~/.cache/mitre-mcp.
2. Start the chat UI (Node 24):
cd frontend
npm ci
npm run devOpen http://localhost:5173/ — not the GitHub Pages URL.
3. Settings (gear in the chat header):
Setting | Local value |
MCP host / port |
|
LLM provider | Ollama, Gemini, OpenRouter, or OpenAI-compatible |
For a local OpenAI-compatible server (LM Studio, llama.cpp, vLLM, …):
Provider: OpenAI-compatible
Endpoint URL:
http://localhost:<port>/v1(example:http://localhost:20128/v1)Model: an id the endpoint lists at
/v1/modelsAPI key: leave empty unless that server requires one
The endpoint must allow CORS from http://localhost:5173. If Ollama is
not running, do not leave Ollama selected — the default probe hits
localhost:11434 and Vite logs http proxy error: /api/tags.
For more details, see frontend/README.md.
Documentation
We provide three comprehensive guides tailored to different use cases:
1. Beginner's Guide
Beginner-Playbook.md - For those new to MITRE ATT&CK or cybersecurity
Ideal for:
Non-technical users
Security awareness training
Basic threat intelligence
General cybersecurity education
2. Advanced Playbook
Playbook.md - For security professionals using MCP clients
Ideal for:
Security analysts
Threat hunters
Incident responders
Security engineers
Includes 10 ready-to-use scenarios:
Threat Intelligence
Detection Engineering
Threat Hunting
Red Teaming
Security Assessment
Incident Response
Security Operations
Security Training
Vendor Evaluation
Risk Management
3. API Integration Guide
API-INTEGRATION.md - For developers building automation and custom integrations
Ideal for:
Backend developers
Automation engineers
Data pipeline developers
Custom tooling projects
Includes:
Complete Python and Node.js client implementations
Protocol requirements and examples
Testing and debugging tools
Common integration patterns
Configuration
Environment Variables
Set before starting mitre-mcp to customize behavior:
Variable | Default | Purpose |
| Official MITRE CTI GitHub URLs | Override ATT&CK bundle locations or point to internal mirror |
|
| Store cached bundles in custom directory |
|
| HTTP timeout in seconds for bundle downloads |
|
| Maximum age before cached data is refreshed |
|
| Disk space threshold checked before downloading |
|
| Default and maximum records returned by list tools |
|
| Trimmed description length in responses |
|
| Logging verbosity (DEBUG, INFO, WARNING, etc.) |
| localhost origins | CORS allowed origins for HTTP mode (comma-separated list; |
| unset (no auth) | Bearer token required on every HTTP request when set; recommended for non-loopback binds |
To let a hosted UI (e.g. the Netlify deployment) call the server cross-origin, set MITRE_CORS_ORIGINS to its origin, e.g. MITRE_CORS_ORIGINS="https://mitre-mcp.netlify.app,http://localhost:5173". Credentials are never allowed in any CORS configuration.
Data Caching
The server automatically caches MITRE ATT&CK data to improve performance:
On first run, downloads and stores data in the per-user cache directory (
$XDG_CACHE_HOME/mitre-mcp, or~/.cache/mitre-mcpby default)On subsequent runs, uses cached data if less than 14 days old
Automatically refreshes data older than 14 days, using conditional requests — a
304 Not Modifiedanswer reuses the cached bundles. Expired-but-present data is served immediately while the refresh runs in the background; startup never blocks on it and a failed refresh keeps the existing cache.Cache files are written atomically (temp file + rename), so a failed download never corrupts a good cache
Only the enterprise domain is parsed at startup; the mobile and ICS bundles are lazy-loaded on first use, so cold starts stay fast when they are never queried
Use
--force-downloadto force fresh download
Performance
Scenario | Improvement | Notes |
Enterprise technique lookup | 80-95% faster | Pre-built O(1) indices for groups, mitigations, and techniques |
ATT&CK data downloads | 20-40% faster | HTTP connection pooling with TLS session reuse |
Warm cache startup | <2s | Cached bundles reused for instant LLM queries |
Benchmarks: macOS 14 / Apple M3 Pro with Python 3.11. Use MITRE_LOG_LEVEL=DEBUG for timing logs.
Programmatic API
For automation, custom integrations, and batch processing, see API-INTEGRATION.md.
Quick example (Python):
from clients.python.mini_mcp_client import MitreMCPClient
async def main():
client = MitreMCPClient(host="localhost", port=8000)
# Get all tactics
tactics = await client.call_tool("get_tactics", {"domain": "enterprise-attack"})
# Get techniques for a group
techniques = await client.call_tool(
"get_techniques_used_by_group", {"group_name": "APT29", "domain": "enterprise-attack"}
)Available clients:
Python:
clients/python/mini-mcp-client.pywith full CLINode.js:
clients/nodejs/mini-mcp-client.jswith full CLI
See API-INTEGRATION.md for complete documentation.
Development
Clone and Install
git clone https://github.com/montimage/mitre-mcp.git
cd mitre-mcp
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"Install Pre-commit Hooks
pre-commit installThis sets up automatic code quality checks before each commit.
Run Tests
pytest # Full test suite with coverage
pre-commit run --all-files # All quality checksCode Quality Tools
Formatting:
black - Python code formatter
isort - Import organizer
prettier - YAML/JSON/Markdown formatter
Linting & Type Checking:
flake8 - Python linter
mypy - Static type checker
pydocstyle - Docstring checker
Security:
bandit - Security vulnerability scanner
File validators - YAML, JSON, TOML, private key detection
Testing:
pytest - test suite with coverage gate before commit
Installation test - Package verification
Import verification - Module importability
CLI test - Entry point validation
Troubleshooting
Download fails with "Insufficient disk space"
Free at least 200 MB in the data directory or set
MITRE_DATA_DIR=/path/to/storage
Data never updates
Cached bundles refresh automatically after 14 days
Force refresh:
mitre-mcp --force-downloador delete~/.cache/mitre-mcp
Tool calls return errors
Ensure technique IDs follow
T####orT####.###formatKeep names/tactics under 100 characters
MCP client cannot discover server
Verify client configuration points to correct Python path
Test manually: run
mitre-mcpand verify server startsFor HTTP mode: ensure
urlfield is set correctly
Chat UI: POST https://localhost:8000/mcp net::ERR_SSL_PROTOCOL_ERROR
The GitHub Pages UI is HTTPS, so it rewrites
localhosttohttps://localhost:8000.mitre-mcp --httphas no TLS. Open http://localhost:5173 instead (see Web Frontend).
Chat UI: CORS / “loopback address space” when calling a local LLM
Same cause: a public origin cannot fetch
http://localhost:…. Run the frontend locally and point the OpenAI-compatible provider athttp://localhost:<port>/v1.
Module not found: mcp.server.fastmcp
Reinstall the pinned MCP SDK:
pip install "mcp>=1.28.1,<2"(ormcp[cli]>=1.28.1,<2if you also want the CLI extra) in your virtual environment — thefastmcpdistribution does not providemcp.server.fastmcp; the package's declared pin does
FAQ
Does mitre-mcp work offline?
Yes. Once bundles are cached, the server works offline until cache expires.
Which Python versions are supported?
Python 3.11 through 3.14 (see
pyproject.toml).
How often is data refreshed?
By default every 24 hours. Adjust
MITRE_CACHE_EXPIRY_DAYSor use--force-download.
Is HTTP mode safe for production?
HTTP mode serves on localhost:8000 by default. Use firewall or reverse proxy if exposing externally.
License
MIT License - See LICENSE file for details.
About Montimage
mitre-mcp is developed and maintained by Montimage, a cybersecurity company specializing in network monitoring, security analysis, and AI-driven threat detection solutions. We develop innovative tools that help organizations protect their digital assets and ensure network security.
For questions or support: luong.nguyen@montimage.eu
Available Tools
9 toolsget_groupsGet GroupsARead-onlyIdempotent
Get groups from the MITRE ATT&CK framework with token-optimized responses.
Args: ctx: FastMCP request context (injected by the server) domain: Domain to query (enterprise-attack, mobile-attack, or ics-attack) remove_revoked_deprecated: Remove revoked or deprecated objects limit: Maximum number of groups to return (default: 20) offset: Index to start from when returning groups (for pagination)
Returns: Dictionary containing a list of groups and pagination metadata
Inputs: limit, domain, offset, remove_revoked_deprecated. Returns: get_groups result.
get_mitigationsGet MitigationsARead-onlyIdempotent
Get mitigations from the MITRE ATT&CK framework with token-optimized responses.
Args: ctx: FastMCP request context (injected by the server) domain: Domain to query (enterprise-attack, mobile-attack, or ics-attack) remove_revoked_deprecated: Remove revoked or deprecated objects limit: Maximum number of mitigations to return (default: 20) offset: Index to start from when returning mitigations (for pagination)
Returns: Dictionary containing a list of mitigations and pagination metadata
Inputs: limit, domain, offset, remove_revoked_deprecated. Returns: get_mitigations result.
get_softwareGet SoftwareARead-onlyIdempotent
Get software from the MITRE ATT&CK framework with token-optimized responses.
Args: ctx: FastMCP request context (injected by the server) domain: Domain to query (enterprise-attack, mobile-attack, or ics-attack) remove_revoked_deprecated: Remove revoked or deprecated objects software_types: Optional list of ATT&CK object types to include (e.g., ["malware"]) limit: Maximum number of software to return (default: 20) offset: Index to start from when returning software (for pagination)
Returns: Dictionary containing a list of software and pagination metadata
Inputs: limit, domain, offset, software_types, +1 more. Returns: get_software result.
get_tacticsGet TacticsBRead-onlyIdempotent
Get tactics from the MITRE ATT&CK framework with token-optimized responses.
Args: ctx: FastMCP request context (injected by the server) domain: Domain to query (enterprise-attack, mobile-attack, or ics-attack) remove_revoked_deprecated: Remove revoked or deprecated objects limit: Maximum number of tactics to return (default: 20) offset: Index to start from when returning tactics (for pagination)
Returns: Dictionary containing a list of tactics and pagination metadata
Inputs: limit, domain, offset, remove_revoked_deprecated. Returns: get_tactics result.
get_technique_by_idGet Technique by IDARead-onlyIdempotent
Get a technique by its MITRE ATT&CK ID.
Args: ctx: FastMCP request context (injected by the server) technique_id: The MITRE ATT&CK ID of the technique (e.g., 'T1055') domain: Domain to query (enterprise-attack, mobile-attack, or ics-attack)
Returns: Dictionary containing the technique
Inputs: technique_id (required), domain. Returns: get_technique_by_id result.
get_techniquesGet TechniquesARead-onlyIdempotent
Get techniques from the MITRE ATT&CK framework with token-optimized responses.
Args: ctx: FastMCP request context (injected by the server) domain: Domain to query (enterprise-attack, mobile-attack, or ics-attack) include_subtechniques: Include subtechniques in the result remove_revoked_deprecated: Remove revoked or deprecated objects include_descriptions: Whether to include technique descriptions (uses more tokens) limit: Maximum number of techniques to return (default: 20) offset: Index to start from when returning techniques (for pagination)
Returns: Dictionary containing a list of techniques and pagination metadata
Inputs: limit, domain, offset, include_descriptions, +2 more. Returns: get_techniques result: paged technique list plus pagination metadata.
get_techniques_by_tacticGet Techniques by TacticARead-onlyIdempotent
Get techniques by tactic.
Args: ctx: FastMCP request context (injected by the server) tactic_shortname: The shortname of the tactic (e.g., 'defense-evasion') domain: Domain to query (enterprise-attack, mobile-attack, or ics-attack) remove_revoked_deprecated: Remove revoked or deprecated objects limit: Maximum number of techniques to return (default: 20) offset: Index to start from when returning techniques (for pagination)
Returns: Dictionary containing a list of techniques and pagination metadata
Inputs: tactic_shortname (required), limit, domain, offset, +1 more. Returns: Result for tools returning a flat formatted technique list.
get_techniques_mitigated_by_mitigationGet Techniques Mitigated by MitigationBRead-onlyIdempotent
Get techniques mitigated by a mitigation.
Args: ctx: FastMCP request context (injected by the server) mitigation_name: The name of the mitigation domain: Domain to query (enterprise-attack, mobile-attack, or ics-attack) limit: Maximum number of techniques to return (default: 20) offset: Index to start from when returning techniques (for pagination)
Returns: Dictionary containing the mitigation, a list of techniques and pagination metadata
Inputs: mitigation_name (required), limit, domain, offset. Returns: get_techniques_mitigated_by_mitigation result.
get_techniques_used_by_groupGet Techniques Used by GroupARead-onlyIdempotent
Get techniques used by a group.
Args: ctx: FastMCP request context (injected by the server) group_name: The name of the group domain: Domain to query (enterprise-attack, mobile-attack, or ics-attack) limit: Maximum number of techniques to return (default: 20) offset: Index to start from when returning techniques (for pagination)
Returns: Dictionary containing the group, a list of techniques and pagination metadata
Inputs: group_name (required), limit, domain, offset. Returns: get_techniques_used_by_group result.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct ATT&CK entity or relationship, and the three technique-related tools are clearly differentiated by their parameters (all techniques, by tactic, by ID, used by group, mitigated by mitigation). There is no meaningful overlap or ambiguity between tool purposes.
All tools consistently use the get_ prefix with entity names, and relationship queries follow a predictable get_techniques_by/used_by/mitigated_by pattern. This makes the tool surface easy to scan and understand.
Nine tools is well-scoped for a read-only MITRE ATT&CK interface: five entity listing tools, one ID lookup, and three relationship queries. Each tool earns its place and no redundant tools are present.
The core ATT&CK entities and key relationships are covered, including techniques, tactics, groups, software, and mitigations. However, by-ID lookups exist only for techniques, and direct software-to-technique or group-to-software relationship queries are missing, so some workflows require pagination or chaining.
Maintenance
Related MCP Connectors
Query and retrieve information about various adversarial tactics and techniques used in cyber atta…
Deltabridge brings an AI-native cyber threat intelligence platform into your AI agent. Search a knowledge graph of 400,000+ threat actors, malware families, vulnerabilities, indicators and campaigns, mapped to MITRE ATT&CK. Look up and enrich IOCs, trace links between entities and read living briefs built from 300+ open sources. Read-only, scoped to your organisation, with OAuth sign-in or an API key. Included on Researcher, Business and Enterprise plans.
MITRE ATT&CK MCP — STIX bundles from github.com/mitre/cti.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables querying the MITRE ATT\&CK framework for adversarial tactics, techniques, mitigations, and detection methods through natural language, supporting both ID-based and fuzzy name-based searches.3-
- FlicenseBqualityDmaintenanceProvides comprehensive access to the MITRE ATT\&CK knowledge base with 50+ tools for querying threat actors, malware, and techniques, including automatic ATT\&CK Navigator layer generation for threat analysis and visualization.5545-
- AlicenseAqualityBmaintenanceEnables AI-native access to the MITRE ATT\&CK framework, allowing LLMs and agents to query techniques, threat groups, software, and generate ATT\&CK Navigator layers for threat intelligence and security workflows.65171 npm5Apache 2.0
- AlicenseBqualityCmaintenanceEnables cyber defenders to query ATT\&CK techniques, list tactics, map incidents to techniques, look up threat actor groups and mitigations, all via the MCP protocol.5MIT