IDA Auto MCP
English | 中文
English
Headless IDA Pro MCP server that enables AI agents to automatically open, analyze, and query multiple binary files — no manual IDA GUI interaction required.
Why This Project?
IDA Auto MCP is a small MCP server built directly on IDA's headless idalib library. The AI agent opens binaries itself with open_binary (no IDA window, no plugin to start) and can track several of them as sessions, switching between them as it works, which helps with programs made of an executable and several DLLs. Only the active database is open at a time: switching saves and closes it, then reopens the other one.
It is not the only headless option: ida-pro-mcp also ships an idalib-based server with multi-binary support, and ida-mcp-rs is a headless server written in Rust. IDA Auto MCP aims to stay small and easy to audit: a single Python process, no third-party dependencies besides IDA's own idapro package, and an implicit active session so tools don't take a database argument.
Compared with the Official IDA MCP Server
Hex-Rays publishes an official IDA MCP server. Compared with its version 20261023.0.2 (built on ida-nexus 0.14.1):
| IDA Auto MCP | Official IDA MCP |
|---|
| While IDA is still analyzing | Every tool answers. IDA keeps analyzing in the background, and results report the progress (analysis.complete, the current stage) | execute_python runs only once the initial auto-analysis has finished, which for a large or obfuscated binary can take hours |
| Without analysis | open_binary(auto_analysis=false) only loads the file: the tools work on it at once, and wait_analysis analyzes it when needed | Not possible in a headless worker: open_database has no option to skip analysis, and execute_python waits for it to finish |
| How the agent works | 55 tools that each do one task (decompile, xrefs, strings, types, ...) and return structured results | The agent writes Python against the ida-domain API for every query, looking the API up with reference |
| Permissions | Read-only by default: changing the database needs --allow-write, arbitrary code --allow-script | execute_python runs arbitrary Python; there is no read-only mode |
| Tool annotations | Every tool is marked readOnlyHint or destructiveHint | Only reference and list_databases are marked (readOnlyHint) |
| Untrusted samples | The server instructions tell the agent that strings, names and pseudocode are data, not instructions | No such guidance |
| HTTP transport | Requires a bearer token | No built-in authentication (Host and Origin checks) |
| Requirements | IDA 9.0+, Python 3.10+, nothing besides Hex-Rays' idapro | IDA 9.4+, Python 3.11+, Git and uv |
The official server runs each database in its own IDA process. It can therefore keep several databases open at once, report an IDA crash without losing the connection, and attach to a database open in the IDA GUI. If you need those, it is the better fit.
Key Features
- Fully Automatic — AI agents call
open_binary("path/to/file.dll") to start analysis, no human in the loop
- Multi-Binary Sessions — Track several binaries as sessions and switch between them (only one database is open at a time; switching saves it and reopens the other one without re-running analysis)
- Background Analysis —
open_binary waits for IDA's auto-analysis for at most --analysis-wait seconds (30 by default) and the analysis continues between tool calls, so a binary that takes hours to analyze can be queried right away
- Headless — Uses
idalib (IDA as a library), no GUI needed
- 55 Analysis Tools — Decompile, disassemble, xrefs, strings, imports, types, search, rename, patching, and more
- Read-Only by Default — Tools that modify the database or run arbitrary code are off until you enable them
- Time Limits and Cancellation — A runaway tool call is stopped after
--timeout seconds, or as soon as the client cancels it
- Careful with Databases — Refuses a database that another IDA has open, and backs up what a crash left behind before IDA discards it
- Raw Firmware —
open_binary takes the processor, file type, base address and entry point of a raw blob
- MCP Standard — Works with Claude Desktop, Claude Code, Codex, and any MCP client; tools carry MCP annotations (
readOnlyHint, destructiveHint) and the server sends usage instructions
- Checked Arguments — Tool arguments are checked against each tool's schema: a misspelled name is refused with a suggestion ("did you mean 'filter_str'?") instead of being ignored, and a wrong type gets a clear error the agent can correct
- Stdio + HTTP — Stdio transport for MCP clients, token-protected HTTP for debugging
Prerequisites