Gearboy MCP Server
drhelius/gearboy · 1.2k stars · C++ · GPL-3.0
MCP server Game Boy / Game Boy Color / Super Game Boy emulator and debugger with embedded MCP server for macOS, Windows, Linux, BSD and RetroArch.
Install
The repo has no one-line install. Follow its README.
Files
Gearboy
Gearboy is an accurate, cross-platform Game Boy / Game Boy Color / Super Game Boy emulator written in C++ that runs on Windows, macOS, Linux, BSD and RetroArch, with an embedded MCP server for AI debugging and development.
This is an open source project with its ongoing development made possible thanks to the support by these awesome backers. If you find it useful, please consider sponsoring.
Don't hesitate to report bugs or ask for new features by opening an issue.
Downloads
Notes:
- Windows: May need Visual C++ Redistributable and OpenGL Compatibility Pack
- Homebrew: If Homebrew asks you to trust the third-party tap, run
brew trust --tap drhelius/geardome - Linux: May need
libsdl3
Features
- Supported cartridges: ROM, ROM + RAM, MBC1, MBC2, MBC3, MBC5, MBC6, MBC7, HuC-1, HuC-3, MMM01, Pocket Camera, TAMA5, MBC1M, Wisdom Tree, M161, Sachen MMC1, Sachen MMC2, PKJD, Bung/EMS, Poke 2-in-1, Rocket Games, BHGOS, Li Cheng, NT newer, GGB81, Hitek, VF001, VF001 (SL), Sintax, NT old 1 and NT old 2.
- Game Boy Color support.
- Super Game Boy support.
- Local two-instance Game Boy link cable support on desktop platforms and libretro core.
- Barcode Boy
- LCD screen ghosting effect as seen in the original Game Boy.
- LCD dot matrix effects.
- Battery powered RAM save support.
- Save states with preview and rewind support.
- Run-ahead support to reduce input latency.
- Compressed ROM support (ZIP).
- Bootrom (BIOS) support.
- Game Genie and GameShark cheat support.
- VGM recorder.
- Supported platforms (standalone): Windows, Linux, BSD and macOS.
- Supported platforms (libretro): Windows, Linux, macOS, Raspberry Pi, Android, iOS, tvOS, webOS, PlayStation Vita, PlayStation 3, Nintendo 3DS, Nintendo GameCube, Nintendo Wii, Nintendo WiiU, Nintendo Switch, Emscripten, Classic Mini systems (NES, SNES, C64, ...), OpenDingux, RetroFW and QNX.
- Full debugger with just-in-time disassembler, CPU breakpoints, memory access breakpoints, code navigation (goto address, JP JR and CALL double clicking), debug symbols, automatic labels, memory editor, trace logger, IO inspector and VRAM viewer including tiles, sprites, backgrounds and palettes.
- MCP server for AI-assisted debugging with GitHub Copilot, Claude, Codex and similar, exposing tools for execution control, memory inspection, hardware status, rewind and more.
- Windows, Linux and macOS Portable Mode.
- Programmable Shader Chain.
- ROM loading from the command line by adding the ROM path as an argument.
- ROM loading using drag & drop.
- Support for modern game controllers through gamecontrollerdb.txt file located in the same directory as the application binary.
Tips
Basic Usage
- Boot ROM: Gearboy can run with or without a Boot ROM. You can optionally load a Boot ROM and enable it.
- Mouse Cursor: Automatically hides when hovering over the main output window or when Main Menu is disabled.
- Portable Mode: Run with
--portable, or create an empty file namedportable.iniin the same directory as the application binary. On macOS, place the file next to the.appbundle. - Link Cable:
Open Link Cable menu in two desktop instances, select the same session, and connect both, or start each process with --link-cable-join N. Independent instances should use separate application copies or --portable data directories so configuration, saves, and single-instance handling do not conflict.
Debugging Features
- Docking Windows: In debug mode, you can dock windows together by pressing SHIFT and dragging a window onto another.
- Multi-viewport: In Windows or macOS, you can enable "multi-viewport" in the debug menu. You must restart the emulator for the change to take effect. Once enabled, you can drag debugger windows outside the main window.
- Single Instance: You can enable "Single Instance" in the
Emulatormenu. When enabled, opening a ROM while another instance is running will send the ROM to the running instance instead of starting a new one. - Debug Symbols: The emulator automatically tries to load a symbol file when loading a ROM (.sym, .noi). For example, for
path_to_rom_file.gbit tries to loadpath_to_rom_file.sym. You can also load a symbol file using the GUI or the CLI. It supports RGBDS, GBDK-2020, WLA-DX, no$gmb, SDCC/NoICE (.noi), EQU and generic file formats.
Command Line Usage
gearboy [options] [rom_file] [symbol_file]
Arguments:
[rom_file] ROM file: accepts ROMs (.gb, .dmg, .gbc, .cgb, .sgb) or ZIP (.zip)
[symbol_file] Optional symbol file for debugging
Options:
-f, --fullscreen Start in fullscreen mode
-w, --windowed Start in windowed mode with menu visible
--mcp-stdio Auto-start MCP server with stdio transport
--mcp-http Auto-start MCP server with HTTP transport
--mcp-router Enable compact MCP tool routing
--mcp-http-address A HTTP bind address (default: 127.0.0.1)
--mcp-http-port N HTTP port for MCP server (default: 7777)
--link-cable-join N Join local link cable session 1-255
--headless Run without GUI (requires MCP or link cable)Facts
- Kind
- MCP server
- Repo
- drhelius/gearboy
- Group
- Uncategorized
- Stars
- 1.2k
- License
- GPL-3.0
- Language
- C++
- Last push
- 2026-10-09
- Forks
- 167
- Homepage
- x.com/drhelius
- Topics
- bsd, emulation, emulator, game-boy, gameboy, gameboy-color-emulator, gameboy-emulator, libretro, linux, mcp, mcp-server, nintendo-gameboy, raspberry-pi, retroarch, vgm
- 1Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 2Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k
- 3Gitmodelcontextprotocol/serversA Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.85.8k
- 4Memorymodelcontextprotocol/serversA basic implementation of persistent memory using a local knowledge graph. This lets Claude remember information about the user across chats.85.8k
- 5Sequential Thinkingmodelcontextprotocol/serversAn MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.85.8k
- 6Timemodelcontextprotocol/serversA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.85.8k