Until December 31: monthly plans give up to 2.5 times their price in credit. Scale is $200 a month with $400 of usage credit. See plans →

IDA Pro MCP

Set up an IDA Pro MCP server, ida-pro-mcp or Hex-Rays' official IDA MCP, with Claude Code or OpenCode on Abliterator, then analyze a binary you compiled.

Updated IDA ProMCPReverse EngineeringMalware AnalysisClaude Code

Quick answer

IDA Pro MCP is a Model Context Protocol server that lets an AI agent decompile, rename, comment and search an IDA database. The community ida-pro-mcp has 88 tools for IDA Pro 8.3 or later; Hex-Rays' official IDA MCP, announced September 25, 2026, has 6 and needs IDA 9.4. Both run over stdio, so Claude Code pointed at https://abliterator.ai can drive either. This follows ida-pro-mcp commit 127f4da.

What an IDA Pro MCP server does

An IDA Pro MCP server exposes IDA's disassembler, decompiler and database to an AI agent as Model Context Protocol tools. The agent calls decompile, xrefs_to or rename the way it would call a shell command, reads the result, and writes names and comments back into your database. The server has no model of its own. The MCP client, such as Claude Code or OpenCode, sends the tool results to a model and runs the calls the model asks for, so the client decides which model does the reasoning. That is how an IDA MCP server reaches Abliterator: through a client that accepts a custom endpoint.

Only for systems you own or have written permission to test. For reverse engineering, respect the software's license and the law where you are, and analyze samples in an isolated VM. Hex-Rays gives a concrete reason in its announcement: "IDA does not yet isolate its Python interpreter from the wider system," so an agent can run scripts that reach beyond the database. Hex-Rays recommends "running the harness and IDA MCP in a sandboxed environment when dealing with untrusted data."

This page is the setup guide. For turning what you find into indicators, detections and reports, see the malware analysis use case.

IDA MCP servers compared

IDA Pro has two main MCP servers: the community ida-pro-mcp by Duncan Ogilvie (mrexodia), first published in March 2025, and Hex-Rays' official IDA MCP, announced on September 25, 2026. The official server is a free, open-source add-on that you install separately. Figures below were checked 2026-12-02 in each repository.

Project License Stars Latest IDA requirement Transport Tools Headless
mrexodia/ida-pro-mcp MIT 13,675 Commit 127f4da, 2026-12-02 IDA Pro 8.3+, 9 recommended stdio, Streamable HTTP, SSE 88, with 22 debugger tools hidden by default Yes, idalib-mcp
HexRaysSA/ida-mcp MIT 1,721 v20261028.0.3, 2026-10-28 IDA 9.4+ with idalib: Home, Pro or Classroom stdio, Streamable HTTP 6 Yes, and attaches to the GUI
MeroZemory/ida-multi-mcp MIT, per README 476 Commit 8ff8831, 2026-09-19 IDA Pro 8.5 to 9.3 stdio Up to 76 through one router Yes, IDA Pro only per README
crifan/idaAiHelper_MCP No license file 3 Commit ca8508b, 2026-11-27 IDA 8.x or 9.x, GUI plugin Streamable HTTP, one port per open binary 23 No
  • Tool counts come from the source: the @tool functions in ida-pro-mcp's src/ida_pro_mcp/ida_mcp/api_*.py, the tool list in the official server's ida_mcp/mcp_metadata.json, and the README for the other two.
  • ida-pro-mcp's README now opens with "I recommend using the Official Hex-Rays IDA MCP Server instead!" The official announcement is written by Duncan Ogilvie, the same author. ida-pro-mcp's last GitHub release is 1.4.0 from October 2025, and PyPI also has 1.4.0, so install it from the repository as the README does.
  • The official server takes a different approach. Its six tools open, list, save and close databases, run IDAPython (execute_python) and search IDA's API reference; the model writes IDAPython for everything else. Hex-Rays reports about 20% fewer tokens than "popular alternatives" on its internal malware-analysis-focused benchmark.
  • ida-multi-mcp bundles ida-pro-mcp's tool code and adds a router for several IDA windows at once, plus function similarity across binaries.
  • Other servers exist, such as blacktop/ida-mcp-rs (MIT, 917 stars), a headless Rust server for IDA Pro 9.2 to 9.5.

Which one this guide follows

This guide follows ida-pro-mcp at commit 127f4da, checked 2026-12-02. The server's commands and options were verified against that source, and the client commands against each client's documentation. It is the project most "IDA Pro MCP" searches lead to, it runs on IDA 8.3 and later, and its one-tool-per-action design (decompile, rename, set_comments, xrefs_to) shows each step of the first task in the transcript, which makes the model's work easy to check.

If you run IDA 9.4 or later, consider the official server first, as ida-pro-mcp's README advises. The client setup is the same, and each step below gives the official server's command too. Install only one: Hex-Rays recommends "disabling other IDA MCP servers before installing, to avoid confusing your agent." For Ghidra, the same client setup applies: see Ghidra MCP. For Binary Ninja, see Binary Ninja MCP, and AI reverse engineering compares servers for other disassemblers and debuggers.

Before you start

You need a licensed IDA edition with IDAPython and idalib, Python 3.11 or later, uv, Git, an MCP client and an Abliterator key, all inside a VM you can reset.

IDA edition. Hex-Rays' edition table (IDA 9.5 docs, checked 2026-12-02) lists IDAPython, plugins, idalib and the IDA MCP Server for these editions:

Edition IDAPython, idalib and IDA MCP Commercial use
IDA Free No No
IDA Home Yes No
IDA Classroom Yes No
IDA Pro (Essential, Expert, Ultimate) Yes Yes
IDA Pro Headless Yes, without the GUI Yes

ida-pro-mcp's README asks for IDA Pro 8.3 or later and says "IDA Free is not supported." Its installer (installer.py) stops when it finds an IDA Free license, because "IDA Free does not support plugins." The README does not mention IDA Home. Hex-Rays' IDA MCP overview lists Home, Pro and Classroom. For agents on a shared server, in a pipeline or behind a platform you operate, Hex-Rays points to IDA Pro Headless, which takes one headless seat for each open database. Check your own license terms before you automate IDA.

idalib activated. The headless server loads IDA as a library. IDA 9.4 and later activate idalib during installation when you leave "Use this installation as the default for idalib" checked (Hex-Rays). On older versions, run the activation script once, as ida-pro-mcp's README shows:

# macOS, IDA 9.3: adjust the path to your installation
uv run "/Applications/IDA Professional 9.3.app/Contents/MacOS/idalib/python/py-activate-idalib.py"

On Windows the script is in C:\Program Files\IDA Professional 9.3\idalib\python\, and on Linux in idalib/python/ under your IDA folder.

Python 3.11 or later, uv and Git. If IDA uses an older Python, switch it with idapyswitch, as the README says.

An isolated VM. Run IDA, the MCP server and the client in one VM with snapshots. The only traffic that has to leave it is the client's calls to Abliterator.

An Abliterator key from /keys, created for this VM only and with a spend limit (authentication). The agent can run code in the VM, so treat the key as visible to it. New accounts get $10 of credit.

Install ida-pro-mcp

ida-pro-mcp's recommended mode is idalib-mcp, a headless server that opens each database in its own idalib worker process. The README says the IDA GUI plugin "is no longer recommended and will eventually be deprecated." Clone the repository at the commit this guide was checked against and install its dependencies:

git clone https://github.com/mrexodia/ida-pro-mcp.git ~/tools/ida-pro-mcp
cd ~/tools/ida-pro-mcp
git checkout 127f4da7aaad8a5eceee98b28a82f7387d22cb4f
uv sync

uv run would install the dependencies on first start anyway, but the README notes that the first session is then slower, because uv resolves the dependencies before the server responds. The command that starts the server is the one in the repository's Claude Code plugin manifest, .claude-plugin/plugin.json:

uv run --project ~/tools/ida-pro-mcp idalib-mcp --stdio

You do not run it yourself; the MCP client starts it. The options, from idalib_supervisor.py:

Option Default Meaning
--stdio Off, so HTTP Serve MCP over stdio, which every client in this guide uses
--host, --port 127.0.0.1, 8745 HTTP mode only. Keep it on loopback, where the server rejects requests with an unexpected Host or Origin header
--unsafe Off Adds the tools the source marks unsafe: py_eval, py_exec_file, diff_before_after and the debugger tools. Leave it off
--profile None Exposes only the tools named in a file. profiles/readonly.txt allows no changes to the database; profiles/triage.txt is a 9-tool starter set
--max-workers 4 Databases open at the same time

The README's own Claude Code route is a plugin: claude plugin marketplace add mrexodia/claude-marketplace, then claude plugin install ida-pro-mcp@mrexodia. It starts the same idalib-mcp --stdio command from the latest main branch. Use it if you prefer automatic updates to a pinned commit.

Or install Hex-Rays IDA MCP

Hex-Rays installs its server with one command (getting started):

uvx ida-hcli mcp install

It installs the IDA GUI plugin and offers to configure the agent plugins it supports. For other clients, the README configures a stdio server that runs uvx ida-mcp stdio with an --agent label and fetches the latest PyPI release each time. To pin the release checked for this guide, use ida-mcp@20261028.0.3 in the commands below. --agent is only a label for Hex-Rays' session dashboard (uvx ida-mcp dashboard --open). Without the GUI plugin the server still works headlessly.

Connect Claude Code to Abliterator and IDA

Claude Code needs two things: model variables that send its requests to Abliterator's Anthropic Messages endpoint, and an MCP entry that starts the IDA server. Export the variables from the Claude Code guide in the shell you start it from:

export ANTHROPIC_BASE_URL="https://abliterator.ai"
export ANTHROPIC_AUTH_TOKEN="$ABL_API_KEY"
unset ANTHROPIC_API_KEY

export ANTHROPIC_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_OPUS_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_SONNET_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="deepseek-v4.1-flash-abliterated"
export CLAUDE_CODE_SUBAGENT_MODEL="kimi-k3.1-pro-abliterated"

ANTHROPIC_BASE_URL has no /v1 because Claude Code appends /v1/messages. Every alias is pinned because an unpinned one sends a Claude model name, which Abliterator answers with 404. Check the key and URL before you add the server:

curl -sS https://abliterator.ai/v1/messages \
  -H "Authorization: Bearer $ABL_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{"model": "deepseek-v4.1-flash-abliterated", "max_tokens": 256, "messages": [{"role": "user", "content": "Reply with OK."}]}'

A JSON body with "type":"message" means both work. Then add the IDA server with Claude Code's claude mcp add syntax, where everything after -- is the command that starts the server:

mkdir -p ~/re-lab && cd ~/re-lab
claude mcp add --transport stdio ida -- uv run --project ~/tools/ida-pro-mcp idalib-mcp --stdio
claude mcp get ida

For Hex-Rays IDA MCP, the second line is instead:

claude mcp add --transport stdio ida -- uvx ida-mcp@20261028.0.3 stdio --agent=claude-code

Both write to local scope, which applies to the current project directory only; add --scope user to use the server in every project. Start claude in ~/re-lab and run /mcp: ida should show as connected, with its tools. /status should show https://abliterator.ai as the base URL.

Connect OpenCode instead

OpenCode reaches Abliterator through an OpenAI-compatible provider at https://abliterator.ai/v1, set up as in the OpenCode guide. Add the IDA server from the project directory, per OpenCode's MCP servers docs:

opencode mcp add ida -- uv run --project ~/tools/ida-pro-mcp idalib-mcp --stdio
opencode mcp list

Or write it into opencode.jsonc next to the providers block from the OpenCode guide:

{
  "$schema": "https://opencode.ai/config.json",
  "model": "abliterator/kimi-k3.1-pro-abliterated",
  "mcp": {
    "servers": {
      "ida": {
        "type": "local",
        "command": ["uv", "run", "--project", "/home/analyst/tools/ida-pro-mcp", "idalib-mcp", "--stdio"],
        "timeout": { "startup": 120000 },
      },
    },
  },
}

JSON strings do not expand ~, so write the full path. The startup timeout, in milliseconds, replaces OpenCode's 30-second default to allow for idalib's first start. OpenCode exposes MCP tools through its Code Mode by default; add "codemode": false to the server to put them on the model's native tool list instead.

Cline also runs local MCP servers: add the same command under mcpServers in its MCP settings JSON (MCP Servers icon, then Configure, then Configure MCP Servers), with the provider from the Cline guide. ida-pro-mcp's README also lists Claude Desktop, but Claude Desktop cannot use a custom model endpoint, so it is not a route to Abliterator.

First task: a binary you compiled

The best first target is a program you wrote and compiled yourself: you know what it does, so you can check every claim the model makes. This one prints a CRC-32 checksum for each file named on the command line. Save it as ~/re-lab/crcsum.c in the VM:

#include <stdint.h>
#include <stdio.h>

static uint32_t crc32_update(uint32_t crc, const unsigned char *buf, size_t len) {
    crc = ~crc;
    for (size_t i = 0; i < len; i++) {
        crc ^= buf[i];
        for (int k = 0; k < 8; k++)
            crc = (crc >> 1) ^ (0xEDB88320u & (0u - (crc & 1u)));
    }
    return ~crc;
}

static int checksum_file(const char *path, uint32_t *out) {
    FILE *f = fopen(path, "rb");
    if (!f) {
        fprintf(stderr, "error: cannot open %s\n", path);
        return -1;
    }
    unsigned char buf[4096];
    size_t n;
    uint32_t crc = 0;
    while ((n = fread(buf, 1, sizeof buf, f)) > 0)
        crc = crc32_update(crc, buf, n);
    fclose(f);
    *out = crc;
    return 0;
}

int main(int argc, char **argv) {
    if (argc < 2) {
        fprintf(stderr, "usage: %s FILE...\n", argv[0]);
        return 2;
    }
    int failures = 0;
    for (int i = 1; i < argc; i++) {
        uint32_t crc;
        if (checksum_file(argv[i], &crc) != 0) {
            failures++;
            continue;
        }
        printf("%08x  %s\n", crc, argv[i]);
    }
    return failures ? 1 : 0;
}

Build it and strip the symbols, so the agent has unnamed functions to work out. -fno-inline keeps the two helpers as separate functions:

cd ~/re-lab
cc -O1 -fno-inline -o crcsum crcsum.c
strip crcsum
./crcsum crcsum.c

Public crackmes and CTF binaries work too. ida-pro-mcp's repository ships tests/crackme03.elf, and the binaries from its demo video are in mcp-reversing-dataset.

Start claude in ~/re-lab and send these prompts one at a time.

1. Open and survey the binary.

Open ~/re-lab/crcsum with idb_open, then call survey_binary and summarize the binary: format, entry point, imports and the functions with the most cross-references. Never convert number bases yourself; use int_convert.

idb_open runs auto-analysis and returns a session ID. In headless mode every later call must pass that ID as database; the README says file names and paths are not accepted. survey_binary returns file metadata, segments, entry points, the top 15 strings, functions ranked by cross-reference count with a label (thunk, wrapper, leaf, dispatcher or complex) and imports by category. The int_convert instruction comes from the README's prompting advice: models make mistakes converting between integers and bytes.

2. List strings and cross-references.

List every string with find_regex using the pattern "." and call xrefs_to on each string's address. Show a table of string, address and referencing function.

find_regex returns addr and string pairs, 30 per page by default and up to 500. xrefs_to returns, for each target, every reference's address, whether it is a code or data reference, and the function that contains it. Expect the usage message and the output format string in the program's main function, and the cannot open message in the helper that reads files.

3. Decompile and rename.

Decompile the function that references "error: cannot open". Propose names for it, its parameters and its local variables. Call rename with dry_run set to true and show me the plan before you apply it.

decompile returns pseudocode in pages of up to 500 lines, with a /*0x...*/ address marker on each line unless include_addresses is false. rename takes functions, globals, locals and stack variables in one batch; with dry_run it reports what would change without changing it. Each item comes back with an error field that is null on success.

4. Explain a function and comment it.

Explain the function that the file-reading helper calls inside its loop, step by step. If it implements a known algorithm, name it and quote the constant that identifies it. Add your summary as a function comment with set_comments, then save with idb_save.

A correct answer names CRC-32 and quotes the reflected polynomial 0xEDB88320. set_comments writes the comment to both the disassembly and the decompiler view. Check the model's claim against a second implementation; the two values match if it is right:

./crcsum crcsum.c
python3 -c 'import sys, zlib; print("%08x" % zlib.crc32(open(sys.argv[1], "rb").read()))' crcsum.c

Open the saved database in IDA and review every rename and comment before you rely on it. The README warns that models do poorly on obfuscated code, so start with plain binaries like this one.

Choosing the model

Use kimi-k3.1-pro-abliterated as the default for agent sessions and deepseek-v4.1-flash-abliterated for short or high-volume work. Both support tool calling, which every MCP client needs, and both have a 1,048,576-token context.

Model Use it for Measured after abliteration
kimi-k3.1-pro-abliterated Whole-binary passes that open, rename, comment and save over dozens of tool calls τ²-bench airline 86.7 → 87.3, within noise. Terminal-Bench 4.0 66.6 → 62.3, a drop that is plausible but not statistically shown (benchmarks), so test it on a binary you know first
deepseek-v4.1-flash-abliterated Single questions, string and import triage, many small binaries CyberMetric-2000 94.2 → 93.8, InterCode-CTF 94.2 → 95.5 and Cybench 98.3 → 96.6, all within noise (security suites)

Refusals fell from 94% to 1% on DeepSeek V4.1 Flash Abliterated and from 94% to 3% on Kimi K3.1 Pro Abliterated (benchmarks).

Hex-Rays' announcement reports that the original DeepSeek v4.1 Flash, Kimi K3 and GLM 5.3 performed "on a level similar to GPT-6-Luna and Gemini 3.8 Flash" on its internal malware-analysis-focused benchmark, and that running them yourself requires dedicated hardware. Hex-Rays did not test the abliterated models or Kimi K3.1 Pro, so treat that as a pointer, not a result for this setup.

Cost. Each turn resends the conversation, including earlier tool results, and one decompiled function can run to thousands of tokens. Abliterator caches the repeated prefix automatically and bills it at $0.40 per 1M tokens on kimi-k3.1-pro-abliterated and $0.10 on deepseek-v4.1-flash-abliterated (prompt caching). Claude Code caps one MCP tool result at 25,000 tokens by default (MAX_MCP_OUTPUT_TOKENS), and ida-pro-mcp replaces results above 50,000 characters with a preview and a download link, so on large binaries ask for one function at a time.

Why a hosted model sometimes stops

Hosted frontier models run safety classifiers that can block legitimate reverse engineering. Hex-Rays says so in its own announcement: with Opus 5.5 in Claude Code, "cybersecurity safeguards frequently interrupt work, so falling back to Opus 4.6 might be necessary," and "some models refuse cybersecurity tasks without onerous additional approval by the vendor."

What the provider permits is written down. Anthropic's Usage Policy, effective November 12, 2026, "does not prohibit security research, testing, or tool development conducted on systems you own or operate," and says "encountering a block does not by itself indicate a violation." Its Cyber Verification Program adjusts the safeguards for approved users: the Defense Access tier covers malware analysis, and individuals on paid plans can apply for it. If you use Claude for this work every day, that program is the route Anthropic offers. Claude refused my request covers the options in more detail.

Abliterator takes a different route: the refusal direction is removed from the model weights, so the same MCP setup runs against a model that refuses far less. Abliterator's own rules still apply; some uses are always prohibited, as the acceptable use policy sets out.

Troubleshooting

Symptom Cause Fix
IDA Free does not support plugins and cannot be used. Purchase and install IDA Pro instead. ida-pro-mcp --install found an IDA Free license Use a supported edition. --allow-ida-free only skips the check
/mcp shows ida as failed, or idalib-mcp exits at startup idalib is not activated, or IDA uses a different Python Activate idalib as in "Before you start", and select Python 3.11 or later with idapyswitch
The server times out the first time it starts uv is still resolving dependencies Run uv sync in the clone first, or start Claude Code with MCP_TIMEOUT=60000 claude
database is required. Pass database=<session_id> with every tool call. In headless mode every call needs the session ID from idb_open Tell the model to call idb_open first and pass its ID; idb_list shows open sessions
An Invalid params error ending in got str The model sent an object or array as a JSON-encoded string. Since commit 01a87b8 (November 30, 2026) the server no longer decodes such strings (#536) Add "pass objects and arrays as JSON values, not as strings" to your prompt. Most models correct themselves after one error
"MCP" is missing from IDA's Edit, Plugins menu GUI plugin only: IDA runs an incompatible Python (#289) Select the right Python with idapyswitch, or use idalib-mcp
404 Model "claude-..." is not available on abliterator A Claude Code model alias is not pinned Set every model variable in the export block
429 Too many requests in flight Claude Code runs subagents and background requests in parallel; the Free plan allows 2 at once Use fewer parallel subagents, or a plan with more concurrency
The model describes tool calls in text and never makes them The model or client lacks tool calling Use kimi-k3.1-pro-abliterated or deepseek-v4.1-flash-abliterated, which both support tool calling

Frequently asked questions

Does IDA Pro have MCP?

Yes, as a separate install. Hex-Rays announced an official, open-source IDA MCP server on September 25, 2026 for IDA 9.4 or later on IDA Home, Pro and Classroom. The older community server, mrexodia's ida-pro-mcp, supports IDA Pro 8.3 or later; neither works with IDA Free.

What is IDA MCP?

IDA MCP is Hex-Rays' official Model Context Protocol server for IDA. It gives an AI agent six tools to open, list, save and close databases, run IDAPython against them and search IDA's API reference, and it either attaches to a database open in the IDA GUI or starts a headless idalib worker.

Does ida-pro-mcp work with IDA Free or IDA Home?

Not with IDA Free: the README says it is not supported, and the installer stops when it finds an IDA Free license because IDA Free does not support plugins. The README asks for IDA Pro 8.3 or later and does not mention IDA Home, although Hex-Rays lists IDAPython and idalib for Home. Hex-Rays' own IDA MCP supports Home on 9.4 or later.

Which model works best with an IDA MCP server?

Use kimi-k3.1-pro-abliterated for long agent sessions that rename and comment a whole binary, and deepseek-v4.1-flash-abliterated for quick questions and triage. Both support tool calling and a 1,048,576-token context. Test either on a binary you know before you rely on it.

Try it in your browser.

Ask it something your usual model refuses.

Start a chat

No sign-up to try. $10 free when you verify your email.