Palette Swapper MCP
Pixel-Art-Sprite-Tools für KI-Coding-Agenten: Paletten untersuchen, Farben austauschen, Farbvarianten erstellen, auf eine Palette abstimmen, 1-Pixel-Konturen hinzufügen, gestochen scharf skalieren sowie Sprite-Sheets mit einem Phaser/Godot-Atlas zuschneiden und packen. Funktioniert direkt mit PNG-Dateien, kein Bildbearbeitungsprogramm erforderlich. Eine Node.js-Datei, offline. Kostenlose Lite-Version (MIT, 4 Tools) und Vollversion (9 Tools) auf itch.io.
Dokumentation
Palette Swapper MCP: a pixel-art sprite MCP server for AI coding agents
Palette Swapper MCP is a local MCP server (one Node.js file, no install, offline) that lets Claude Code, Cursor, Codex or Claude Desktop recolour, palette-swap, outline, scale and pack your pixel-art PNG sprites into sheets with a JSON atlas. The full version (9 tools) costs 4 € on itch.io; a free MIT Lite version has 4 tools. Unlike MCP servers that remote-control Aseprite or Godot, it works directly on PNG files.
Pixel-art sprite tools for your AI coding agent. Ask Claude Code, Cursor or Codex in plain words, and it recolours, outlines, palette-snaps, scales and packs your real PNG files, then checks a preview of every result.
Get it on itch.io · 4 € Try the free browser version first
One prompt, two tool calls: 5 hue variants that keep the shading, packed into a sheet with a Phaser JSON atlas and Godot hframes/vframes. Real output, shown ×12.
Why give your AI coding agent a sprite MCP server?
Because coding agents cannot see pixels: this server gives them 9 tools that edit PNG sprites exactly and return a preview, so the agent can check its own work.
Your agent can finally see sprites Every tool returns an upscaled preview image, so the agent checks its own work instead of guessing from hex codes.
No app to drive Most gamedev MCP servers remote-control Aseprite or Godot. This one works straight on PNG files: nothing else to install or keep open.
One file, offline A single .mjs file, Node 18+. No npm install, no API key, no network, no account. It never overwrites a file unless asked.
What can the 9 tools do?
Inspect, recolour, make variants, snap to a palette, outline, scale, slice and pack sprite sheets, and export palettes.
inspect_sprite | Size, exact palette (hex + pixel counts), % transparent, preview |
|---|---|
swap_colors | Replace exact colours in one sprite or a whole folder of frames |
make_variants | Many colour variants at once: named mappings or hue shifts that keep shading; can recolour only some colours (just the shirt) |
apply_palette | Snap any image to a palette (.hex,.gpl or.png strip, e.g. downloaded from Lospec), perceptual OKLab matching |
add_outline | 1-px outline in any colour, with or without diagonals |
scale_sprite | Crisp ×2…×16 upscale for store pages, or integer downscale |
slice_sheet | Cut a sheet into frames (margin/spacing), skips empty frames |
pack_sheet | Pack frames into a sheet + JSON atlas (Phaser) and Godot hframes/vframes |
export_palette | Save a palette as.gpl (Aseprite/GIMP/Krita),.hex or.png |

Chain tools in one request: inspect → outline → snap to your palette → ×8 for the store page.
How do you install it in Claude Code, Cursor or Codex?
Save the single.mjs file, then register it as a local MCP server with one command (Node.js 18 or later).
Save palette-swapper-mcp.mjs somewhere permanent, then:
claude mcp add palette-swapper -- node ~/tools/palette-swapper-mcp.mjs
Cursor / Claude Desktop (mcp.json / claude_desktop_config.json):
{ "mcpServers": { "palette-swapper": { "command": "node", "args": ["/absolute/path/to/palette-swapper-mcp.mjs"] } } }
Is there a free version?
Yes: the Lite version is free (MIT) with 4 of the 9 tools.
Want to try it with your agent first? palette-swapper-mcp-lite.mjs is free (MIT) and has 4 of the 9 tools: inspect_sprite, swap_colors, scale_sprite, export_palette. Same install, same single file. The full version adds make_variants, apply_palette, add_outline, slice_sheet and pack_sheet.
curl -O https://atelier10e.github.io/agents-web/agent-a/palette-swapper-mcp/palette-swapper-mcp-lite.mjs
claude mcp add palette-swapper-lite -- node "$PWD/palette-swapper-mcp-lite.mjs"
Codex CLI, Windsurf and others: see the README in the download. An example sprite and palette are included so you can test right away.
Real example with the Lite version: inspect_sprite on the bundled example/slime.png reports 16x16, 5 colours, 46.9% transparent. Then swap_colors with {"#3aa048": "#b13e53", "#246e34": "#6e2038", "#78d278": "#ef7d57"} returns Wrote: example/slime_red.png (92 px changed): a red palette swap of the green slime, original untouched.
Source code, README and issues: github.com/Atelier10e/atlas-palette-swapper-mcp-lite · directory listing: Glama. Limits: swap_colors matches exact colours only (run inspect_sprite first), use absolute paths, PNG only.
MCP server, browser tool or Aseprite: which should you use?
Use the MCP server when an AI agent already edits your project, the free browser tool for a few sprites by hand, and Aseprite when you also draw.
| Option | Price | Where it runs | Batch on folders | Best for |
|---|---|---|---|---|
| Palette Swapper MCP (this page) | 4 € (Lite: free) | Local, inside Claude Code, Cursor, Codex | Yes | Projects where an AI agent edits files |
| Palette Swapper (browser) | Free | Browser, nothing uploaded | Yes, several PNGs at once, ZIP export | Manual colour variants |
| Aseprite | $19.99 (Steam, checked 4 Dec 2026) | Desktop app | Through Lua scripts | Drawing and animating sprites |
What else do people ask?
Whether it draws new art (no, it edits your existing PNGs) and which agents it works with (any MCP client).
What is Palette Swapper MCP?
A local MCP server (one Node.js file) that gives AI coding agents such as Claude Code, Cursor and Codex 9 tools to edit pixel-art PNG sprites: colour variants, palette swaps, snapping to a palette, 1-px outlines, crisp scaling, slicing and packing sprite sheets with a JSON atlas.
Does it draw new art?
No. It edits and organises the PNGs you already have. It does not generate images and does not open.aseprite files.
Which PNGs does it read?
All of them: RGBA, RGB, greyscale, indexed, 1–16 bit, interlaced. Output is 8-bit RGBA PNG.
Is there a free version?
Yes. Palette Swapper MCP Lite is free (MIT) with 4 of the 9 tools: inspect_sprite, swap_colors, scale_sprite and export_palette.
Can I use the results in a commercial game?
Yes, the files you make are yours. The licence covers use of the tool on your own machines.
Guide: How to make palette swaps of pixel-art sprites (Aseprite, Krita, GIMP, Godot, free tools)