Логотип ida-fusion-mcp

ida-fusion-mcp

Спільнота
andsopwn

Multi-instance IDA Pro MCP with extended analysis and debugger tooling

Видавецьandsopwn
Репозиторійida-fusion-mcp
МоваPython
Форки
1
Зірки
11
Доступні інструменти
0
Тип транспортуstdio
Категорії
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    ida-fusion-mcp надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Нижче ви можете переглянути дії, які можна викликати, а також їхні назви й описи, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до проєкту з відкритим кодом

    У пов’язаному репозиторії: зірки — 11, форки — 1.

ida-fusion-mcp

ida-fusion-mcp is a fork and continuation of MeroZemory/ida-multi-mcp. It keeps the original multi-instance IDA routing model, renames the public project, and adds a larger tool surface ported from ida-pro-mcp.

The goal is straightforward: one MCP endpoint for reverse-engineering work that spans more than one IDA database. Your AI client keeps one stable server config, and each tool call is routed to the correct IDA Pro GUI instance or headless idalib worker by instance_id.

v0.1.1 stabilization candidate: fixes synchronization, installer safety, debugger routing/schema parity, macOS detection, and selected correctness issues. It is a local candidate only; no tag, package, or public release has been published.

The project combines three things that are usually separate:

  • multi-binary routing for loaders, payloads, plugins, services, and shared libraries;
  • a broad IDA tool surface adapted from ida-pro-mcp;
  • headless IDA Pro sessions for background analysis without opening another GUI window.

License Python IDA Pro MCP

ida-fusion-mcp architecture

What Problem It Solves

Most IDA MCP setups assume a single active database. That is awkward once an investigation needs context from several files at once: a dropper and payload, a patched and unpatched build, a client and server pair, or a main executable plus libraries.

ida-fusion-mcp makes the target explicit. The AI client first asks for registered instances, receives short IDs such as k7m2 or px3a, and includes one of those IDs in every IDA tool call. That small constraint prevents a common failure mode: the model decompiles, renames, patches, or debugs the wrong database because two IDA windows are open.

Core Ideas

IdeaPractical effect
One MCP serverConfigure Claude Code, Cursor, Codex, VS Code, or another MCP client once.
Many IDA backendsGUI IDA instances and headless idalib workers register into the same local registry.
Required instance_idTool calls are deliberately scoped to one database.
Static + dynamic schemasTools are visible before IDA is open, then refreshed from live IDA instances.
Local-only transportIDA listens on loopback HTTP JSON-RPC; the MCP server talks stdio to the client.
Compatibility aliasesThe public name is ida-fusion-mcp; the Python implementation package remains ida_fusion_mcp to avoid breaking existing imports.

Tool Surface

The IDA-side tools cover the normal reverse-engineering loop: discovery, navigation, decompilation, xrefs, memory reads, patching, type work, comments, stack variables, debugger access, and binary triage.

The recent port from ida-pro-mcp adds these higher-level capabilities:

CategoryTools
Signature generationmake_signature, make_signature_for_function, make_signature_for_range, find_xref_signatures
Type catalogtype_query, type_inspect, type_apply_batch
Unified searchentity_query, search_text
IDAPython file executionpy_exec_file
Debugger controldbg_start, dbg_status, dbg_exit, dbg_continue, dbg_run_to, dbg_step_into, dbg_step_over
Breakpointsdbg_bps, dbg_add_bp, dbg_delete_bp, dbg_toggle_bp, dbg_set_bp_condition
Registers and stackdbg_regs_all, dbg_regs, dbg_regs_remote, dbg_gpregs, dbg_gpregs_remote, dbg_regs_named, dbg_regs_named_remote, dbg_stacktrace
Debugger memorydbg_read, dbg_write

Router-level tools add multi-instance operations:

ToolPurpose
list_instancesShow every registered GUI or headless IDA backend.
refresh_toolsRefresh schemas from currently connected IDA instances.
compare_binariesCompare metadata and segments from two registered instances.
decompile_to_fileSave decompiler output to disk without stuffing huge output into chat.
get_cached_outputRetrieve follow-up chunks from truncated large responses.
idalib_open / idalib_close / idalib_list / idalib_statusManage headless IDA Pro sessions.

Comparison

Capabilityida-fusion-mcpida-pro-mcpTypical single-instance MCP
Multiple GUI IDA windowsFirst-class workflowNot the main focusUsually awkward
Per-call target selectionRequired instance_idContext/session dependentOften implicit
Headless IDA ProManaged idalib workers in the same registryidalib-mcp supervisor modelOften absent
Signature/type/search toolsIncluded from the portIncluded upstreamVaries
Cross-binary helpersIncluded at router levelNot the focusUsually absent
Best fitMulti-file investigations and agent workflowsUpstream single-database IDA toolingOne binary at a time

Quick Start

Install the package, install the IDA loader, then open binaries in IDA.

bash
python -m pip install git+https://github.com/andsopwn/ida-fusion-mcp.git
ida-fusion-mcp --install
ida-fusion-mcp --list

Example client prompt:

text
Call list_instances, identify the two open binaries, decompile their entry points, and compare the initialization paths.

The legacy ida-multi-mcp console command is still provided as an alias. New configuration uses ida-fusion-mcp.

Installation Details

Requirements

ModeIDA edition/versionPythonExtra package
GUI pluginIDA Pro/Home 8.3+IDA's matching Python, server on 3.11+none
Managed headlessIDA Pro 9.x with libidalibserver/worker on 3.11+ida-fusion-mcp[idalib]

Post-change v0.1.1 GUI routing and managed idalib are verified with IDA Pro 9.3 on macOS arm64, including a real GUI restart and managed-session lifecycle.

macOS

IDA often uses a different Python build than your shell. Check IDA's Python first:

python
import sys
print(sys.version)

Then install with the matching Python version:

bash
pipx install git+https://github.com/andsopwn/ida-fusion-mcp.git
python3.11 -m pip install --user git+https://github.com/andsopwn/ida-fusion-mcp.git
ida-fusion-mcp --install

For Claude Code, a direct CLI registration is usually clearer than a module command:

bash
claude mcp add ida-fusion-mcp -s user -- ida-fusion-mcp

For managed headless sessions, install the optional idapro dependency into a Python 3.11 environment. Persist that exact worker interpreter in the MCP client registration; running the server once with the flag does not update the client's saved configuration. Use this registration instead of the GUI-only Claude Code command above:

bash
python3.11 -m pip install \
  "ida-fusion-mcp[idalib] @ git+https://github.com/andsopwn/ida-fusion-mcp.git"
claude mcp add ida-fusion-mcp -s user -- \
  ida-fusion-mcp --idalib-python /absolute/path/to/idalib-python

For JSON-based clients, store the same argument in the server entry:

json
{
  "command": "/absolute/path/to/server-python",
  "args": ["-m", "ida_fusion_mcp", "--idalib-python", "/absolute/path/to/idalib-python"]
}

GUI mode does not require idapro. Headless mode requires IDA Pro 9.x with libidalib and an interpreter where import idapro is discoverable.

Windows

powershell
py -3.11 -m pip install git+https://github.com/andsopwn/ida-fusion-mcp.git
ida-fusion-mcp --install

If IDA uses a different Python version, replace 3.11 with IDA's version. For a custom IDA directory:

powershell
ida-fusion-mcp --install --ida-dir "C:\Program Files\IDA Professional 9.3"

Linux

bash
python3 -m pip install --user git+https://github.com/andsopwn/ida-fusion-mcp.git
ida-fusion-mcp --install

Manual MCP Config

ida-fusion-mcp --install writes client configs automatically when it recognizes the client. To inspect the raw MCP config:

bash
ida-fusion-mcp --config

Typical output:

json
{
  "mcpServers": {
    "ida-fusion-mcp": {
      "command": "/path/to/python3",
      "args": ["-m", "ida_fusion_mcp"]
    }
  }
}

Using It

Open one or more binaries in IDA Pro. The loader installed by --install starts an IDA-local HTTP server and registers the database in ~/.ida-mcp/instances.json.

Check what is live:

bash
ida-fusion-mcp --list

Then use the displayed instance_id in prompts or tool arguments:

text
Use instance k7m2. Find functions referencing the string "license", decompile the callers, and summarize the validation path.

For two binaries:

text
Use k7m2 as the old build and px3a as the patched build. Compare the functions around the entry point and report changed calls.

For headless work:

text
Open /samples/payload.bin with idalib_open, wait for analysis, then run survey_binary on the returned instance.

Architecture

text
AI client
  |
  | MCP stdio
  v
ida-fusion-mcp router
  |-- local registry and schema cache
  |-- output cache for large responses
  |-- idalib worker manager
  |
  | HTTP JSON-RPC on loopback
  v
IDA GUI #1    IDA GUI #2    idalib worker #1

The router does not own IDA analysis state. It validates the requested instance_id, forwards the call to the matching backend, normalizes large outputs, and returns the MCP response to the client.

Operational Notes

  • The installed IDA loader is named ida_fusion_mcp_loader.py so it does not shadow the ida_fusion_mcp package when IDA imports plugins by filename.
  • The implementation module remains ida_fusion_mcp.
  • The registry lives under ~/.ida-mcp/ by default.
  • GUI instances send heartbeats; stale entries are cleaned up.
  • If an IDA window opens a different input file, the old instance expires and a new ID is registered.
  • The stdio router advertises debugger tools normally and internally enables the IDA backend's dbg extension for discovery and invocation. Clients pass only instance_id; unsafe-tool configuration and debugger-state checks stay enforced by the backend.
  • py_eval and py_exec_file are unsafe, in-process code-execution tools. Their reduced builtins/import surface is defense in depth, not containment; disable them in the IDA MCP tool configuration unless the workflow requires them. Managed idalib workers omit @unsafe tools unless opened with unsafe=true; the GUI plugin retains its existing enabled-tool defaults for compatibility.

Troubleshooting

IDA does not show the plugin

Check that the loader exists:

bash
ls ~/.idapro/plugins/ida_fusion_mcp_loader.py

On Windows:

powershell
Get-Item "$env:APPDATA\Hex-Rays\IDA Pro\plugins\ida_fusion_mcp_loader.py"

If IDA reports No module named 'ida_fusion_mcp', install the package with the Python version used by IDA. If IDA itself is using Python older than 3.11, switch IDA to a supported Python build with idapyswitch.

The MCP client starts the wrong Python

Run:

bash
ida-fusion-mcp --config

If the generated command points to an unexpected interpreter, configure the client to call the ida-fusion-mcp CLI directly.

No instances are listed

Start IDA with a binary loaded, then run:

bash
ida-fusion-mcp --list

If the list is still empty, check the IDA output window for [ida-fusion-mcp] messages.

Development

bash
git clone https://github.com/andsopwn/ida-fusion-mcp.git
cd ida-fusion-mcp
python -m venv .venv
. .venv/bin/activate
python -m pip install -e .
python -m compileall -q src
python -m ida_fusion_mcp --config

The public package exposes both commands:

bash
ida-fusion-mcp --config
ida-multi-mcp --config   # compatibility alias

Lineage And License

ida-fusion-mcp is MIT licensed. See LICENSE.

This repository is based on and extends MIT-licensed work from:

Those attributions are intentional: this project is ida-multi-mcp plus additional ported functionality, packaging the useful IDA tool surface into a router-oriented workflow for multi-binary analysis.

Встановлення

TypingMind
{
  "mcpServers": {
    "ida-fusion-mcp": {
      "command": "ida-fusion-mcp",
      "args": [
        "--config"
      ]
    }
  }
}

Використовуйте MCP ida-fusion-mcp з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення ida-fusion-mcp ви можете використовувати це підключення з різними моделями ШІ в TypingMind, не налаштовуючи його окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Налаштувати конектор».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Налаштувати конектор» і виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо в терміналі з’явиться запит на підтвердження.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте ida-fusion-mcp як сервер

Коли статус конектора зміниться на «Готово», натисніть «Редагувати сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Редагувати сервери».
  3. Вставте конфігурацію сервера MCP ida-fusion-mcp.
  4. Збережіть список серверів.
  5. Якщо хочете переконатися, що конектор досі готовий до роботи, оновіть дані.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Редагувати сервери»
{
  "mcpServers": {
    "ida-fusion-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для ida-fusion-mcp, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для ida-fusion-mcp.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через ida-fusion-mcp?
ida-fusion-mcp
Звісно. Я це прочитав.
Ось що я знайшов за допомогою ida-fusion-mcp.

Поширені запитання

Для чого використовується сервер MCP ida-fusion-mcp?

ida-fusion-mcp — це сервер MCP, який дає змогу сумісним клієнтам ШІ отримувати доступ до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати сервер MCP ida-fusion-mcp з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати ida-fusion-mcp з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати сервер MCP ida-fusion-mcp із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши ida-fusion-mcp, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити сервер MCP ida-fusion-mcp до TypingMind?

ida-fusion-mcp працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає сервер MCP ida-fusion-mcp у TypingMind?

ida-fusion-mcp надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно ділитися своїми ключами API з TypingMind, щоб використовувати сервер MCP ida-fusion-mcp?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає вам змогу самостійно обирати постачальників моделей і керувати ключами API, промптами та конфігурацією MCP. Якщо ida-fusion-mcp потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇