MCP server that connects AI assistants to Pyxel for retro game development. Enables natural language control of pixel art creation, music, and game logic.
22 GitHub stars
MCP server for AI-assisted retro game development with Pyxel
Open source under MIT license — free to use and modify
pyxel-mcp is an MCP server for Pyxel, a retro game engine for Python. It enables AI agents to drive and observe Pyxel programs headlessly — no window, deterministic, and scriptable. The server exposes tools like run (execute N frames with scheduled inputs and snapshots), validate (syntax and common pitfall checks), pyxel_info, read_palette, read_image, read_animation, read_tilemap, read_audio, and diff_frames. All responses return structured JSON with uniform ok/errors fields. Designed to close the feedback loop for LLM agents writing retro games.
No. All tools run headlessly — no window, no display server needed. This makes it ideal for CI/CD and agentic workflows.
No. Tools that accept `script` run trusted local Python. Pyxel state is isolated per subprocess, but pyxel-mcp is not a sandbox. Only run code you trust.
Pyxel >= 2.9.6 is installed as a dependency. The server is tested against that version range.
Install Pyxel MCP to get started:
Or visit the project page for detailed setup instructions.