Skip to main content

mitre-attack-mcp

MITRE ATT&CK MCP Server

Description

A Model Context Protocol server that exposes the MITRE ATT&CK knowledge base to AI agents such as Claude Desktop, Claude Code and LangGraph. Use for Technique, Procedure, Mitigation and Detection lookups. PyPi - https://pypi.org/project/mitre-attack-mcp, Githib - https://github.com/gsbadhan/mitre-attack-mcp .

What it does

Tool Purpose Input
get_data_stats Counts of techniques, groups, software, mitigations optional domain
search_techniques Find techniques by keyword in name or description keyword; optional domain, limit (default 10)
get_technique_by_id Technique details by ID (name, description, tactics, platforms) attack_id; optional domain
get_procedures_for_technique Procedure examples: groups and software that used the technique, and how attack_id; optional domain
get_mitigations_for_technique Mitigations (MI###) for a technique attack_id; optional domain
get_detections_for_technique Detection strategies (DET###) and platform-specific analytics (AN###) attack_id; optional domain
get_group_by_name Threat group details by name or alias name; optional domain

All tools also accept an optional domain: enterprise-attack, ics-attack, or mobile-attack.

Project setup

  • uv venv
  • source .venv/bin/activate
  • uv sync

Data ingestion

  • MITRE data auto downloaded while MCP server starts

Run MCP server locally

  • uv run python -m mitre_attack_mcp.server

Note: Dont run with Claude, its for local testing only

Unit tests

  • uv run pytest tests/ -v

Integration With Anthropic Claude Code

1. Clone code repository locally

2. Check mcps: claude mcp list

3. Add below configs in macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  "mcpServers": {
    "mitre-attack": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/Users/john/git-projects/mitre-attack-mcp",
        "mitre-attack-mcp"
      ]
    }
  }


4. Register mitre mcp: claude mcp add --scope user mitre-attack -- uv run --directory /Users/john/git-projects/mitre-attack-mcp mitre-attack-mcp

5. Check mitre-attack mcp: claude mcp list

6. Check detail: claude mcp get mitre-attack

Integration with Anthropic Claude Desktop

1. Claude desktop -> Settings -> Developer -> Edit config

2. Add below configs if you using git repository code:

  "mcpServers": {
    "mitre-attack": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/Users/john/git-projects/mitre-attack-mcp",
        "mitre-attack-mcp"
      ]
    }
  }

2. Add below configs if you using PyPi:

 "mcpServers": {
    "mitre-attack": {
      "command": "uvx",
      "args": ["mitre-attack-mcp@latest"]
    }
  }

3. Relaunch Claude

 

Claude Settings

Claude Desktop Assistant With Mitre MCP

Claude Desktop Chat

Common prompts

Search mitre-attack for techniques containing 'credential'.
Get the data stats from mitre-attack.
Look up the group APT29 in mitre-attack.
Use the mitre-attack server to look up technique T1059.
what is mitigations for T1003.
show tactic, procedure, mitigations and detections of T1059 ?

Metadata

Release files for mitre-attack-mcp 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mitre-attack-mcp 0.1.3
File Size Uploaded Provenance Actions
mitre_attack_mcp-0.1.3.tar.gz 447.4 kB Without provenance Details for mitre_attack_mcp-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mitre-attack-mcp 0.1.3
File Interpreter ABI Platform Actions
mitre_attack_mcp-0.1.3-py3-none-any.whl Python 3 none any Details for mitre_attack_mcp-0.1.3-py3-none-any.whl

Total release size: 457.0 kB

Release files / mitre_attack_mcp-0.1.3.tar.gz

Download URL mitre_attack_mcp-0.1.3.tar.gz
Size 447.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4dc2d0eb100fc7d3b644b19285ee8455c5a9d8f34fd29e2b16b787fca025917d
BLAKE2b-256 checksum
How to use checksums
6f4d6c8a20c6012c49783481f0b2e9f813b6be47f9161d9ce155d3230902dfd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release files / mitre_attack_mcp-0.1.3-py3-none-any.whl

Download URL mitre_attack_mcp-0.1.3-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7f2728b54b6d0802692880783b3c479c5db94635b457124bbae1c41c8238e25
BLAKE2b-256 checksum
How to use checksums
06dc822bf0631ab2d44b2bc1ef70d1ae7e7696631a99cdd4973e2ab97053c428
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Security for mitre-attack-mcp 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page