MCP server · Open source · MIT
ahpixeleditor, a pixel editor Claude draws in.
A browser pixel-art editor that Claude draws on live through MCP. You watch every AI stroke appear, undo any AI step on its own, and recolour or edit the result yourself in the same document.
Examples

A slime, drawn from a prompt
Claude got the prompt below, designed a 32×32 slime with a 16-colour palette on its own layer, checked render_preview and fixed its own mistake: the first ground shadow was too dark and merged with the outline, so it lightened that palette slot and widened the shadow with two rect calls.
Create a 32×32 sprite with a 16-colour palette and draw a slime on its own layer.
Check render_preview and fix mistakes.
A ninja, recreated from a reference image
Left: the reference image. Right: the sprite drawn through the MCP server. A small script measured the reference's pixel grid (about 5 image pixels per art pixel), took one colour per cell, made the white background transparent and cut it down to 16 colours. Claude then drew it with create_sprite, add_layer and 11 draw_pixel_map calls of 12 rows each, so the editor played it back top to bottom and each band is one undo step.
Since 0.3.0, Import pixel art… in the editor and the import_pixel_art tool do those steps for you.
What it does
- Indexed colour. Changing a palette slot recolours every pixel that uses it.
- Layers and frames. Layers can be hidden or locked.
- Live playback. AI strokes appear pixel by pixel in the editor.
- One shared undo history. Each AI tool call is one undo step, and "Revert last AI step" removes the AI's last change but keeps your edits on top of it.
- No collisions. While you draw a stroke, AI calls wait up to 5 seconds.
- Limit the AI to an area. Select an area (M) and the AI only changes pixels inside it.
- Animation. Frames play at their own durations, with onion skin, and export as a sprite sheet PNG.
- Import pixel art. It finds the pixel grid of an image (fractional scales too), takes one colour per art pixel, clears a plain background and builds the palette.
- Recreate in your own style. When the import is not what you want, the pixel_art_from_image prompt has Claude redraw the image by hand in a style you describe.
- Save and export. Save and open the document as .json, export a PNG, or export an .aseprite file with its layers, frames and palette.
- Canvas tools. Zoom up to 64×, pan anywhere, resize the canvas at any of 9 anchors, and rename or delete layers, all undoable.
Connect it to Claude
No install step: the server runs from npm with npx. Needs Node.js 22.22 or newer.
claude mcp add ahpixeleditor -- npx -y ahpixeleditorOn native Windows, start npx through cmd:
claude mcp add ahpixeleditor -- cmd /c npx -y ahpixeleditorIn Claude Desktop, add this to claude_desktop_config.json (Settings → Developer → Edit Config) and restart it:
{
"mcpServers": {
"ahpixeleditor": {
"command": "npx",
"args": [
"-y",
"ahpixeleditor"
]
}
}
}On Windows, use "command": "cmd" and "args": ["/c", "npx", "-y", "ahpixeleditor"].
Then start a Claude session, open http://localhost:7777 in your browser and ask Claude to draw. In Claude Desktop you can also ask Claude to "open the pixel editor" and it shows inside the conversation. The document lives in memory and is lost when the session ends, so use Save to keep it and export_png for an image.