MITRE ATT&CK MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MITRE ATT&CK MCP
An MCP (Model Context Protocol) server that provides access to the MITRE ATT&CK framework and generates ATT&CK Navigator layers for coverage visualization.
Features
Full ATT&CK Framework Access - Query techniques, tactics, groups, software, mitigations, and data sources
Navigator Layer Generation - Create ATT&CK Navigator layers for coverage visualization
Coverage Analysis - Analyze your detection coverage and identify gaps
Threat-Based Gap Analysis - Compare your coverage against specific threat groups
Full-Text Search - SQLite FTS5 powered search across technique names and descriptions
Auto-Indexing - Automatically downloads and indexes ATT&CK data on first run
Works with security-detections-mcp - Cross-reference your detection rules with ATT&CK techniques
Related MCP server: MITRE ATT&CK MCP Server
Quick Start
Option 1: npx (Recommended)
No installation required:
npx -y mitre-attack-mcpOption 2: Clone and Build
git clone https://github.com/MHaggis/mitre-attack-mcp.git
cd mitre-attack-mcp
npm install
npm run buildConfiguration
Cursor IDE
Add to your MCP config (~/.cursor/mcp.json or .cursor/mcp.json):
{
"mcpServers": {
"mitre-attack": {
"command": "npx",
"args": ["-y", "mitre-attack-mcp"],
"env": {
"ATTACK_DOMAIN": "enterprise-attack"
}
}
}
}Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"mitre-attack": {
"command": "npx",
"args": ["-y", "mitre-attack-mcp"],
"env": {
"ATTACK_DOMAIN": "enterprise-attack"
}
}
}
}Environment Variables
Variable | Description | Default |
| ATT&CK domain to index |
|
| Path to local STIX JSON (optional) | - |
Valid domains: enterprise-attack, mobile-attack, ics-attack
MCP Tools
Technique Lookups
Tool | Description |
| Get technique by ID (e.g., T1059.001) |
| Search techniques by name/description |
| List all techniques |
| List techniques for a tactic |
| Filter by Windows/Linux/macOS/etc |
Threat Intelligence
Tool | Description |
| Get threat group details (e.g., G0016 for APT29) |
| Search groups by name/alias |
| Get technique IDs used by a group |
| Get malware/tool details |
| Search malware and tools |
Defensive Context
Tool | Description |
| Get tactic details |
| List all tactics in matrix order |
| Get mitigations for a technique |
| Get data sources for detection |
Navigator Layer Generation
Tool | Description |
| Create layer from technique list with scores |
| Green=covered, red=gap visualization |
| Highlight a threat group's techniques |
| Gap analysis between coverage and target |
Analysis
Tool | Description |
| Get coverage stats by tactic + gap list |
| Find techniques you're missing vs a group |
| Get all valid technique IDs |
| Framework statistics |
Example Workflows
Analyze Your Detection Coverage
You: "I have these technique IDs from my detection rules: T1059.001, T1059.003, T1547.001, T1053.005.
What's my coverage like?"
LLM uses: analyze_coverage(covered_ids=["T1059.001", "T1059.003", "T1547.001", "T1053.005"])
Returns:
{
"total_techniques": 697,
"covered_techniques": 4,
"coverage_percentage": 1,
"by_tactic": {
"execution": { "total": 45, "covered": 2, "percentage": 4 },
"persistence": { "total": 52, "covered": 2, "percentage": 4 },
...
},
"gaps": ["T1059.002", "T1059.004", ...]
}Generate a Coverage Navigator Layer
You: "Generate a Navigator layer showing my coverage"
LLM uses: generate_coverage_layer(
covered_ids=["T1059.001", "T1059.003", "T1547.001"],
name="My Detection Coverage"
)
Returns: Navigator layer JSON (paste into https://mitre-attack.github.io/attack-navigator/)Compare Against a Threat Group
You: "What APT29 techniques am I missing?"
LLM uses:
1. get_group_techniques(group_id="G0016")
2. find_group_gaps(group_id="G0016", covered_ids=[your techniques])
Returns: List of technique IDs APT29 uses that you don't have coverage forGenerate Gap Analysis Layer
You: "Show me a visual of my gaps against APT29"
LLM uses: generate_gap_layer(
covered_ids=[your techniques],
target_ids=[APT29 techniques],
name="APT29 Gap Analysis"
)
Returns: Navigator layer showing green=covered, red=gapsπ Using with Security Detections MCP
This MCP can be used side by side with security-detections-mcp to create a complete threat detection workflow:
MCP | Purpose |
security-detections-mcp | Query 6,500+ detection rules (Sigma, Splunk ESCU, Elastic) |
mitre-attack-mcp | Analyze coverage against ATT&CK framework |
Combined Workflow Example
You: "What's my MITRE coverage based on my Splunk detections?"
LLM workflow:
1. Query detections-mcp β get_stats() to see total detections with MITRE mappings
2. Query detections-mcp β list_by_mitre_tactic("execution") to get technique coverage
3. Query mitre-attack-mcp β analyze_coverage(covered_ids) to analyze gaps
4. Query mitre-attack-mcp β generate_coverage_layer() to visualize
Result: Full coverage analysis with visual Navigator layerCompatibility note: pass technique IDs (Txxxx / Txxxx.xxx) between the two MCPs for the most reliable v19 coverage analysis. Some detection-content sources and older Security Detections MCP outputs may still use ATT&CK v18 tactic names or Navigator layer versions; in v19, Enterprise defense-evasion is split into stealth and defense-impairment.
Install Both Together
Add both to your ~/.cursor/mcp.json:
{
"mcpServers": {
"security-detections": {
"command": "npx",
"args": ["-y", "security-detections-mcp"],
"env": {
"SIGMA_PATHS": "/path/to/sigma/rules",
"SPLUNK_PATHS": "/path/to/security_content/detections",
"ELASTIC_PATHS": "/path/to/detection-rules/rules"
}
},
"mitre-attack": {
"command": "npx",
"args": ["-y", "mitre-attack-mcp"],
"env": {
"ATTACK_DOMAIN": "enterprise-attack"
}
}
}
}Navigator Layer Output
The layer JSON is compatible with ATT&CK Navigator:
{
"name": "My Detection Coverage",
"versions": { "attack": "19.1", "navigator": "5.1.0", "layer": "4.5" },
"domain": "enterprise-attack",
"techniques": [
{ "techniqueID": "T1059.001", "score": 100, "color": "#31a354", "comment": "Covered" },
{ "techniqueID": "T1059.003", "score": 0, "color": "#ff6666", "comment": "Gap" }
],
"gradient": { "colors": ["#ff6666", "#fdae6b", "#31a354"], "minValue": 0, "maxValue": 100 }
}To visualize:
Click "Open Existing Layer" β "Upload from local"
Paste the JSON
Database
The ATT&CK index is stored at ~/.cache/mitre-attack-mcp/attack.sqlite.
Auto-downloads STIX data from MITRE on first run
Caches for 7 days
Use
rebuild_index()to force refresh
Stats (Enterprise ATT&CK v19.x)
Type | Count |
Techniques | 222 |
Sub-techniques | 475 |
Tactics | 15 |
Groups | 174 |
Software | 821 |
Campaigns | 56 |
Mitigations | 44 |
Data Components | 109 |
v19 changes: Defense Evasion has been split into two tactics β Stealth (TA0005) and Defense Impairment (TA0112). The MCP auto-detects pre-v19 indexes and rebuilds on next start. Counts above were verified against the live v19.1 Enterprise ATT&CK bundle. get_stats() returns data_components; the older data_sources field is kept as a compatibility alias to the same v19 count.
Development
npm install
npm run build
npm start
# Or with watch mode
npm run devLicense
Apache 2.0
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Query and retrieve information about various adversarial tactics and techniques used in cyber attaβ¦
Enrich, search, assess, and manage threat intelligence through 80+ typed MCP tools.
MITRE ATT&CK MCP β STIX bundles from github.com/mitre/cti.
Explore MITRE CWE weaknesses, CAPEC attack patterns, mitigations, code examples, and mappings.
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.65573 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