
palette-swapper-mcp-lite
io.github.Atelier10e/palette-swapper-mcp-lite
Inspect and recolour pixel-art PNG sprites: palette, colour swaps, crisp scaling, palette export.
Documentation
Palette Swapper MCP Lite
Free MCP server that lets your AI coding agent (Claude Code, Cursor, Codex, Claude Desktop, Windsurf, any MCP client) look at and recolour pixel-art sprites (palette swaps): real PNG files on your disk, no image editor required.
Every tool that reads an image returns an upscaled preview, so the agent can actually see the sprite and check its own work.

Text version of that example: inspect_sprite on example/slime.png reports 16x16, 5 colours, 46.9% transparent with the palette #3aa048 (63 px), #141820 (40 px), #246e34 (23 px), #78d278 (6 px), #f0f0f0 (4 px). Then
{"name": "swap_colors", "arguments": {"path": "example/slime.png",
"mapping": {"#3aa048": "#b13e53", "#246e34": "#6e2038", "#78d278": "#ef7d57"}, "suffix": "_red"}}
returns Wrote: example/slime_red.png (92 px changed) and leaves the original untouched.
Why this one: unlike simplepixelart-mcp or palette-remap (which snap an image to a preset palette), it recolours a whole folder of animation frames with one exact colour mapping and shows a preview after every edit. Unlike the Aseprite MCP servers, it needs no Aseprite and no other app: it works directly on PNG files.
- One file:
palette-swapper-mcp-lite.mjs. Node.js 18+. Nonpm install, no API key, no network. - Runs locally on your files. It never overwrites a file unless you pass
overwrite: true. - Reads every PNG flavour (RGBA, RGB, greyscale, indexed, 1–16 bit, interlaced).
Tools
| Tool | What it does |
|---|---|
inspect_sprite | Size, exact palette (hex + pixel counts), % transparent, preview image |
swap_colors | Replace exact colours in one PNG or a whole folder of frames ({"#3aa048": "#b13e53"}) |
scale_sprite | Crisp nearest-neighbour upscale (×2…×16) or integer downscale |
export_palette | Save a sprite's palette as .gpl (Aseprite/GIMP/Krita), .hex or .png strip |
Install
One-click bundle (Claude Desktop and other MCPB clients): download palette-swapper-mcp-lite.mcpb from the latest release and open it. Listed in the official MCP Registry as io.github.Atelier10e/palette-swapper-mcp-lite.
Claude Code, straight from this repo (no download, no absolute path):
claude mcp add palette-swapper-lite -- npx -y github:Atelier10e/atlas-palette-swapper-mcp-lite
Single file (any MCP client), pinned to the v1.0.0 tag of this repo:
curl -LO https://raw.githubusercontent.com/Atelier10e/atlas-palette-swapper-mcp-lite/v1.0.0/palette-swapper-mcp-lite.mjs
sha256sum palette-swapper-mcp-lite.mjs
# f24ef0db2724203528c6dc6f46aba42397cadd8c688075ab9588c34468213d96
Claude Code with the downloaded file:
claude mcp add palette-swapper-lite -- node /absolute/path/to/palette-swapper-mcp-lite.mjs
Cursor (.cursor/mcp.json) / Claude Desktop (claude_desktop_config.json):
{ "mcpServers": { "palette-swapper-lite": { "command": "node", "args": ["/absolute/path/to/palette-swapper-mcp-lite.mjs"] } } }
Codex CLI (~/.codex/config.toml):
[mcp_servers.palette-swapper-lite]
command = "node"
args = ["/absolute/path/to/palette-swapper-mcp-lite.mjs"]
Then try: "Inspect example/slime.png, recolour the green to red, and upscale it ×8."
Limits
swap_colorsmatches exact colours only (no tolerance): runinspect_spritefirst to get the hex values.- Use absolute paths: relative paths are resolved from the folder the server was started in.
- PNG only (read and write). No GIF, Aseprite or PSD files.
Paid version
Palette Swapper MCP (4 €) adds colour variant generation, Lospec palette snapping, outlines and sprite-sheet slicing/packing.
About
Made by Atelier 10e. Issues and pull requests are welcome.
The PNG decoder was compared pixel by pixel with Pillow on 10 PNG variants (0 differing pixels). The example slime sprite is original and free to use.
MIT licence.
https://github.com/Atelier10e/atlas-palette-swapper-mcp-lite/releases/download/v1.0.0/palette-swapper-mcp-lite.mcpb# mcpb: https://github.com/Atelier10e/atlas-palette-swapper-mcp-lite/releases/download/v1.0.0/palette-swapper-mcp-lite.mcpb