pixel-art-mcp

v0.2.0
io.github.comficker/pixel-art-mcp Checked 3 days ago Published 15 days ago

Turn images into pixel art, extract and remap palettes, and upscale sprites without blur.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

pixelate_image Image to pixel art

Turn a photo or illustration into pixel art: shrink it to a pixel grid, reduce it to a few colours (or a named palette) and save a PNG. Accepts a local PNG/JPEG path or an http(s) URL.

ParameterTypeDescription
input *stringPath or URL of a PNG or JPEG image
colorsintegerNumber of colours when no palette is given
outputstringWhere to save the PNG (defaults next to the input)
palettestringPalette id (e.g. pico-8, game-boy-dmg, cga-16, sweetie-16; see list_palettes) or hex colours like "#1a1c2c,#5d275d"
scaleintegerUpscale factor for the saved PNG, nearest neighbour (e.g. 8 for a crisp preview)
widthintegerWidth of the pixel grid in pixels (height keeps the aspect ratio)

extract_palette Extract palette

Pull the main colours out of an image (median cut). Returns hex codes plus a GIMP/Aseprite .gpl palette.

ParameterTypeDescription
input *stringPath or URL of a PNG or JPEG image
colorsintegerHow many colours to extract

remap_palette Recolour to a palette

Recolour an existing pixel art image so every pixel uses a colour from the given palette (e.g. PICO-8 or Game Boy). Size is kept.

ParameterTypeDescription
input *stringPath or URL of a PNG or JPEG image
palette *stringPalette id (e.g. pico-8, game-boy-dmg, cga-16, sweetie-16; see list_palettes) or hex colours like "#1a1c2c,#5d275d"
outputstringWhere to save the PNG

upscale_pixel_art Upscale without blur

Scale pixel art up by a whole number with nearest neighbour, so pixels stay sharp (for previews, store pages or social posts).

ParameterTypeDescription
input *stringPath or URL of a PNG image
outputstring
scaleinteger

list_palettes List built-in palettes

List the built-in pixel art palettes with their ids and colour counts.

get_palette Get a palette

The colours of a built-in palette (e.g. pico-8, game-boy-dmg, cga-16, ega-64), as hex codes or a GIMP/Aseprite .gpl file.

ParameterTypeDescription
id *stringPalette id, e.g. "pico-8" (see list_palettes)
formatstringhex: one line of #RRGGBB codes; gpl: a GIMP/Aseprite palette file

search_palettes Search palettes

Find built-in palettes by name and/or exact number of colours.

ParameterTypeDescription
colorsintegerOnly palettes with exactly this many colours
querystringPart of a name or id, e.g. "game boy" or "cga"