IDA Pro MCP Multi
Extends IDA Pro with multi-instance support and vulnerability scanning for AI-assisted reverse engineering.
README
IDA Pro MCP Multi
📌 Based on: This project is developed based on mrexodia/ida-pro-mcp, extending it with multi-instance support and vulnerability scanning capabilities.
A powerful MCP Server for AI-assisted reverse engineering in IDA Pro, with support for analyzing multiple binaries simultaneously.
Why This Project?
The original ida-pro-mcp is an excellent tool for AI-assisted reverse engineering, but we encountered limitations in real-world scenarios:
Problem 1: Single Instance Limitation
When reverse engineering complex software, you often need to analyze multiple related binaries:
- A main executable (
main.exe) - Multiple DLLs/shared libraries (
helper.dll,crypto.dll, etc.) - Third-party libraries
The original project only supports one IDA instance at a time, making cross-binary analysis tedious and inefficient.
Problem 2: No Built-in Vulnerability Detection
Security researchers need to quickly identify potentially dangerous code patterns. Manually searching for vulnerable function calls is time-consuming.
New Features
🔗 Multi-Instance Support
Analyze multiple binaries simultaneously with a Gateway architecture:
AI Client ──MCP──> Gateway (port 13337) ──> IDA Instance 1 (main.exe, port 13338)
──> IDA Instance 2 (helper.dll, port 13339)
──> IDA Instance 3 (crypto.dll, port 13340)
How It Works:
- The first IDA instance automatically starts a Gateway Server (port 13337)
- Each subsequent IDA instance registers with the Gateway and gets a unique port
- AI clients connect to the Gateway, which routes requests to the appropriate instance
Instance Management Tools:
| Tool | Description |
|---|---|
list_instances() |
List all registered IDA instances |
switch_instance(target) |
Switch the default target instance (by ID or binary name) |
get_current_instance() |
Get info about the current default instance |
check_instance_health(target) |
Check if an instance is responding |
open_library(name) |
Auto-search and open a library file in a new IDA instance |
Auto-Open Library:
When analyzing a program that uses external libraries, you can ask AI to open them automatically:
- Searches the current directory and subdirectories for the library file
- Auto-detects architecture (x86/x64/ARM)
- Opens in IDA Pro with automatic analysis (no dialogs)
- MCP plugin starts automatically after loading
Targeting Specific Instances:
Most tools accept an optional target parameter:
{
"method": "decompile",
"params": {
"addr": "0x401000",
"target": "helper.dll"
}
}
Legacy Mode:
To disable multi-instance support:
IDA_MCP_LEGACY=1
🔍 Vulnerability Scanning
Comprehensive vulnerability scanning to identify potentially dangerous function calls with advanced detection:
Tools:
| Tool | Description |
|---|---|
vuln_scan(output_dir, categories, min_risk) |
Scan binary for vulnerabilities, returns summary |
vuln_scan_details(category, limit, offset, risk_level) |
Get detailed findings for a specific category |
vuln_scan_function(addr) |
Scan a specific function for vulnerability patterns |
vuln_categories() |
List all vulnerability categories and associated functions |
Supported Vulnerability Categories (11 categories, 150+ dangerous functions):
| Category | Dangerous Functions | Description |
|---|---|---|
| Format String | printf, sprintf, scanf, snprintf, syslog, etc. | Non-constant format strings, %s without width limit |
| Buffer Overflow | strcpy, memcpy, gets, recv, fread, etc. | Unbounded copies, controllable sizes, %s in scanf |
| Command Injection | system, popen, exec*, CreateProcess, ShellExecute, etc. | Non-constant commands |
| Integer Overflow | malloc, calloc, realloc, alloca, VirtualAlloc, etc. | Potentially overflowing sizes |
| Use After Free | free, delete, HeapFree, VirtualFree, etc. | Potential UAF/double-free |
| Path Traversal | fopen, open, CreateFile, CopyFile, etc. | Controllable paths |
| SQL Injection | sqlite3_exec, mysql_query, PQexec, etc. | Non-constant SQL queries |
| Unchecked Return | malloc, setuid, setgid, chdir, etc. | Missing return value checks |
| Race Condition | access, stat, lstat, etc. | TOCTOU vulnerabilities |
| Information Leak | write, send, sendto, fwrite, etc. | Potentially leaking data |
| Signed Comparison | strncmp, memcmp, memchr, etc. | Size parameters with signed comparison |
Detection Features:
- Format String Analysis: Checks for non-constant format strings AND dangerous
%sspecifiers without width limits - strlen Check: Detects if
strlen()was called before unbounded copy operations - Return Value Check: Verifies if return values from malloc/setuid/etc. are properly validated
- MSVC Secure Functions: Handles
_ssuffix variants (strcpy_s, sprintf_s, etc.) - glibc Fortified Functions: Handles
_chksuffix variants (__printf_chk, __memcpy_chk, etc.) - Risk Assessment: High/Medium/Low/Info based on parameter controllability
Workflow:
- Ask AI to "scan for vulnerabilities"
- AI calls
vuln_scan()to get a summary by category and risk level - Review the summary and select categories for deep analysis
- AI uses
vuln_scan_details(category)anddecompile()to analyze specific findings
Note: Detailed results are saved to .ida-mcp-vuln/ folder to minimize token usage.
Prerequisites
- IDA Pro (8.3 or higher, 9 recommended)
- Any MCP-compatible client (Claude, Cursor, VS Code, Roo Code, etc.)
Installation
For Users Who Have Installed the Original ida-pro-mcp
If you have previously installed the original ida-pro-mcp, you need to uninstall it first and then force reinstall:
# Uninstall old versions
"D:\your\path\to\ida\python311\python.exe" -m pip uninstall -y ida-pro-mcp ida-pro-mcp-multi
# Force reinstall the new version
"D:\your\path\to\ida\python311\python.exe" -m pip install --no-cache-dir --force-reinstall --upgrade git+https://github.com/QYmag1c/ida-pro-mcp-multi
# Reinstall IDA plugin and configure MCP clients
"D:\your\path\to\ida\python311\Scripts\ida-pro-mcp.exe" --install
# View MCP configuration
"D:\your\path\to\ida\python311\Scripts\ida-pro-mcp.exe" --config
Then restart IDA Pro and your MCP client.
Fresh Installation
Step 1: Install MCP Package
Open a terminal in IDA's Python directory and run:
# Navigate to IDA's Python directory
cd "D:\your\path\to\ida\python311"
# Install the MCP package
python.exe -m pip install --upgrade git+https://github.com/QYmag1c/ida-pro-mcp-multi
Step 2: Install IDA Plugin and Configure MCP Clients
# Install IDA plugin and configure MCP clients
"D:\your\path\to\ida\python311\Scripts\ida-pro-mcp.exe" --install
# View MCP configuration for manual setup
"D:\your\path\to\ida\python311\Scripts\ida-pro-mcp.exe" --config
Note: Replace D:\your\path\to\ida with your actual IDA Pro installation path.
Step 3: Restart
Important: Restart IDA Pro and your MCP client completely for the installation to take effect.
Verify Installation
- Open IDA Pro and load a binary
- Go to Edit → Plugins → MCP (or press
Ctrl+Alt+M) - You should see
[MCP] Server startedin the output window
Architecture
src/ida_pro_mcp/
├── server.py # MCP server + instance management tools
├── gateway.py # Gateway Server for multi-instance routing
├── ida_mcp.py # IDA plugin loader (registers with Gateway)
└── ida_mcp/
├── api_core.py # Core functions (decompile, disasm, etc.)
├── api_analysis.py # Analysis operations
├── api_vuln.py # Vulnerability scanning (NEW)
├── api_memory.py # Memory operations
├── api_types.py # Type operations
├── api_modify.py # Modification operations
├── api_stack.py # Stack frame operations
├── api_debug.py # Debugger operations
└── ...
All Available Tools
This project includes all tools from the original project, plus the new multi-instance and vulnerability scanning features.
Instance Management (NEW)
list_instances(),switch_instance(),get_current_instance(),check_instance_health()
Vulnerability Scanning (NEW)
vuln_scan(),vuln_scan_details(),vuln_scan_function(),vuln_categories()
Core Functions
lookup_funcs(),int_convert(),list_funcs(),list_globals(),imports(),decompile(),disasm(),xrefs_to(),callees()
Modification Operations
set_comments(),patch_asm(),declare_type(),rename()
Memory Operations
get_bytes(),get_int(),get_string(),get_global_value(),patch(),put_int()
Analysis Operations
py_eval(),analyze_funcs(),find_regex(),find_bytes(),find_insns(),find(),basic_blocks(),callgraph()
Type Operations
set_type(),infer_types(),read_struct(),search_structs()
Stack Operations
stack_frame(),declare_stack(),delete_stack()
Debugger Operations (requires --unsafe flag)
dbg_start(),dbg_exit(),dbg_continue(),dbg_step_into(),dbg_step_over(), etc.
Acknowledgments
- Original project: mrexodia/ida-pro-mcp
License
MIT License - See LICENSE for details.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。