Skip to main content
Glama

angr MCP Plugin

CI Python 3.10+ License: Apache 2.0

An angr-management plugin that embeds an MCP (Model Context Protocol) server, exposing angr's binary analysis capabilities to LLM clients like Claude Code, Cursor, and other MCP-compatible tools.

Features

  • Live GUI integration -- MCP tools bind to the active angr-management workspace, so LLM agents operate on the same binary you have open

  • Function analysis -- List, inspect, and decompile functions from the angr knowledge base

  • Symbolic execution -- Build CFGs, explore paths with constraints, and solve for stdin

  • Live mutations -- Rename functions and set comments that update the GUI in real time

  • Batch operations -- Run multiple analysis actions in a single call

  • Snapshot export/import -- Versioned JSON contract for reproducible analysis state transfer

  • Headless dev mode -- Run the MCP server standalone without angr-management for development and testing

Related MCP server: GhidraMCP

MCP Tools

Tool

Category

Description

am_get_current_program

Core

Get metadata for the active binary

am_list_functions

Core

Paginated function listing from the knowledge base

am_get_function

Core

Detailed info for a function at a given address

am_decompile_function

Core

Decompile a function to pseudocode

am_list_strings

Core

Paginated string listing

am_get_xrefs_to

Core

Cross-references to a target address

am_rename_function

Core

Rename a function (live GUI update)

am_set_comment

Core

Set a comment at an address (live GUI update)

am_angr_entry

Symbolic

Get the binary entry point address

am_angr_cfg

Symbolic

Build a CFG and return node/edge summary

am_angr_explore

Symbolic

Symbolic execution with find/avoid constraints

am_sync_export

Automation

Export current analysis state as a snapshot

am_sync_import

Automation

Import and optionally apply a snapshot

am_run_batch

Automation

Execute multiple actions in one call

Installation

Requires Python 3.10+. Install with uv (recommended) or pip:

# Clone the repo
git clone https://github.com/sandbornm/angr_mcp.git
cd angr_mcp

# Install with dev dependencies
uv pip install -e ".[dev]"

# Include angr/angr-management in the same environment
uv pip install -e ".[dev,angr]"

Usage

Plugin mode (angr-management GUI)

  1. Symlink the plugin into angr-management's plugin directory:

mkdir -p ~/.local/share/angr-management/plugins
ln -sfn "$(pwd)/src/angr_mcp_plugin" ~/.local/share/angr-management/plugins/angr_mcp
  1. Restart angr-management and enable angr MCP Plugin from the plugin manager.

  2. Open a binary -- the MCP server starts automatically on http://127.0.0.1:8766/mcp.

Dev mode (standalone server)

Run the MCP server without angr-management for development:

angr-mcp-dev-server

Connect your LLM client

Add this to your MCP client configuration (Cursor, Claude Code, etc.):

{
  "mcpServers": {
    "angr-mcp": {
      "url": "http://127.0.0.1:8766/mcp"
    }
  }
}

Configuration

The plugin reads these environment variables:

Variable

Default

Description

ANGR_MCP_TRANSPORT

streamable-http

MCP transport type

ANGR_MCP_HOST

127.0.0.1

Server bind address

ANGR_MCP_PORT

8766

Server port

Development

# Install dev dependencies
uv pip install -e ".[dev]"

# Run tests
pytest

# Lint
ruff check src/ tests/

# Type check
mypy src/

Validate sync snapshots

angr-mcp-validate-sync snapshot.json

Architecture

src/angr_mcp_plugin/
  plugin.py          # angr-management plugin entrypoint
  mcp_server.py      # Embedded MCP server (FastMCP + background thread)
  session_state.py   # Thread-safe workspace/project binding
  sync_contract.py   # Versioned snapshot export/import schema
  cli.py             # Dev server and validation CLI
  plugin.toml        # angr-management plugin metadata
  tools/
    core.py          # GUI-bound analysis tools (8 tools)
    symbolic.py      # Symbolic execution helpers (3 tools)
    automation.py    # Batch and sync tools (3 tools)

License

Apache 2.0

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to import binaries into Ghidra, trigger analysis, browse functions, symbols, strings, and imports, and read decompiled C code and disassembly via MCP tools.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables LLMs and MCP clients to autonomously reverse engineer applications by exposing core Ghidra functionality, including decompiling and analyzing binaries, renaming methods and data, and listing methods, classes, imports, and exports.
      Apache 2.0
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to remotely control a disassembler/debugger for reverse engineering, including executing Python scripts, inspecting binaries, searching for values, text, or byte sequences, and retrieving disassembly, functions, exports, and strings.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to execute scripts, inspect binaries, search values, strings, and byte sequences, retrieve functions, exports, and strings, and obtain disassembly through a standardized interface.
      -