pyxel-mcp
MCP server for Pyxel, a retro game engine for Python. Enables AI to autonomously run, verify, and iterate on retro game programs.
Features
run_and_capture— Run a Pyxel script and capture a screenshot for visual verificationcapture_frames— Capture screenshots at multiple frame points for animation verificationinspect_sprite— Read sprite pixel data from image banks, report symmetry and colorsinspect_layout— Analyze screen layout, text positioning, and visual balancerender_audio— Render a Pyxel sound to WAV and analyze notes, rhythm, and keypyxel_info— Get Pyxel installation paths (API stubs, examples)
Getting Started
Just ask your AI agent (e.g. Claude Code) to create a Pyxel game. The agent will automatically discover and set up pyxel-mcp from the MCP Registry.
Manual Installation
- Install the package:
pip install pyxel-mcp
- Register
pyxel-mcpas an MCP server in your AI agent. For Claude Code, add to your project's.mcp.json:
{
"mcpServers": {
"pyxel": {
"type": "stdio",
"command": "pyxel-mcp"
}
}
}
License
MIT