mcp-server-batocera
v0.1.0MCP server for Batocera retro-gaming cabinets, via the EmulationStation web API and RetroArch network commands
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
batocera_get_status Get Batocera status
<use_case> Report whether the cabinet's EmulationStation is reachable, which game is running (if any), and whether EmulationStation is busy (scraping, updating). </use_case> <important_notes> - Start here. Reports network URL, reachability, ES version, and RetroArch play/pause state. - While a RetroArch game runs, retroarch reports whether it is playing or paused; null for standalone emulators. - dry_run true indicates actions are simulated and not sent to the cabinet. </important_notes>
batocera_list_systems List game systems
<use_case> List the game systems configured on the cabinet with ROMs. </use_case> <important_notes> - Returns game counts, favorites, and most played game for each system. - The name field (e.g. 'snes', 'mame') is used as system argument in other tools. </important_notes>
batocera_find_games Find games
<use_case> Search the cabinet's game catalog by title, system, genre, player count, or play history. </use_case> <important_notes> - Returns matches with 32-character game_id needed for batocera_launch_game and batocera_get_game. - Supports filtering by genre and players (case-insensitive substring); use offset to page past limit. - Supports sorting by relevance, name, most_played, most_time, recently_played, or random. </important_notes>
| Parameter | Type | Description |
|---|---|---|
favorites_only | boolean | |
genre | Filter by genre substring, e.g. 'Fighting', 'Platform'. | |
limit | integer | |
offset | integer | Skip the first N matching games for pagination. |
players | Filter by player string or count, e.g. '2', '1-2'. | |
query | Words from the game's name, e.g. 'mario world'. | |
sort | string | relevance (best name match first), by name, play count, play time or last played, or random (a shuffled pick of the matches). |
system | Only this system. |
batocera_get_game Get game details
<use_case> Retrieve full metadata for a specific game. </use_case> <important_notes> - Returns developer, publisher, rating, players, play count, and play time. - Requires system name and 32-hex game_id from batocera_find_games. </important_notes>
| Parameter | Type | Description |
|---|---|---|
game_id * | string | The game's id from batocera_find_games (32 hex characters). |
system * | string | System name from batocera_list_systems, e.g. 'snes', 'mame'. |
batocera_launch_game Launch a game
<use_case> Launch a game on the arcade cabinet screen. </use_case> <important_notes> - Refuses if another game is already running; call batocera_quit_game first. - Rate-limited to prevent emulator process fork storms and audio lockups. - Automatically triggers Pixelcade marquee updates if connected. </important_notes>
| Parameter | Type | Description |
|---|---|---|
game_id * | string | The game's id from batocera_find_games (32 hex characters). |
system * | string | System name from batocera_list_systems, e.g. 'snes', 'mame'. |
batocera_quit_game Quit the running game
<use_case> Terminate the currently running game emulator and return to EmulationStation menu. </use_case> <important_notes> - DESTRUCTIVE: Unsaved game progress will be lost. Ask user confirmation before calling. - Rate-limited to protect emulator process management and display drivers. </important_notes>
batocera_show_message Show a message on screen
<use_case> Display an on-screen notification or popup dialog on the cabinet screen. </use_case> <important_notes> - style='auto' displays an in-game HUD overlay if RetroArch is active, or frontend banner otherwise. - style='popup' halts game launch until acknowledged by a button press on the cabinet. </important_notes>
| Parameter | Type | Description |
|---|---|---|
text * | string | |
style | string | auto: over the game if a RetroArch game is running, otherwise a frontend notification. popup: a frontend dialog that stays until someone presses a button. |
batocera_reload_games Rescan game lists
<use_case> Instruct EmulationStation to rescan storage and reload game lists. </use_case> <important_notes> - Use after adding or removing ROM files. - Strictly rate-limited (1 per 60s) to prevent disk I/O thrashing and UI freezes. </important_notes>
batocera_pause_game Pause or resume
<use_case> Pause or resume the active RetroArch game. </use_case> <important_notes> - Only operates when a libretro/RetroArch game core is currently running. - Idempotent: reports unchanged if already in the target state. </important_notes>
| Parameter | Type | Description |
|---|---|---|
paused * | boolean |
batocera_save_state Save state
<use_case> Save game progress to the current RetroArch save slot. </use_case> <important_notes> - Overwrites the active save slot on the cabinet storage. - Rate-limited to prevent UDP packet storms and file corruption. </important_notes>
batocera_load_state Load state
<use_case> Load saved state from the current RetroArch save slot. </use_case> <important_notes> - DESTRUCTIVE: Unsaved progress since the last save will be lost. - Rate-limited to prevent storage and UDP packet collision. </important_notes>
batocera_take_screenshot Take a screenshot
<use_case> Capture a screenshot of the currently running RetroArch game. </use_case> <important_notes> - Saved directly to /userdata/screenshots on the cabinet. - Only works while a RetroArch core is actively running. </important_notes>
batocera_reset_game Reset the game
<use_case> Soft-reset the running RetroArch game emulator. </use_case> <important_notes> - DESTRUCTIVE: Like pressing the physical console reset button; unsaved progress is lost. - Rate-limited to avoid hardware and display strain. </important_notes>
batocera_adjust_volume Adjust game volume
<use_case> Adjust or mute the active RetroArch game's volume. </use_case> <important_notes> - action='up' / 'down' steps volume by 0.5 dB; 'mute' toggles audio mute. - Only affects RetroArch's internal audio output, not TV or external cabinet master amplifier. </important_notes>
| Parameter | Type | Description |
|---|---|---|
action * | string |
batocera_change_save_slot Change save state slot
<use_case> Cycle the active save-state slot for RetroArch games. </use_case> <important_notes> - Cycles between slots 0-999 and Auto (-1). - batocera_save_state and batocera_load_state operate on the active slot. - Does not save or load any state data by itself. </important_notes>
| Parameter | Type | Description |
|---|---|---|
direction * | string |