{"id":47635118,"url":"https://github.com/catallo/misterclaw","last_synced_at":"2026-04-02T00:02:23.893Z","repository":{"id":346150730,"uuid":"1188696842","full_name":"catallo/misterclaw","owner":"catallo","description":"👾🦀 MiSTerClaw — MCP Remote Control for MiSTer-FPGA","archived":false,"fork":false,"pushed_at":"2026-03-23T00:01:58.000Z","size":17969,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-23T05:08:04.014Z","etag":null,"topics":["ai-agent","clawexec","de10-nano","fpga","mcp","mcp-server","mister-fpga","remote-control","retro-gaming"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/catallo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-22T13:10:32.000Z","updated_at":"2026-03-22T23:59:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/catallo/misterclaw","commit_stats":null,"previous_names":["catallo/clawexec-mister-fpga"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/catallo/misterclaw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catallo%2Fmisterclaw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catallo%2Fmisterclaw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catallo%2Fmisterclaw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catallo%2Fmisterclaw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catallo","download_url":"https://codeload.github.com/catallo/misterclaw/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catallo%2Fmisterclaw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agent","clawexec","de10-nano","fpga","mcp","mcp-server","mister-fpga","remote-control","retro-gaming"],"created_at":"2026-04-02T00:02:17.864Z","updated_at":"2026-04-02T00:02:23.833Z","avatar_url":"https://github.com/catallo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 👾🦀 MiSTerClaw — MCP Remote Control for MiSTer-FPGA\n\nMiSTerClaw is the first MCP server for MiSTer-FPGA. Control your MiSTer from any AI agent.\n\n![Version](https://img.shields.io/badge/Version-v0.7.0-blue)\n![Go](https://img.shields.io/badge/Go-1.21+-00ADD8?logo=go\u0026logoColor=white)\n![License](https://img.shields.io/badge/License-MIT-green)\n![Platform](https://img.shields.io/badge/Platform-ARMv7_(DE10--Nano)-blue)\n\n## What is this?\n\nMiSTerClaw lets AI agents — Claude, ChatGPT, OpenClaw, Hermes, Cursor, and others — control a MiSTer-FPGA over the network. Launch games, search your ROM library, take screenshots, read and modify core settings and DIP switches, navigate the OSD menu using conf_str-based position calculation (experimental, not yet reliable for all cores), query detailed system information, manage the system, and even set up Tailscale VPN for secure remote access from anywhere. Floppy-disk cores (PC8801, MSX, etc.) support PostLaunch auto-reset for seamless game loading. It uses the [Model Context Protocol (MCP)](https://modelcontextprotocol.io) standard, so any MCP-compatible client works out of the box. For agents without MCP support, a CLI client is also included.\n\n## MCP Setup\n\nAdd MiSTerClaw to your MCP client config:\n\n**Claude Desktop** (`claude_desktop_config.json`):\n```json\n{\n  \"mcpServers\": {\n    \"misterclaw\": {\n      \"command\": \"/path/to/misterclaw-mcp\",\n      \"args\": [\"--host\", \"mister-fpga\"]\n    }\n  }\n}\n```\n\n**Cursor** (`.cursor/mcp.json`):\n```json\n{\n  \"mcpServers\": {\n    \"misterclaw\": {\n      \"command\": \"/path/to/misterclaw-mcp\",\n      \"args\": [\"--host\", \"mister-fpga\"]\n    }\n  }\n}\n```\n\n### MCP Tools\n\n| Tool | Description |\n|------|-------------|\n| `mister_status` | What's currently playing |\n| `mister_launch` | Launch a game by search or path |\n| `mister_search` | Search the ROM library |\n| `mister_systems` | List all available systems with ROM counts |\n| `mister_screenshot` | Take a screenshot (returns PNG image) |\n| `mister_info` | System info (hostname, IP, temp, RAM, disks, uptime) |\n| `mister_input` | Send keyboard input (OSD navigation, named keys) |\n| `mister_osd_info` | Query OSD menu structure from CONF_STR database |\n| `mister_osd_visible` | Show only visible OSD menu items based on current config |\n| `mister_cfg_read` | Read core settings (options + DIP switches) |\n| `mister_cfg_write` | Modify core settings with automatic backup |\n| `mister_reload` | Reload current core to apply config changes |\n| `mister_osd_navigate` | Navigate to a specific OSD menu item by name |\n| `mister_system_info` | Get system config, notes, and OSD menu for a system |\n| `mister_rescan` | Rescan ROM library (optionally for specific drive) |\n| `mister_tailscale` | Manage Tailscale VPN |\n| `mister_shell` | Execute shell commands |\n\n## Example Conversations\n\nOnce configured, just talk to your agent:\n\n```\nYou: \"What games do I have for SNES?\"\nAgent: You have 13,435 SNES ROMs! Here are some highlights...\n\nYou: \"Launch Street Fighter 2\"\nAgent: 🎮 Launched Street Fighter II Turbo on SNES!\n\nYou: \"Take a screenshot and show me\"\nAgent: [screenshot of the game running]\n\nYou: \"What systems do I have?\"\nAgent: Your MiSTer has 70+ systems! Top ones:\n  - SNES: 13,435 ROMs\n  - C64: 46,736 ROMs\n  - Amiga: 55,793 ROMs\n  ...\n\nYou: \"Set up Tailscale so I can reach the MiSTer from anywhere\"\nAgent: Installing Tailscale... Done!\n       Please authenticate: https://login.tailscale.com/a/xxx\n       After that your MiSTer is reachable from anywhere.\n\nYou: \"What settings does R-Type have?\"\nAgent: R-Type (M72 core) has these settings:\n       Core Options:\n         - No Death Mode: Off\n         - Service Mode: Off\n       DIP Switches:\n         - Difficulty: Medium\n         - Coin A: 1 Coin / 1 Credit\n         - Lives: 3\n         - Demo Sounds: On\n         - Continue: Yes\n\nYou: \"Enable No Death Mode\"\nAgent: ⚙️ Set \"No Death Mode\" to On in R-Type.\n       The core reloads automatically — change is live!\n\nYou: \"Navigate to the Reset option in the OSD\"\nAgent: Navigated to Reset in the SNES core OSD.\n\nYou: \"What do I need to know about the PC8801 system?\"\nAgent: PC8801 uses the PC8801 core with .d88 floppy disk images.\n       Notes: After loading a disk, press F12 → Reset to boot.\n       OSD Menu: FDD0, FDD1, Reset, CPU Speed, ...\n```\n\n## CLI Client\n\nFor agents that have shell access (like OpenClaw, Codex, or Claude Code), the CLI client can be more efficient than MCP — no tool schemas in context, just call it when needed. It's also useful for shell scripts and automation.\n\n```bash\n# Check what's playing\nmisterclaw-send -H mister-fpga status\n\n# Search for games\nmisterclaw-send -H mister-fpga search \"zelda\" --limit 5\nmisterclaw-send -H mister-fpga search \"sonic\" --system MegaDrive\n\n# Launch a game\nmisterclaw-send -H mister-fpga launch \"super mario world\" --system SNES\n\n# List all systems with ROM counts\nmisterclaw-send -H mister-fpga systems\n\n# Take a screenshot\nmisterclaw-send -H mister-fpga screenshot -o game.png\n\n# System info (CPU, memory, storage, uptime)\nmisterclaw-send -H mister-fpga info\n\n# Run shell commands — configure MiSTer.ini, run updates, manage files\nmisterclaw-send -H mister-fpga shell \"cat /media/fat/MiSTer.ini\"\nmisterclaw-send -H mister-fpga shell \"/media/fat/Scripts/update_all.sh\"\n\n# Send keyboard input (OSD navigation)\nmisterclaw-send -H mister-fpga input key osd\nmisterclaw-send -H mister-fpga input combo leftalt f12\n\n# Query OSD menu structure\nmisterclaw-send -H mister-fpga osd-info\nmisterclaw-send -H mister-fpga osd-info --core SNES\n\n# Navigate to a specific OSD menu item\nmisterclaw-send -H mister-fpga osd-navigate Reset\nmisterclaw-send -H mister-fpga osd-navigate \"Aspect ratio\"\n\n# Get detailed system info (config, notes, OSD menu)\nmisterclaw-send -H mister-fpga system-info PC8801\nmisterclaw-send -H mister-fpga system-info SNES\n\n# Read core settings (options + DIP switches)\nmisterclaw-send -H mister-fpga cfg-read\n\n# Modify settings\nmisterclaw-send -H mister-fpga cfg-write --option \"Free Play\" --value On\n\n# Reload core to apply changes\nmisterclaw-send -H mister-fpga reload\n\n# Rescan ROM library (after adding new games)\nmisterclaw-send -H mister-fpga rescan\nmisterclaw-send -H mister-fpga rescan --location usb0\n\n# JSON output for scripting\nmisterclaw-send -H mister-fpga status --json\nmisterclaw-send -H mister-fpga systems --json\n```\n\nAll commands support `--json` for machine-readable output.\n\n## Installation\n\nThree binaries:\n\n| Binary | Runs on | Purpose |\n|--------|---------|---------|\n| `misterclaw` | MiSTer (ARM7) | Server — runs on the MiSTer itself |\n| `misterclaw-send` | Anywhere | CLI client for direct commands |\n| `misterclaw-mcp` | Your machine | MCP server — bridges AI agents to MiSTer |\n\n### Quick install on MiSTer\n\n```bash\nscp misterclaw root@\u003cmister-ip\u003e:/media/fat/Scripts/\nssh root@\u003cmister-ip\u003e \"/media/fat/Scripts/misterclaw --install\"\n```\n\nOr self-install: copy the binary to MiSTer, then run `misterclaw --install`. This copies to `/media/fat/Scripts/`, configures autostart on boot, and is idempotent.\n\nTo uninstall: `/media/fat/Scripts/misterclaw --uninstall`\n\n## Security\n\n\u003e ⚠️ **Do not expose port 9900 to the internet.** The ClawExec protocol has no authentication or encryption.\n\n- **Tailscale VPN** (recommended) — encrypted, authenticated, works from anywhere\n- **Local network only** — keep port 9900 accessible within your LAN\n- **Never** forward port 9900 through your router or firewall\n\n## Architecture\n\n```\nAgent ←MCP→ misterclaw-mcp ←TCP→ MiSTer:9900 (misterclaw server)\nAgent ←CLI→ misterclaw-send ←TCP→ MiSTer:9900 (misterclaw server)\n```\n\nThe MCP server and CLI client communicate with the MiSTer over the ClawExec protocol (newline-delimited JSON over TCP, port 9900).\n\n## Dynamic System Detection\n\nMiSTerClaw auto-detects all systems by scanning ROM folders, installed cores, and MGL files. No configuration needed — a well-stocked MiSTer typically has 70+ systems. Discovery results (including full ROM file listings) are cached to disk. First startup scans and builds the cache; subsequent starts load instantly. Use the `rescan` command after adding new games or drives.\n\n## Building from Source\n\n```bash\n# MiSTer server (ARM7)\nGOOS=linux GOARCH=arm GOARM=7 go build -ldflags=\"-s -w\" -o misterclaw ./cmd/misterclaw/\n\n# CLI client\ngo build -ldflags=\"-s -w\" -o misterclaw-send ./cmd/misterclaw-send/\n\n# MCP server\ngo build -ldflags=\"-s -w\" -o misterclaw-mcp ./cmd/misterclaw-mcp/\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatallo%2Fmisterclaw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatallo%2Fmisterclaw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatallo%2Fmisterclaw/lists"}