/ 目录 / 演练场 / ida-pro-mcp
● 社区 mrexodia ⚡ 即开即用

ida-pro-mcp

作者 mrexodia · mrexodia/ida-pro-mcp

Bridge IDA Pro with AI for automated binary analysis — decompile, rename, patch, debug, and search across your IDB.

ida-pro-mcp connects IDA Pro (8.3+) to AI assistants via MCP, exposing tools for decompilation, disassembly, symbol navigation, cross-references, patching, type management, and full debugger control. Supports 20+ MCP clients including Claude, VS Code, Cursor, and Windsurf. Features automated installation, headless analysis via SSE transport, and batch operations.

为什么要用

核心特性

实时演示

实际使用效果

ida-pro-mcp.replay ▶ 就绪
0/0

安装

查看作者仓库中的安装说明

使用场景

实战用法: ida-pro-mcp

How to reverse engineer a binary with AI assistance in IDA Pro

👤 Reverse engineers and security researchers analyzing binaries they own or have authorization to test ⏱ ~60 min advanced

何时使用: You have a binary loaded in IDA Pro and want AI to help understand and annotate it.

前置条件
  • IDA Pro 8.3+ (not IDA Free) — Commercial license from Hex-Rays
  • ida-pro-mcp installed — pip install <repo-url> && ida-pro-mcp --install
步骤
  1. Get an overview
    List all functions in this binary. Which ones look like they handle network communication based on their names and imports?✓ 已复制
    → Categorized function list with network-related functions highlighted
  2. Decompile key functions
    Decompile the main network handler function. Explain the protocol it implements and rename variables to be descriptive.✓ 已复制
    → Decompiled C code with renamed variables and protocol analysis
  3. Trace data flow
    Find all cross-references to the encryption key buffer. Who reads it and who writes it?✓ 已复制
    → Xref chain showing data flow from key generation to encryption calls

结果: A well-annotated IDB with key functions understood, renamed, and documented.

注意事项
  • Decompilation can be slow on large functions — Start with smaller callees and work up. Use disasm() for quick overviews.
搭配使用: filesystem

Solve a CTF reverse engineering challenge using IDA Pro and AI

👤 CTF participants working on binary reversing challenges ⏱ ~45 min intermediate

何时使用: You have a CTF binary that needs static and/or dynamic analysis to find the flag.

前置条件
  • IDA Pro with ida-pro-mcp — Install and connect
步骤
  1. Find the validation logic
    Search for strings containing 'flag', 'correct', 'wrong'. Decompile the functions that reference them.✓ 已复制
    → Validation function with flag-checking logic
  2. Debug to extract the flag
    Set a breakpoint at the comparison. Run the binary with input 'AAAA' and show me what it compares against.✓ 已复制
    → Expected flag value visible in registers or memory

结果: Flag extracted through combined static and dynamic analysis.

注意事项
  • Anti-debug tricks prevent breakpoint hits — Use find_insns to locate anti-debug checks and patch them with patch_asm

组合

与其他 MCP 搭配,撬动十倍杠杆

ida-pro-mcp + filesystem

Export decompiled code and analysis notes to files

Decompile all functions related to the crypto module and save the annotated code to ~/analysis/crypto.c.✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
decompile address_or_name: str Decompile a function to C pseudocode 0
disasm address: str, count?: int Disassemble instructions at an address 0
rename old_name: str, new_name: str Rename a function or variable 0
xrefs_to address: str Find all cross-references to an address 0
find_bytes pattern: str Search for a byte pattern in the binary 0
patch_asm address: str, asm: str Patch assembly instructions at an address 0
dbg_run none Start the debugger 0
set_comments address: str, comment: str Add a comment at an address 0

成本与限制

运行它的成本

API 配额
N/A — local IDA Pro instance
每次调用 Token 数
200–3000 tokens (decompilation output can be large)
费用
Requires IDA Pro commercial license ($). The MCP plugin itself is free.
提示
Use list_funcs to identify targets before decompiling to avoid decompiling every function.

安全

权限、密钥、影响范围

凭据存储: N/A — local tool
数据出站: All analysis is local. No network calls from the MCP server.

故障排查

常见错误与修复

ida-pro-mcp --install fails

Ensure Python 3.11+ and IDA Pro 8.3+ are installed. The installer needs to find IDA's plugin directory.

验证: python3 --version && which idat
Decompilation fails

Not all functions decompile cleanly (obfuscation, hand-written assembly). Try disasm() as a fallback.

验证: Try decompiling a simpler function first
Debugger won't start

Ensure IDA's debugger is configured for the target platform (local, remote, etc.). Check that the binary is not already running.

验证: Check IDA's debugger settings

替代方案

ida-pro-mcp 对比其他方案

替代方案何时用它替代权衡
GhidrAssistMCPYou prefer free Ghidra over commercial IDA ProGhidra is free but IDA Pro generally has faster analysis and wider format support
reverse-engineering-assistantYou want a Ghidra MCP with a tool-driven approach optimized for LLMsFewer tools but better context management for AI interaction

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills