idalib-mcp-headless
A headless MCP server that manages multiple independent IDA Pro worker processes for reverse engineering, supporting database operations and debug tools.
README
idalib MCP Headless
Fresh headless MCP supervisor for IDA Pro 9.x through idalib.
This project keeps the IDA-facing tool surface compatible with mrexodia/ida-pro-mcp by using that package at runtime, then adds a thin supervisor layer for:
- multiple independent worker processes, one per open database/debug session;
- command-line IDA installation selection with
--ida-home; - a simple browser UI for listing and closing instances;
- MCP management tools such as
idalib_open,idalib_list, andidalib_close.
Install
Use a project virtual environment with a Python supported by IDA/idapro and the upstream MCP package.
cd D:\Projects\idalib-mcp
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e .
After the project is published, installation can use the GitHub archive directly:
pip install https://github.com/nyaoouo/idalib-mcp/archive/refs/heads/main.zip
If the idapro Python package is not already available, install it from your IDA installation:
pip install D:\tools\IDA_PRO_9.1\idalib\python
--ida-home configures idalib for the worker process without rewriting your normal %APPDATA%\Hex-Rays\IDA Pro\ida-config.json.
MCP Client Setup
Print generic MCP client snippets:
idalib-mcp-headless --config --ida-home D:\tools\IDA_PRO_9.1
List supported client targets:
idalib-mcp-headless --list-clients
Install project-level MCP config for a supported client:
idalib-mcp-headless --install cursor --scope project --ida-home D:\tools\IDA_PRO_9.1
Install a stdio config that lets the MCP client launch the headless server itself:
idalib-mcp-headless --install claude --transport stdio --scope global --ida-home D:\tools\IDA_PRO_9.1
In stdio mode the MCP protocol still uses stdin/stdout, and the instance manager is started as a local HTTP sidecar. The server writes the web UI URL to stderr, for example:
Instance UI: http://127.0.0.1:8745/instances
If the configured port is already in use, stdio mode retries with an ephemeral port and prints the actual URL.
Install an HTTP config when you run the server separately:
idalib-mcp-headless --install vscode --transport streamable-http --scope project --host 127.0.0.1 --port 8745
Remove config entries with --uninstall, for example:
idalib-mcp-headless --uninstall cursor --scope project
This project is headless, so the installer only updates MCP client configuration. There is no IDA GUI plugin to install.
Run
idalib-mcp-headless --ida-home D:\tools\IDA_PRO_9.1 --host 127.0.0.1 --port 8745 --max-workers 4
Open the instance manager at:
http://127.0.0.1:8745/instances
Connect MCP clients to:
http://127.0.0.1:8745/mcp
Debugger tools are inherited from the upstream package and are hidden behind the dbg extension. Start the server with --unsafe, then connect to:
http://127.0.0.1:8745/mcp?ext=dbg
Each idalib_open call creates or reuses a distinct worker process. Normal upstream tools receive an optional database argument at the supervisor layer so calls can target a specific session by session id, filename, or path.
Useful Commands
Open a database through MCP:
{"name":"idalib_open","arguments":{"input_path":"C:\\path\\to\\sample.exe","session_id":"sample-a"}}
List instances through MCP:
{"name":"idalib_list","arguments":{}}
Close an instance through MCP:
{"name":"idalib_close","arguments":{"session_id":"sample-a"}}
The browser UI uses the same supervisor session table and calls the close operation server-side. When closing an instance from the browser UI, choose whether to save the IDB before the worker is stopped.
Validation
Run the dependency-free local checks:
python -m unittest discover -s tests -p "test*.py"
python -m py_compile src\idalib_mcp\config.py src\idalib_mcp\installer.py src\idalib_mcp\worker.py src\idalib_mcp\server.py
For an end-to-end IDA smoke test, install the dependencies in a virtual environment and start the server with the --ida-home path shown above.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。