ahpixeleditor
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ahpixeleditor
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.
![]()
Inspired by Aseprite. Not affiliated with or endorsed by it, and it contains none of its code.
Features
Indexed colour: changing a palette slot recolours every pixel that uses it.
Layers (visible / locked) and frames.
AI strokes play back pixel by pixel in the editor.
One shared undo history for you and the AI. Each AI tool call is one undo step.
"Revert last AI step" removes the AI's last change but keeps your edits on top of it.
While you draw a stroke, AI calls wait (up to 5 s) so the two never collide.
Related MCP server: aseprite-claude-connector
Requirements
Node.js 22.22 or newer
Claude Code (or another MCP client, e.g. Claude Desktop)
Connect it to Claude
No install step: the server runs from npm with npx.
Claude Code
claude mcp add ahpixeleditor -- npx -y ahpixeleditorOn native Windows (not WSL), npx must be started through cmd:
claude mcp add ahpixeleditor -- cmd /c npx -y ahpixeleditorClaude Desktop
Add this to claude_desktop_config.json (Settings → Developer → Edit Config) and restart Claude Desktop:
{
"mcpServers": {
"ahpixeleditor": {
"command": "npx",
"args": ["-y", "ahpixeleditor"]
}
}
}On Windows, use "command": "cmd" and "args": ["/c", "npx", "-y", "ahpixeleditor"].
From a clone of this repo
git clone https://github.com/HsiaoJ0629/ahpixeleditor.git
cd ahpixeleditor
npm install
npm run buildThe repo ships a .mcp.json, so starting claude in the repo folder offers the ahpixeleditor
server (built from source). Approve it when asked, or run /mcp.
Use it
Start a Claude session with the server connected. The server starts with it.
Open http://localhost:7777 in your browser.
Ask Claude to draw, for example:
Create a 32×32 sprite with a 16-colour palette and draw a slime on its own layer. Check render_preview and fix mistakes.
Editor shortcuts: B pencil, E eraser, G fill, I picker, Ctrl+Z undo, Ctrl+Y or
Ctrl+Shift+Z redo (Cmd on macOS).
Only one session can run at a time (it uses port 7777). The document lives in the server's memory
and is lost when the Claude session ends; use export_png to keep a result.
Examples
A slime, drawn from a prompt
The screenshot at the top. Claude got the prompt above, 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.
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 reduced the colours to a 16-colour palette. The MCP tools then
drew the result: create_sprite(88, 123, palette), add_layer("ninja"), 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.
The image-to-grid step is not built in yet; an import tool is planned (ROADMAP.md, "Import image → pixel art").
MCP tools
Tool | What it does |
| New sprite (replaces the current one, clears history) |
| Size, palette, layers, frames, current layer/frame |
| Change the palette |
| Draw a text grid; the main drawing tool |
| Basic drawing |
| Layers |
| Frames |
| Read a layer back as a text grid |
| PNG preview of the current frame |
| Undo the newest step |
| Save the current frame as a PNG |
The drawing tools also take optional layer (id or name) and frame; by default they draw on the
current layer and frame. Palette index 0 is always transparent. Coordinates, frames and indices
start at 0.
Development
npm test # vitest, all packages
npm run build # core, server, editorpackages/core: document model, commands, history, render (no UI or network code).packages/server: MCP over stdio, plus HTTP and WebSocket on127.0.0.1:7777.packages/editor: Angular +<canvas>editor.
Design notes: docs/design.md. Plan: ROADMAP.md.
Set AHPIXELEDITOR_PORT to run the server on another port.
Licence
MIT © 2026 HsiaoJ0629. Third-party notices: THIRD_PARTY_NOTICES.md.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Pixel art for your game, from your coding agent. Generate sprites, items and tiles in your game's style (64 to 1024 px), make variants, reskins and N/E/S/W directions, then edit everything in a full pixel art editor that syncs into your project. Works with Claude, Claude Code, Cursor and ChatGPT; sign in with OAuth, no API key.
A pixel-art studio your AI draws in, live: sprites, characters, tilesets, game exports.
Free pixel and tileset editor, no account: hand-edit sprites, animations and Wang tilesets in chat
Generate, edit, style-match, turn, and animate game-ready pixel art at exact sizes.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceLets Claude drive a pixel art editor's canvas by creating 16/32/64px canvases, drawing rows, pixels, lines and rectangles, generating AI roughs, and exporting PNGs, with every change reflected live in the running app.1MIT
- AlicenseBqualityBmaintenanceEnables Claude to drive a live or headless Aseprite editor to create and edit pixel art, inspect the canvas, animate, run QA checks, and export game assets to Godot or Unity with safe one-undo edits.194133 PyPIMIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude Code to create, preview, validate, and iterate on pixel-art sprites using locked palettes, precise drawing and shading tools, frame animation, and PNG or Godot SpriteFrames export. Supports a feedback loop with visual previews and validation, while allowing hand polishing in Pixelorama.MIT
- AlicenseNot gradedqualityCmaintenanceEnables hand-editing of pixel-art sprites, animations, and Wang autotile tilesets directly inside Claude conversations, via interactive editor cards in chat apps and side panes in Claude Code. Edited results are handed back to Claude, which can write them into the project's files.MIT