Skip to content
FossShelf
Home / Categories / For Engineers

Ida Pro Mcp

AI reverse engineering assistant for IDA Pro via MCP

Replaces —

13.49K starsMITlast commit 26 Sept 2026

Who it's for

Malware analyst accelerating triage

A malware analyst points Claude at an unknown PE, asks it to decompile and rename the top 20 functions by cross-reference count, and receives an annotated database with descriptive names and inline comments within minutes instead of hours.

The binary is heavily obfuscated with control flow flattening or code encryption; preprocessing with a deobfuscator is needed first.

CTF competitor solving crackmes

A CTF player runs the community-provided `mcp-reversing-dataset` prompts against a crackme, lets the LLM trace the validation routine, convert constants, and derive the correct input, then receives a report with the found password.

The challenge requires dynamic execution or brute force; the README explicitly says the LLM should derive solutions from static analysis only.

Security researcher doing headless batch analysis

A researcher runs `idalib-mcp` without a GUI, opens several firmware images with `idb_open`, and uses the `callgraph` and `xrefs_to` tools to map attack surface across all databases concurrently before selecting targets for deeper manual review.

The researcher does not have idalib activated via `py-activate-idalib.py`; the headless backend will not be available.

The problem

Reverse engineers spend large amounts of time on repetitive IDA Pro tasks: renaming auto-generated function names, adding explanatory comments, tracing cross-references across hundreds of functions, and converting between number bases. Doing this manually is slow and error-prone. IDA Pro MCP solves this by exposing IDA's full analysis API to LLMs through the Model Context Protocol, so an AI assistant can read decompilation, propose names, write comments, and navigate the binary on the analyst's behalf.

How it works

Decompilation and disassembly access

The `decompile` and `disasm` tools return Hex-Rays pseudocode and full assembly with argument and stack frame details, giving the LLM the same view a human analyst sees in the IDA GUI.

Headless idalib backend

`idalib-mcp` runs without an IDA GUI by using Hex-Rays' idalib. Each open database gets its own worker process that persists across supervisor restarts and self-exits after a configurable idle interval, supporting up to a configurable maximum of concurrent workers.

Batch rename and annotation

The `rename` tool accepts a batch dict with separate keys for functions, globals, locals, and stack variables. `set_comments` writes to both the disassembly and decompiler views in one call, reducing the round-trips needed for a full annotation pass.

Pattern matching and search

`find_bytes` searches for byte patterns such as `48 8B ?? ??`, `find_insns` locates instruction sequences, and `find_regex` searches string tables with case-insensitive regex, all with cursor-based pagination up to a 10,000-result limit.

Python eval in IDA context

`py_eval` executes arbitrary Python inside the running IDA process and returns stdout, stderr, and the evaluated result. This lets an LLM run one-off scripts using the full IDAPython API without a separate plugin.

Optional debugger extension

Enabling the `dbg` extension adds tools for starting and stopping the debugger, setting and toggling breakpoints, stepping through instructions, reading and writing process memory, and inspecting registers across all threads.

Features

  • Decompilation and disassembly access
  • Headless idalib backend
  • Batch rename and annotation
  • Pattern matching and search
  • Python eval in IDA context
  • Optional debugger extension

How to install

# Activate idalib first (example for IDA Pro 9.3 on macOS) uv run "/Applications/IDA Professional 9.3.app/Contents/MacOS/idalib/python/py-activate-idalib.py" # Install in Claude Code claude plugin marketplace add mrexodia/claude-marketplace claude plugin uninstall ida-pro-mcp@mrexodia claude plugin install ida-pro-mcp@mrexodia # Or install via pip for the IDA GUI plugin pip install https://github.com/mrexodia/ida-pro-mcp/archive/refs/heads/main.zip ida-pro-mcp --install

Recommended for this setup

Strengths

  • Broad MCP client support: The server works with over 20 named clients including Claude, Claude Code, Cursor, VS Code, Warp, Windsurf, Zed, Gemini CLI, and Codex. Any client that speaks MCP can be pointed at the server with the JSON config from `ida-pro-mcp --config`.
  • Multi-database session management: The headless supervisor model lets analysts work on several binaries at once. Each `idb_open` call either spawns a new worker or adopts an already-running one; workers persist until idle timeout, so analysis state is not lost between LLM sessions.
  • Type-safe batch API: Every tool uses TypedDict schemas and accepts either a single item or a list. Batch operations return structured error fields per item rather than raising exceptions, which prevents one bad address from aborting an entire analysis run.

Trade-offs

  • Requires paid IDA Pro: IDA Free is explicitly not supported. The server depends on Hex-Rays features including the decompiler, so it requires a licensed IDA Pro installation at version 8.3 or higher, with version 9 recommended.
  • LLM hallucinations on obfuscated code: The README warns that LLMs perform poorly when the binary contains string encryption, import hashing, control flow flattening, code encryption, or anti-decompilation tricks. Analysts should strip obfuscation and resolve library code with Lumina or FLIRT before relying on AI analysis.
  • Python 3.11 and uv required: The idalib backend requires Python 3.11 or higher (switchable via `idapyswitch`) and the uv package manager. Projects locked to older Python environments or different package managers will need environment adjustments before installation.

Tech stack

Languages
Python, C, Shell
Frameworks
—
Databases
—
Tooling
—

FAQ

Does IDA Pro MCP work with IDA Free?

No. The README explicitly states that IDA Free is not supported. A licensed IDA Pro installation at version 8.3 or higher is required, and version 9 is recommended.

What is the difference between the GUI backend and idalib-mcp?

The GUI backend attaches to a running IDA Pro window over a local HTTP server. idalib-mcp is a headless supervisor that uses Hex-Rays' idalib library to open and analyze databases without a GUI, with each database running in its own persistent worker process.

How do I install it for Claude Code?

Run three commands: `claude plugin marketplace add mrexodia/claude-marketplace`, then `claude plugin uninstall ida-pro-mcp@mrexodia`, then `claude plugin install ida-pro-mcp@mrexodia`. You also need idalib activated globally and uv installed.

Why does the README recommend the official Hex-Rays IDA MCP Server?

The project author added a notice pointing users to the official server announced by Hex-Rays. IDA Pro MCP remains actively maintained and MIT-licensed, but the official server is now an available alternative backed by Hex-Rays directly.

How should I prompt the LLM to avoid number-conversion errors?

The README advises always instructing the LLM to use the `int_convert` MCP tool instead of converting number bases itself. The tool handles decimal, hex, bytes, ASCII, and binary conversions reliably, where LLMs frequently make errors with raw arithmetic.

Similar tools

More in Engineers