Geargrafx Emulator

v1.7.8Developer Toolsstable

PC Engine / TurboGrafx-16 / SuperGrafx / PCE CD-ROM² emulator, debugger, and embedded MCP server for macOS, Windows, Linux, BSD and RetroArch.

bsdemulatorlibretrolinuxmacos
Share:
214
Stars
0
Downloads
0
Weekly
0/5

What is Geargrafx Emulator?

Geargrafx Emulator is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to pc engine / turbografx-16 / supergrafx / pce cd-rom² emulator, debugger, and embedded mcp server for macos, windows, linux, bsd and retroarch.

PC Engine / TurboGrafx-16 / SuperGrafx / PCE CD-ROM² emulator, debugger, and embedded MCP server for macOS, Windows, Linux, BSD and RetroArch.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • PC Engine / TurboGrafx-16 / SuperGrafx / PCE CD-ROM² emulato

Use Cases

Emulate and debug PC Engine and TurboGrafx games.
drhelius

Maintainer

LicenseGPL-3.0
Languagec++
Versionv1.7.8
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx geargrafx

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Geargrafx Emulator

Geargrafx is a full-featured PC Engine / TurboGrafx-16 / SuperGrafx / PCE CD-ROM² emulator that ships with an embedded MCP server, enabling AI-assisted debugging sessions directly inside the emulator. The MCP server exposes execution control, memory inspection, breakpoints, disassembly, and hardware status tools so an AI assistant can help diagnose game bugs or reverse-engineer ROM behavior in real time. It runs on macOS, Windows, Linux, BSD, and as a libretro core for RetroArch.

Prerequisites

  • Geargrafx installed for your platform (Homebrew on macOS, Ubuntu PPA / Fedora RPM / direct download on Linux, installer on Windows)
  • An MCP-compatible client such as Claude Desktop or Cursor
  • A PC Engine / TurboGrafx-16 ROM image (legally obtained)
  • OpenGL driver installed (Windows users may also need the Visual C++ Redistributable and OpenGL Compatibility Pack)
  • Optional: libsdl3 on Linux if not installed automatically
1

Install Geargrafx

Install the emulator using your platform's preferred method. macOS users can use Homebrew; Linux users can use the Ubuntu PPA or Fedora RPM; Windows users can download the installer from the GitHub releases page.

brew install --cask drhelius/geardome/geargrafx
2

Choose an MCP transport

Geargrafx supports two MCP transport modes. Use --mcp-stdio for direct stdio-based MCP clients (like Claude Desktop), or --mcp-http to start an HTTP server (default address 127.0.0.1:7777) for HTTP/SSE clients.

# stdio transport (launch with ROM)
geargrafx --mcp-stdio /path/to/game.pce

# HTTP transport (default port 7777)
geargrafx --mcp-http /path/to/game.pce
3

Run headless for CI or pure AI sessions

Combine --headless with an MCP option to run the emulator without a GUI window, useful when the AI assistant is the primary interface.

geargrafx --headless --mcp-stdio /path/to/game.pce
4

Configure bearer-token authentication (optional)

For the HTTP transport, you can require a bearer token to authenticate requests. Set the GEARGRAFX_MCP_HTTP_TOKEN environment variable before launching. The server also validates Host and browser Origin headers for security.

export GEARGRAFX_MCP_HTTP_TOKEN=your_secret_token
geargrafx --mcp-http /path/to/game.pce
5

Add Geargrafx to your Claude Desktop config

Edit your Claude Desktop configuration file to register the Geargrafx MCP server using stdio transport. Replace the ROM path with an actual game file.

{
  "mcpServers": {
    "geargrafx": {
      "command": "geargrafx",
      "args": ["--mcp-stdio", "/path/to/game.pce"]
    }
  }
}
6

Use a custom HTTP address or port

If port 7777 is in use, specify a different bind address and port with the --mcp-http-address and --mcp-http-port flags.

geargrafx --mcp-http --mcp-http-address 127.0.0.1 --mcp-http-port 8888 /path/to/game.pce

Geargrafx Emulator Examples

Client configuration (stdio)

Register Geargrafx as an MCP server in Claude Desktop using the stdio transport. The emulator starts automatically when the client connects.

{
  "mcpServers": {
    "geargrafx": {
      "command": "geargrafx",
      "args": ["--mcp-stdio", "/Users/you/roms/game.pce"]
    }
  }
}

Prompts to try

Once connected, you can ask the AI to help debug or inspect game state using the emulator's MCP tools.

- "Set a breakpoint at memory address 0x2000 and tell me what register values look like when it's hit."
- "Disassemble the code at the current program counter and explain what it does."
- "Show me the current hardware status: CPU registers, stack pointer, and program counter."
- "Inspect the memory region from 0x1000 to 0x10FF and look for sprite data patterns."
- "Rewind the emulator 60 frames and take a snapshot of memory at 0x3000."

Troubleshooting Geargrafx Emulator

Port 7777 is already in use when starting the HTTP transport

Use --mcp-http-port to specify a different port, e.g. geargrafx --mcp-http --mcp-http-port 8888 /path/to/game.pce

Emulator fails to start on Linux with a missing libsdl3 error

Install libsdl3 via your package manager. On Ubuntu/Debian: sudo apt install libsdl3-0. On Fedora: sudo dnf install SDL3.

Bearer-token authentication errors when connecting over HTTP

Ensure the GEARGRAFX_MCP_HTTP_TOKEN environment variable is set to the same value in both the server environment and the Authorization: Bearer <token> header sent by your client. Also verify the Host header matches 127.0.0.1 or localhost.

Frequently Asked Questions about Geargrafx Emulator

What is Geargrafx Emulator?

Geargrafx Emulator is a Model Context Protocol (MCP) server that pc engine / turbografx-16 / supergrafx / pce cd-rom² emulator, debugger, and embedded mcp server for macos, windows, linux, bsd and retroarch. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Geargrafx Emulator?

Follow the installation instructions on the Geargrafx Emulator GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Geargrafx Emulator?

Geargrafx Emulator works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Geargrafx Emulator free to use?

Yes, Geargrafx Emulator is open source and available under the GPL-3.0 license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "geargrafx": { "command": "npx", "args": ["-y", "geargrafx"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Geargrafx Emulator?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides