@truffle-ai/gameboy-server
v0.1.0
Published
MCP server for GameBoy emulation - lets AI play GameBoy games like Pokemon
Readme
@truffle-ai/gameboy-server
MCP server for GameBoy emulation - lets AI play GameBoy games like Pokemon.
Installation
npm install -g @truffle-ai/gameboy-serverOr use directly with npx:
npx @truffle-ai/gameboy-serverConfiguration
Add to your MCP client configuration:
{
"mcpServers": {
"gameboy": {
"command": "npx",
"args": ["-y", "@truffle-ai/gameboy-server"]
}
}
}Available Tools
Button Controls
press_up- Press the UP buttonpress_down- Press the DOWN buttonpress_left- Press the LEFT buttonpress_right- Press the RIGHT buttonpress_a- Press the A buttonpress_b- Press the B buttonpress_start- Press the START buttonpress_select- Press the SELECT button
All button tools accept an optional duration_frames parameter (default: 25).
Game Management
load_rom- Load a GameBoy ROM file (.gb or .gbc)get_screen- Get the current screen (returns PNG image)wait_frames- Wait for specified frames without inputis_rom_loaded- Check if a ROM is loadedlist_roms- List ROM files in theroms/directory
Usage Example
1. load_rom with rom_path: "/path/to/pokemon-red.gb"
2. press_start to start the game
3. get_screen to see current state
4. press_a to select options
5. Use directional buttons to navigateROM Files
Place your ROM files (.gb or .gbc) in a roms/ directory in your working directory, or provide absolute paths to load_rom.
Note: You must provide your own ROM files. This server does not include any games.
License
MIT
