ida-nexus
⚠️ Experimental prerelease ⚠️
IDA Nexus gives agents a compact Python execution surface over the
ida-domain API. It will
discover and share databases already open in the IDA GUI, and starts
managed idalib workers only when no suitable instance exists.
The MCP adapter explicitly runs execute_python as a lease-scoped REPL: imports,
variables, and function definitions persist between its calls through the same
database handle. The low-level API remains stateless by default and opts in with
persist_globals=True; a stateless call discards any namespace previously
retained by that handle. Separate handles receive isolated namespaces, and
closing a handle releases its namespace and retained IDA objects.
Installation
Requirements
- Installed in your PATH
- IDA 9.4 or higher with idalib and Python 3.11+
- Other IDA MCP servers must be disabled to reduce agent confusion
Claude Code
claude plugin marketplace add HexRaysSA/claude-marketplace
claude plugin install ida-mcp@HexRaysSA
Codex CLI
codex plugin marketplace add HexRaysSA/codex-marketplace
codex plugin add ida-mcp@HexRaysSA
Pi
pi install git:github.com/HexRaysSA/ida-nexus
oh-my-pi
omp plugin install github:HexRaysSA/ida-nexus
IDA GUI Support
To support IDA GUI instances when using ida-nexus, install the plugin:
uvx ida-hcli plugin install ida-nexus
# or if you have hcli installed:
hcli plugin install ida-nexus
Other agents
Configure a regular stdio MCP server in your MCP JSON configuration:
{
"mcpServers": {
"ida": {
"command": "uvx",
"args": [
"--with=ida-hcli",
"ida-nexus",
"mcp",
"--agent=my-agent"
]
}
}
}
uvx resolves the latest stable ida-nexus release from PyPI, so this
configuration does not need to be updated for each release. Pre-release
dependency resolution is currently required because ida-domain is published
as a development release.
--agent=my-agent is a human-chosen label (like claude-code, cursor,
my-custom-agent, etc.) used to differentiate sessions in a metrics dashboard.
We tested the following clients, but any MCP client should work similarly:
Usage
Start your agent harness and ask it something like:
Reverse /path/to/sample.elf for me
To test the GUI integration, open something in IDA and ask your harness:
What do I have open in the IDA GUI?
Command line
The package installs one ida-nexus command with subcommands:
# MCP server (stdio/http)
ida-nexus mcp --agent=my-agent
# Inspect MCP session logs
ida-nexus dashboard --open
# Export MCP session logs to ZIP
ida-nexus logs
# IDA Domain API reference
ida-nexus reference "decompile function"
# Execute Python against an IDB (command, script, repl)
ida-nexus exec tests/crackme03/elf -c 'db.functions.get_all()'
Run ida-nexus COMMAND --help for command-specific options.
Python Package (Developers)
You can build on ida-nexus as a library and reuse the database management
functionality. Doing so will transparently allow other ida-nexus users
to use IDBs concurrently and work together.
Example scenarios
Below are a few scenarios enabled by the ida-nexus library:
- You have an executable open in the IDA GUI and would like to use the MCP without closing IDA.
- Your main agent spawns 5 subagents to work on different parts of the IDB concurrently.
- A headless database is created by the MCP, you want to access it with a CLI tool.
- You develop a web application to look at all the open IDA databases at once.
API
DatabaseHandle is the primary API. One handle owns one lease on an exact GUI
or idalib database; closing it releases only that lease.
from ida_nexus import DatabaseHandle, DatabaseOpenOptions
options = DatabaseOpenOptions(
startup_timeout=300,
processor="arm",
image_base=0x08000000,
)
with DatabaseHandle.open("firmware.bin", options=options) as handle:
handle.wait_autoanalysis()
execution = handle.execute_python(
"len(list(db.functions.get_all()))",
timeout=60,
)
print(execution["result"])
IDA import settings in DatabaseOpenOptions apply only when Nexus imports a
new source file. They do not reconfigure a reused GUI, worker, or existing IDB.
execute_python() is stateless by default; pass persist_globals=True to keep
a lease-scoped Python namespace between calls.
Discovery returns public instance descriptors that support exact attachment:
from ida_nexus import DatabaseHandle, InstanceState, discover_databases
ready = [
item.instance for item in discover_databases() if item.state is InstanceState.READY
]
with DatabaseHandle.attach(ready[0]) as handle:
print(handle.instance.record_id, handle.instance.idb_path)
find_database_owner() and wait_database_released() support clients that must
safely replace an executable or IDB. DatabaseManager is the secondary API for
MCP-style adapters that manage several handles and a current target. All
supported Python names are exported directly from ida_nexus; underscore
modules and non-exported implementation modules are private.
See ARCHITECTURE.md for more details.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ida_nexus-0.6.2.tar.gz.
File metadata
- Download URL: ida_nexus-0.6.2.tar.gz
- Upload date:
- Size: 187.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08249c0939e37329b0b75caf89befcfa8451ef110c45795183a8bdc2ba847c82
|
|
| MD5 |
c66eb2fbef478e82974f382d2af429f9
|
|
| BLAKE2b-256 |
b51daa19361e96628f91da6cd558525b5e2c2dbb7f9634255c61bf6e4f3da4ec
|
File details
Details for the file ida_nexus-0.6.2-py3-none-any.whl.
File metadata
- Download URL: ida_nexus-0.6.2-py3-none-any.whl
- Upload date:
- Size: 104.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e78d6335efaadf2e0f812804a1c91039658a16fd4d8584cad8bc174a11884a87
|
|
| MD5 |
b7fcc2c5c3475cd9ba4666c45d4ff673
|
|
| BLAKE2b-256 |
3052cb3fb516bc1aa10a6c069438da487737c8c1401a3bea806e9f70eb97f4d2
|