What it does
Unified Ghidra + BizHawk MCP server for static analysis, P-code emulation, and retro ROM triage.
- Connects Runs on your computer
- Account or key No key needed · 1 setting to fill in (GHIDRA_INSTALL_DIR)
- Category Developer tools
Use together with
Skills that teach the AI this kind of work; they work alongside this one
andrej-karpathy-skills
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Why it ranks here
Lists are ordered by a usage score (out of 100) built from these parts
| Popularity | 4/80 | GitHub stars or weekly downloads: the larger counts 60, the smaller 20 |
|---|---|---|
| Freshness | 7/12 | Full marks for a release or code change within 30 days |
| Still answering | 0/8 | The cloud endpoint answered at the last check |
| Usage score | 11/100 |
Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)
Install
Pick the AI app you use, then copy the settings.
Let your AI install it with one sentence
Please install Ghidra BizHawk MCP. Follow https://mcp.popnx.com/i/getanirao-ghidra-bizhawk-mcp.md, show me the commands and wait for my OK before running them.Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads
Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
1 setting(s) to fill in (GHIDRA_INSTALL_DIR) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
Let AI install it
Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Ghidra BizHawk MCP for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "ghidra-bizhawk": { "command": "uvx", "args": [ "ghidra-bizhawk-mcp" ], "env": { "GHIDRA_INSTALL_DIR": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For GHIDRA_INSTALL_DIR, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Ghidra BizHawk MCP tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install uv (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
uv --version- A version number such as uv … = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
uv --versionInstall once; it works for everything that needs uv
Fill in 1 setting(s)
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
GHIDRA_INSTALL_DIRAbsolute path to the Ghidra installation directory
Descriptions are as written by the maker.
Open the Claude desktop app’s settings file
SettingsDeveloperEdit Config
Paste these settings and save the file
{ "mcpServers": { "ghidra-bizhawk": { "command": "uvx", "args": [ "ghidra-bizhawk-mcp" ], "env": { "GHIDRA_INSTALL_DIR": "your-value" } } } }Quit Claude and open it again
Try it
Use Ghidra BizHawk MCP and tell me what you can do for me, then show me one thing✓ If Claude says it is using Ghidra BizHawk MCP or shows a Ghidra BizHawk MCP tool in the answer, you are connected
2 optional setting(s) (works without them)
The command above works without these. Add them only if you want to change something, following the maker’s description.
BIZHAWK_EXE_PATHOptional path to EmuHawk.exe for live emulation featuresMOCK_MODESet to 1 for zero-dependency CI simulation · default 0
Descriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect Ghidra BizHawk MCP yet
Ghidra BizHawk MCP runs on your computer, but ChatGPT can only connect servers that run on the web
What you can do instead
A · Use an app that can connect Ghidra BizHawk MCP
- 1 setting(s) to fill in (GHIDRA_INSTALL_DIR) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
- 1 setting(s) to fill in (GHIDRA_INSTALL_DIR) · Install Python (uv) on your computer first (one time)
- 1 setting(s) to fill in (GHIDRA_INSTALL_DIR) · Install Python (uv) on your computer first (one time)
- 1 setting(s) to fill in (GHIDRA_INSTALL_DIR) · Install Python (uv) on your computer first (one time)
B · Others in Developer tools that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
Works with Claude Code, with some setup first
1 setting(s) to fill in (GHIDRA_INSTALL_DIR) · Install Python (uv) on your computer first (one time)
Let AI install it
Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Ghidra BizHawk MCP for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user ghidra-bizhawk --env GHIDRA_INSTALL_DIR=your-value -- uvx ghidra-bizhawk-mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For GHIDRA_INSTALL_DIR, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Ghidra BizHawk MCP tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install uv (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
uv --version- A version number such as uv … = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
uv --versionInstall once; it works for everything that needs uv
Fill in 1 setting(s)
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
GHIDRA_INSTALL_DIRAbsolute path to the Ghidra installation directory
Descriptions are as written by the maker.
Open Terminal
Mac: press Command+Space and type Terminal · Windows: open PowerShell
Paste this command and press Enter
claude mcp add --scope user ghidra-bizhawk --env GHIDRA_INSTALL_DIR=your-value -- uvx ghidra-bizhawk-mcpType /mcp in Claude Code
You should see Ghidra BizHawk MCP listed as connected
Try it
Use Ghidra BizHawk MCP and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using Ghidra BizHawk MCP or shows a Ghidra BizHawk MCP tool in the answer, you are connected
2 optional setting(s) (works without them)
The command above works without these. Add them only if you want to change something, following the maker’s description.
BIZHAWK_EXE_PATHOptional path to EmuHawk.exe for live emulation featuresMOCK_MODESet to 1 for zero-dependency CI simulation · default 0
Descriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
1 setting(s) to fill in (GHIDRA_INSTALL_DIR) · Install Python (uv) on your computer first (one time)
Let AI install it
Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Ghidra BizHawk MCP for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "ghidra-bizhawk": { "command": "uvx", "args": [ "ghidra-bizhawk-mcp" ], "env": { "GHIDRA_INSTALL_DIR": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For GHIDRA_INSTALL_DIR, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Ghidra BizHawk MCP tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install uv (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
uv --version- A version number such as uv … = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
uv --versionInstall once; it works for everything that needs uv
Fill in 1 setting(s)
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
GHIDRA_INSTALL_DIRAbsolute path to the Ghidra installation directory
Descriptions are as written by the maker.
Fill in your key
In the Ghidra BizHawk MCP settings, GHIDRA_INSTALL_DIR is empty; add your key and save
Open the AI chat in Cursor in Agent mode
Try it
Use Ghidra BizHawk MCP and tell me what you can do for me, then show me one thing✓ If Cursor says it is using Ghidra BizHawk MCP or shows a Ghidra BizHawk MCP tool in the answer, you are connected
2 optional setting(s) (works without them)
The command above works without these. Add them only if you want to change something, following the maker’s description.
BIZHAWK_EXE_PATHOptional path to EmuHawk.exe for live emulation featuresMOCK_MODESet to 1 for zero-dependency CI simulation · default 0
Descriptions are as written by the maker.
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
1 setting(s) to fill in (GHIDRA_INSTALL_DIR) · Install Python (uv) on your computer first (one time)
Let AI install it
Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Ghidra BizHawk MCP for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "ghidra-bizhawk": { "type": "stdio", "command": "uvx", "args": [ "ghidra-bizhawk-mcp" ], "env": { "GHIDRA_INSTALL_DIR": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For GHIDRA_INSTALL_DIR, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Ghidra BizHawk MCP tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install uv (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
uv --version- A version number such as uv … = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
uv --versionInstall once; it works for everything that needs uv
Fill in 1 setting(s)
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
GHIDRA_INSTALL_DIRAbsolute path to the Ghidra installation directory
Descriptions are as written by the maker.
Fill in your key
In the Ghidra BizHawk MCP settings, GHIDRA_INSTALL_DIR is empty; add your key and save
Open the AI chat in VS Code in Agent mode
Try it
Use Ghidra BizHawk MCP and tell me what you can do for me, then show me one thing✓ If VS Code says it is using Ghidra BizHawk MCP or shows a Ghidra BizHawk MCP tool in the answer, you are connected
2 optional setting(s) (works without them)
The command above works without these. Add them only if you want to change something, following the maker’s description.
BIZHAWK_EXE_PATHOptional path to EmuHawk.exe for live emulation featuresMOCK_MODESet to 1 for zero-dependency CI simulation · default 0
Descriptions are as written by the maker.
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
JSON settings are under “For developers” below
For developers: Terminal commands and JSON settings
Installed on your computer
Claude Code
claude mcp add --scope user ghidra-bizhawk --env GHIDRA_INSTALL_DIR=your-value -- uvx ghidra-bizhawk-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"ghidra-bizhawk": {
"command": "uvx",
"args": [
"ghidra-bizhawk-mcp"
],
"env": {
"GHIDRA_INSTALL_DIR": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"ghidra-bizhawk": {
"command": "uvx",
"args": [
"ghidra-bizhawk-mcp"
],
"env": {
"GHIDRA_INSTALL_DIR": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"ghidra-bizhawk": {
"type": "stdio",
"command": "uvx",
"args": [
"ghidra-bizhawk-mcp"
],
"env": {
"GHIDRA_INSTALL_DIR": "your-value"
}
}
}
}Values you fill in
GHIDRA_INSTALL_DIRrequired envAbsolute path to the Ghidra installation directoryBIZHAWK_EXE_PATHenvOptional path to EmuHawk.exe for live emulation featuresMOCK_MODEenvSet to 1 for zero-dependency CI simulation
Descriptions are as written by the maker.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
At a glance
- Downloads per weeki
- 22/wk
- Connection
- Runs on your computer
- Latest versioni
- 1.1.0
- Categoryi
- Developer tools
- Published to registryi
- Oct 16, 2026
- Code last changedi
- Oct 16, 2026
- Maker
- getanirao
- Packages
pypi: ghidra-bizhawk-mcp- Website
- github.com
- Registry status
- Active
Which apps can use it
Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Related guides
What it can do
Runs on your computer; the tool list appears in your AI app after you install it.
Basic checksi
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 20, 2026
- ✓ Pass
Maker matches the repo
The registry name was verified with the GitHub account getanirao, which owns the repo
- ✓ Pass
Still maintained
Code last changed 35 days ago
- ✓ Pass
Has a licence
Uses Apache-2.0
- – Not applicable
Endpoint responds
This one runs on your computer; there is no internet endpoint
- – Not applicable
Sign-in with OAuth
Runs on your computer and uses local settings instead
- … Not checked yet
No hidden instructions in tool descriptions
Runs on your computer; we can only read tool lists from internet endpoints
Published vulnerabilities (OSV.dev)
No entries on OSV.dev for ghidra-bizhawk-mcp@1.1.0
Checks only this package version, not every dependency · checked Nov 15, 2026
Makers: ask for a re-check or report wrong info
For makers: add a badge to your README
If you made this, paste this code into your README. The badge links back to this page.
[](https://mcp.popnx.com/en/servers/getanirao-ghidra-bizhawk-mcp)Discussion
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
User reviews
No reviews yet
Compared with others in Developer toolsi
- More stars than 69% of the other 6209 servers in this category
- Published to the registry more recently than 47% of the other 6209 servers in this category
- Basic checks equal to or better than 99% of the other 6209 servers in this category
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
Common questions
Is Ghidra BizHawk MCP safe?
It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
What keys or codes does it need?
The registry does not list a required key, though some servers ask you to sign in on first use.
Does it run on my computer or in the cloud?
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
Is it still maintained?
The GitHub repo last changed 35 days ago, and the latest version (1.1.0) reached the registry 35 days ago.
Which apps can use it?
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
What can I use instead?
In the same category: GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise
Similar alternatives
Same category, other makers, commands already checked. Official ones first, then by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
GitDiagram
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
Appllama
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
Cloudflare MCP
Cloudflare MCP servers
Omnara
Deploy durable AI agents with Omnara, an open-source managed-agent platform.
Repowise
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
| This one Ghidra BizHawk MCP | GitDiagram | Appllama | Cloudflare MCP | Omnara | Repowise | |
|---|---|---|---|---|---|---|
| Runs where | Installs on your computer | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Cloud or install on your computer |
| Needs a key | No | No | No | No | No | No |
| Add with + in Claude | No | No | No | Yes | No | No |
| Basic checks | 3/3 | 4/4 | 4/4 | 4/4 | 4/4 | 5/5 |
| License | Apache-2.0 | MIT | MIT | Apache-2.0 | Apache-2.0 | AGPL-3.0 |
| Price | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry |
README from the maker
Open the README
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
Ghidra BizHawk MCP
A unified MCP (Model Context Protocol) server bridging Ghidra's headless static analysis with BizHawk's live emulation — switch between decompiling a ROM and running it on real hardware in the same session.
GBA ROMs: If analyzing Game Boy Advance ROMs, install pudii/gba-ghidra-loader in your Ghidra installation for proper ROM header parsing, mirrored memory regions, and I/O register maps. The loader repository has pre-built
.gpafiles for Ghidra 11.x.
Prerequisites
| Dependency | Version | Required | Notes |
|---|---|---|---|
| Python | >= 3.10 | Yes | Runtime for the MCP server |
| Ghidra | 11.x or 12.x | Yes | Headless or GUI install; GHIDRA_INSTALL_DIR must point here |
| Java (JDK) | >= 17 | Yes | Bundled with Ghidra; needed for JVM bridge |
| pyghidra | >= 3.0 | Yes | Python-to-Ghidra bridge; installed automatically |
| BizHawk (EmuHawk) | Latest stable | No | Only needed for live emulation tools; BIZHAWK_EXE_PATH optional |
| Docker | Latest | No | Only needed for containerized deployment |
Architecture
┌─────────────────────────────────────────────────────────────────┐
│ MCP Client (Claude / Cursor) │ │ sends JSON-RPC over stdin/stdout │ └─────────────────────────────┬───────────────────────────────────┘ │ ▼ ┌──────────────────────────────────────────────────────────────────┐ │ ghidra-bizhawk-mcp │ │ ┌─────────────────────────────────────────────────────────────┐│ │ │ MCP Server (server.py) — tool registry, stdio dispatch ││ │ └──────────────────────────┬──────────────────────────────────┘│ │ │ │ │ ┌──────────────┴──────────────┐ │ │ ▼ ▼ │ │ ┌────────────────────┐ ┌──────────────────────────────┐ │ │ │ GhidraSession │ │ BizhawkBridge │ │ │ │ pyghidra → JVM │ │ TCP client → localhost:8766│ │ │ │ decompile, etc. │ └──────────────┬───────────────┘ │ │ └────────────────────┘ │ │ └───────────────────────────────────────────┼─────────────────────┘ │ TCP (newline-delimited JSON) ▼ ┌──────────────────────────────┐ │ BizHawk (EmuHawk.exe) │ │ built-in socket server │ │ ┌────────────────────────┐ │ │ │ bridge.lua │ │ │ │ memory read/write │ │ │ │ joypad, savestate │ │ │ │ frame advance │ │ │ └────────────────────────┘ │ └──────────────────────────────┘
Security Model
The MCP server communicates with the MCP client exclusively over stdin/stdout — no HTTP or network listener. The only local TCP socket is a loopback-only connection (127.0.0.1:8766) between the server and BizHawk's built-in Lua socket server. This is used solely for live-emulation features and is not exposed to the network.
Hardware & Retro Ecosystem Integration
ghidra-bizhawk-mcp includes native out-of-the-box support for retro-reversing automation pipelines via Ghidra's static analysis, plus live emulation via BizHawk's multi-system emulator. The server bundles:
- Nintendo Entertainment System (NES) via
GhidraNes - Super Nintendo Entertainment System (SNES) via native 65816 memory maps
- Game Boy Advance (GBA) via
gba-ghidra-loader - Nintendo DS (NDS) via
NTRGhidra - Nintendo Switch via
ghidra-switch-loader - PlayStation 1 (PSX) via
ghidra_psx_ldr - Sega Genesis / Mega Drive via native 68000 memory maps
- Sega Master System / Game Gear via
Ghidra-SegaMasterSystem-Loader - Sega Dreamcast via native SuperH4 memory maps
Zero-Input Triage — Worked Example (GBA)
The primary entry point is triage_and_load_retro_rom. Call it with any ROM path and the server handles the rest:
# Auto-detect platform, map language, provision session
triage_and_load_retro_rom(rom_path="/data/game.gba")
→ platform: "Game Boy Advance (GBA)"
→ loader: "GBA ROM Loader"
→ arch: "ARM:LE:32:v4t"
Decompile the main entry point on the same session
decompile_function(address="0x00001c2c")
→ decompiled C code for the GBA ROM entry routine
Search for a known pattern (e.g. 32-bit ARM store-multiple)
search_bytes(pattern="09 08 00 01")
→ matching addresses labelled "gba_ram_start"
Execution Chaining Flow
Instead of forcing your AI agent to spend cycles manually identifying architecture maps, register layouts, or memory segments, chain the automated ingestion pipeline:
- Invoke
triage_and_load_retro_romwith a target file path. - The server headlessly parses the binary file structure (
NES\x1a,NTR,NSO0,GBA, SNES title vectors,PS-X EXE,SEGA,TMR SEGA,SEGA ENTERPRISES), binds the matching Ghidra language module (6502:LE:16,ARM:LE:32:v4t,AARCH64:LE:64,65816:LE:24,MIPS:LE:32,68000:BE:32,Z80:16,SuperH4:LE:32), loads standard address memory blocks, and links automated signature cache arrays. - Use the integrated
emulate_sliceoremulate_slice_with_tainttools to analyze localized console loops — no physical console hardware or open GDB networking ports needed.
Triage Tool
| Tool | Description |
|---|---|
triage_and_load_retro_rom | Reads raw file magic bytes to detect NES, SNES, GBA, NDS, Switch, PSX, Genesis, SMS, or Dreamcast ROMs. Provisions a correctly-language-mapped Ghidra session and auto-restores cached function signatures. Returns platform, loader, architecture tag, and mapped memory blocks. |
Quick Start
1. Install
pip install ghidra-bizhawk-mcp
Or from source:
git clone https://github.com/getanirao/ghidra-bizhawk-mcp.git
cd ghidra-bizhawk-mcp pip install -e .
2. Set environment
# Required: point to your Ghidra installation
export GHIDRA_INSTALL_DIR=/opt/ghidra_11.2 # Linux / macOS set GHIDRA_INSTALL_DIR=C:\Program Files\ghidra_11.2 # Windows
Optional: enable live BizHawk emulation
export BIZHAWK_EXE_PATH=/path/to/EmuHawk.exe
Optional: run in mock mode (no Ghidra/BizHawk needed)
export MOCK_MODE=1
3. Run
ghidra-bizhawk-mcp
The server listens on stdin/stdout — pipe it to any MCP-compatible client.
Docker
docker build -t ghidra-bizhawk-mcp .
docker run -i --rm -v /path/to/binaries:/data ghidra-bizhawk-mcp
The container bundles JDK 17, Ghidra 11.2, and the server — no host dependencies beyond Docker.
Configuration
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
GHIDRA_INSTALL_DIR | Yes | — | Path to Ghidra installation (e.g. /opt/ghidra_11.2) |
BIZHAWK_EXE_PATH | No | — | Path to EmuHawk.exe for live emulation features |
MOCK_MODE | No | 0 | Set to 1 to run without Ghidra/BizHawk (for testing/CI) |
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": { "ghidra-bizhawk": { "command": "ghidra-bizhawk-mcp", "env": { "GHIDRA_INSTALL_DIR": "/opt/ghidra_11.2" } } } }
Cursor
Add to your Cursor MCP configuration:
{
"mcpServers": { "ghidra-bizhawk": { "command": "ghidra-bizhawk-mcp", "env": { "GHIDRA_INSTALL_DIR": "/opt/ghidra_11.2" } } } }
Tools
Session management
| Tool | Description |
|---|---|
analyze_binary | Import + analyze a binary, returns a session_id. Reuses the ID if provided, otherwise auto-generates. |
list_sessions | List all active workspaces with their session IDs, binary paths, and load times. |
close_session | Close a session and free its Ghidra project resources. |
Most tools accept an optional session_id parameter — omit it to use the most recently loaded session.
Read / Analysis
| Tool | Description |
|---|---|
decompile_function | Decompile a function by name or address. |
decompile_function_paginated | Decompile with line_start, line_end, max_tokens (token-budget truncation), and summarize (strips boilerplate locals + collapsing blank lines). Prevents context-window exhaustion. |
get_data_types | List all data types defined in the program. |
get_cross_references | Cross-references to/from an address. |
get_call_graph | Recursive call graph + callers for a function. |
analyze_and_decompile_entrypoints | Composite — bulk decompile all entry points (program entry, exports, main, _start, etc.) in one call. |
generate_workspace_report | Produce a Markdown summary of the active workspace — entry points, function count, custom symbols, recovered structures, renamed functions, comments. Replaces a GUI CodeBrowser window. |
Write / Mutation
| Tool | Description |
|---|---|
rename_symbol | Rename a function or label. Stored in the Ghidra project DB. |
add_comment | Attach a comment (plate, pre, post, eol, repeatable). |
create_struct | Create a custom structured data type from a JSON member layout [{offset, name, type}, ...]. Offsets are optional. |
retype_variable | Re-type a local variable or function parameter (e.g. undefined4* → MyStruct*). |
Assembly-level
| Tool | Description |
|---|---|
disassemble_range | Disassemble N raw instructions at an address — returns mnemonic, operands, hex bytes, and length for precise lower-level inspection. |
get_listing_range | Raw hex + ASCII dump for a byte range, equivalent to Ghidra's Listing panel. Complements disassemble_range for data regions. |
Byte-sequence search
| Tool | Description |
|---|---|
search_bytes | Search the entire binary for a hex byte pattern (e.g. 09 08 00 01 or F86D0003). Returns matching addresses with context bytes and any string label at the hit. |
Binary diffing
| Tool | Description |
|---|---|
diff_binaries | Compare two loaded sessions by function name and body size. Returns functions unique to each side and changed functions. |
Workspace Sessions
Each analyze_binary call creates a named session. Sessions keep their Ghidra project open independently, so multiple binaries can be loaded concurrently:
# Load two binaries into separate sessions
s1 = analyze_binary(binary_path="/bin/a.out") # auto session_id s2 = analyze_binary(binary_path="/bin/b.out", session_id="my_session")
Operate on a specific session
decompile_function(function_name="main", session_id=s1.session_id)
Diff them
diff_binaries(session_a=s1.session_id, session_b="my_session")
Deployment
Docker (multi-user / CI)
docker build -t ghidra-bizhawk-mcp .
Run as an MCP subprocess
docker run -i --rm \ -v /data/binaries:/data \ ghidra-bizhawk-mcp \ --ghidra-dir /opt/ghidra
The Dockerfile bundles Ghidra 11.2 and JDK 17 in a slim Python 3.11 image. Bind-mount your binaries directory at runtime.
MCP Bundle (MCPB — Claude Desktop / Smithery)
Package as a portable .mcpb bundle for one-click install in Claude Desktop or publishing on Smithery.
Prerequisites: Install the MCPB CLI:
npm install -g @anthropic-ai/mcpb
Build the bundle:
# From the repo root — also builds the Smithery publish variant
scripts/build-mcpb.ps1
Or manually with mcpb:
mcpb pack
The output ghidra-bizhawk-mcp.mcpb