Geargrafx
PC Engine / TurboGrafx-16 / SuperGrafx / PCE CD-ROM² emulator, debugger, and embedded MCP server for macOS, Windows, Linux, BSD and RetroArch.
claude mcp add --transport stdio drhelius-geargrafx docker run -i drhelius/geargrafx-mcp
How to use
Geargrafx includes an MCP server that provides debugging and tooling capabilities for the emulator. The MCP interface exposes tools for execution control, memory inspection, hardware status, and other debugging utilities that help you analyze and modify behavior during emulation. This enables deeper exploration of the TurboGrafx-16 / PC Engine ecosystem, including CD-ROM subsystems, memory regions, and VDC/VRAM state, all within a consistent MCP framework. Use the MCP server to attach to a running Geargrafx instance, inspect memory and registers, step through code, and access device status information as you test homebrew, translations, or compatibility with various hardware configurations. The MCP tools are designed to work alongside Geargrafx’s primary emulation features and can be used to automate debugging workflows with Copilot/AI-assisted capabilities where supported by the platform.
How to install
Prerequisites:
- Docker installed and running on your system (Linux, macOS, Windows).
- Optional: Docker Compose if you prefer orchestration (not required for the MCP setup below).
Option A: Run via Docker (recommended for quick setup)
- Pull and run the Geargrafx MCP container: docker run -it --rm drhelius/geargrafx-mcp
- The container will expose the MCP server interfaces as designed by the image. Attach your MCP client to the running server according to your MCP tooling documentation.
Option B: Build from source (if you have a local build of the MCP server)
- Ensure you have a C/C++ build toolchain installed (e.g., GCC/Clang, CMake).
- Clone the Geargrafx repository and navigate to the MCP server folder.
- Create a build directory and compile the MCP server, then run the produced binary locally: mkdir build && cd build cmake .. make
- Start the MCP server binary with any required flags, then connect your MCP client to it.
Notes:
- The MCP server is designed to debug and instrument Geargrafx; ensure your BIOS/image files are available and compatible with the emulation session you’re debugging.
Additional notes
Tips and considerations:
- Ensure you have a BIOS file compatible with CD-ROM games; the proper BIOS is required for many MCP debugging scenarios.
- The MCP server can expose memory and hardware state; avoid modifying critical regions unless you know what you’re doing to prevent emulation instability.
- If you’re using Docker, make sure the container has access to necessary peripherals or volumes if you need to load ROM images or save states from the host.
- Review the Libretro integration (RetroArch) if you’re using the Geargrafx core; MCP tooling may be available through the same or adjacent interfaces.
- If you encounter connection issues with the MCP client, verify network/localhost bindings and ensure the correct port mappings are in place for the container or local server.
- For troubleshooting, consult the Geargrafx issue tracker and the MCP tooling docs for guidance on common errors and expected tool outputs.
Related MCP Servers
microsandbox
opensource self-hosted sandboxes for ai agents
amazon-q-developer-cli
✨ Agentic chat experience in your terminal. Build applications using natural language.
Gearboy
Game Boy / Gameboy Color emulator and debugger for macOS, Windows, Linux, BSD and RetroArch.
mcp-client-for-ollama
A text-based user interface (TUI) client for interacting with MCP servers using Ollama. Features include agent mode, multi-server, model switching, streaming responses, tool management, human-in-the-loop, thinking mode, model params config, MCP prompts, custom system prompt and saved preferences. Built for developers working with local LLMs.
Gearsystem
Sega Master System / Game Gear / SG-1000 emulator and debugger for macOS, Windows, Linux, BSD and RetroArch.
Gearcoleco
ColecoVision emulator and debugger for macOS, Windows, Linux, BSD and RetroArch.