IDA MCP
OfficialThis server lets an agent drive IDA (Hex-Rays) reverse-engineering sessions over IDA Nexus, attaching to GUI or headless idalib databases and running Python against them.
Look up the IDA API (
reference): query classes, methods, or RE concepts to get a plain-textida-domainreference before writing code.Open/attach databases (
open_database): attach to a GUI database or shared managed idalib worker by path, choosing whether it becomes the current execution target.Execute Python in the database (
execute_python): run code against the open database withdbas the currentida-domainDatabase, returning the result plus captured stdout/stderr; imports and variables persist for the lease, with a configurable timeout.List databases (
list_databases): discover registered GUI and idalib instances and their status (available, attached, current, unavailable).Save databases (
save_database): explicitly save the current or a specified GUI/idalib database.Close/release databases (
close_database): release this client's handle without disturbing other clients; final idalib lease cancels orphaned execution and finishes closing the IDB (GUI databases are never closed).
Enables GitHub Copilot CLI to attach to GUI or headless idalib databases, execute Python analysis scripts, query IDA API references, and save or close IDA databases.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@IDA MCP Analyze the open binary and list its imports"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Hex-Rays IDA MCP
Official Hex-Rays IDA MCP Server, see the announcement blog post for more information.
Installation
Requirements
Installed in your PATH
IDA 9.4 or higher with idalib and Python 3.11+
We recommend disabling other IDA MCP servers to reduce agent confusion
Automatic installation
Install the Hex-Rays IDA MCP using hcli:
uvx ida-hcli mcp install
# or if you have hcli installed:
hcli mcp installThis will install the GUI plugin and interactively offer you to install the supported agent plugins.
Manual installation
IDA GUI Plugin
To support IDA GUI instances when using IDA MCP, install the plugin:
uvx ida-hcli plugin install ida-mcp@https://github.com/HexRaysSA/ida-mcp
# or if you have hcli installed:
hcli plugin install ida-mcp@https://github.com/HexRaysSA/ida-mcpNote: Without the plugin, IDA MCP still works headlessly, in a worker that
uses the Python environment of the MCP server. With the plugin installed,
headless workers run inside idat with IDA's own Python, so IDA plugins and
the packages installed for IDA are available, and the agent can ask for
gui=true to open a file in the IDA GUI. Set IDA_NEXUS_IDALIB_ONLY=1 to
keep workers in the server's Python environment regardless.
Claude Code
# Add Hex-Rays marketplace
claude plugin marketplace add HexRaysSA/claude-marketplace
# Install plugin
claude plugin install ida-mcp@HexRaysSA
# Update to latest version
claude plugin update ida-mcp@HexRaysSACodex CLI
# Add Hex-Rays marketplace
codex plugin marketplace add HexRaysSA/codex-marketplace
# Install plugin
codex plugin add ida-mcp@HexRaysSAGitHub Copilot CLI
# Add Hex-Rays marketplace
copilot plugin marketplace add HexRaysSA/copilot-marketplace
# Install plugin
copilot plugin install ida-mcp@HexRaysSA
# Update to latest version
copilot plugin update ida-mcpPi
# Install extension
pi install git:github.com/HexRaysSA/ida-mcp@latest
# Update to latest version
pi update --extensionsoh-my-pi
# Install extension
omp plugin install github:HexRaysSA/ida-mcp#latest
# Update to latest version
omp plugin upgradeOther agents
Configure a regular stdio MCP server in your MCP JSON configuration:
{
"mcpServers": {
"ida": {
"command": "uvx",
"args": [
"--exclude-newer=1s",
"ida-mcp",
"stdio",
"--agent=my-agent"
]
}
}
}uvx resolves the latest stable ida-mcp release from PyPI, so this
configuration does not need to be updated for each release.
--agent=my-agent is a human-chosen label (like claude-code, cursor,
my-custom-agent, etc.) used to differentiate sessions in the dashboard.
Related MCP server: IDA MCP
CLI
# MCP server over standard input/output
uvx ida-mcp stdio --agent=my-agent
# MCP server over Streamable HTTP
uvx ida-mcp http --host 127.0.0.1 --port 8737
# Inspect session log
uvx ida-mcp dashboard --open
# Export session logs for troubleshooting
uvx ida-mcp logsUsage
Start your agent harness and ask it something like:
Reverse /path/to/sample.elf for me in IDA
To test the GUI integration, open something in IDA and ask your harness:
What do I have open in the IDA GUI?
Developers: IDA Nexus
The IDA MCP project is built on IDA Nexus, which allows multiple clients to seamlessly share and operate on IDA databases.
You can build your own tools on top of the ida-nexus library, see
the documentation
for more information.
Available Tools
6 toolsclose_databaseA
Release this MCP's IDA Nexus database handle without disrupting other clients.
If this is the final lease on a managed idalib worker, orphaned execution is cancelled and this call waits for the IDB to finish closing. GUI databases are never closed here.
Inputs: instance_id. Returns: closed
execute_pythonA
Execute Python and return its result plus captured stdout and stderr.
Inputs: code (required), timeout, instance_id. Returns: result, stderr, stdout
list_databasesA
Discover registered GUI and idalib databases in IDA Nexus.
Inputs: no named parameters. Returns: hint, instances
open_databaseB
Attach to a GUI database or shared managed idalib worker through IDA Nexus.
Inputs: path (required), set_current. Returns: hint, status, backend, log_path, +3 more
referenceA
Look up the active ida-domain API and return a plain-text IDA reference.
Inputs: query (required).
save_databaseA
Explicitly save an active GUI or idalib database.
Inputs: instance_id. Returns: path
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose: reference for API lookup, open_database for attaching, execute_python for running code, list_databases for discovery, save_database for persistence, and close_database for cleanup. No two tools overlap in functionality, making misselection unlikely.
Most tools follow a consistent verb_noun pattern (open_database, list_databases, save_database, close_database, execute_python). The exception is 'reference', which is a noun and deviates from the verb-first convention, but it remains clear and unambiguous, so the minor inconsistency is acceptable.
Six tools is well within the ideal range for a focused server. Each tool covers a distinct operation necessary for IDA database interaction and Python execution, with no redundancy or bloat.
The surface covers the core lifecycle (open, list, save, close) and execution (execute_python) along with reference lookup. While there is no explicit 'create database' or 'get database info' tool, execute_python can handle arbitrary operations, mitigating any gaps. Minor missing features like status checks are workable.
Maintenance
Related MCP Connectors
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Codebase intelligence for agents: 152 structured artifacts across 21 programs, one call.
AI-native programming language and toolchain for accountable, verifiable agent-driven development.
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables AI-assisted reverse engineering in IDA Pro by providing tools to analyze binaries, decompile functions, manage comments, search patterns, and interact with the IDA database through natural language.564MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to inspect, reverse engineer, decompile, and operate on binaries through IDA Pro, including headless and GUI sessions, over stdio or Streamable HTTP.MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to drive IDA Pro for reverse engineering and binary analysis, including running Python scripts inside the disassembler, extracting strings, imports, exports and functions, searching for immediate values, text and byte sequences, and retrieving disassembly for address ranges.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to remotely drive IDA Pro for reverse engineering and binary analysis, including script execution, binary metadata retrieval, value/text/byte searches, and disassembly.-