
Mitre Attack Mcp Server
io.github.imouiche由 GitHub 账号 imouiche 发布v0.1.6更新于 Nov 14, 2026
MCP server providing 50+ tools for MITRE ATT&CK techniques, groups, and mitigations
概览
本地 MCP 服务器,让助手以只读方式查询 MITRE ATT&CK 知识库中的技术、组织、软件、行动和缓解措施。
- 可以做什么
- 按 ID、关键词、平台或战术查找和搜索技术、战术、子技术与已撤销技术
- 查看威胁组织及其别名、使用的技术与软件,以及行动归因
- 查询恶意软件与工具、行动、缓解措施、数据源与数据组件,以及 ICS 资产
- 遍历关系,例如哪些组织使用某技术、什么能缓解什么,以及过程示例
- 按 STIX 或 ATT&CK ID 访问任意 STIX 对象,支持创建/修改时间过滤和 ID 到名称的解析
- 生成 ATT&CK Navigator 图层,并报告数据状态、实体计数和矩阵
- 适用场景
- 适合威胁情报研究、检测覆盖与缺口映射、刻画威胁行为者的 TTP,或回答关于 Enterprise、Mobile 和 ICS 领域 ATT&CK 技术与缓解措施的问题。
- 运行要求
- 以 stdio 在本地运行。PATH 中需有 Python 3.12 或更高版本;仅 npm 安装方式需要 Node.js 16 或更高版本。首次运行会下载约 64MB 的 ATT&CK STIX 数据,并在主目录下的私有虚拟环境中安装依赖(约 290MB 磁盘、约 490MB 内存)。可选环境变量 MITRE_MCP_PYTHON、MITRE_MCP_RUNTIME_DIR 和 MITRE_MCP_DATA_DIR 可更改解释器与缓存位置。
安装
在 SourceWeft 中
- 打开 控制台中的 Mitre Attack Mcp Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
MITRE ATT&CK MCP Server
65 MCP tools giving LLMs and agentic systems machine-callable access to the MITRE ATT&CK knowledge base
[MCP tools] [Domains] [ATT&CK] [npm] [npm downloads] [License] [MCP Registry] [MCPRush security rating]
Installation · Quick Start · Security · Data Cache · Tools · Examples
Overview
The MITRE ATT&CK MCP Server exposes the MITRE ATT&CK framework over the Model Context Protocol, giving LLMs and agentic systems structured, machine-callable access to adversary tactics, techniques, threat groups, software, campaigns and mitigations.
It reads the official STIX 2.1 bundles published by MITRE through the
mitreattack-python library. No scraping, no third-party API, no
reverse-engineered endpoints.
65 tools across three domains
Covering Enterprise, Mobile and ICS, with relationship traversal throughout — which groups use a technique, which software a campaign deployed, what mitigates what — plus ATT&CK Navigator layer generation for coverage and gap visualisation. All output is shaped for LLM consumption.
Registered in the official MCP Registry as
io.github.imouiche/mitre-attack-mcp-server.
Installation
Python (PyPI)
Or with uv:
Node (npm)
Or without installing:
The npm package needs a few minutes on first run. It ships the Python source, not the Python dependencies. On first launch it creates a private virtualenv under
~/.mitre-mcp-server/runtime/, installs the pinned dependencies into it, and downloads the ATT&CK STIX data. Subsequent runs start in a few seconds.Some MCP clients time out waiting for a server to respond, so warm the cache once from a terminal before configuring your client:
Python 3.12 or newer must be on
PATH.uvis used when available andvenvpluspipotherwise. Nothing is installed into your system or currently active Python environment.
Environment variables
From source
Quick Start
1. Configure your client
Add the server to claude_desktop_config.json:
- macOS —
~/Library/Application Support/Claude/claude_desktop_config.json - Windows —
%APPDATA%\Claude\claude_desktop_config.json
2. Restart the client
Quit Claude Desktop completely (Cmd+Q on macOS) and reopen it.
3. Query
"What techniques does APT29 use for initial access?"
"Generate an ATT&CK Navigator layer for ransomware groups"
"Show me all Windows persistence techniques"
Security
MCPRush rates this server security A with low access scope and no sign-in required. That assessment is MCPRush's own, not an independent audit, but it reflects properties you can verify directly in this repository:
- No credentials. The server reads no API keys, tokens or secrets. The only environment variables it consults are the three cache-location overrides documented above.
- Narrow network scope. The sole outbound request is the ATT&CK STIX
download, performed by MITRE's own
mitreattack-pythonlibrary. There are no telemetry, analytics or third-party calls. - Integrity-checked data. Downloads are verified against the expected hash published in MITRE's release manifest, so a corrupted or substituted bundle is rejected rather than loaded.
- Local execution. The server runs as a local stdio process. It opens no listening port and exposes no HTTP surface.
- Read-only behaviour. All 65 tools are queries over the cached STIX data. Nothing mutates state outside the cache directory, and no tool executes shell commands or evaluates caller-supplied code.
Found a security issue? Please open an issue.
Data Cache
The server does not bundle ATT&CK data. On first start it downloads the official STIX 2.1 bundles for all three domains and caches them on disk, then loads them into memory. Later starts reuse the cache and skip the download.
Location — ~/.mitre-mcp-server/data/v{version}/, overridable with
MITRE_MCP_DATA_DIR.
Current release — ATT&CK v20.1, about 64MB across three files:
Clearing the cache to force a re-download
The cache is never invalidated automatically. If the data is stale, partially downloaded, or corrupted, clear it and the server will fetch a fresh copy the next time it starts.
Inspect what is currently cached:
Re-download the current release, replacing what is there:
Or simply delete the cache and let the server re-fetch on next start. This is
the most reliable method and the one to use with the npm install, which has no
convenient python on PATH:
To refresh a single domain rather than all three:
Reclaiming disk space from superseded releases
When MITRE publishes a new ATT&CK version, the server downloads it into a new
v{version} directory and leaves the previous one in place. Over time
these accumulate — a machine that has run through two releases will hold both:
Only the directory matching the current mitreattack-python release is read.
Delete the others:
The npm install path keeps a second cache, the virtualenv under
~/.mitre-mcp-server/runtime/. It is keyed by package and Python version, so
upgrades create a new directory and leave the old one behind. Removing the
whole runtime directory is safe; it is rebuilt on the next launch.
Available Tools
65 tools covering the major ATT&CK entities and their relationships. All tool
handlers are asynchronous. Most accept an optional domain argument of
enterprise, mobile or ics, defaulting to enterprise.
Infrastructure and metadata
Generic STIX access
Lower-level accessors that work across every object type, useful when you hold a STIX ID rather than an ATT&CK ID.
Techniques
Groups
Software
Campaigns
Mitigations
Tactics, data sources and ICS
Example Queries
ATT&CK Navigator Visualisation
The generate_layer tool produces ATT&CK Navigator-compatible JSON.
- Ask your client to generate a layer, for example "Generate an ATT&CK Navigator layer for all techniques used by APT29"
- Save the JSON output to a file, for example
apt29_layer.json - Upload it to ATT&CK Navigator
Typical uses include mapping red-team exercise coverage, highlighting unmonitored techniques, profiling a threat actor's TTPs, and showing which techniques are mitigated against which are exposed.
Worked example with LangGraph
- Article — From MITRE ATT&CK to agentic threat investigation, on building a multi-agent LangGraph system over these tools
- Live demo — Interactive Gradio demo on Hugging Face Spaces
Technical Details
Architecture
- Language — Python 3.12 or newer
- Protocol — Model Context Protocol via FastMCP, served over stdio
- Data source — official STIX 2.1 bundles through
mitreattack-python - Concurrency — asynchronous tool handlers
- Caching — all three domains loaded into memory at startup, so queries need no disk access
Data
Counts track the pinned ATT&CK release and change when MITRE publishes a new one. See Data Cache for refreshing.
Requirements
- Python — 3.12 or newer
- Node.js — 16 or newer, for the npm installation path only
- Disk — about 64MB of ATT&CK data plus about 200MB of Python
dependencies. The npm path keeps its dependencies in its own virtualenv, so
budget roughly 290MB under
~/.mitre-mcp-server/. - Memory — about 490MB resident with all three domains loaded, since every domain is held in memory for fast queries. Measured on Python 3.12 against ATT&CK v20.1.
mcp— pinned to>=1.1.0,<2. The server uses the v1mcp.server.fastmcpAPI, which mcp 2.0 renamed toMCPServer. An unpinned install resolves 2.x and fails at import.
License
Apache License 2.0. See LICENSE.
Issues and pull requests are welcome at github.com/imouiche/complete-mitre-attack-mcp-server.
Author
Inoussa Mouiche, Ph.D. — University of Windsor, WASP Lab. Research in threat intelligence automation, machine learning, multi-agent security systems and LLM-powered security operations.
GitHub · LinkedIn · Google Scholar · [email protected]
Acknowledgments
Built on MITRE ATT&CK using mitreattack-python, MITRE's official library, and implementing the Model Context Protocol. Thanks to the MCP developer community, including R. Jasper.
MITRE ATT&CK is a registered trademark of The MITRE Corporation. This project is not affiliated with or endorsed by The MITRE Corporation.
来源:README.md,提交 e5278c9
工具
0版本历史
2- v0.1.6最新Nov 14, 2026
- v0.1.1Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分