致谢
该项目建立在以下工作基础之上:
工具代码改编自 mrexodia 的ida-pro-mcp
利用 DennyDai 的headless-ida库
无头 IDA MCP 服务器
如果您想直接将服务器作为 cli 应用程序运行,而不是以交互方式运行 IDA 插件,您可以选择它。
项目描述
该项目使用 IDA Pro 的无头模式来分析二进制文件,并通过 MCP 提供一套工具来管理和操作函数、变量等。
先决条件
Python 3.12 或更高版本
支持无头的 IDA Pro(idat) https://github.com/DennyDai/headless-ida
安装
克隆项目到本地:
git clone https://github.com/cnitlrt/headless-ida-mcp-server.git cd headless-ida-mcp-server安装依赖项:
uv python install 3.12 uv venv --python 3.12 uv pip install -e .
配置
复制示例环境文件:
cp .env_example .env在
.env
中配置以下环境变量:IDA_PATH
: IDA Pro 的无头可执行文件 (idat) 的路径,例如/home/ubuntu/idapro/idat
PORT
:MCP 服务器的端口号,例如8888
HOST
:MCP 服务器的主机地址,例如127.0.0.1
TRANSPORT
:MCP 传输模式(sse
或stdio
)
用法
启动服务器:
uv run headless_ida_mcp_server使用 MCP 客户端连接到服务器:
调试:
npx -y @modelcontextprotocol/inspector或者
{ "mcpServers": { "ida": { "command": "/path/to/uv", "args": ["--directory","path/to/headless-ida-mcp-server","run","headless_ida_mcp_server"] } } }
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
通过 IDA Pro 的无头模式提供远程二进制分析功能的服务器,允许用户通过多客户端协议管理和操作函数、变量和其他二进制元素。
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server for IDA interaction and automation. This server provides tools to read IDA database via Large Language Models.Last updated -19479MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants to interact with IDA Pro for reverse engineering and binary analysis tasks.Last updated -1271MIT License
- AsecurityAlicenseAqualityMCP Server for automated reverse engineering with IDA Pro.Last updated -433,847MIT License
- AsecurityAlicenseAqualityMCP server for reverse engineering that enables interaction with IDA Pro for analysis tasks such as decompilation, disassembly, and memory engagement reports.Last updated -2445MIT License