IDA Free MCP 标志

IDA Free MCP

社区
0xshlomil

A native C++ plugin that brings AI into your IDA reverse engineering workflow.

发布者0xshlomil
代码仓库ida-free-mcp
语言C++
复刻数
15
星标数
46
可用工具
0
传输类型streamable-http
分类
许可协议MIT
链接
  • 将工具接入 AI 工作流

    IDA Free MCP 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 46 个星标和 15 个复刻。

IDA Free MCP

A native C++ plugin that brings AI into your IDA reverse engineering workflow.

It exposes IDA's analysis capabilities through the Model Context Protocol (MCP) — a standard interface that lets LLMs talk to tools. The plugin runs an HTTP server inside IDA's process, so your AI assistant can read disassembly, decompile functions, follow cross-references, rename variables, patch bytes, and more.

Usage

  1. Open a binary in IDA
  2. Edit > Plugins > MCP (or Ctrl+Alt+M) to start the server
  3. Connect your MCP client to http://0.0.0.0:13337/mcp
  4. Press Ctrl+Alt+M again to stop

Connecting an MCP client

bash
# Claude Code
claude mcp add --transport http ida-mcp http://127.0.0.1:13337/mcp

For other clients (Claude Desktop, Cursor, Windsurf, etc.), add to your MCP config:

json
{
  "mcpServers": {
    "ida-mcp": {
      "url": "http://127.0.0.1:13337/mcp"
    }
  }
}

Multiple IDA instances

Multiple IDA sessions can run MCP simultaneously — the port auto-increments if already in use (up to 10 attempts). Each instance writes its port, PID, and IDB path to ~/.ida-mcp/instances/<pid>.json. Stale files from crashed sessions are cleaned up automatically.

Environment variables

VariableDescriptionDefault
IDA_MCP_PORTBase port for the HTTP server13337
IDA_MCP_TOOL_TIMEOUT_SECTool execution timeout in seconds—
IDA_MCP_URLDownload base URL for large outputshttp://127.0.0.1:<port>

Requirements

  • CMake 3.16+, C++17 compiler (GCC, Clang, or MSVC)
  • IDA SDK (for building the plugin; not needed for tests)
  • IDA Pro / IDA Free 9.0+

Building

Quick start

bash
# Linux / macOS
./build.sh

# Windows (Developer Command Prompt)
build.bat

Both scripts build tests, run them, build the plugin, and install it. Set IDASDK to override the SDK path (default: idasdk/src submodule).

Manual build

bash
# Tests only (no IDA SDK required)
cmake -S . -B build/tests -DBUILD_PLUGIN=OFF -DBUILD_TESTS=ON
cmake --build build/tests --config Release

# Plugin
cmake -S . -B build/plugin -DBUILD_PLUGIN=ON -DBUILD_TESTS=OFF -DIDASDK=/path/to/idasdk
cmake --build build/plugin --config Release

Copy the built plugin (ida_mcp.so / .dll / .dylib) to your IDA plugins/ directory.

Pre-built binaries are available on the releases page.

Architecture

IDA Plugin (plugin.cpp)
  └─ McpPlugmod
       ├─ McpProtocol (mcp.h)        ← Tool/resource registry, MCP methods
       │    └─ JsonRpcRegistry        ← JSON-RPC 2.0 dispatch
       └─ McpHttpServer (server.h)    ← HTTP routes, CORS, SSE

All IDA SDK calls are marshalled to IDA's main thread via execute_sync(MFF_WRITE) with timeout and cancellation support.

Transports: Streamable HTTP (POST /mcp) and SSE (GET /sse).

Tools & Resources

37 tools organized into 7 groups. Every tool runs on IDA's main thread via execute_sync for thread safety.

GroupTools
Coreint_convert, lookup_funcs, list_funcs, list_globals, imports, find_regex
Analysisdisasm, xrefs_to, xrefs_to_field, callees, callgraph, basic_blocks, find, find_bytes, export_funcs
Memoryget_bytes, get_string, get_int, get_global_value, patch, put_int
Modifyset_comments, rename, patch_asm, define_func, define_code, undefine
Typesdeclare_type, read_struct, search_structs, set_type
Stackstack_frame, declare_stack, delete_stack
Decompilerdecompile, hexrays_diag, debug_mode

Note: The decompile tool works on both IDA Pro and IDA Free. It uses GUI-based decompilation (triggers F5 and reads the pseudocode widget) — no Hex-Rays SDK initialization required. The hexrays_diag tool reports SDK status for diagnostics only; init_hexrays_plugin: false is expected on IDA Free and does not affect decompilation.

11 MCP resources for read access to IDA state: ida://idb/metadata, ida://idb/segments, ida://idb/entrypoints, ida://cursor, ida://selection, ida://types, ida://structs, ida://struct/{name}, ida://import/{name}, ida://export/{name}, ida://xrefs/from/{addr}.

Dependencies

All vendored in deps/ (header-only): nlohmann/json, cpp-httplib, doctest.

License

See LICENSE file.

将 IDA Free MCP MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 IDA Free MCP 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 在 TypingMind 中,您可以使用远程托管的 MCP 服务器的 URL 连接此 MCP 服务。

添加 MCP 服务器 URL

如果 IDA Free MCP 已托管在远程服务器上,或您的团队希望让多个用户共用一个连接器,请选择此方式。

1

打开 MCP 连接器

在 TypingMind 中,前往“插件”,打开“MCP 连接器”,然后选择“添加 URL”。

  1. 在您的浏览器中打开 TypingMind。
  2. 进入“插件”。
  3. 打开“MCP 连接器”。
  4. 点击“添加 URL”。
TypingMind 的“添加自定义 MCP 服务器 URL”表单
2

粘贴服务器 URL

在“服务器 URL”字段中输入 提供商提供的 MCP 服务器 URL。根据服务器要求,添加连接名称、描述、图标、自定义 HTTP 请求头或 OAuth 客户端设置。

  1. 将 提供商提供的 MCP 服务器 URL 粘贴到“服务器 URL”字段中。
  2. 为 IDA Free MCP 输入连接名称。
  3. 您可以添加描述和图标,以便更容易识别此连接。
  4. 如果服务器需要身份验证,请添加自定义 HTTP 请求头或 OAuth 客户端信息。
3

创建连接

点击“创建连接”,然后返回插件列表,确认新的 MCP 连接处于可用状态。

  1. 点击“创建连接”。
  2. 返回 MCP 连接器列表。
  3. 确认列表中的 IDA Free MCP 连接显示为可用状态。
  4. 如果连接未立即出现,请刷新插件列表。
4

切换模型,无需重新连接

使用您偏好的模型开始聊天,在“插件”中启用 IDA Free MCP 工具,并根据需要随时切换到其他模型。该 MCP 连接在 TypingMind 工作区中仍然可用。

  1. 在 TypingMind 中开始新聊天。
  2. 选择您想使用的 AI 模型。
  3. 在“插件”中启用 IDA Free MCP 工具。
  4. 需要时,请让模型使用该工具。
  5. 切换到其他 AI 模型,继续使用同一个 MCP 连接。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 IDA Free MCP 帮我完成这项任务吗?
IDA Free MCP
当然,我看过了。
以下是我使用 IDA Free MCP 得到的结果。

常见问题

IDA Free MCP MCP 服务器有什么用途?

IDA Free MCP 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 IDA Free MCP MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 IDA Free MCP。

为什么在 TypingMind 中使用 IDA Free MCP MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 IDA Free MCP 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 IDA Free MCP MCP 连接到 TypingMind?

要连接 IDA Free MCP,请在 TypingMind 中添加该远程 MCP 服务器的 URL。如果您希望在 TypingMind 工作区中使用远程 MCP 连接,这种方式很适合。

IDA Free MCP MCP 在 TypingMind 中提供哪些工具?

IDA Free MCP 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 IDA Free MCP MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 IDA Free MCP 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇