ida-free-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
idamcp — MCP server for IDA Free 9.5
Lets Claude Code (or any MCP client) inspect the database you have open in IDA Free 9.5 on Windows: functions, disassembly, strings, imports/exports, cross-references, call graph, basic blocks/CFG, byte search, names, comments, renames, comments and function creation, plus Hex-Rays pseudocode, including IDA Free's cloud decompiler (see Decompiler).
It does not use IDA Pro, IDAPython, idalib, or any license workaround. Nothing in IDA is patched.
Disclaimer: idamcp is an independent project. It is not affiliated with, endorsed by, or supported by Hex-Rays SA. IDA, IDA Free, IDA Pro and Hex-Rays are trademarks of Hex-Rays SA. Use of IDA is governed by its own license; idamcp only uses the public IDA SDK.
Claude Code ──stdio/MCP──> idamcp-server (Python, official `mcp` SDK)
│ newline-delimited JSON, token auth
▼ 127.0.0.1:<ephemeral port>
idamcp.dll (native IDA plugin, official IDA SDK 9.5)
│ execute_sync(MFF_READ / MFF_WRITE)
▼
IDA's main thread → database you have openWhy this design (verified on IDA Free 9.5)
Option | Result on IDA Free 9.5 | Evidence |
Hex-Rays' own "IDA MCP" | Not available | Its docs (bundled in |
IDAPython / idalib | Not available | Not shipped with Free |
| Rejected | IDA prints |
Native C++ plugin (official SDK) | Works | A probe plugin built from the official |
The plugin is a normal PLUGIN_MULTI module. IDA creates one bridge per open
database and destroys it when the database closes.
Related MCP server: ida-pro-mcp-dsh
Requirements
Windows 10/11 x64, IDA Free 9.5
Visual Studio 2022+ with the C++ x64 toolset (includes CMake and Ninja), to build the plugin
uv (Python 3.11+ is fetched automatically)
Claude Code CLI (
claude)The official IDA SDK (MIT licensed), cloned into
third_party/:git clone --depth 1 --branch v9.5.0-release https://github.com/HexRaysSA/ida-sdk third_party/ida-sdk
Download
Prebuilt idamcp.dll builds are attached to the repository's GitHub Releases, together with a
SHA256SUMS.txt. Each one is built by GitHub Actions from the tagged commit, and the unit tests run first.
Copy the DLL to %APPDATA%\Hex-Rays\IDA Pro\plugins\, then set up the MCP server as described below.
To publish a new release, push a tag: git tag v1.0.1 && git push origin v1.0.1.
Install
If IDA is running, the installer moves the locked old DLL aside (to %LOCALAPPDATA%\idamcp\old)
and installs the new one. Restart IDA afterwards to load it.
powershell -ExecutionPolicy Bypass -File scripts/install.ps1The script:
builds
idamcp.dll(Release, x64) and runs the C++ unit tests;copies it to
%APPDATA%\Hex-Rays\IDA Pro\plugins\(IDA's per-user plugin folder, so the IDA installation is not modified);creates the server environment with locked dependencies (
uv sync --frozen). MCP clients start the server withuv run --no-sync, so a client starting up never tries to modify an environment that another client is using;registers the server:
claude mcp add --scope user idamcp -- uv --directory <repo>\server run --no-sync idamcp-server.
Check it: claude mcp get idamcp should report ✔ Connected. All 58 tools are registered;
there is no separate write option.
Turning MCP on and off (per IDA window)
MCP is OFF whenever a database is opened. Nothing listens, and no client can see or reach the database. In IDA, choose Edit > Plugins > idamcp to toggle it:
[idamcp] MCP DISABLED (turn on via Edit > Plugins > idamcp) <- when the database loads
[idamcp] MCP ENABLED — read/write available <- after Edit > Plugins > idamcp
[idamcp] MCP DISABLED <- after choosing it againON: the bridge starts on
127.0.0.1with a fresh random token, and every tool is available at once: reading and analysis, renames, comments, function creation.OFF: the listener stops, connected clients are disconnected, pending requests are cancelled (never executed), threads are joined, sockets are released, and the discovery file is deleted. The database stays open and is not modified. Turning it ON again starts a new bridge with a new token, and MCP clients reconnect automatically.
Each IDA window has its own switch:
a.execan be ON whileb.exeis OFF. MCP servers only see and talk to windows that are ON. Closing a database or IDA with MCP ON shuts the bridge down cleanly too.
Uninstall: scripts/install.ps1 -Uninstall.
Usage
Open a binary in IDA Free, turn MCP on (Edit > Plugins > idamcp), and wait for auto-analysis to finish. Then ask Claude Code, for example: "Which functions reference the string 'password'? Show me the disassembly of the first one."
Tool | Purpose |
| Every database with MCP ON (name, pid, analysis state); set the default one |
| File, hashes, format, CPU, bitness, image base, entry point, counts |
| Segments with permissions and bitness |
| Functions (paginated/filterable); details, chunks, comments |
| Function or linear listing (resumable with |
| Up to 64 KiB of raw bytes, with unloaded ranges flagged |
| IDA's string list; search by contains/exact/prefix/suffix |
| Import slots by module; exports; program entry |
| Code/data references, including the containing function |
| Call graph: direct calls, tail jumps, indirect calls via import slots |
| Blocks, edges and block types, optionally with instructions |
| Hex patterns with |
| Names list (with demangled form); comments in a range |
| Rename a function, or any address (empty name removes it) |
| Set or remove (empty text) regular/repeatable comments |
| Create a function at undiscovered code |
| Hex-Rays pseudocode of a function, where IDA permits it (see Decompiler) |
Added in 1.1 (see CHANGELOG):
Group | Tools |
Types |
|
Stack frames |
|
Cursor and navigation |
|
Code and data |
|
Search and decoding |
|
Function intelligence |
|
Comparison |
|
Export |
|
Prompts (pick them in your MCP client): triage_binary, investigate_function,
identify_crypto, reconstruct_structure, compare_versions and explore_call_graph.
Resources: idamcp://databases, idamcp://{database}/metadata,
idamcp://{database}/functions and idamcp://{database}/function/{address}.
Addresses are hex strings (0x140001000, or 140001000h). Most tools also accept a
symbol name. Lists return next_offset (or next_address / next_start) to continue.
Several databases at once
IDA opens one database per window, and the plugin runs in each IDA window. Open two executables
in two IDA windows, turn MCP on in both, and the AI can work on both. Every tool accepts an optional database
argument: the file name (a.exe), IDB name, full path, or IDA process id. Example:
"compare CheckLicense in old.exe and new.exe".
ida_statuslists the databases with MCP ON and marks the default. The default is the one chosen withida_select_instance, otherwise the most recently opened.Reads without
databasego to the default database.Writes without
databaseare refused while more than one database is open, unless a default was chosen explicitly withida_select_instance. A rename can never land in the wrong file.Each database keeps its own connection. Requests to different databases do not wait on each other.
Database modifications
While MCP is ON, modifications are available with no extra switch. Each change is printed in IDA's Output window, goes through IDA's normal APIs, and can be undone with Ctrl+Z. Renames that would collide with an existing name are refused. Write requests are never retried automatically.
Decompiler
ida_decompile returns the pseudocode of the containing function as text lines. The result's
method says which of two paths was used:
decompiler_api(IDA Home, Educational and Pro): IDA's official decompiler API (init_hexrays_plugin,decompile_function). With a cloud decompiler (Home/Educational), the function is sent to Hex-Rays' servers.interactive_cloud_decompiler(IDA Free 9.5): IDA Free's cloud decompiler works when you press F5, but its API is not available to plugins (the IDA 9.5 release notes enable it only for "IDA Home, IDA Educational"). idamcp therefore uses the interactive feature as offered: it runs IDA's own F5 action (hx:GenPseudo) on the function and reads the text the Pseudocode window shows, through the public custom-viewer API. Nothing is patched and no decompiler internals are called. This approach comes from 0xshlomil/ida-free-mcp; idamcp implements it independently, with two differences:the plugin only requests the decompile and the server polls for the result every 250 ms, so IDA's UI never sleeps or blocks while the cloud answers;
only Pseudocode tabs that idamcp opened are closed (before its next request); your own tabs are left alone.
On this path, keep in mind that:
the function is sent to Hex-Rays' cloud, which needs internet access and a signed-in Hex-Rays account (the same as pressing F5);
your IDA view moves to the function, and a Pseudocode tab opens or is reused;
the call is a UI action, so when several databases are ON it needs
database, like a write.
ida_statusshowscapabilities.decompiler, which says whether the decompiler API is available (false on IDA Free, where the F5 path is used). Calls get up to 90 s, because a decompile cannot be interrupted part-way.
Configuration
Variable | Where | Default | Meaning |
| server | 15000 | Per-call budget (1000–120000) |
| server | INFO | JSON logs to stderr |
| IDA process | ephemeral | Fixed loopback port |
Security model
The plugin binds only
127.0.0.1, usesSO_EXCLUSIVEADDRUSE, and rejects non-loopback peers.Every connection must first present a random 256-bit token (
BCryptGenRandom), compared in constant time. The token is in%LOCALAPPDATA%\idamcp\instances\ida-<pid>.json, which only your user can read. Unauthenticated connections are dropped after 10 s. Request lines are capped at 1 MiB, and at most 8 connections are accepted.There is no code, script, IDC or command execution of any kind. The bridge exposes only the fixed set of methods listed above, with strict parameter validation on both sides.
Byte patterns are validated before IDA's parser sees them. While a request runs, IDA's
batchflag is set, so no API can open a dialog and block the UI.
Reliability
UI thread: all database access runs on IDA's main thread via
execute_sync, and socket I/O runs on background threads. Each request is bounded by a page limit (≤1000 items, ≤2000 lines, ≤64 KiB) and a deadline. Long scans return partial results withtruncated_by_deadline: trueand a cursor.Timeouts/cancellation: a request is never started after its deadline, so a write cannot apply after the client has given up. When the client times out, it drops the connection so a late reply is never matched to a later request. When the MCP client cancels a call, the in-flight request is abandoned in the same way.
Shutdown: turning MCP off, closing the database, or closing IDA all stop the bridge the same way: the request gate closes, the discovery file is removed, the listener and client sockets are closed, pending main-thread requests are cancelled (
set_execute_sync_availability(esa_unavailable)), every thread is joined, and Winsock is released. Discovery files left behind by crashed IDA processes are removed automatically.Logs: the plugin writes structured JSON lines to
%LOCALAPPDATA%\idamcp\logs\bridge-<pid>.log(method, duration, error code; no request contents). The server logs JSON to stderr.
Limitations
Pseudocode on IDA Free goes through the F5 UI (see Decompiler): it needs a signed-in Hex-Rays account and internet access, and it moves your IDA view.
IDA Free has no batch mode, so a person (or the test script) must open the database in the GUI and turn MCP on.
Results reflect IDA's analysis. For example,
mainis not auto-named in binaries without matching FLIRT signatures, andstaticfunctions without a PDB appear assub_XXXX.The string list is IDA's own list, built with its current settings (Strings window → Setup).
If a modal dialog is open in IDA, requests wait. If the dialog stays open past the deadline they fail with
timeout, and nothing is executed late.Windows x64 only (the plugin uses Winsock/BCrypt; IDA Free's plugin API is the same elsewhere).
Development and tests
powershell -ExecutionPolicy Bypass -File scripts/build.ps1 -TestBuilds the plugin and runs the C++ unit tests (JSON parser/serializer, transport, auth timeout, limits, shutdown).
cd server && uv run pytest -m "not live"Runs the Python unit tests (tool schemas, validation, error mapping, database routing and write targeting, discovery, auth, timeouts, token rotation).
powershell -ExecutionPolicy Bypass -File scripts/run_live_tests.ps1Runs the full end-to-end suite against a real IDA Free 9.5 GUI instance using the fixture
tests/fixtures/sample.c, which is built with tests/fixtures/build_fixture.ps1. The script opens IDA,
accepts the load dialog through UI Automation scoped to that IDA process, checks that MCP is OFF
after loading, and turns it on through the real Edit > Plugins > idamcp menu. It then waits for
analysis and runs pytest -m live. That covers reads, writes, OFF/ON shutdown checks, 5 repeated
cycles with token rotation and reconnection, and independent per-window state. Finally it closes IDA
with MCP still ON and fails unless the shutdown was clean. Add -Installed to test the installed DLL,
and -TwoDatabases to also open a second copy (sample_b.exe).
-LargeBinary <path> also opens a disposable copy of a large binary. The test runs used
python313.dll (10,392 functions) for full pagination, deadline truncation and resume,
whole-database fingerprinting, and turning MCP off with requests pending. IDA's "Load PDB file"
prompt is answered No, so tests never contact a symbol server.
Troubleshooting
Symptom | Fix |
| In IDA choose Edit > Plugins > idamcp; the Output window should say |
No | The plugin did not load. Rebuild against the SDK tag matching your IDA version ( |
| A modal dialog is open in IDA, or auto-analysis is busy. Close the dialog and retry. You can raise |
A database is missing from | MCP is OFF in that window; turn it on there. |
| MCP was turned off (or the database closed) during the call. Turn it on again; clients reconnect by themselves. |
Tools missing in Claude | Restart Claude Code after installing or updating. |
Several IDA windows open |
|
| Close all IDA windows and retry. |
Bridge errors |
|
Layout
plugin/ native IDA plugin (C++17, CMake, official IDA SDK 9.5)
src/ plugin.cpp (entry/auth/dispatch), handlers.cpp (IDA API), transport.cpp,
json.cpp, platform.cpp
tests/ standalone C++ unit tests
server/ Python MCP server (uv project, mcp==2.3.0)
scripts/ build, install, live-test runner, UI Automation helper
tests/fixtures/ deterministic test binary source
third_party/ida-sdk/ official SDK checkout (not committed)Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Free public MCP for AI agents — 193 tools, 44 workflows. No API key.
Email inboxes, webhook URLs, mock APIs and 170+ tools for coding agents over one MCP connection.
Shared scratchpad, coordination and free utility tools for AI agents. No account or API key.
Machine-native tools for autonomous agents with free routing and x402 USDC pay-per-call.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceA headless IDA Pro MCP server that enables AI agents to automatically open, analyze, and query multiple binary files simultaneously without manual GUI interaction. It provides 36 tools for tasks like decompilation, disassembly, and cross-reference analysis through IDA's idalib library.14MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to perform binary analysis and reverse engineering via IDA Pro's headless idalib, providing 66 MCP tools like decompile, disasm, and xrefs without requiring the IDA GUI.5MIT
- 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
- AlicenseNot gradedqualityBmaintenanceEnables AI clients such as Claude, Cursor, Cline, and Codex to remotely drive IDA Pro over HTTP through 88 tools, covering Hex-Rays decompilation, disassembly, cross-reference tracing, type and struct reconstruction, C header import, memory reading and patching, and full dynamic debugging with breakpoints, registers, and stepping.MIT