无头IDA Pro MCP服务器——将IDA Pro的逆向工程能力暴露给AI代理,实现更高效的自动分析。
概览
无头 IDA Pro MCP 服务器——通过模型上下文协议向 AI 代理展示 IDA Pro 的逆向工程能力。 Ramune-ida 以无头模式运行 IDA Pro(idalib),并将其封装为 MCP 服务器。像 Claude、Cursor 或任何兼容 MCP 的客户端这样的 AI 代理可以通过结构化工具调用反编译函数、重命名符号、设置类型并执行任意 IDAPython。 —— MCP 服务器和 IDA 运行在独立进程中。服务器是纯异步 Python;每个 IDA 工作者是通过专用 fd-pair 管道(JSON 线协议)通信的单线程子进程。这消除了困扰 IDA SDK 使用的所有线程安全问题。 — 工具由元数据(描述、参数、标签)和处理函数定义。服务器在启动时发现工具,动态生成MCP工具函数,并向工作者发送调用。添加新工具只需一个元数据文件和一个处理程序——无需样板注册代码。
概述(AI 翻译)
[进行中] 该项目正在积极开发中。API和功能可能会在不另行通知的情况下更改。
主分支包含不稳定的更新。对于稳定版本,请使用带有发布标签的提交。
无头 IDA Pro MCP 服务器——通过模型上下文协议向 AI 代理展示 IDA Pro 的逆向工程能力。
中文版
这是什么?
Ramune-ida 以无头模式运行 IDA Pro(idalib),并将其封装为 MCP 服务器。像 Claude、Cursor 或任何兼容 MCP 的客户端这样的 AI 代理可以通过结构化工具调用反编译函数、重命名符号、设置类型并执行任意 IDAPython。
关键设计决策
进程分离——MCP服务器和IDA运行在独立进程中。服务器是纯异步Python;每个IDA工作者是一个单线程子进程,通过专用的fd对管道(JSON行协议)通信。这消除了困扰IDA SDK使用的所有线程安全问题。
插件架构——工具由元数据(描述、参数、标签)和处理函数定义。服务器在启动时发现工具,动态生成MCP工具函数,并向工作者发送调用。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Ramune-ida
[WIP] This project is under active development. APIs and features may change without notice.
The main branch contains unstable updates. For stable versions, please use commits marked with release tags.
Headless IDA Pro MCP Server — expose IDA Pro’s reverse engineering capabilities to AI agents via the Model Context Protocol.
What is this?
Ramune-ida runs IDA Pro (idalib) in headless mode and wraps it as an MCP server. AI agents like Claude, Cursor, or any MCP-compatible client can decompile functions, rename symbols, set types, and execute arbitrary IDAPython — all through structured tool calls.
Key Design Decisions
Process separation — The MCP server and IDA run in separate processes. The server is pure async Python; each IDA worker is a single-threaded subprocess communicating via dedicated fd-pair pipes (JSON line protocol). This eliminates all thread-safety issues that plague IDA SDK usage.
Plugin architecture — Tools are defined by metadata (description, parameters, tags) and handler functions. The server discovers tools at startup, dynamically generates MCP tool functions, and dispatches calls to the worker. Adding a new tool requires only a metadata file and a handler — no boilerplate registration code.
Worker is stateless — Workers are disposable command executors. All management state (task queues, crash recovery) lives in the Project layer. If a worker crashes, the project spawns a new one and reopens the IDB transparently.
Architecture
MCP Client (Claude / Cursor / ...)
│ Streamable HTTP / SSE
▼
┌──────────────────────────────────┐
│ MCP Server (async Python) │
│ FastMCP + Project management │
│ Plugin discovery + registration │
└──────────────┬───────────────────┘
│ fd-pair pipe (JSON lines)
┌─────┼─────┐
▼ ▼ ▼
Worker Worker Worker
idalib idalib idalib
(plugin handlers)
Tools
Ramune-ida provides 28 tools (21 plugin tools + 7 session tools) covering the core reverse engineering workflow:
- Session (7) — project lifecycle, database open/close, async task management
- Analysis (4) — decompile, disassemble, cross-references, binary overview
- Annotation (3) — rename symbols, read/write comments
- Data (2) — auto-detect address type, read raw bytes
- Listing (5) — enumerate functions, strings, imports, names, types (with filtering)
- Search (2) — regex search across strings/names/disasm, byte pattern search
- Types (3) — get/set types on functions/variables, declare C types (struct/enum/typedef)
- Execution (1) — run arbitrary IDAPython with stdout/stderr capture
- Undo (1) — IDA 9.0+ native undo
Low-frequency or exploratory operations are covered by execute_python, which provides full IDAPython access within the IDA environment.
Features
安装
docker run -p 8000:8000 ramune-ida配置
{
"mcpServers": {
"ramune-ida": {
"command": "uv",
"args": ["run", "ramune-ida", "--local", "stdio://"],
"cwd": "/path/to/your/reversing/workspace"
}
}
}