mitre-attack
A Model-Context Protocol server for the MITRE ATT&CK knowledge base
claude mcp add --transport stdio stoyky-mitre-attack-mcp mitre-attack-mcp
How to use
The MITRE ATT&CK MCP Server provides programmatic access to the MITRE ATT&CK knowledge base through a Model-Context Protocol (MCP) interface. It exposes a set of tools for querying techniques, threats, and object relationships, generating visual ATT&CK Navigator layers, and exploring attribution between threat actors, malware, and techniques. Typical usage involves starting the MCP server via the configured command and then issuing MCP requests to retrieve structured knowledge base data, perform overlap analyses, and produce navigation-ready layer metadata for threat analysis workflows. The server is designed to integrate with MCP clients such as Claude AI, enabling seamless querying and data retrieval within conversational or automation pipelines. You can also leverage its built-in capability to generate ATT&CK Navigator layers to visualize technique usage across actors or campaigns.
To connect, configure your MCP client (e.g., Claude) to point at the mitre-attack MCP server as shown in the example configuration. Once configured, you can query for malware, actors, and techniques, retrieve relationships, and request visualizations. The server supports querying detailed information about specific techniques or threat actors, discovering relationships between tools and actors, and generating cross-actor or cross-movie campaign overlays for analysis. If you need a data directory for caching or custom storage, the server accepts a --data-dir option that you can supply via your MCP client configuration.
How to install
Prerequisites:
- Git
- Python 3.x
- PipX
Installation steps:
- Install the MCP server via PipX directly from GitHub:
pipx install git+https://github.com/stoyky/mitre-attack-mcp
- Verify installation by listing installed PipX packages or running the command in a dry-run mode if supported by the project:
pipx list
- (Optional) Configure a data directory for persistent storage and caches by providing the --data-dir option in your MCP client configuration:
# Example client config snippet for Claude or MCP client:
{
"mcpServers": {
"mitre-attack": {
"command": "mitre-attack-mcp",
"args": ["--data-dir", "<path-to-data-dir>"]
}
}
}
- After installation, start the MCP server if required by your setup (some clients may start it automatically):
# If the installed package provides a direct launcher, you can run it as documented by the project.
mitre-attack-mcp --help
Additional notes
Notes and tips:
- By default, the MITRE ATT&CK MCP server stores data in the current user's default cache directory. Use the --data-dir option to specify a custom location.
- If you are integrating with Claude AI Desktop, update the claude_desktop_config.json to include the mitre-attack MCP server under mcpServers with command mitre-attack-mcp.
- The server supports querying detailed information, relationship mappings, and generating ATT&CK Navigator layers for visualization.
- Ensure your environment has network access if the underlying MITRE ATT&CK data is fetched remotely or when the server accesses external APIs.
- If you encounter issues with layer generation, verify that the server has the required permissions to write to the data directory and that the data-dir path is accessible across the system.
Related MCP Servers
code-mode
🔌 Plug-and-play library to enable agents to call MCP and UTCP tools via code execution.
mysql_mcp_server
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
mcp-reddit
A Model Context Protocol (MCP) server that provides tools for fetching and analyzing Reddit content.
Gitingest
mcp server for gitingest
skill-to
Convert AI Skills (Claude Skills format) to MCP server resources - Part of BioContextAI
Convert-Markdown-PDF
Markdown To PDF Conversion MCP