Discover / Development

IDA Pro MCP

by mrexodiaPython

AI powered reverse engineering assistant bridging IDA Pro with language models through MCP.

MCP Serveractive

Maturity: active because commit 22d ago, latest release 1.4.0. Derived from release and commit history, not a rating.

Stars
12k
Forks
1.4k
Downloads / mo
Last commit
2026-08-28
License
MIT
Open issues
45

Market and trust evidence

Edition not yet matched

No exact skills.sh identity match is available for this repository. Repository adoption and freshness remain visible above; install momentum is not inferred.

Trust analysis is a screening signal, not a security warranty. Read the ranking and trust methodology.

In practice

Written by AI from this repository’s README · high confidence

Bridges IDA Pro analysis workflows and decompilers directly with AI agents.

Use it when

Use when reverse engineering binaries in IDA Pro and needing an agent to read bytes, disassembly, or decompiled code.

Not the right pick when

Not compatible if you are using IDA Free or do not have a supported license for Hex-Rays.

Capabilities

  • Decompile and disassemble functions
  • Query stack frames and structure fields
  • Read raw bytes and bookmark addresses
  • Trigger Python code inside IDA context

Requirements

  • IDA Pro (8.3 or higher)
  • Python (3.11 or higher)

Cost: Free and open source

Video walkthroughs

Third-party YouTube uploads matched to this tool by title, channel and repository name on 2026-08-20. Not made, reviewed or endorsed by SkillPilot. View counts and publish months are as of the match date and the month is approximate. Nothing loads from YouTube until you press play.

What the repository ships

Ships CLAUDE.mdHas testsCI configured

Detected from the actual files in the repository root.

Latest release 1.4.0

Published 2025-10-06

What's Changed

  • add idalib-based MCP server by @williballenthin in https://github.com/mrexodia/ida-pro-mcp/pull/39
  • Add debugger mpc function by @ltlly in https://github.com/mrexodia/ida-pro-mcp/pull/46
  • Add functionality to list globals by @neoz in https://github.com/mrexodia/ida-pro-mcp/pull/47
  • Added command to find xrefs to struct fields by @JorisVanEijden in https://github.com/mrexodia/ida-pro-mcp/pull/60
  • add local type listing and searching function by @hoooonnam in https://github.com/mrexodia/ida-pro-mcp/pull/70
  • Add support for Claude Code and Small Refactoring by @Chapoly1305 in https://github.com/mrexodia/ida-pro-mcp/pull/86
  • List imports by @withzombies in https://github.com/mrexodia/ida-pro-mcp/pull/85
  • Add stack variable support by @withzombies in https://github.com/mrexodia/ida-pro-mcp/pull/81
  • Allow set_comment to work with no decompiler available by @withzombies in https://github.com/mrexodia/ida-pro-mcp/pull/80
  • Add memory read functions by @withzombies in https://github.com/mrexodia/ida-pro-mcp/pull/82
  • Fix member names, use defined structure builders by @withzombies in https://github.com/mrexodia/ida-pro-mcp/pull/102
  • Structured function disassembly by @withzombies in https://github.com/mrexodia/ida-pro-mcp/pull/96
  • claude code support windows now by @heheda123123 in https://github.com/mrexodia/ida-pro-mcp/pull/117
  • Add callee function listing feature by @nonetype in https://github.com/mrexodia/ida-pro-mcp/pull/90
  • Add Patch Address bytecode by @ShallowFeather in https://github.com/mrexodia/ida-pro-mcp/pull/57
  • Add comprehensive structure analysis functionality by @VadimBoev in https://github.com/mrexodia/ida-pro-mcp/pull/123

New Contributors

  • @ltlly made their first contribution in https://github.com/mrexodia/ida-pro-mcp/pull/46
  • @neoz made their first contribution in https://github.com/mrexodia/ida-pro-mcp/pull/47
  • @JorisVanEijden made their first contribution in https://github.com/mrexodia/ida-pro-mcp/pull/60
  • @hoooonnam made their first contribution in https://github.com/mrexodia/ida-pro-mcp/pull/70
  • @Chapoly1305 made their first contribution in https://github.com/mrexodia/ida-pro-mcp/pull/86
  • @withzombies made their first contribution in https://github.com/mrexodia/ida-pro-mcp/pull/85
  • @heheda123123 made their first contribution in https://github.com/mrexodia/ida-pro-mcp/pull/117
  • @nonetype made their first contribution in https://github.com/mrexodia/ida-pro-mcp/pull/90
  • @ShallowFeather made their first contribution in https://github.com/mrexodia/ida-pro-mcp/pull/57
  • @VadimBoev made their first contribution in https://github.com/mrexodia/ida-pro-mcp/pull/123

Full Changelog: https://github.com/mrexodia/ida-pro-mcp/compare/1.3.0...1.4.0

Tags

README

IDA Pro MCP

Simple MCP Server to allow vibe reversing in IDA Pro.

https://github.com/user-attachments/assets/6ebeaa92-a9db-43fa-b756-eececce2aca0

The binaries and prompt for the video are available in the mcp-reversing-dataset repository.

Prerequisites

Note: This requires having idalib activated globally and uv installed:


# windows
uv run "C:\Program Files\IDA Professional 9.3\idalib\python\py-activate-idalib.py"
# macos
uv run "/Applications/IDA Professional 9.3.app/Contents/MacOS/idalib/python/py-activate-idalib.py"
# linux
uv run "/path/to/idapro-9.3/idalib/python/py-activate-idalib.py"

Installation (Claude Code)

To install the latest IDA Pro MCP in Claude Code:


claude plugin marketplace add mrexodia/claude-marketplace
claude plugin uninstall ida-pro-mcp@mrexodia
claude plugin install ida-pro-mcp@mrexodia

Installation (Codex)

To install the latest IDA Pro MCP in Codex:


codex plugin marketplace add mrexodia/codex-marketplace
codex plugin remove ida-pro-mcp@mrexodia
codex plugin add ida-pro-mcp@mrexodia

Installation (Kimi Code)

To install the latest IDA Pro MCP in Kimi Code, run this slash command in the chat:


/plugins install https://github.com/mrexodia/ida-pro-mcp/tree/main
/reload

This installs the idalib MCP server and the idapython skill. Plugins are copied to

$KIMI_CODE_HOME/plugins/managed/, so uv must be on your PATH. The first session after

installing is slower, because uv resolves the dependencies before the server responds.

Installation (GUI)

Note: the MCP plugin is no longer recommended and will eventually be deprecated. Use idalib-mcp instead.

If you want to configure the MCP server manually from the IDA GUI:


pip uninstall ida-pro-mcp
pip install https://github.com/mrexodia/ida-pro-mcp/archive/refs/heads/main.zip

Configure the MCP servers and install the IDA Plugin:


ida-pro-mcp --install

Important: Make sure you completely restart IDA and your MCP client for the installation to take effect. Some clients (like Claude) run in the background and need to be quit from the tray icon.

Prompt Engineering

LLMs are prone to hallucinations and you need to be specific with your prompting. For reverse engineering the conversion between integers and bytes are especially problematic. Below is a minimal example prompt, feel free to start a discussion or open an issue if you have good results with a different prompt:


Your task is to analyze a crackme in IDA Pro. You can use the MCP tools to retrieve information. In general use the following strategy:

- Inspect the decompilation and add comments with your findings
- Rename variables to more sensible names
- Change the variable and argument types if necessary (especially pointer and array types)
- Change function names to be more descriptive
- If more details are necessary, disassemble the function and add comments with your findings
- NEVER convert number bases yourself. Use the `int_convert` MCP tool if needed!
- Do not attempt brute forcing, derive any solutions purely from the disassembly and simple python scripts
- Create a report.md with your findings and steps taken at the end
- When you find a solution, prompt to user for feedback with the password you found

This prompt was just the first experiment, please share if you found ways to improve the output!

Another prompt by @can1357:


Your task is to create a complete and comprehensive reverse engineering analysis. Reference AGENTS.md to understand the project goals and ensure the analysis serves our purposes.

Use the following systematic methodology:

1. **Decompilation Analysis**
   - Thoroughly inspect the decompiler output
   - Add detailed comments documenting your findings
   - Focus on understanding the actual functionality and purpose of each component (do not rely on old, incorrect comments)

2. **Improve Readability in the Database**
   - Rename variables to sensible, descriptive names
   - Correct variable and argument types where necessary (especially pointers and array types)
   - Update function names to be descriptive of their actual purpose

3. **Deep Dive When Needed**
   - If more details are necessary, examine the disassembly and add comments with findings
   - Document any low-level behaviors that aren't clear from the decompilation alone
   - Use sub-agents to perform detailed analysis

4. **Important Constraints**
   - NEVER convert number bases yourself - use the int_convert MCP tool if needed
   - Use MCP tools to retrieve information as necessary
   - Derive all conclusions from actual analysis, not assumptions

5. **Documentation**
   - Produce comprehensive RE/*.md files with your findings
   - Document the steps taken and methodology used
   - When asked by the user, ensure accuracy over previous analysis file
   - Organize findings in a way that serves the project goals outlined in AGENTS.md or CLAUDE.md

Live stream discussing prompting and showing some real-world malware analysis:

image

Tips for Enhancing LLM Accuracy

Large Language Models (LLMs) are powerful tools, but they can sometimes struggle with complex mathematical calculations or exhibit "hallucinations" (making up facts). Make sure to tell the LLM to use the int_convert MCP tool and you might also need math-mcp for certain operations.

Another thing to keep in mind is that LLMs will not perform well on obfuscated code. Before trying to use an LLM to solve the problem, take a look around the binary and spend some time (automatically) removing the following things:

  • String encryption
  • Import hashing
  • Control flow flattening
  • Code encryption
  • Anti-decompilation tricks

You should also use a tool like Lumina or FLIRT to try and resolve all the open source library code and the C++ STL, this will further improve the accuracy.

Transports & Headless MCP

You can run an SSE server to connect to the user interface like this:


uv run ida-pro-mcp --transport http://127.0.0.1:8744/sse

After installing idalib you can also run a headless MCP server. You can start with an initial binary:


uv run idalib-mcp --host 127.0.0.1 --port 8745 path/to/executable

Or start without a binary and open arbitrary files later with idb_open(...):


uv run idalib-mcp --host 127.0.0.1 --port 8745

For stdio-based clients, use:


uv run idalib-mcp --stdio

Database workers are persistent: each one runs as a detached process that

outlives the supervisor that spawned it. When a new supervisor (over stdio

or HTTP) calls idb_open for a binary that is already open under a worker

on this host, the supervisor adopts that worker transparently — there is

no separate "shared" mode to enable. Workers self-exit when no request has

hit them for an idle interval.

_Note_: The idalib feature was contributed by Willi Ballenthin.

Headless idalib Session Model

idalib-mcp is a supervisor that keeps each open database in its own idalib worker process. Workers register themselves in a host-local discovery directory and outlive the supervisor that spawned them; any subsequent supervisor that wants the same path adopts the running worker. A worker self-exits when no request has hit it for its idle TTL (default 1 hour). Call idb_close to release a worker eagerly (freeing a slot toward --max-workers), adopted GUI/worker instances are detached rather than killed.

idb_open picks the backend via its mode parameter:

  • prefer_headless (default): spawn an idalib worker (or adopt one that already has the file open).
  • force_headless: same, but never adopt a running GUI even if one has the file.
  • prefer_gui: adopt a running GUI for the file; otherwise spawn an idalib worker.
  • force_gui: adopt a running GUI for the file; otherwise launch a new IDA GUI process.

Every tool call must carry an explicit database argument. There is no implicit "current database" — callers name the session they want to operate on.


uv run idalib-mcp --stdio --max-workers 4

Typical flow:


idb_open("/path/to/binary_a.exe", preferred_session_id="binary_a")
idb_open("/path/to/library.dll", preferred_session_id="library")

decompile("main", database="binary_a")
xrefs_to("ImportantExport", database="library")

database must be the session ID returned by idb_open (or shown in idb_list); filenames and paths are not accepted.

Management tools

  • idb_open(input_path, mode="prefer_headless", run_auto_analysis=True, build_caches=True, init_hexrays=True, preferred_session_id=""): Open a binary, warm up subsystems (strings cache, Hex-Rays), and return its session ID. If a worker or GUI for this path is already running on the host, that instance is adopted and preferred_session_id is ignored.
  • idb_list(): List open sessions and running GUI IDA instances. Each entry has adopted (True if this supervisor manages it, False for GUIs/workers discovered but not yet opened via idb_open), backend (worker or gui), is_active, and process IDs.
  • idb_close(database, save=True): Save (optionally), unregister the session, and terminate its owned worker, freeing a slot toward --max-workers. Adopted GUI/worker instances are detached, not killed.
  • idb_save(session_id, path=""): Save a session's IDB to disk. Forwarded as a regular worker tool (database=<id> injected) — same signature in both backends.
  • Per-database health: call server_health(database=<id>) (forwarded). idb_list() reports is_active from the supervisor's TCP/RPC probe.

Worker controls:

  • --max-workers N: maximum simultaneous database workers (0 = unlimited, default 4).
  • IDA_MCP_MAX_WORKERS: environment default for --max-workers.

MCP Resources

Resources represent browsable state (read-only data) following MCP's philosophy.

Core IDB State:

  • ida://idb/metadata - IDB file info (path, arch, base, size, hashes)
  • ida://idb/segments - Memory segments with permissions
  • ida://idb/entrypoints - Entry points (main, TLS callbacks, etc.)

UI State:

  • ida://cursor - Current cursor position and function
  • ida://selection - Current selection range

Type Information:

  • ida://types - All local types
  • ida://structs - All structures/unions
  • ida://struct/{name} - Structure definition with fields

Lookups:

  • ida://import/{name} - Import details by name
  • ida://export/{name} - Export details by name
  • ida://xrefs/from/{addr} - Cross-references from address

Core Functions

  • lookup_funcs(queries): Get function(s) by address or name (auto-detects, accepts list or comma-separated string).
  • int_convert(inputs): Convert numbers to different formats (decimal, hex, bytes, ASCII, binary).
  • list_funcs(queries): List functions (paginated, filtered).
  • list_globals(queries): List global variables (paginated, filtered).
  • imports(offset, count): List all imported symbols with module names (paginated).
  • decompile(addr): Decompile function at the given address.
  • disasm(addr): Disassemble function with full details (arguments, stack frame, etc).
  • xrefs_to(addrs): Get all cross-references to address(es).
  • xrefs_to_field(queries): Get cross-references to specific struct field(s).
  • callees(addrs): Get functions called by function(s) at address(es).

Modification Operations

  • add_bookmark(addr, name, prefix): Add or replace the IDA bookmark at an address; set prefix="" for no prefix.
  • set_comments(items): Set comments at address(es) in both disassembly and decompiler views.
  • patch_asm(items): Patch assembly instructions at address(es).
  • declare_type(decls): Declare C type(s) in the local type library.
  • define_func(items): Define function(s) at address(es). Optionally specify end for explicit bounds.
  • define_code(items): Convert bytes to code instruction(s) at address(es).
  • undefine(items): Undefine item(s) at address(es), converting back to raw bytes. Optionally specify end or size.

Memory Reading Operations

  • get_bytes(addrs): Read raw bytes at address(es).
  • `ge

Truncated. Read the full README on GitHub ↗

Related tools