SuperAPI AI Directory

mcp-dolphin

Control the Dolphin GameCube/Wii emulator: memory read/write, GameCube and Wii Remote input, reset, save states and frame advance, via Felk's scripting fork.

Open website

About this tool

Purpose

mcp-dolphin is an MCP server for controlling the Dolphin (GameCube + Wii) emulator from MCP-compatible clients such as Claude Desktop, Claude Code, etc. It uses Felk's Python-scripting Dolphin fork to drive memory reads and writes, controller input, pause/resume/reset, save states, and frame-by-frame advancement.

Main capabilities

  • Read and write emulated PowerPC memory: supports 8/16/32/64-bit, covering MEM1 and MEM2.
  • Send controller input:
    • GameCube: digital buttons (A, B, X, Y, Z, Start, L, R, Up, Down, Left, Right), analog axes (StickX, StickY, CStickX, CStickY, 0-255, 128 is center), triggers (TriggerLeft, TriggerRight, 0-255, 0 is released). Omitted keys default to released/centered.
    • Wii Remote: buttons (A, B, One, Two, Plus, Minus, Home, Up, Down, Left, Right). v0.1.0 only covers buttons.
  • Reset the emulator (pause/resume is not provided in v0.1.0, see known limitations).
  • Save/load states to numbered slots (0-255; 1-10 correspond to F1-F10 in Dolphin).
  • Frame-by-frame advancement: synchronously waits for N frames, achieving TAS-style precision.

v0.1.0 is not yet wired up (deferred to later versions):

  • Wii Remote motion (pointer, accelerometer, swing, shake, tilt)
  • Nunchuk / Classic Controller / GBA-via-Wii input
  • Memory breakpoints, register access, screenshots

Usage

Architecture and hard prerequisites

Mainline Dolphin does not have Python scripting. mcp-dolphin communicates with Felk's actively maintained Dolphin fork, which embeds Python and provides first-class access to memory, controllers, save states, and the frame loop. Mainline Dolphin's Python PR (#7064) has been stalled since 2022; the Lua fork (dolphinWatch,SwareJonge/Dolphin-Lua-Core) is dead. Felk is the only active scripting path.

1. Install Felk's Dolphin fork

Get a build from Felk/dolphin Releases—currently Python Scripting Preview 4 (December 2025). Extract it to a location you can find. It is a regular Dolphin build plus a Scripting panel under the View menu.

If you see a Python error when loading the bridge, enable the Scripting log type: View → Show Log Configuration → check Scripting (set verbosity to "Info" or "Error"), then View → Show Log to make the log window visible.

2. Print the bridge script and load it

Then in Felk's Dolphin:

  • View → Scripting opens the script panel.
  • Click Add New Script and select the mcp_bridge.py you just wrote.
  • Verify in Dolphin's Log window—you should see [mcp-bridge] listening on 127.0.0.1:55355 (bridge v0.1.0).

The script keeps running while Dolphin is open. Remove it from the Scripting panel to stop the bridge.

3. Register mcp-dolphin in the MCP client

Claude Desktop—edit claude_desktop_config.json:

Restart the MCP client after editing.

Load a GameCube or Wii game in Dolphin, then have the agent call dolphin_ping. You should see OK — bridge v0.1.0 (Felk Python fork).

GameCube + Wii address space (cheat sheet)

PowerPC is big-endian on hardware. The bridge handles byte swapping when reading and writing—pass in and receive values as the game logically sees them, not byte order.

Controller input

GameCube (dolphin_press_gc_buttons)

  • Digital buttons: A, B, X, Y, Z, Start, L, R, Up, Down, Left, Right
  • Analog axes: StickX, StickY, CStickX, CStickY (0-255, 128 = center)
  • Triggers: TriggerLeft, TriggerRight (0-255, 0 = released)
  • Omitted buttons default to released/centered.

Wii Remote (dolphin_press_wiimote_buttons)

  • Buttons: A, B, One, Two, Plus, Minus, Home, Up, Down, Left, Right
  • v0.1.0 only covers buttons—motion, pointer, Nunchuk, Classic Controller are deferred to future versions.

If you change the port, you must also edit mcp_bridge.py (in the script directory) and set DOLPHIN_BRIDGE_PORT.

Troubleshooting

Debug with MCP Inspector:

  • Interactively browse and call this server's tools: MCP Inspector.
  • If src/ has been edited since the last npm install, build first (npm run build, or keep npm run dev running). Override the bridge address with DOLPHIN_BRIDGE_HOST / DOLPHIN_BRIDGE_PORT (default 127.0.0.1:55355). tools/list works even when Dolphin is not connected; calling tools requires Felk's Dolphin running bridge/mcp_bridge.py.

Use Cases

  • Automate GameCube/Wii game operations via an MCP client.
  • TAS-style frame-by-frame precise control.
  • Memory read/write for debugging or modification.
  • Save state management and reset.

Limitations

  • You must use Felk's Python script version of the Dolphin fork; mainline Dolphin is not supported.
  • Pause/resume is not provided in v0.1.0.
  • v0.1.0 does not yet integrate Wii Remote motion, Nunchuk/Classic Controller/GBA-via-Wii input, memory breakpoints, register access, screenshots.
  • License: MIT—see LICENSE.