ida-pro-mcp-fusion
What is Fusion?
IDA Pro MCP Fusion connects MCP-compatible coding agents to IDA Pro and turns a single connection into a practical reverse-engineering workspace. It combines live IDA analysis with a persistent SQLite index and a supervisor that can keep several binaries open in isolated headless workers.
Use it to decompile and disassemble functions, trace cross-references, query types, rename symbols, patch data, create signatures, inspect multiple samples, and reuse cached analysis without repeatedly walking IDA's single-threaded APIs.
This project requires a local, licensed installation ofIDA Pro. IDA Free is not supported. The server does not provide IDA, Hex-Rays, or a hosted analysis service.
Related MCP server: re-mcp
Why Fusion
Capability | What it changes | |
⚡ | Persistent SQLite cache | Functions, strings, globals, imports, xrefs, and call-graph edges remain queryable across repeated investigations. |
◈ | Multi-binary supervisor | Open, address, and close several GUI or headless databases through one MCP endpoint. |
⛓ | Persistent workers | A later supervisor can discover and adopt an existing worker for the same database. |
◎ | Batch-first workflow | Warm analysis and build caches for a collection of samples with one |
⛨ | Controlled surface | Read-only profiles, opt-in unsafe tools, worker limits, timeouts, and idle cleanup keep automation bounded. |
The cache lives beside the IDB as <database>.mcp.sqlite. Freshness is checked against the IDB modification time and cache schema, so stale rows are not silently reused.
Quick start
1. Prerequisites
IDA Pro 8.3 or newer; IDA 9.x is recommended
Python 3.11 or newer
Any MCP client that can launch a local stdio server
Install uv if it is not available:
python -m pip install uvActivate IDA's headless Python environment once:
# Windows — adjust the IDA version/path if needed
uv run "C:\Program Files\IDA Professional 9.3\idalib\python\py-activate-idalib.py"# macOS — adjust the IDA version/path if needed
uv run "/Applications/IDA Professional 9.3.app/Contents/MacOS/idalib/python/py-activate-idalib.py"2. Add the MCP server
The recommended setup runs the latest code directly from this repository:
{
"mcpServers": {
"ida-pro-mcp-fusion": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/rison1337/ida-pro-mcp-fusion",
"idalib-mcp",
"--stdio"
]
}
}
}Claude Code:
claude mcp add ida-pro-mcp-fusion -- uvx --from git+https://github.com/rison1337/ida-pro-mcp-fusion idalib-mcp --stdioOr download the packaged MCP bundle from the latest release.
3. Open a database
Ask the connected agent to start with:
idb_open(
"C:/samples/target.exe",
preferred_session_id="target",
build_caches=True,
init_hexrays=True,
)Every analysis call then names its database explicitly:
survey_binary(database="target")
decompile("main", database="target")
xrefs_to("WinMain", database="target")
cache_callgraph_hotspots(limit=25, database="target")Architecture
Your MCP client starts
idalib-mcpover stdio or HTTP.The supervisor creates or adopts one worker per binary and enforces the worker limit.
Tool calls include a
databasesession ID, so requests are routed to the correct IDB.IDA performs live decompilation and mutation work; cache tools serve indexed queries from the sidecar SQLite database.
Workers remain discoverable on the host and clean themselves up after their idle TTL.
GUI databases can participate too. idb_open supports four routing modes:
Mode | Behaviour |
| Use or create an idalib worker. This is the default. |
| Never adopt a running GUI instance. |
| Adopt a matching GUI instance, otherwise create a worker. |
| Adopt a matching GUI instance or launch IDA GUI. |
Multi-binary workflow
Open a small collection and keep every session available:
idb_batch_open(
[
"C:/samples/loader.exe",
"C:/samples/payload.dll",
"C:/samples/helper.dll",
],
session_prefix="case42",
refresh_cache=True,
cache_include_xrefs=True,
)For a large corpus, build each cache and release its worker immediately:
idb_batch_open(
["C:/corpus/a.exe", "C:/corpus/b.exe", "C:/corpus/c.exe"],
close_after_cache=True,
retry_without_auto_analysis_on_timeout=True,
)Useful session controls:
idb_list()
idb_close(database="case42_1_loader")Tool surface
The codebase registers 75 IDA-facing analysis tools, plus the supervisor's multi-session controls. The exact number visible to a client intentionally varies: debugger tools are an extension, dangerous operations are disabled unless explicitly enabled, and a profile can expose a smaller allowlist.
Area | Representative tools |
Sessions |
|
Survey & decompilation |
|
Search & relationships |
|
Persistent cache |
|
Types & stack |
|
Database editing |
|
Signatures |
|
Debugger extension |
|
The nine cache-specific tools are:
cache_status refresh_cache
cache_refresh_if_stale cache_list_funcs
cache_entity_query cache_xrefs
cache_callgraph cache_callgraph_hotspots
cache_find_regexConfiguration
Worker pool
uvx --from git+https://github.com/rison1337/ida-pro-mcp-fusion \
idalib-mcp --stdio --max-workers 4Option / variable | Purpose |
| Maximum simultaneous database workers; |
| Environment default for the worker limit. |
| Maximum auto-analysis open time in seconds. Default: |
| Maximum load-only open time in seconds. Default: |
Restricted profiles
Expose only a curated set of tools:
idalib-mcp --stdio --profile profiles/readonly.txtTwo ready-to-use profiles are included:
profiles/readonly.txt— inspection without mutation toolsprofiles/triage.txt— compact first-pass analysis surface
Management tools remain available so sessions can still be opened and inspected.
HTTP transport
idalib-mcp --host 127.0.0.1 --port 8745IDA GUI bridge:
ida-pro-mcp --transport http://127.0.0.1:8744/sseTo install the GUI plugin and generate client configuration interactively:
python -m pip install https://github.com/rison1337/ida-pro-mcp-fusion/archive/refs/heads/main.zip
ida-pro-mcp --installRestart IDA and the MCP client after installation.
Safety notes
The server binds to loopback by default. Do not expose it to an untrusted network.
Mutating and arbitrary-Python tools are marked unsafe and are not enabled by default.
py_eval,py_exec_file, debugger controls, and patching operations can execute code or permanently change an IDB. Enable them only for trusted clients and inputs.Analyze untrusted binaries inside the same isolation boundary you would use for manual malware analysis.
Enable unsafe worker tools only when the workflow requires them:
idalib-mcp --stdio --unsafeTroubleshooting
Install uv with python -m pip install uv, open a new terminal, and confirm with uvx --version.
Run Hex-Rays idapyswitch, select a Python 3.11+ installation, then activate idalib again with py-activate-idalib.py.
Call idb_list() and pass the returned session_id as database=. Paths and filenames are not accepted in place of a session ID.
Close an unused session with idb_close, raise --max-workers, or use close_after_cache=True for corpus indexing.
Development
Clone the repository and run the platform-independent test suite:
git clone https://github.com/rison1337/ida-pro-mcp-fusion.git
cd ida-pro-mcp-fusion
python -m pip install pytest jsonschema "mcp>=1.0" "tomli-w>=1.0"
python -m pytest -q testsRun the IDA-backed suite in an activated IDA environment:
uv run ida-mcp-test tests/typed_fixture.elf -qNew IDA tools live in src/ida_pro_mcp/ida_mcp/api_*.py and register through the @tool decorator. Supervisor and worker lifecycle tests live under tests/.
Project identity and credits
Fusion Edition is maintained by rison1337.
The project builds on the MIT-licensed mrexodia/ida-pro-mcp codebase. Its persistent cache and headless orchestration also incorporate ideas developed in QiuChenly/ida-pro-mcp-enhancement and winmin/ida-headless-mcp. Attribution is retained here and in the source history; Fusion's packaging, cache tooling, batch workflow, session lifecycle, and public identity are maintained in this repository.
License
Distributed under the MIT License. IDA Pro and Hex-Rays are trademarks of Hex-Rays SA and are not included with this project.
Русский
Что такое Fusion?
IDA Pro MCP Fusion подключает MCP-совместимых агентов к IDA Pro и превращает одно соединение в полноценное рабочее место для реверсинга. Живой анализ IDA объединён с постоянным SQLite-индексом и supervisor-процессом, который может держать несколько бинарников в изолированных headless-воркерах.
Можно декомпилировать и дизассемблировать функции, исследовать перекрёстные ссылки, типы и граф вызовов, переименовывать символы, патчить данные, создавать сигнатуры и повторно использовать уже построенный анализ.
Нужна локальная лицензированная установкаIDA Pro. IDA Free не поддерживается. Сервер не содержит IDA, Hex-Rays и не отправляет бинарники во внешний сервис.
Почему Fusion
Возможность | Что это даёт | |
⚡ | Постоянный SQLite-кэш | Функции, строки, глобальные переменные, импорты, xref и call graph доступны между запусками. |
◈ | Мульти-бинарный supervisor | Несколько GUI- или headless-баз управляются через одну MCP-точку. |
⛓ | Живущие воркеры | Следующее подключение может найти и принять уже запущенный worker для той же базы. |
◎ | Пакетный анализ | Открытие образцов и построение кэшей выполняется одним |
⛨ | Контролируемый интерфейс | Read-only-профили, лимит воркеров, тайм-ауты и opt-in для опасных инструментов. |
Кэш лежит рядом с IDB в файле <database>.mcp.sqlite. Актуальность проверяется по времени изменения IDB и версии схемы, поэтому устаревшие данные не выдаются незаметно.
Быстрый старт
1. Что понадобится
IDA Pro 8.3 или новее; рекомендуется IDA 9.x
Python 3.11 или новее
MCP-клиент, который умеет запускать локальный stdio-сервер
Установите uv, если его ещё нет:
python -m pip install uvОдин раз активируйте headless Python от IDA:
# Windows — при необходимости измените версию и путь к IDA
uv run "C:\Program Files\IDA Professional 9.3\idalib\python\py-activate-idalib.py"# macOS — при необходимости измените версию и путь к IDA
uv run "/Applications/IDA Professional 9.3.app/Contents/MacOS/idalib/python/py-activate-idalib.py"2. Добавьте MCP-сервер
Рекомендуемая конфигурация запускает код напрямую из этого репозитория:
{
"mcpServers": {
"ida-pro-mcp-fusion": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/rison1337/ida-pro-mcp-fusion",
"idalib-mcp",
"--stdio"
]
}
}
}Для Claude Code:
claude mcp add ida-pro-mcp-fusion -- uvx --from git+https://github.com/rison1337/ida-pro-mcp-fusion idalib-mcp --stdioГотовый MCPB-пакет доступен в последнем релизе.
3. Откройте базу
Попросите подключённого агента начать так:
idb_open(
"C:/samples/target.exe",
preferred_session_id="target",
build_caches=True,
init_hexrays=True,
)Каждый следующий вызов анализа получает явный ID базы:
survey_binary(database="target")
decompile("main", database="target")
xrefs_to("WinMain", database="target")
cache_callgraph_hotspots(limit=25, database="target")Архитектура
MCP-клиент запускает
idalib-mcpчерез stdio или HTTP.Supervisor создаёт или принимает по одному worker-процессу на каждый бинарник.
Каждый вызов содержит
database, поэтому запрос попадает в нужную IDB-сессию.IDA выполняет живой анализ и изменения, а cache-инструменты читают индекс из SQLite.
Воркеры остаются обнаруживаемыми на компьютере и завершаются после периода простоя.
idb_open поддерживает четыре режима:
Режим | Поведение |
| Использовать или создать idalib-worker. Режим по умолчанию. |
| Не принимать запущенный GUI-процесс. |
| Принять подходящий GUI, а если его нет — создать worker. |
| Принять GUI или запустить новый процесс IDA. |
Работа с несколькими бинарниками
Открыть несколько образцов и оставить все сессии доступными:
idb_batch_open(
[
"C:/samples/loader.exe",
"C:/samples/payload.dll",
"C:/samples/helper.dll",
],
session_prefix="case42",
refresh_cache=True,
cache_include_xrefs=True,
)Для большого корпуса можно построить кэш и сразу освободить worker:
idb_batch_open(
["C:/corpus/a.exe", "C:/corpus/b.exe", "C:/corpus/c.exe"],
close_after_cache=True,
retry_without_auto_analysis_on_timeout=True,
)Управление сессиями:
idb_list()
idb_close(database="case42_1_loader")Инструменты
В кодовой базе зарегистрировано 75 инструментов анализа IDA, а supervisor добавляет управление мульти-бинарными сессиями. Видимый клиенту список намеренно меняется: debugger-инструменты являются расширением, опасные операции отключены без явного разрешения, а профиль может оставить только выбранные имена.
Область | Примеры |
Сессии |
|
Обзор и декомпиляция |
|
Поиск и связи |
|
Постоянный кэш |
|
Типы и стек |
|
Изменение базы |
|
Сигнатуры |
|
Debugger-расширение |
|
Настройка
Пул воркеров
uvx --from git+https://github.com/rison1337/ida-pro-mcp-fusion \
idalib-mcp --stdio --max-workers 4Параметр / переменная | Назначение |
| Максимум одновременно работающих баз; |
| Значение лимита по умолчанию из окружения. |
| Максимальное время автоанализа при открытии в секундах. По умолчанию |
| Максимальное время загрузки без автоанализа. По умолчанию |
Ограниченные профили
Оставить только выбранные инструменты:
idalib-mcp --stdio --profile profiles/readonly.txtprofiles/readonly.txt— просмотр без инструментов измененияprofiles/triage.txt— компактный набор для первичного анализа
HTTP
idalib-mcp --host 127.0.0.1 --port 8745GUI-мост:
ida-pro-mcp --transport http://127.0.0.1:8744/sseДля установки GUI-плагина:
python -m pip install https://github.com/rison1337/ida-pro-mcp-fusion/archive/refs/heads/main.zip
ida-pro-mcp --installПосле установки перезапустите IDA и MCP-клиент.
Безопасность
По умолчанию сервер слушает только loopback. Не открывайте его в недоверенную сеть.
Изменяющие и произвольные Python-инструменты помечены как unsafe и выключены по умолчанию.
py_eval,py_exec_file, debugger-команды и патчинг могут выполнять код или менять IDB.Непроверенные бинарники анализируйте в той же изоляции, что и при ручном malware analysis.
Включить unsafe-инструменты можно явно:
idalib-mcp --stdio --unsafeРешение проблем
Установите uv командой python -m pip install uv, откройте новый терминал и проверьте uvx --version.
Запустите idapyswitch, выберите Python 3.11+, затем снова выполните py-activate-idalib.py.
Вызовите idb_list() и передайте возвращённый session_id как database=. Пути и имена файлов вместо ID сессии не принимаются.
Закройте неиспользуемую сессию через idb_close, увеличьте --max-workers или используйте close_after_cache=True.
Разработка
git clone https://github.com/rison1337/ida-pro-mcp-fusion.git
cd ida-pro-mcp-fusion
python -m pip install pytest jsonschema "mcp>=1.0" "tomli-w>=1.0"
python -m pytest -q testsДля тестов, которым нужна сама IDA:
uv run ida-mcp-test tests/typed_fixture.elf -qНовые инструменты находятся в src/ida_pro_mcp/ida_mcp/api_*.py и регистрируются через @tool. Тесты supervisor и lifecycle — в tests/.
Проект и авторство
Fusion Edition поддерживается rison1337.
Проект основан на MIT-кодовой базе mrexodia/ida-pro-mcp. Постоянный кэш и headless-оркестрация также используют идеи из QiuChenly/ida-pro-mcp-enhancement и winmin/ida-headless-mcp. Атрибуция сохранена в README и истории исходников; упаковка Fusion, cache-инструменты, batch workflow и lifecycle сессий поддерживаются в этом репозитории.
Лицензия
Проект распространяется по MIT License. IDA Pro и Hex-Rays — товарные знаки Hex-Rays SA и не входят в состав проекта.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityAmaintenanceMCP Server for automated reverse engineering with IDA Pro.Last updated4310,869MIT
- Alicense-qualityBmaintenanceA multi-backend MCP server that exposes binary analysis capabilities from IDA Pro and Ghidra, allowing LLMs to directly drive reverse-engineering tools via natural language.Last updated128Apache 2.0
- Alicense-qualityAmaintenanceAn enterprise-grade MCP server for AI-powered reverse engineering. Enables AI agents to perform comprehensive binary analysis through natural language commands.Last updated183MIT
- Alicense-qualityDmaintenanceAn enhanced MCP server for IDA Pro that integrates bulk binary export, multi-instance management via Broker mode, and 80+ analysis tools for AI-assisted reverse engineering.Last updated3MIT
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
An MCP server that gives your AI access to the source code and docs of all public github repos
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rison1337/ida-pro-mcp-fusion'
If you have feedback or need assistance with the MCP directory API, please join our Discord server