Ida Re MCP logo

Ida Re MCP

Community
yexi-by

面向 AI Agent 的 IDA Pro 9.3+ stdio MCP 逆向分析服务

Publisheryexi-by
Repositoryida-re-mcp
LanguagePython
Forks
14
Stars
120
Available tools
0
Transport typestdio
LicenseMIT
Links
  • Connect tools to AI workflows

    Ida Re MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    120 stars and 14 forks from the linked repository.

ida-re-mcp

IDA Pro 9.3+ 的 headless 逆向工程 MCP 服务。任何支持 MCP 的 AI Agent(Codex、 Claude Code、Kimi CLI 等)都可以通过 stdio 接入,让 Agent 直接驱动 IDA 分析 PE / ELF 文件。当前支持 PE x86/x86-64,以及小端 ELF x86/x86-64/ARM/AArch64。

功能

  • 静态分析:程序概览与搜索(program.*)、函数、反汇编、类型、交叉引用、 字符串、伪代码、数据流切片
  • IDB 修改:重命名、注释、改类型等,每次修改生成新的分析版本(revision), 旧版本仍可读取
  • 动态调试:Windows x86/x64 本机调试,断点、寄存器、线程、调用栈、内存读写
  • 产物:Markdown / JSON 报告、样本与分析结果导出、IL2CPP 元数据
  • 协作:分析结果持久化在本机 data/,多个 Agent 可通过 workspace_id 接手 同一份分析,不必重复导入样本

要求

  • IDA Pro 9.3+ 及有效许可证
  • uv
  • 读取伪代码需要对应处理器的 Hex-Rays Decompiler;动态调试需要 Windows

快速开始

  1. 确认 config.toml 中的 ida_dir 指向本机 IDA 安装目录,其余选项通常无需修改。

  2. 运行检查,确认 healthy 和 worker.available 都为 true:

    powershell
    uv run ida-re-mcp doctor --config config.toml

    doctor 检查 IDA 的基础运行环境。它尚未打开数据库,因此 worker.hexrays_available 为 null;当前处理器的 Hex-Rays 能力会在实际查询时检查。

  3. 在你的 Agent 客户端中登记一个 stdio MCP 服务,启动命令为:

    powershell
    uv run ida-re-mcp serve --config config.toml

    以 Codex 为例,在 config.toml 中加入:

    toml
    [mcp_servers.ida-re-mcp]
    command = "uv"
    args = ["run", "ida-re-mcp", "serve", "--config", "config.toml"]
    cwd = 'D:\path\to\ida-re-mcp'
    startup_timeout_sec = 240.0
    tool_timeout_sec = 3900.0

    其他客户端同理,工作目录指向本项目即可。这里的 startup_timeout_sec 和 tool_timeout_sec 只限制客户端等待 MCP 服务的时间。 IDA 子进程的单次操作时限由本项目 config.toml 的 [workers] 控制: operation_timeout_seconds 用于普通查询、分析细化、IDB 修改和 expert.execute, initial_analysis_timeout_seconds 单独用于首次导入时的 IDA 自动分析。 默认值和最大值分别为 1 小时和 3 小时。expert.execute.timeout_seconds 可以缩短单次 Expert worker 操作,但不能超过 operation_timeout_seconds; 修改配置后需要重启 MCP 服务。

工作原理

Agent ──stdio/MCP──▶ supervisor ──IPC──▶ IDA headless worker
                          │                     │
                       data/ 持久化 ◀───────────┘
  • 服务进程(supervisor)只负责协议和调度,真正的分析在独立的 IDA 子进程中执行; IDA 崩溃不会影响 MCP 连接,空闲 worker 会自动退出。
  • 导入的样本副本、IDB、每次修改生成的 revision 都写入 data/,日志写入 logs/; 相对路径以 config.toml 所在目录为准。
  • 长任务(首次分析、报告生成)返回 operation 编号,用 operation.wait 等待完成。
  • 首次分析失败或取消且尚未产生 revision 时,使用 workspace.retry 重新分析已有 workspace;不要再次导入同一份样本。
  • 所有修改走 change.prepare → change.apply 两段提交,prepare 先校验, apply 成功后才产生新 revision。
  • 工具结果的完整数据在 structuredContent 中,附带的中文文本只是摘要; 出错时第一段文本说明原因和下一步,第二段是 {code,message,details} 错误对象。
  • 单个函数反编译失败时,错误会保留 IDA 提供的函数地址、失败位置和 Hex-Rays 错误码。 例如 MERR_BADCALL 表示调用参数分析失败,应检查调用指令和被调用函数原型; 用 function.inspect 的 instructions、types 视图继续检查,原始诊断可在会话日志中找到。 capability_unavailable 用于当前环境无法提供所需能力的情况,例如缺少对应处理器的授权。

默认配置允许修改 IDB、启动调试、附加外部进程和执行任意 IDAPython。不需要这些 功能时,在 config.toml 的 [policy] 中关闭对应选项并重启服务。

开发

powershell
./scripts/run_quality.ps1

运行格式检查、类型检查、全部测试和 MCP 启动检查,任一步失败即返回非零退出码。

许可证

MIT

Use Ida Re MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Ida Re MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Ida Re MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Ida Re MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "ida-re-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Ida Re MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Ida Re MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Ida Re MCP to help me with this task?
Ida Re MCP
Sure. I read it.
Here is what I found using Ida Re MCP.

Frequently asked questions

What is the Ida Re MCP MCP server used for?

Ida Re MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Ida Re MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Ida Re MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Ida Re MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Ida Re MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Ida Re MCP MCP to TypingMind?

Ida Re MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Ida Re MCP MCP provide in TypingMind?

Ida Re MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Ida Re MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Ida Re MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇