mcp-bizhawk is an MCP server that exposes BizHawk, the multi-system emulator commonly used by the TAS community, to any MCP-compatible client (such as Claude Desktop, Claude Code, etc.). Through a single Lua bridge, it supports multiple game systems and operates them with the same set of MCP tools, while clearly exposing memory domains per system.
Supported systems
The materials list: NES, SNES, Game Boy / GBC / GBA, Sega Master System / Genesis / 32X / Saturn, N64, PlayStation 1, Atari 2600/5200/7800, Lynx, ColecoVision, Intellivision, and others. It is officially stated that it "Should work on any system BizHawk supports".
Main capabilities
- Memory read/write: All memory read/write tools accept an optional domain parameter; when omitted, the currently active memory domain is used. bizhawk_list_memory_domains can be used to discover the memory domain names available to the loaded core.
- Controller input: bizhawk_press_buttons accepts a button table like {"A": true}; button names depend on the core. bizhawk_play_input_sequence can also be used for batch input.
- Frame-by-frame advancement, screenshots, and save states: These capabilities are listed in the repository description.
- Cross-system regression testing: The documentation mentions related examples.
Usage
Environment requirements: BizHawk 2.6.2 or newer (earlier versions use the old socket server wire format); Node.js 22+. It has been tested on BizHawk 2.11.1 for SNES (Super Metroid).
There are three installation methods:
- Option A — Install from npm (recommended)
- Option B — npx (no installation)
- Option C — Clone and develop
Configuration is divided into two parts: telling BizHawk where to connect, and loading the bridge script.
- Point BizHawk at the MCP server: The simplest way is to start BizHawk with the socket flag (adjust the port if BIZHAWK_PORT is overridden);It can also be persistently configured in the BizHawk UI via Settings → Customize → External Tools.
- Load the bridge script: In BizHawk, open Tools → Lua Console → Open Script, and select lua/bridge.lua from this repository. After loading, a prompt will appear in the Lua Console, and there will also be output on the stderr of the mcp-bizhawk process.
- Register with an MCP client: Claude Code (CLI) or edit claude_desktop_config.json, and restart Claude Desktop after editing; other MCP clients can run mcp-bizhawk and connect to its stdio, because the server uses standard MCP over stdio.
Architecture and trade-offs
Compared with other emulator MCP bridges, the transport direction is reversed: BizHawk's Lua has no native server socket, only the outbound comm.socketServer* client. Therefore, mcp-bizhawk runs a TCP listener, and BizHawk's Lua bridge dials in once per frame to pass commands and responses. The components include:
- lua/bridge.lua — Runs in BizHawk's Lua Console and polls the TCP server every frame
- dist/index.js — Node.js MCP server, listening by default on 127.0.0.1:8766, exposing tools over stdio
Trade-off: This design adds about one frame of latency per call (about 16ms at 60Hz). It is suitable for interactive memory searches, save-state experiments, and frame-by-frame inspection, but less suitable for high-frequency scripting.
Suitable scenarios
- Interactive memory search (RAM hunting)
- Save-state experiments and restoration
- Frame-perfect input and inspection
- Cross-system regression testing
Official example: Claude (the agent) controls Samus through the beginning of Ceres Station; all inputs are sent in batches via bizhawk_play_input_sequence, and all movement is verified by reading WRAM addresses found through live RAM searches; the recording is at 2x speed, while the actual playback runs emulated at native 60fps. PhaseFor the shutdown procedure, see docs/RECIPES.md and docs/SUPER-METROID-ADDRESSES.md.
Memory Domain Quick Reference (by system)
Domain names come directly from the BizHawk core implementation. You can use bizhawk_list_memory_domains to view the exact set for the loaded ROM.
Button Quick Reference (by system)
bizhawk_press_buttons accepts a {ButtonName=true, ...} table, and the button names depend on the core. When unsure, you can run a probe: bizhawk_press_buttons {"A": true}, and observe the input display of the active core in BizHawk.
Troubleshooting and Debugging
- Setting DEBUG=1 dumps every line of RX/TX.
- End-to-end smoke test: start BizHawk, load the ROM and the bridge, and run ping/get_info/list_memory_domains/read_range.
- Use MCP Inspector to interactively browse and call this server's tools; if you edited src/ after the last npm install, you need to build first (npm run build, or keep npm run dev running).
- You can override the listening address with BIZHAWK_HOST / BIZHAWK_PORT (default 127.0.0.1:8766).
- tools/list is also available when BizHawk is not connected; calling tools requires EmuHawk to be running with the socket flag and lua/bridge.lua loaded.
Limitations
- Each call adds about one frame of latency, so it is not suitable for high-frequency scripts.
- Requires BizHawk 2.6.2 or newer and Node.js 22+; earlier BizHawk versions use the old socket server wire format.
- EmuHawk must be running and the bridge script loaded before calling tools.
- For specific installation commands, configuration code, the full list of memory domains and buttons, CHANGELOG, and other details, see the repository files.
Information such as pricing and billing methods has not been provided yet.