PlugWiki
Gearboy logo

Gearboy MCP Server: Setup for Claude Code, Codex and Other Apps

OfficialLocal

Lets Claude Code and Codex debug Game Boy games in the Gearboy emulator: step code, read memory, set breakpoints, take screenshots.

Gearboy's MCP server is built into the Gearboy emulator, so it is not a separate download. Your assistant starts the emulator itself, or talks to one that is already running, and gets full debugger access.

You need the Gearboy program on your computer first. Everything runs locally, and the emulator shares its state with the assistant, so what the assistant does shows in the emulator window.

Good for

  • Game Boy homebrew developers who want an assistant to debug their ROM
  • ROM hackers and reverse engineers who trace how a game works
  • Emulator developers who test with an AI agent

Works in

12 should work

Tap an app to see how to set it up and any known problems.

Install Gearboy MCP

Claude Code

  1. 1

    Copy this prompt.

    Add the Gearboy MCP server to Claude Code. Run this command:
    
    claude mcp add --transport stdio --scope user gearboy -- /path/to/gearboy --mcp-stdio
    
    Then check that it loaded and tell me if I need to sign in or restart.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Gearboy emulator installed.

Read-only mode: No read-only option is documented.

Install the Gearboy emulator first, then replace /path/to/gearboy with the full path to its program (on macOS /Applications/Gearboy.app/Contents/MacOS/gearboy, on Windows C:/path/to/gearboy.exe). Your assistant starts the emulator when the session begins.

From the project README. Source.

Tools

  • Loads a Game Boy ROM into the emulator

    Opens a ROM file you point to, resets the emulator and loads its symbols. Anything you had in the debugger may be lost.

    Try: “Load /roms/pokemon_red.gb and tell me its mapper.”

    Write · load_media

  • Shows the loaded ROM's title, mapper and sizes

    Reports the ROM path, title, cartridge type, mapper, ROM and RAM size and whether it uses Color or Super Game Boy features.

    Try: “What cartridge type is the loaded game?”

    Read · get_media_info

  • Lists ROMs you opened recently

    Returns the recent ROM list with the file paths that load_media accepts.

    Try: “What ROMs did I open recently?”

    Read · list_recent_media

  • Pauses the game and opens the debugger

    Stops execution at the current instruction so you can inspect it.

    Try: “Pause the game right now.”

    Write · debug_pause

  • Resumes the game

    Resumes running after a pause or a breakpoint.

    Try: “Continue until the next breakpoint.”

    Write · debug_continue

  • Runs one CPU instruction

    Executes the next instruction and goes inside any subroutine call.

    Try: “Step one instruction and show me the registers.”

    Write · debug_step_into

  • Runs one instruction without entering calls

    Executes the next instruction and treats a call as a single step.

    Try: “Step over this call.”

    Write · debug_step_over

  • Runs until the current routine returns

    Keeps running until the return instruction of the current subroutine.

    Try: “Step out of this function.”

    Write · debug_step_out

  • Runs one or more video frames

    Advances the emulation by whole frames up to the vertical blank. It can wait for the frames to finish or return at once.

    Try: “Advance 10 frames.”

    Write · debug_step_frame

  • Resets the emulated console

    Restarts the emulated Game Boy or Game Boy Color.

    Try: “Reset the console.”

    Write · debug_reset

  • Shows whether the game is paused and where

    Reports whether the debugger is paused, which breakpoint was hit and the current program counter.

    Try: “Is the game paused, and where?”

    Read · debug_get_status

  • Runs until a chosen address

    Continues execution until the code reaches the address you give.

    Try: “Run to address 0x0150.”

    Write · debug_run_to_cursor

Read from the source code

Permissions

medium risk · 4 things to watch · 1 advisory

Medium risk

The assistant can pause, edit and drive the emulated game and write files such as recordings and save states. Use the default stdio mode, and use HTTP mode only on localhost.

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • Older versions exposed HTTP on all interfaces

    Advisory GHSA-fmvx-487g-mrww says the HTTP mode bound all interfaces without authentication before 3.8.7. Use 3.8.7 or later; the current release is 3.8.20. github.com

  • It can change the running game

    Memory writes, register writes, cheats, save-state loads and button presses all change the emulated game. Use a throwaway ROM session or save a state first. github.com

  • HTTP mode can be shared on your network

    The default HTTP address is 127.0.0.1. Binding to another address needs a bearer token, and all connected clients control the same emulator. github.com

  • It can write files you name

    Video recording, trace to disk and save-state-to-file write to paths the assistant chooses. Check the path before approving. github.com

Security advisories

Technical details
Turning on read-onlyNo read-only mode is documented.
Sign-in and keysNo account or API key. The optional HTTP mode uses a bearer token set in GEARBOY_MCP_HTTP_TOKEN.

Questions

Is the Gearboy MCP server official?

Yes. It is part of the Gearboy emulator, written by the emulator's author, and ships in the same repo.

What do I need installed first?

The Gearboy emulator. Download a build or the MCP bundle from the Gearboy releases, or build it from source. The setup command points at the emulator program.

Should I use stdio or HTTP?

Use stdio. The README recommends it, and your assistant launches the emulator for you. Use HTTP only if you want the emulator running on its own, and keep it on 127.0.0.1.

Does it work with Claude Desktop and ChatGPT?

The README documents Claude Code and Codex, plus MCP bundles for clients that install them. It runs on your computer, so ChatGPT and hosted clients cannot reach it.

Does it need an API key?

No. HTTP mode on localhost needs no token. A token is required if you bind to any other address.

Can it run without a window?

Yes. Add --headless together with stdio or HTTP mode and all tools work the same.

Are all tools always listed?

By default the server lists all 76 tools. The --mcp-router option shows 12 common ones plus five discovery tools and hides the rest behind them.

Information

updated Nov 2, 2026

Publisher
Official
Transport
stdio
Version
3.8.20
License
GPL-3.0
Last commit
Oct 31, 2026
Open issues
3
Listed in
Official MCP registry

WebsiteGitHubOfficial MCP RegistryChangelogIssues

Sources

Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.

Show all 3
  1. Gearboy MCP README · github.com
  2. Gearboy mcp_server.cpp tool registrations · github.com
  3. GHSA-fmvx-487g-mrww · github.com

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.