MCP server for Pyxel, a retro game engine for Python. Enables AI to autonomously run, verify, and iterate on retro game programs.
Project description
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 & Capture
run_and_capture— Run a Pyxel script and capture a screenshot after N framescapture_frames— Capture screenshots at multiple frame points for animation verificationplay_and_capture— Play a game by sending simulated input and capture screenshots
Inspect & Debug
validate_script— Validate a Pyxel script without running itinspect_state— Read game object attributes at specific frames for debugginginspect_screen— Capture screen as a compact color index gridcompare_frames— Compare screenshots at two frames and report pixel differences
Visual Analysis
inspect_sprite— Inspect sprite pixel data from a Pyxel image bankinspect_layout— Analyze screen layout, text alignment, and visual balanceinspect_palette— Analyze color usage and contrast in a Pyxel screenshotinspect_bank— Visualize an entire Pyxel image bank as a single screenshotinspect_tilemap— Inspect tilemap content, tile usage, and layoutinspect_animation— Check sprite sheet consistency across animation frames
Audio
render_audio— Render a Pyxel sound or music to WAV and return waveform analysis
Utility
pyxel_info— Get Pyxel installation info: package location, examples path, and API stubs path
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"
}
}
}
MCP Registry
mcp-name: io.github.kitao/pyxel-mcp
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyxel_mcp-0.9.1.tar.gz.
File metadata
- Download URL: pyxel_mcp-0.9.1.tar.gz
- Upload date:
- Size: 88.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
766fe06d33b5cf53e2bc2b3936d25f76217befcf0ee4f2ce2f5097ce2a21b30f
|
|
| MD5 |
7163a3b63de5cec26ad3fe32f78265e4
|
|
| BLAKE2b-256 |
26d371a26084e9ccb2f69de5d2703dfa0c45f377cf163f938a699fcd280999d6
|
File details
Details for the file pyxel_mcp-0.9.1-py3-none-any.whl.
File metadata
- Download URL: pyxel_mcp-0.9.1-py3-none-any.whl
- Upload date:
- Size: 53.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c6a731f72cc07f8e6566aa840d743fadbb57a8c3fd31d9b4d1acb6bf0bc38d0
|
|
| MD5 |
2ba5d8dabf930af927dc03e41d383ad7
|
|
| BLAKE2b-256 |
4ada6211bcb30b57de2aafdc0b56ebaee6e31e39dcd030bbbd4312484ce72245
|