SI

suzixunyue/ida-script-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

56 stars 14 forks 质量 85 趋势 8MIT

suzixunyue/ida-script-mcp 是从 https://github.com/suzixunyue/ida-script-mcp. 导入的 MCP 服务器候选

概览

suzixunyue/ida-script-mcp 是从 https://github.com/suzixunyue/ida-script-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

英语 |中文


英文版

通过任何兼容MCP的AI助手,在IDA Pro中执行IDAPython脚本。

为什么选择IDA脚本MCP?

IDA 脚本 MCP
延迟 升级说明:重启IDA(或重新切换插件),使新插件通过新的MCP服务器认证。混合设置依然有效:遗留插件实例仍接受无令牌请求。

[1.2.0] - 2026-05-08

新增:

  • 异步任务执行系统:长期运行的脚本不再导致客户端断开连接。脚本异步提交给IDA,MCP服务器以指数回退(0.5秒→5秒上限)轮询完成。如果超过可配置超时(默认:600秒),则返回task_id用于后续状态查询。
  • check_task_status 工具:新的 MCP 工具,通过其 task_id 查询长期运行脚本执行任务的状态和结果。
  • timeout 参数用于 execute_idapython:可配置的最大等待时间(默认:600秒),之后返回 task_id 以进行延迟轮询。
  • IDA插件中的任务管理端点:GET /task/{id}用于查询任务状态/结果,GET /tasks用于列出所有任务。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

IDA Script MCP

English | 中文


English Version

Execute IDAPython scripts in IDA Pro through any MCP-compatible AI assistant.

Why IDA Script MCP?

IDA Script MCP
Latency < 1ms per request (local HTTP, no IPC overhead)
Footprint Zero external dependencies inside IDA — stdlib-only plugin
Startup Plugin ready instantly, no background process in IDA
Concurrency Run N IDA instances, each on its own port, zero conflict
API Coverage Full access to 40+ IDA modules including Hex-Rays decompiler

The IDA-side plugin uses only Python stdlib (http.server, socket, json) — no pip packages needed inside IDA Pro. The MCP server (separate process) uses FastMCP for the protocol layer and communicates with IDA via plain HTTP on localhost. This means:

  • No slow startup inside IDA
  • No dependency conflicts with IDA’s bundled Python
  • No memory overhead from heavy frameworks loaded into IDA
  • Each IDA instance is completely independent — one crash doesn’t affect others

Features

  • AI-Powered Analysis — Let any MCP-compatible AI assistant analyze binaries directly in IDA Pro
  • Multi-Instance Support — Analyze multiple binaries simultaneously across different IDA instances with automatic port assignment
  • Async Task Execution — Long-running scripts won’t disconnect the client; poll for results with configurable timeout
  • One-Command Setup — Install IDA plugin + configure your AI client in a single step
  • Full IDA API Access — Complete access to all IDA modules (idaapi, idc, idautils, ida_hexrays, etc.)
  • Jupyter-style Evaluation — Last expression is automatically returned as the result value
  • Output Capture — Capture stdout/stderr and return values from executed code
  • Universal Client Support — Works with any MCP-compatible AI client (see Supported Clients)

Requirements

  • IDA Pro 8.3+ (IDA Free does not support plugins)
  • Python 3.11+
  • Windows / macOS / Linux

Installation

pip install ida-script-mcp
ida-script-mcp-install install claude

Option 2: uv

uv pip install ida-script-mcp
ida-script-mcp-install install claude

Option 3: pipx (isolated environment)

pipx install ida-script-mcp
ida-script-mcp-install install claude

Option 4: From Source

git clone https://github.com/SuZiXunYue/ida-script-mcp.git
cd ida-script-mcp
pip install -e .
ida-script-mcp-install install

Advanced Options

# Install plugin only (no client configuration)
ida-script-mcp-install install

# Configure multiple MCP clients at once
ida-script-mcp-install install claude,cursor,cline

# Use project-level configuration (per-repo settings)
ida-script-mcp-install install --project claude

# List all available MCP clients
ida-script-mcp-install --list-clients
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "ida-script-mcp": { "command": "python", "args": ["-m", "ida_script_mcp.server"] } } }