ph4ntom-ida-bridge
Secure local REST, CLI, MCP, and agent bridge for IDA Pro 9.x
Install / Use
claude mcp add ph4ntom-rev -- npx -y github:ph4ntom-rev/ph4ntom-ida-bridgeIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
SecuritySupported Platforms
Our assessment of ph4ntom-ida-bridge
ph4ntom-ida-bridge scores 78/100 on our quality scale, 1015th of 1,104 Security skills we index.
Its MCP Server is 7.3 KB long, well organised into 12 sections with 15 code examples: a thorough specification that gives an agent plenty to work with.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so ph4ntom-ida-bridge is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 87/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
ph4ntom-ida-bridge compared with similar skills
All 4 of these similar skills score higher than ph4ntom-ida-bridge; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| ph4ntom-ida-bridge (this skill)by ph4ntom-rev | 78 | 3 | 53d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 106.6k | 5d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.3k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.7k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 90.4k | 1d ago | MCP Server |
Frequently asked questions
- How do I install ph4ntom-ida-bridge?
- Run
claude mcp add ph4ntom-rev -- npx -y github:ph4ntom-rev/ph4ntom-ida-bridge. The install tabs above show the steps for each supported agent. - Which AI agents does ph4ntom-ida-bridge work with?
- It is written for Claude Code, Claude Desktop and Gemini CLI, as a MCP Server file. Other agents that read the same format can often use it too.
- Is ph4ntom-ida-bridge safe to use?
- It is MIT-licensed and scores 87/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is ph4ntom-ida-bridge still maintained?
- The repository was last updated about 2 months ago, so ph4ntom-ida-bridge is actively maintained.
Skill content
View source on GitHubph4ntom IDA Bridge
ph4ntom IDA Bridge is a localhost-only control layer for IDA Pro 9.x. It combines a self-contained IDA plugin, a JSON REST API, a Python client, a CLI, 54 MCP tools, and optional standalone AI backends.
Version 6.2.0 improves IDA 9.3 compatibility, authentication, HTTP handling, event delivery, and installation recovery. See CHANGELOG.md for the changes and TESTING.md for reproducible verification and its limits.
The API schema currently documents 54 read endpoints and 48 write endpoints. The bridge has been validated against IDA Professional 9.3 in addition to the repository test suite, which covers the client, CLI, schema, routing contract, MCP registration, packaging, and security defaults.
Security model
The bridge runs inside IDA, so authenticated write access is powerful. The
/api/exec endpoint is equivalent to local code execution as the IDA user.
Version 6 uses these defaults:
- binds only to
127.0.0.1:13370; - creates a 256-bit session token in
~/.ph4ntom_ida_bridge_token; - refreshes stale tokens automatically after an IDA restart;
- limits POST bodies to 5 MiB;
- permits browser CORS only from localhost origins;
- disables dynamic IDAPython execution by default;
- disables local C-header imports until trusted directories are configured.
Never expose port 13370 through a public interface, tunnel, or reverse proxy. See SECURITY.md for the full guidance.
Components
| Path | Purpose |
| --- | --- |
| ida_plugin/ph4ntom_ida_bridge.py | Canonical IDA plugin and REST server |
| api_schema.json | Machine-readable REST reference |
| core/client.py | Shared authenticated HTTP client |
| cli.py | CLI, plugin installer, and IDA launcher |
| mcp_server.py | MCP server exposing 54 tools and two resources |
| agent.py | Optional interactive agent with multiple LLM backends |
| swarm_worker.py | Optional structured-analysis worker |
| agent_config.json | Machine-readable integration configuration |
| AGENT_SKILL.md | Instructions for IDE-based agents |
server.py remains only as a compatibility wrapper. All server changes belong
in ida_plugin/ph4ntom_ida_bridge.py so the two implementations cannot drift.
Install
Python 3.10 or newer is required for the external tools. IDA itself supplies the IDAPython modules used by the plugin.
git clone https://github.com/ph4ntom-rev/ph4ntom-ida-bridge.git
cd ph4ntom-ida-bridge
python -m pip install -e .
Install the plugin and API schema into IDA:
python cli.py install-plugin --ida-dir "C:\Program Files\IDA Professional 9.0"
If an older installed copy differs, review it and then use --force. The
installer validates both source files before changing either, stages the pair,
and backs up differing files before replacement. Existing .bak copies are
preserved by choosing a unique backup name. A failed replacement restores files
already changed; the JSON result reports backup locations and any rollback errors.
Manual installation is also supported: copy both files below into IDA's
plugins directory.
ida_plugin/ph4ntom_ida_bridge.py
api_schema.json
Start IDA and press Ctrl+Shift+A to toggle the server. The IDA output window
shows the URL and token-file location, but never prints the token itself.
To start the bridge automatically for a launched IDA process, use
ph4ntom-ida launch BINARY --ida-dir "C:\Path\To\IDA" --wait, or set
IDA_BRIDGE_AUTOSTART=1 before starting IDA. Closing IDA stops the bridge.
Only one instance can use the default port/token at a time.
ph4ntom-ida doctor checks packaged resources and authenticated database access.
For Codex, install with python -m pip install ".[mcp]" and configure the
absolute path to that environment's Python executable with arguments
["-m", "mcp_server"]. Restart the MCP client after changing its configuration.
CLI quick start
python cli.py ping
python cli.py info
python cli.py functions --limit 100
python cli.py strings --filter "socket|http"
python cli.py decompile 0x140001000
python cli.py xrefs 0x140001000
python cli.py callers 0x140001000
python cli.py api GET /api/function/0x140001000/ctree
python cli.py api POST /api/function/0x140001000/rename --body "{\"name\":\"init_network\"}"
The installed console command is equivalent:
ph4ntom-ida ping
To launch IDA without silently installing or replacing anything:
python cli.py launch sample.exe --wait
Use --headless only when autonomous IDA analysis is intended.
Optional dynamic IDAPython
Dynamic execution is intentionally off by default. Enable it before launching IDA only on a trusted machine.
PowerShell:
$env:IDA_BRIDGE_ALLOW_EXEC = "1"
Bash:
export IDA_BRIDGE_ALLOW_EXEC=1
Then execute inline code, a file, or stdin:
python cli.py exec "result['ea'] = hex(idc.here())"
python cli.py exec --file analysis.py
python generate_script.py | python cli.py exec -
Scripts receive full IDAPython access and a result dictionary. Standard output
and standard error are captured in the JSON response.
Header imports
POST /api/import-header is disabled until trusted roots are supplied before
IDA starts. Separate multiple directories with the operating system path
separator (; on Windows, : on Unix-like systems).
$env:IDA_BRIDGE_ALLOWED_IMPORT_ROOTS = "C:\reverse\headers;D:\sdk\include"
MCP
Install the MCP extra:
python -m pip install -e ".[mcp]"
Use absolute paths in the MCP client configuration:
{
"mcpServers": {
"ida-bridge": {
"command": "python",
"args": ["C:/path/to/ph4ntom-ida-bridge/mcp_server.py"]
}
}
}
The shared client detects token rotation, so the MCP process does not need to be restarted every time IDA restarts.
Optional agent backends
Install all provider integrations:
python -m pip install -e ".[agents]"
python agent.py --backend ollama
Available backends are Ollama, Gemini, OpenAI-compatible APIs, Anthropic, and DeepSeek. Provider API keys are read from environment variables; they are not stored by this repository.
REST API
Every response is JSON. Addresses are normally written as hexadecimal strings. Use the live schema endpoint or the checked-in schema for the complete reference:
python cli.py schema
Key endpoint groups include:
- binary metadata, functions, instructions, strings, imports, and exports;
- pseudocode, ctree, microcode, local variables, callers, and callees;
- cross-references, control-flow graphs, types, structures, and enums;
- database mutations with preview and verified name/comment compensation (see batch safety and migration);
- debugger control, registers, threads, stack, and memory;
- cursor events over server-sent events.
Development
python -m pip install -e ".[dev,mcp]"
python -m compileall -q agent.py cli.py core ida_plugin integrations mcp_server.py server.py swarm_worker.py tests
python -m flake8 . --select=F --exclude=.venv
python -m pytest -q
python verify_mcp.py
GitHub Actions runs syntax checks, Flake8 correctness checks, and tests on Python 3.10, 3.11, and 3.12. Tests that exercise real IDA SDK behavior must be performed manually inside IDA using a disposable database before release. Follow TESTING.md for the IDA smoke and regression checklist.
License
MIT
Related Skills
Agent-Reach
106.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
78.3kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.7kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Scrapling
90.4k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
