Ida Multi MCPのロゴ

Ida Multi MCP

コミュニティ
MeroZemory

Multi-instance IDA Pro MCP server — analyze multiple binaries simultaneously through a single MCP endpoint.

公開者MeroZemory
リポジトリida-multi-mcp
言語Python
フォーク
60
スター
439
利用可能なツール
0
通信方式stdio
リンク
  • ツールをAIワークフローに接続

    Ida Multi MCPは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには439件のスターと60件のフォークがあります。


Install in one prompt

Ask your AI agent to install it. Copy-paste one of these — it matches IDA's Python version, drops the plugin in place, and registers the MCP server with your client.

Claude Code / Codex:

Install and configure ida-multi-mcp by following the instructions here: https://raw.githubusercontent.com/MeroZemory/ida-multi-mcp/main/docs/installation.md

Cursor:

@Web fetch https://raw.githubusercontent.com/MeroZemory/ida-multi-mcp/main/docs/installation.md and follow the installation steps.

Then open your binaries in IDA Pro — instances register themselves — and talk to your agent. Prefer doing it by hand? See Manual installation. Removing it again is in Troubleshooting.


See it in action

Two binaries open in two IDA windows. One MCP endpoint. No client config per binary.

"Which function in dropper.dll is the same as sub_140001000 in malware.exe?"

text
→ list_instances()
  k7m2  malware.exe   x86_64  port 49152
  px3a  dropper.dll   x86_64  port 49153

→ analysis_wait(instance_id="px3a", timeout_sec=200)
  { "finished": true, "functions_added": 12884 }   # 12,884 functions that did not exist a minute ago

→ index_functions(instance_id="k7m2")   ·   index_functions(instance_id="px3a")
  { "indexed": 61044 }                      { "indexed": 73929 }

→ similar_functions(instance_id="k7m2", func="sub_140001000", scope="instances")
  0.94  px3a  sub_18000C120   high     minhash 0.91 · anchors 0.97 · cfg 0.88
  0.71  px3a  sub_18000E440   medium   minhash 0.68 · anchors 0.80 · cfg 0.64

→ decompile(instance_id="px3a", addr="sub_18000C120")
  ...

Core instruction, anchor and CFG signals do not use function names, so stripping does not remove them. When both functions have meaningful symbols, pseudocode identifier tokens can also contribute. Scoring and inference run locally; no binary or IDB is uploaded.


Why ida-multi-mcp

Built for multi-binary work

  • Zero-configuration discovery — every IDA Pro instance running the installed plugin registers into ~/.ida-mcp/instances.json when a database opens; no per-binary client configuration
  • Genuinely parallel across instances — requests run on a worker pool. A call to instance B while instance A was busy: 3.41 s → 0.01 s (#27)
  • Headless idalib sessions — idalib_open analyses a binary with no GUI, one isolated subprocess per session
  • Cross-binary similarity (BCSD) — patch diffing, library-function ID and variant hunting, with local scoring and indexes
  • Short, stable instance IDs — k7m2, px3a, with automatic binary-change detection

Built so the agent does not lie to you

  • Analysis gating — analysis_status / analysis_wait tell an agent whether IDA has actually settled, and the router warns on results from analysis-dependent tools while it has not (why this matters)
  • Deadlines that reach into C — a slow SDK call used to hold IDA's main thread past the tool timeout. The deadline now fires IDA's own set_cancelled(), and partial pages are labelled cursor.cancelled (#28)
  • Actionable failure — binary changes, stale instances and crashes come back as errors an agent can act on, not silence
  • Localhost only — loopback-bound with Host/Origin validation; no remote surface
  • IDA 8.5–9.3 — compat.py shims APIs that moved between releases and warns on the builds that shipped without them

Built on ida-pro-mcp

The IDA tool implementations here come from ida-pro-mcp by Duncan Ogilvie (mrexodia), bundled as a package, periodically compared and selectively synchronized. That project is the foundation this one stands on, and fixes flow both ways.

What ida-multi-mcp adds on top:

  • a router that fronts N IDA processes behind one stdio endpoint, with instance_id routing and a worker pool
  • discovery through a shared file registry — the IDA plugin registers each GUI instance into ~/.ida-mcp/instances.json when a database opens, so the client needs no per-binary configuration
  • function similarity (BCSD) and compare_binaries for cross-binary work
  • auto-analysis gating (analysis_status / analysis_wait) so an agent can tell a partial answer from a complete one

Both projects now support working on several databases at once — upstream through its idalib-mcp supervisor, this one through registry-based discovery. Pick whichever fits your workflow. A running log of what has been adopted from upstream and what has been contributed back: docs/ida-pro-mcp/comparison.md.


Architecture at a glance

One stdio MCP server in front of N IDA processes. The router owns discovery, instance_id routing, health and the idalib lifecycle; the IDA tools themselves run inside each instance.

MCP Client (Claude, Cursor, etc.)
    │  stdio (MCP Protocol)
    ▼
┌──────────────────────────────────────┐
│  ida-multi-mcp Server (Router)       │
│  - Dynamic tool discovery            │
│  - instance_id routing               │
│  - Management + idalib lifecycle     │
└───┬──────┬──────┬──────┬─────────────┘
    │      │      │      │  HTTP JSON-RPC
    ▼      ▼      ▼      ▼
  IDA #1  IDA #2  IDA #3  idalib #1
  (GUI)   (GUI)   (GUI)   (headless)

Registry layout, request routing, health monitoring and the design trade-offs behind them: docs/architecture.md.


The one rule: wait for auto-analysis

On a freshly opened binary IDA analyses in the background, and function lists, xrefs and decompilation are incomplete until it settles. On an 8.5 MB DLL the function count went from 9,580 to 13,252 — 28% of the functions did not exist yet. On a 23 MB DLL it was 12,885.

text
analysis_status()               -> {"queue_empty": false, "function_count": 61044}
analysis_wait(timeout_sec=200)  -> {"finished": true, "functions_added": 12884}
  • analysis_status() — non-blocking snapshot: queue state, current phase, function count so far.
  • analysis_wait(timeout_sec=120) — drives analysis to completion and returns. finished: false means the wait timed out, not that it failed; call it again.

If you only do one thing, call analysis_wait once after opening a binary. The router also attaches a warning to results from analysis-dependent tools while an instance is still analysing, so a partial answer is not silently mistaken for a complete one.

finished / queue_empty come from IDA's auto_is_ok(), which answers "are the analysis queues empty right now". IDA re-queues work as it goes, so the flag can read true and then false again moments later — observed directly on a 23 MB DLL, where analysis_wait returned finished: true and the very next analysis_status reported false on the same idle instance.

Read it as: false means definitely not done. true means nothing is queued at that instant. The durable signal is functions_added reaching 0 across successive calls.

Three phases are involved, which is why this is fiddly. IDA's background analysis does the bulk on its own and then plateaus without ever flipping the flag; auto_make_step() drains the residual queue; and a final auto_wait() pass — 34.5 s on that DLL, adding zero functions — is the only thing that clears the queues. analysis_wait handles all three, in bounded slices, so the instance stays responsive throughout.


Tool surface

Up to 76 tools through one router. The router combines a 61-tool static fallback with live schema refresh, plus 11 local tools and 4 more when idalib is available.

AreaTools
Triagesurvey_binary · binary_fingerprint · classify_functions · func_profile · analyze_function · analyze_component · analyze_batch
Navigation & listinglist_funcs · lookup_funcs · func_query · list_globals · imports · imports_query · export_funcs
Decompile & disassembledecompile · decompile_to_file · disasm · basic_blocks
Cross-referencesxrefs_to · xrefs_from · xrefs_to_field · xref_query · callgraph · callees · trace_data_flow
Searchfind · find_bytes · find_regex · insn_query · search_structs
Types & stackdeclare_type · set_type · infer_types · enum_upsert · read_struct · stack_frame · declare_stack · delete_stack
Modifyrename · set_comments · append_comments · define_func · define_code · undefine · patch · patch_asm · idb_save
Memoryget_bytes · get_int · put_int · get_string · get_global_value · int_convert
Similarity (BCSD)index_functions · index_status · similar_functions · compare_functions
Multi-instancelist_instances · server_health · server_warmup · refresh_tools · refresh_caches · compare_binaries · diff_before_after
Analysis gatinganalysis_status · analysis_wait · analysis_step
Headless (idalib)idalib_open · idalib_close · idalib_list · idalib_status
Escape hatchpy_eval — arbitrary IDAPython, in-process

Renames, retypes and comments live in memory until idb_save(). Full signatures and parameters: docs/tools.md.

The bundled IDA-side server also defines 16 debugger tools behind its direct-endpoint ?ext=dbg gate; the central router does not advertise them.


Function similarity (BCSD)

Find the same or a similar function within a binary or across instances — patch diffing, library-function ID, variant hunting. The core signals are name-independent, so they survive stripping. When both functions have meaningful symbols, a conditional pseudocode identifier-token signal can also contribute:

  • instruction-shingle MinHash
  • IDF-weighted imported-API / string / constant anchors
  • CFG structure and shape
  • symbol-gated pseudocode tokens
  • optional local neural recall — on-demand jTrans embeddings for anchor-less cross-compiler twins

Scoring, indexes and neural inference stay local; no binary or IDB is uploaded. Neural mode downloads its model checkpoint on demand as described below.

text
index_functions(instance_id, rebuild=False)   # content-hash keyed, persisted to ~/.ida-mcp/index/, incremental
index_status(instance_id)                     # readiness, function count, staleness, background progress
similar_functions(instance_id, func, top_k=20, scope="binary"|"instances"|"all")
compare_functions(a, b)                       # direct pairwise, optionally across instances

Neural recall is opt-in: pip install ida-multi-mcp[neural] and IDA_MCP_SIM_NEURAL=1 (the model auto-downloads to ~/.ida-mcp/models/). Worked examples against stripped binaries: docs/function-similarity-usage.md.


Requirements

  • Python 3.11 or later
  • IDA Pro 8.5+ (9.1 or later recommended)

IDA 9.0 SP0 (build 240925) is not supported. That build shipped without func_t.get_name, func_t.get_prototype and tinfo_t.get_udm, which several tools call directly. Use IDA 9.0 SP1 (build 241217) or later.


Manual installation

Already used the prompt in Install in one prompt? Skip this section.

bash
# 0. (Recommended) Clean previous install to avoid stale scripts/config
ida-multi-mcp --uninstall
python -m pip uninstall -y ida-multi-mcp

# 1. Install ida-multi-mcp
python -m pip install git+https://github.com/MeroZemory/ida-multi-mcp.git

# 2. Install IDA plugin + configure all MCP clients
ida-multi-mcp --install

If IDA uses a different Python version than your default, use py -3.12 (replace with IDA's version) instead of python. If you manually edit %USERPROFILE%\.codex\config.toml, use literal TOML quoting for Windows paths (e.g. [projects.'\\?\C:\path\to\repo'], command = 'C:\...\python.exe').

Important: IDA Pro typically uses a different Python version than your system default (e.g. IDA uses Python 3.11 while macOS ships 3.14). Install the package for both your terminal Python and IDA's Python.

Step 1 — check IDA's Python version. In the IDA console:

Python> import sys; print(sys.version)

Step 2 — install (replace 3.11 with IDA's version):

bash
# 1. CLI tool via pipx (for terminal commands)
pipx install git+https://github.com/MeroZemory/ida-multi-mcp.git

# 2. Package for IDA's Python
python3.11 -m pip install --user git+https://github.com/MeroZemory/ida-multi-mcp.git

# 3. IDA plugin + MCP client configuration
ida-multi-mcp --install

# 4. Claude Code — configure manually (recommended over --install)
claude mcp add ida-multi-mcp -s user -- ida-multi-mcp

ida-multi-mcp --install registers MCP servers using python3 -m ida_multi_mcp, which may point at the wrong Python on macOS. For Claude Code, claude mcp add pins the pipx-managed CLI directly.

bash
# 1. Install ida-multi-mcp
pip install --user git+https://github.com/MeroZemory/ida-multi-mcp.git

# 2. Install IDA plugin + configure MCP clients
ida-multi-mcp --install

The canonical guide an AI agent should follow is docs/installation.md — platform packages, IDA Python matching, plugin setup, verification.

Supported MCP clients

Works with stdio-capable MCP clients. ida-multi-mcp --install configures every supported client it finds on your machine:

  • CLI — Claude Code, Codex, Gemini CLI, Copilot CLI, Amazon Q Developer CLI, Qwen Coder, Opencode, Crush, Factory Droid
  • IDE — Cursor, VS Code (Copilot), Windsurf, Zed, Kiro, Trae, Antigravity, Augment Code
  • Desktop — Claude Desktop, LM Studio, BoltAI, Perplexity
  • Editor extension — Cline, Roo Code, Kilo Code, Qodo Gen
  • Terminal — Warp

For anything not auto-detected, ida-multi-mcp --config prints the raw configuration JSON to paste in yourself.


Usage

Opening several binaries (GUI)

Open each binary in its own IDA Pro window. The plugin auto-loads (PLUGIN_FIX) and registers a 4-character instance ID — k7m2, px3a, 9bf1. That is the whole setup.

Skipping the load dialog. A new binary normally pops IDA's "Load a new file" dialog, which blocks before the plugin is running — nothing on the MCP side can dismiss it. Launch IDA in autonomous mode to accept the defaults:

bash
ida -A path/to/binary.exe

Targeting an instance

instance_id is required whenever two or more instances are registered, so concurrent agents cannot collide. With exactly one registered it may be omitted and that instance is selected automatically.

text
Decompile the main function in malware.exe (k7m2)

Decompile main in malware.exe (k7m2) and compare it with the entry point in dropper.dll (px3a)

Index malware.exe (k7m2) and dropper.dll (px3a), then find the function in dropper.dll
most similar to sub_140001000 in malware.exe

Headless analysis (IDA Pro only)

Requires an IDA Pro license. IDA Home and IDA Free do not ship idalib.

text
Use idalib_open to analyze /path/to/malware.exe headlessly

idalib_open(input_path=...) spawns a headless idalib process, waits for auto-analysis and returns an instance_id. From there analysis tools use the same routed interface; GUI- and debugger-dependent operations remain subject to headless IDA limitations. To pin a specific Python that has idapro installed:

bash
ida-multi-mcp --idalib-python /path/to/python3.11

Listing registered instances

console
$ ida-multi-mcp --list
Registered IDA instances (3):

  k7m2
    Binary: malware.exe
    Path: C:/samples/malware.exe
    Arch: x86_64
    Port: 49152
    PID: 12345

  px3a
    Binary: dropper.dll
    Path: C:/samples/dropper.dll
    Arch: x86_64
    Port: 49153
    PID: 12346

  9bf1
    Binary: payload.exe
    Path: C:/samples/payload.exe
    Arch: x86
    Port: 49154
    PID: 12347

Learn more

I want to…Read
Install it properly, on any platformdocs/installation.md
Look up a tool's parametersdocs/tools.md
Use the CLI (--list, --install, --uninstall, --config)docs/cli.md
Understand routing, the registry and health monitoringdocs/architecture.md
Know what it costs on a huge binarydocs/performance.md · docs/benchmark-report.md
Fix a plugin that will not load, or a Python mismatchdocs/troubleshooting.md
See similarity search used on stripped binariesdocs/function-similarity-usage.md
Know how this relates to upstream ida-pro-mcpdocs/ida-pro-mcp/comparison.md

Limitations

  • Localhost only. The router binds loopback and refuses non-loopback instances; remote IDA instances are not supported.
  • stdio transport only. There is no HTTP/SSE endpoint for remote or containerized clients.
  • Headless (idalib) requires IDA Pro. IDA Home and IDA Free do not ship idalib.
  • Concurrency is across instances, not within one. IDA executes on a single main thread, so two calls to the same instance still queue.
  • Cancellation is not forwarded to IDA. notifications/cancelled reaches the router, but the router→IDA hop is a blocking HTTP request; the per-tool deadline is what bounds a runaway call.
  • Resources (as opposed to tools) require manual routing.

Changelog highlights

  • ⏳ Auto-analysis gating — analysis_status() and analysis_wait() let an agent find out whether IDA has actually settled before it draws conclusions, and the router attaches a warning to results from analysis-dependent tools while an instance is still analysing. server_health's auto_analysis_ready flag was inverted, reporting "ready" exactly when analysis was still running. Waiting properly is worth 12,885 functions on a 23 MB DLL (61,044 → 73,929) that an unwaiting agent would never see — why the flag is a snapshot, not a latch. idb_save also no longer takes the save-as path in the GUI.
  • ⚡ Genuinely parallel instances — the router used to dispatch one request at a time, so a slow call on one binary stalled every other binary behind it. Requests now run on a worker pool with only the stdout writes serialized. Measured against two live instances: a call to instance B while instance A was busy went from 3.41 s → 0.01 s. (#27)
  • ⏱️ Slow scans no longer freeze an instance — a long C-level SDK call (find_bytes, decompile, string building) could hold IDA's main thread far past the tool timeout, because a Python-level timeout cannot preempt C. The deadline now fires IDA's own set_cancelled(), which those calls poll and honour; find / find_bytes report cursor.cancelled so a partial page is distinguishable from a finished one. (#28)
  • 🔎 Function similarity search (BCSD) — locate the same or similar function within a binary or across instances, with stripping-resistant core signals, a conditional pseudocode-token signal and optional local neural recall. → details

Contributing

Contributions welcome. Please keep changes:

  • Python 3.11+ compatible
  • cross-platform (Windows, macOS, Linux)
  • covered by tests for new behaviour

CI runs lint (F821/F811 — IDA modules cannot be imported in CI, so undefined names are otherwise invisible to pytest) and the test suite on Ubuntu, Windows and macOS against Python 3.11 and 3.12.

License

MIT

Acknowledgments

This project exists because of ida-pro-mcp by Duncan Ogilvie (mrexodia) — the IDA tool implementations are its work, and the multi-instance layer here is built on that foundation. See Built on ida-pro-mcp for the details, and docs/ida-pro-mcp/comparison.md for what has been adopted from upstream and what has been contributed back.

Related projects

  • ida-pro-mcp — the upstream IDA MCP plugin this project forked its tool implementations from; now also ships a multi-session idalib-mcp supervisor (MIT)
  • Model Context Protocol — the protocol every client listed above speaks

Support

Open an issue — but check docs/troubleshooting.md first; plugin-not-loading and Python-version mismatch are common failure modes.

Ida Multi MCPのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Ida Multi MCPに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Ida Multi MCPをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Ida Multi MCPのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "ida-multi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてIda Multi MCPのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Ida Multi MCPのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Ida Multi MCPを使ってこのタスクを手伝ってもらえますか?
Ida Multi MCP
はい、読みました。
Ida Multi MCPで調べた結果をお伝えします。

よくある質問

Ida Multi MCP MCPサーバーは何に使いますか?

Ida Multi MCPは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでIda Multi MCP MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでIda Multi MCPを利用できます。

TypingMindでIda Multi MCP MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Ida Multi MCPを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Ida Multi MCP MCPをTypingMindに接続するにはどうすればよいですか?

Ida Multi MCPはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでIda Multi MCP MCPのどのようなツールを利用できますか?

Ida Multi MCPはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Ida Multi MCP MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Ida Multi MCPで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇