ida-mcp-server

ida-mcp-server

一个用于IDA交互和自动化的模型上下文协议服务器。该服务器提供通过大型语言模型读取IDA数据库的工具。

编程文档访问
数据库交互
AI集成系统
数据与应用分析
访问服务器

Tools

ida_get_function_assembly_by_name

Get assembly code for a function by name

ida_get_function_assembly_by_address

Get assembly code for a function by address

ida_get_function_decompiled_by_name

Get decompiled pseudocode for a function by name

ida_get_function_decompiled_by_address

Get decompiled pseudocode for a function by address

ida_get_global_variable_by_name

Get information about a global variable by name

ida_get_global_variable_by_address

Get information about a global variable by address

ida_get_current_function_assembly

Get assembly code for the function at the current cursor position

ida_get_current_function_decompiled

Get decompiled pseudocode for the function at the current cursor position

ida_rename_local_variable

Rename a local variable within a function in the IDA database

ida_rename_global_variable

Rename a global variable in the IDA database

ida_rename_function

Rename a function in the IDA database

ida_rename_multi_local_variables

Rename multiple local variables within a function at once in the IDA database

ida_rename_multi_global_variables

Rename multiple global variables at once in the IDA database

ida_rename_multi_functions

Rename multiple functions at once in the IDA database

ida_add_assembly_comment

Add a comment at a specific address in the assembly view of the IDA database

ida_add_function_comment

Add a comment to a function in the IDA database

ida_add_pseudocode_comment

Add a comment to a specific address in the function's decompiled pseudocode

ida_execute_script

Execute a Python script in IDA Pro and return its output. The script runs in IDA's context with access to all IDA API modules.

ida_execute_script_from_file

Execute a Python script from a file path in IDA Pro and return its output. The file should be accessible from IDA's process.

README

IDA MCP 服务器

[!NOTE] idalib 模式正在开发中,它将不需要安装 IDA 插件或运行 IDA (idalib 可从 IDA Pro 9.0+ 获得)。

概述

一个用于 IDA 交互和自动化的模型上下文协议服务器。此服务器提供通过大型语言模型读取 IDA 数据库的工具。

请注意,mcp-server-ida 目前处于早期开发阶段。随着我们不断开发和改进服务器,其功能和可用工具可能会发生变化和扩展。

安装

使用 uv (推荐)

当使用 uv 时,不需要进行特定的安装。我们将使用 uvx 直接运行 mcp-server-ida

使用 PIP

或者,您可以通过 pip 安装 mcp-server-ida

pip install mcp-server-ida

安装后,您可以将其作为脚本运行:

python -m mcp_server_ida

IDA 端

repository/plugin/ida_mcp_server_plugin.pyrepository/plugin/ida_mcp_server_plugin 目录复制到 IDA 的插件目录中

Windows: %APPDATA%\Hex-Rays\IDA Pro\plugins

Linux/macOS: $HOME/.idapro/plugins 例如: ~/.idapro/plugins

igors-tip-of-the-week-103-sharing-plugins-between-ida-installs

配置

与 Claude Desktop 一起使用

将其添加到您的 claude_desktop_config.json 中:

<details> <summary>使用 uvx</summary>

"mcpServers": {
  "git": {
    "command": "uvx",
    "args": [
        "mcp-server-ida"
    ]
  }
}

</details>

<details> <summary>使用 pip 安装</summary>

"mcpServers": {
  "git": {
    "command": "python",
    "args": [
        "-m", 
        "mcp_server_ida"
    ]
  }
}

</details>

调试

您可以使用 MCP 检查器来调试服务器。对于 uvx 安装:

npx @modelcontextprotocol/inspector uvx mcp-server-ida

或者,如果您已将软件包安装在特定目录中或正在对其进行开发:

cd path/to/mcp-server-ida/src
npx @modelcontextprotocol/inspector uv run mcp-server-ida

运行 tail -n 20 -f ~/Library/Logs/Claude/mcp*.log 将显示来自服务器的日志,并可能帮助您调试任何问题。

开发

如果您正在进行本地开发,有两种方法可以测试您的更改:

  1. 运行 MCP 检查器来测试您的更改。有关运行说明,请参见 调试

  2. 使用 Claude 桌面应用程序进行测试。将以下内容添加到您的 claude_desktop_config.json 中:

UVX

{
"mcpServers": {
  "git": {
    "command": "uv",
    "args": [ 
      "--directory",
      "/<mcp-server-ida 的路径>",
      "run",
      "mcp-server-ida"
    ]
  }
}

替代方案

ida-pro-mcp

ida-mcp-server-plugin

mcp-server-idapro

pcm

截图

Screenshot 1 Screenshot 2 Screenshot 3

推荐服务器

Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选
AIO-MCP Server

AIO-MCP Server

🚀 集成了 AI 搜索、RAG 和多服务(GitLab/Jira/Confluence/YouTube)的一体化 MCP 服务器,旨在增强 AI 驱动的开发工作流程。来自 Folk。

精选
本地
Knowledge Graph Memory Server

Knowledge Graph Memory Server

为 Claude 实现持久性记忆,使用本地知识图谱,允许 AI 记住用户的信息,并可在自定义位置存储,跨对话保持记忆。

精选
本地
Hyperbrowser

Hyperbrowser

欢迎来到 Hyperbrowser,人工智能的互联网。Hyperbrowser 是下一代平台,旨在增强人工智能代理的能力,并实现轻松、可扩展的浏览器自动化。它专为人工智能开发者打造,消除了本地基础设施和性能瓶颈带来的麻烦,让您能够:

精选
本地
https://github.com/Streen9/react-mcp

https://github.com/Streen9/react-mcp

react-mcp 与 Claude Desktop 集成,能够根据用户提示创建和修改 React 应用程序。

精选
本地