Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words Sign in

Ghidra BizHawk MCP

by getaniraoversion 1.1.0i★ 1iRuns on your computerRepository ↗
Registry nameio.github.getanirao/ghidra-bizhawk-mcp

How to install

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

rea

Reverse engineer anything with agents, from app behavior down to native binaries.

by morluto★ 470,1651 skills

Skill · How-to guide

andrej-karpathy-skills

A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.

by multica-ai★ 234,5281 skills

Skill · How-to guideNo license stated

graphify

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

by Graphify-Labs★ 150,6951 skills

Skill · How-to guide

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity4/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness7/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score11/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.

  1. 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

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • GHIDRA_INSTALL_DIR Absolute path to the Ghidra installation directory

    Descriptions are as written by the maker.

  3. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  4. Paste these settings and save the file

    {
      "mcpServers": {
        "ghidra-bizhawk": {
          "command": "uvx",
          "args": [
            "ghidra-bizhawk-mcp"
          ],
          "env": {
            "GHIDRA_INSTALL_DIR": "your-value"
          }
        }
      }
    }
  5. Quit Claude and open it again

  6. 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_PATH Optional path to EmuHawk.exe for live emulation features
  • MOCK_MODE Set 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

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.

  1. 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

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • GHIDRA_INSTALL_DIR Absolute path to the Ghidra installation directory

    Descriptions are as written by the maker.

  3. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  4. Paste this command and press Enter

    claude mcp add --scope user ghidra-bizhawk --env GHIDRA_INSTALL_DIR=your-value -- uvx ghidra-bizhawk-mcp
  5. Type /mcp in Claude Code

    You should see Ghidra BizHawk MCP listed as connected

  6. 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_PATH Optional path to EmuHawk.exe for live emulation features
  • MOCK_MODE Set 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.

  1. 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

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • GHIDRA_INSTALL_DIR Absolute path to the Ghidra installation directory

    Descriptions are as written by the maker.

  3. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  4. Fill in your key

    In the Ghidra BizHawk MCP settings, GHIDRA_INSTALL_DIR is empty; add your key and save

  5. Open the AI chat in Cursor in Agent mode

  6. 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_PATH Optional path to EmuHawk.exe for live emulation features
  • MOCK_MODE Set 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.

  1. 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

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • GHIDRA_INSTALL_DIR Absolute path to the Ghidra installation directory

    Descriptions are as written by the maker.

  3. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  4. Fill in your key

    In the Ghidra BizHawk MCP settings, GHIDRA_INSTALL_DIR is empty; add your key and save

  5. Open the AI chat in VS Code in Agent mode

  6. 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_PATH Optional path to EmuHawk.exe for live emulation features
  • MOCK_MODE Set 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.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Ghidra BizHawk MCP💬 Discussion →
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-mcp

Claude 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_DIR required env
    Absolute path to the Ghidra installation directory
  • BIZHAWK_EXE_PATH env
    Optional path to EmuHawk.exe for live emulation features
  • MOCK_MODE env
    Set 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
Licencei
Apache-2.0
Connection
Runs on your computer
Latest versioni
1.1.0
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

All apps, with pros and cons →

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

What we check → · JSON

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.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/getanirao-ghidra-bizhawk-mcp.svg)](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.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

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.

by ahmedkhaleel2004Widely used★ 19KUpdated 2 months ago

Runs in the cloud✓ service owner · gitdiagram.comTried by the PopNx team

Appllama

Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.

by AppllamaWidely used★ 5.2KUpdated 3 months ago

Runs in the cloud✓ service owner · appllama.io

Repowise

Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.

by repowise-devWidely used↓ 6.5K/wk★ 8.2K Stars for the whole repoUpdated 7 days ago

Computer or cloud✓ service owner · repowise.dev
Compared with similar ones
This one
Ghidra BizHawk MCP
GitDiagramAppllamaCloudflare MCPOmnaraRepowise
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installCloud or install on your computer
Needs a keyNoNoNoNoNoNo
Add with + in ClaudeNoNoNoYesNoNo
Basic checks3/34/44/44/44/45/5
LicenseApache-2.0MITMITApache-2.0Apache-2.0AGPL-3.0
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo 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 .gpa files for Ghidra 11.x.

Prerequisites

DependencyVersionRequiredNotes
Python>= 3.10YesRuntime for the MCP server
Ghidra11.x or 12.xYesHeadless or GUI install; GHIDRA_INSTALL_DIR must point here
Java (JDK)>= 17YesBundled with Ghidra; needed for JVM bridge
pyghidra>= 3.0YesPython-to-Ghidra bridge; installed automatically
BizHawk (EmuHawk)Latest stableNoOnly needed for live emulation tools; BIZHAWK_EXE_PATH optional
DockerLatestNoOnly 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:

  1. Invoke triage_and_load_retro_rom with a target file path.
  2. 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.
  3. Use the integrated emulate_slice or emulate_slice_with_taint tools to analyze localized console loops — no physical console hardware or open GDB networking ports needed.
Triage Tool
ToolDescription
triage_and_load_retro_romReads 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
VariableRequiredDefaultDescription
GHIDRA_INSTALL_DIRYes—Path to Ghidra installation (e.g. /opt/ghidra_11.2)
BIZHAWK_EXE_PATHNo—Path to EmuHawk.exe for live emulation features
MOCK_MODENo0Set 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
ToolDescription
analyze_binaryImport + analyze a binary, returns a session_id. Reuses the ID if provided, otherwise auto-generates.
list_sessionsList all active workspaces with their session IDs, binary paths, and load times.
close_sessionClose 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
ToolDescription
decompile_functionDecompile a function by name or address.
decompile_function_paginatedDecompile with line_start, line_end, max_tokens (token-budget truncation), and summarize (strips boilerplate locals + collapsing blank lines). Prevents context-window exhaustion.
get_data_typesList all data types defined in the program.
get_cross_referencesCross-references to/from an address.
get_call_graphRecursive call graph + callers for a function.
analyze_and_decompile_entrypointsComposite — bulk decompile all entry points (program entry, exports, main, _start, etc.) in one call.
generate_workspace_reportProduce 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
ToolDescription
rename_symbolRename a function or label. Stored in the Ghidra project DB.
add_commentAttach a comment (plate, pre, post, eol, repeatable).
create_structCreate a custom structured data type from a JSON member layout [{offset, name, type}, ...]. Offsets are optional.
retype_variableRe-type a local variable or function parameter (e.g. undefined4* → MyStruct*).
Assembly-level
ToolDescription
disassemble_rangeDisassemble N raw instructions at an address — returns mnemonic, operands, hex bytes, and length for precise lower-level inspection.
get_listing_rangeRaw hex + ASCII dump for a byte range, equivalent to Ghidra's Listing panel. Complements disassemble_range for data regions.
Byte-sequence search
ToolDescription
search_bytesSearch 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
ToolDescription
diff_binariesCompare 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

Only the beginning is shown; read the rest in the repo