mcp-server-misterfpga
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MISTERFPGA_HOSTS | No | Comma-separated addresses of MiSTers, replacing the list from config.json, keeping names from the file. | |
| MISTERFPGA_DRY_RUN | No | Set to 1 to enable dry-run mode (or use serve --dry-run). Reads the MiSTers but changes nothing. | |
| MISTERFPGA_BACKUP_DIR | No | Backup directory for saves. Has no default; backup_saves will not work until set. | |
| MISTERFPGA_CONFIG_DIR | No | Directory containing config.json (default ~/.config/mcp-server-misterfpga). | |
| MISTERFPGA_LOG_UNREDACTED | No | Set to 1 to log addresses and MACs without redaction (or use --no-redact). Keys and tokens are always redacted. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Controls MiSTer FPGA retro-gaming hardware through Zaparoo Core and root SSH. In the gaming cabinet signal chain, the MiSTer FPGA acts as the Video and Audio Source feeding direct HDMI or analog RGB video into the AV Receiver (Onkyo) or TV (LG webOS). Game launch events trigger dynamic marquee updates on Pixelcade LED displays. Play tracking publishes real-time session events to Home Assistant via MQTT ('misterfpga//now_playing'). Call mister_get_status first: it lists each MiSTer by name and model, what it's playing, and its capabilities and limitations. Find games with mister_search_games or mister_play_history; launch them with mister_launch(game=). mister_launch refuses while a game is running: ask before ending one with mister_return_to_menu, since unsaved progress is lost. Pass host only when the call doesn't already say which MiSTer (a ref does).
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| mister_get_statusA | <use_case> Inspect status across all configured MiSTer FPGA devices or a single target device. </use_case> <important_notes>
|
| mister_list_systemsA | <use_case> List indexed gaming systems, media counts, and FPGA cores across devices. </use_case> <important_notes>
|
| mister_search_gamesA | <use_case> Search for games across MiSTer FPGA libraries by name query and optional system filter. </use_case> <important_notes>
|
| mister_play_historyA | <use_case> Inspect recently played or most played games across MiSTer devices. </use_case> <important_notes>
|
| mister_get_iniA | <use_case> Read sections and key-value pairs from MiSTer.ini configuration files on SD storage. </use_case> <important_notes>
|
| mister_list_nfcA | <use_case> List connected NFC readers, card-to-game mappings, and the last scanned card UID. </use_case> <important_notes>
|
| mister_launchA | <use_case> Launch a game via ref or open a core without media on a MiSTer FPGA. </use_case> <important_notes>
|
| mister_return_to_menuA | <use_case> Exit the active game and reload the MiSTer main menu core. </use_case> <important_notes>
|
| mister_take_screenshotA | <use_case> Capture the current video output of the MiSTer as an image. </use_case> <important_notes>
|
| mister_set_iniA | <use_case> Modify or clear a configuration key in MiSTer.ini (or alternate ini). </use_case> <important_notes>
|
| mister_backup_savesA | <use_case> Create a timestamped local backup of game saves and save states from the MiSTer. </use_case> <important_notes>
|
| mister_run_updateA | <use_case> Trigger update_all.sh to update cores, scripts, and Linux system files. </use_case> <important_notes>
|
| mister_write_nfc_cardA | <use_case> Write game launch metadata to an NFC card on a compatible writer. </use_case> <important_notes>
|
| mister_map_nfc_cardA | <use_case> Associate a physical card UID with a game in Zaparoo without writing to the card. </use_case> <important_notes>
|
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| make_nfc_cards | Walk through turning a list of games into NFC cards, one card at a time. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| ini-keys |
TDQS
Scored across 14 tools
Most tools target distinct resources and actions (status, systems, search, launch, ini, screenshots, update), so selection is generally unambiguous. The only real overlap is the NFC trio — mister_map_nfc_card, mister_list_nfc, and mister_write_nfc_card — where 'map' vs 'write' could momentarily confuse, though descriptions explicitly separate them.
Nearly all tools follow a consistent mister_verb_noun snake_case pattern (get_status, list_systems, search_games, launch, set_ini, write_nfc_card). The one deviation is mister_play_history, a noun phrase with no leading verb, but it remains readable and predictable.
Fourteen tools is well within the ideal range for a device-management server and each one maps to a real operation (discovery, launch lifecycle, config, NFC, backups, updates). Nothing feels redundant or padded.
The surface covers discovery, launch/exit lifecycle, config read/write, NFC read/write/map, save backup, screenshots, and system updates — strong end-to-end coverage. Minor gaps remain: no restore-from-backup, no unmapping/removing an NFC association, and no library rescan/refresh operation.