About Aseprite AI Artist
Aseprite AI Artist is an MCP server published by with-pebbly in the Blockchain category: your coding agent paints pixel art in the Aseprite window you already have open. MCP server + skills for Claude Code, omp, Codex, Gemini CLI and Cursor — draws, looks at its work, animates and exports. Gallery and benchmark: pixeli.pebbly.space. Conduid read 19 tools from its source: cel, draw, export, frame, layer, look and 13 more. It is published to npm as @pebbly/aseprite-ai-artist and starts with npx.
The repository has 772 stars and 49 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v0.8.4 (24 Nov 2026): draw op grid takes file instead of rows: a text file with the same rows, one per line. It follows v0.8.3 (9 Nov 2026), and the 5 most recent releases go back to v0.8.0 (7 Oct 2026). It passes all 4 static checks Conduid ran on the repository. Its topics include aseprite, gamedev, lua, pixel-art and spritesheet.
Install
claude mcp add aseprite-ai-artist -- npx -y @pebbly/aseprite-ai-artistnpx -y @pebbly/aseprite-ai-artistgit clone https://github.com/with-pebbly/aseprite-ai-artistTools (19)
celManage cels — one layer's image on one frame. Ops: 'list', 'create', 'clear', 'delete', 'move', 'copy', 'link', 'unlink', 'set' (position/opacity), 'tween', 'oscillate'. 'move' is how you shift a whole limb between frames without redrawing it; 'link' shares one image across frames so a static part of a cycle stays in sync. 'tween' interpolates position or opacity between two frames with an easing curve; 'oscillate' adds a sinusoidal position offset over a frame range — both fill in any missing in-between cels from the start cel, in one transaction.| Parameter | Type | Description |
|---|---|---|
| amplitudeX | number | For 'oscillate'. |
| amplitudeY | number | For 'oscillate'. |
| dx | number | Relative move. |
| dy | number | |
| easing | string | For 'tween'. |
| frames | array | For 'link' across a range. |
| fromFrame | number | For 'tween'/'oscillate': the start frame. |
| op * | string | |
| opacity | number | |
| period | number | For 'oscillate', in frames. Default: the whole fromFrame..toFrame span. |
| phase | number | For 'oscillate': 0-1 fraction of one period. |
| property | string | For 'tween'. |
| to | any | For 'tween': end value — {x,y} for property 'position', 0-255 for 'opacity'. |
| toFrame | number | |
| toLayer | string | |
| x | number | Cel origin, for 'set' and 'move'. |
| y | number |
drawApply a batch of drawing operations to one cel, as a single undoable action. Ops: pixels, line, polyline, rect, ellipse, fill, replace, dither, gradient, clear, blit, text, grid, image. Batch aggressively — a whole sprite in one call is normal and correct, and it means the user can undo your work with one Ctrl+Z. Set `paletteLock` (default true) to snap every colour to the sprite's palette by perceptual distance before anything is written, so you cannot silently widen a curated palette. Ops run in array order, so paint fills before outlines and outlines before highlights. 'text' is laid out here from a bitmap font and expanded to plain pixels before it reaches Aseprite — pass `measureOnly: true` with only 'text' ops to get each one's ink bounds without touching the sprite, e.g. to centre a label first. 'grid' paints a picture written as text — one character per pixel, a legend mapping characters to colours, the same shape `look op="ascii"` returns — so you can see the whole silhouette while you write it instead of composing it from shapes. It is the easiest way to draw a small sprite or a whole animation frame, and to edit one: read a region with `look op="ascii" layer=… rulers=false`, change the rows, and send them back as a grid at the region's x/y. If a script of yours produced the art, don't paste it: pass the rows as grid `file`, or the 1× PNG as 'image' — same palette lock, same erase/skip rule.| Parameter | Type | Description |
|---|---|---|
| createCel | boolean | Create the cel if the target layer/frame has none. |
| label | string | Name shown in Aseprite's undo history. Describe the intent, e.g. 'shade helmet'. |
| measureOnly | boolean | Every op must be 'text'. Returns each one's ink bounds without calling Aseprite at all — use to size a panel or centre a label before actually drawing it. |
| ops * | array | Applied in order, in one transaction. |
| paletteLock | boolean | Snap every colour to the nearest palette entry (CIELAB ΔE). Set false only when the user asked to introduce new colours. |
| selectionOnly | boolean | Clip every op to the current selection. |
exportWrite game-ready files. Ops: 'png' (single frame), 'gif' (animation), 'spritesheet' (packed sheet plus a JSON atlas with per-frame and per-tag data), 'frames' (numbered PNGs), 'aseprite' (save a copy of the source). Spritesheet is what an engine actually consumes: pass `sheetType` and `byTag` to control layout. Exporting does not save the working document — use sprite_manage op 'save' for that.| Parameter | Type | Description |
|---|---|---|
| byTag | boolean | Split the sheet by animation tag. |
| includeJson | boolean | Write a sibling JSON atlas for 'spritesheet'. |
| layers | array | Export only these layers (names or group paths; a group brings its children). png, gif, frames, spritesheet; 'aseprite' refuses it. |
| op * | string | |
| padding | number | Pixels between frames; prevents bleed at non-integer zoom. |
| path * | string | Output file path. For 'frames', a pattern containing {frame}, e.g. 'walk_{frame}.png' — Aseprite expands it into one file per frame, numbered from 0. |
| scale | number | Integer upscale, nearest-neighbour. |
| sheetType | string | Spritesheet layout. |
| tags | array | Export only the frames these tags cover. gif, frames, spritesheet; 'png' and 'aseprite' refuse it. An unknown tag is refused. |
| trim | boolean | Trim transparent margins; the atlas keeps the original offsets. |
frameManage animation frames. Ops: 'list', 'add', 'duplicate', 'delete', 'set_duration', 'activate', 'reorder'. Durations are milliseconds per frame and carry most of the life in a cycle — hold a contact pose longer than a pass pose. Use `count` to add several at once and `durations` to set a whole cycle's timing in one call.| Parameter | Type | Description |
|---|---|---|
| afterFrame | number | Insert position. Default: at the end. |
| count | number | |
| durationMs | number | |
| durations | array | Per-frame durations from frame 1, for 'set_duration'. |
| linkCels | boolean | For 'duplicate': share the cel image instead of copying it, so edits apply to both. |
| op * | string | |
| toIndex | number | For 'reorder': the 1-based position `frame` ends up at. Its cels and duration move with it; tag ranges stay where they are. |
layerManage layers. Ops: 'list', 'create', 'rename', 'delete', 'reorder', 'set' (visibility/opacity/blend/lock), 'group', 'ungroup', 'merge', 'duplicate', 'activate'. Pass `batch` to run several in one undoable action — building a rig in one call is the normal use. 'duplicate' takes an optional `toSprite` to copy the layer's cels into another OPEN sprite instead of this one, by frame index; frames past the target's frame count are dropped and reported. A character that will be animated wants its parts on separate layers (head, torso, arm-far, arm-near, leg-far, leg-near) before any frames exist; splitting baked pixels apart later is far more work.| Parameter | Type | Description |
|---|---|---|
| batch | array | Operations applied in order, in one undoable action. Same shape as the single-op arguments. |
| editable | boolean | |
| index | number | Target stack position for 'reorder'; 0 is bottom. |
| name | string | |
| names | array | For 'merge' and bulk 'group'. |
| newName | string | |
| opacity | number | |
| parent | string | Group layer to nest under. |
| toSprite | string | For 'duplicate': copy the layer into another OPEN sprite instead of this one. |
| visible | boolean |
lookSee what is actually on the canvas. Ops:
• 'preview' — a nearest-neighbour upscaled PNG of the active frame (~1024px long edge). Use for overall read: silhouette, colour, whether it looks like the thing.
• 'ascii' — an exact text grid, one glyph per pixel with a colour legend and coordinate rulers. Use to verify precise pixel positions and values, to count cells, or on any client without vision. Reads up to the whole canvas; pass a region to crop. Glyphs are bound to palette indices, so every region and frame of a sprite agrees on what a glyph means; each read's legend lists only the colours it contains, so merge legends when rows from one piece go into another. Only colours outside the palette (listed in `offPalette`) get per-read glyphs. `rulers=false` prints the bare rows, which `draw` kind 'grid' takes back as-is: read a layer, edit the rows, send them at the same x/y.
• 'filmstrip' — every frame composited into one image. The only reliable way to review an animation, since a vision model reads just the first frame of a GIF.
• 'onion' — the target frame at full opacity over ghosted neighbouring frames, oldest-first. Use to check in-betweens and spacing while animating, without stepping through frames one at a time. Over an opaque background the target hides every ghost — pass `layer` to onion-skin just the part that moves.
• 'diff' — a pixel-level text diff between two frames: '.' unchanged, '-' erased, glyph = the new colour. Use it to confirm exactly what an edit touched.
• 'compare' — the reference layer (left, full opacity) beside the art without any reference layer (right), same frame, same scale. Use it when drawing from a concept or storyboard: name the few largest mismatches and fix only those.
Draw, then look, then fix. Do not report a sprite finished without looking at it.| Parameter | Type | Description |
|---|---|---|
| framesAfter | number | Onion: ghost frames after the target. |
| framesBefore | number | Onion: ghost frames before the target. |
| fromFrame | number | Diff: the earlier frame. |
| ghostOpacity | number | Onion: opacity of the ghosted (non-target) frames. |
| layer | string | Read a single layer instead of the composited image. Honoured by preview, ascii, diff, filmstrip and onion; compare has its own `reference`. |
| op | string | |
| reference | string | Compare: the reference layer. Default 'reference'. |
| region | object | Crop. Omit to read the whole canvas. |
| rulers | boolean | ascii: false drops the coordinate rulers and row labels and returns `gridRows` instead of `text`: rows you can edit and pass straight to `draw` kind 'grid' with the reported origin. |
| scale | number | Integer upscale for image ops, 1-128 (clamped so the output stays under ~2048px). Omit it — the automatic choice targets a ~1024px long edge, which is what a vision model can actually read. |
| toFrame | number | Diff: the later frame. |
paletteRead and shape the sprite's palette. Ops:
• 'get' — current palette with per-colour usage counts.
• 'set' — write specific indices, or replace the palette wholesale.
• 'preset' — load a bundled palette by key: ~2000 of them, the classics (pico8, gameboy, cga, nes…) and the most-downloaded on Lospec (sweetie-16, endesga-32, resurrect-64, aap-64…). An unknown key or a name answers with the matching keys, so 'preset: "gameboy"' or 'preset: "endesga"' is a search.
• 'load' — read a .gpl/.hex/.pal/.png palette file from disk.
• 'ramp' — generate a hue-shifted ramp from a base colour and append it. Shadows rotate toward blue, highlights toward orange; a ramp that only changes brightness is the clearest tell of machine-made pixel art.
• 'analyze' — report ramp structure, contrast, near-duplicate entries and colours used in the art that are not in the palette.
• 'extract' — replace the palette with one quantized from the art itself (RGB sprites only). Use to derive a curated palette from a reference image imported at full colour.
Decide the palette before drawing. Retro-fitting one onto finished art means repainting.| Parameter | Type | Description |
|---|---|---|
| colors | array | For op 'set': the colours to write. |
| maxColors | number | For op 'extract': target palette size. |
| op * | string | |
| path | string | Palette file for op 'load'. |
| preset | string | Preset key for op 'preset'. |
| remapArt | boolean | When replacing a palette, repaint existing pixels to the nearest new colour instead of leaving them off-palette. |
| replace | boolean | For op 'set'/'preset': replace the whole palette instead of merging. |
| spread | number | How far the ramp reaches into shadow and light. |
| startIndex | number | For op 'set': where `colors` starts. Ignored when `replace` is true. |
| steps | number | Ramp length. |
preflightCheck that Aseprite is connected and report what this session can do. Call this FIRST in any pixel-art task and stop if `ready` is false — every editing tool writes into the user's open Aseprite window ('live') or into a batch Aseprite this server owns ('headless'), and there is no useful fallback when that Aseprite is not there. Pass `mode` to choose which one the session works with from now on — only because the user asked (e.g. --headless) or the request plainly needs no window (files for CI, a batch of assets). Never switch to get around a live session that is not ready: ask the user instead. Switching loses nothing; each side keeps its documents.| Parameter | Type | Description |
|---|---|---|
| mode | string | Switch the session to this Aseprite before checking. Omit to keep the current one. |
read_pixelsRead a rectangular region as structured data: a list of distinct colours plus a row-major index grid. Use this when you need to compute over pixels (sample a palette from art, find a silhouette edge, copy a region) rather than just look at them. For eyeballing, 'look' is cheaper.| Parameter | Type | Description |
|---|---|---|
| composite | boolean | Read the flattened image. False reads only the target layer's cel. |
| region | object | Omit to read the whole canvas. |
recolorChange colours in a region by intent, staying palette-legal. Ops:
• 'shade' — darken or lighten with proper hue shifting (shadows cool, highlights warm). Use this instead of picking a darker hex by hand.
• 'snap' — pull off-palette pixels onto the nearest palette colour by perceptual (CIELAB) distance.
• 'replace' — swap one exact colour for another.
• 'hue_shift' — rotate hue, e.g. to make a colour variant of a finished sprite.
• 'desaturate' — drop toward grey, useful for a value check.
Operates on a region's distinct colours in one pass, so a 64×64 recolour is one undo step, not four thousand.| Parameter | Type | Description |
|---|---|---|
| amount | number | For 'shade': negative darkens, positive lightens. One ramp step is roughly 0.15. |
| clampToPalette | boolean | Snap the result back onto the palette. Turn off only when growing the palette deliberately. |
| degrees | number | For 'hue_shift'. |
| op * | string | |
| region | object | Omit to affect the whole cel. |
| selectionOnly | boolean | |
| strength | number | For 'desaturate'. |
referenceBring an external image into the sprite as a reference layer, so you can trace proportions or sample colours from it. Ops: 'import' (place an image on a locked, semi-transparent layer above the art), 'sample_palette' (read its dominant colours without importing), 'list', 'remove'. A concept sheet or storyboard arrives as one image: `region` crops one panel of it, and `grid` cuts it into panels and puts panel i on frame i of a single reference layer, so each animation frame is drawn over its own storyboard panel. Importing at a different size uses nearest-neighbour; a reference scaled down to 32×32 is a guide for proportion and pose, never a finished sprite.| Parameter | Type | Description |
|---|---|---|
| colors | number | For 'sample_palette'. |
| fit | string | How to size the image (or each panel) against the canvas. |
| grid | object | Panels actually used, read row-major. Default: columns × rows. |
| name | string | Layer name. Default: 'reference'. |
| op * | string | |
| opacity | number | |
| path | string | Image file to read. |
| region | object | Use only this rectangle of the SOURCE image, in its own pixels — one panel of a concept sheet. Applies to 'import' and 'sample_palette'. |
| x | number | |
| y | number |
run_luaExecute a Lua script inside the running Aseprite session and return its result. This is an escape hatch for operations the typed tools do not cover — prefer a typed tool whenever one fits, because this bypasses palette locking, undo labelling and every safety check. The script runs with full Aseprite API access against the user's open document. Wrap mutations in app.transaction so the user can undo them in one step. Return a value to receive it as JSON.| Parameter | Type | Description |
|---|---|---|
| label | string | Undo-history label for any mutation. |
| script * | string | Lua source. `sprite` is bound to the target sprite. |
| timeoutMs | number |
selectRead or change the active selection. Ops: 'get', 'none', 'all', 'rect', 'ellipse', 'color' (select every pixel matching a colour), 'invert', 'grow', 'shrink'. A selection scopes draw, transform and recolor, which is usually cheaper and safer than masking by hand.| Parameter | Type | Description |
|---|---|---|
| amount | number | Pixels, for grow/shrink. |
| contiguous | boolean | For op 'color'. |
| mode | string | How this selection combines with the existing one. |
| op * | string | |
| tolerance | number | Largest per-channel difference (0–255) still counted as the clicked colour. RGB sprites only; indexed and grayscale fills stay exact. |
sprite_infoFull structured state of a sprite: dimensions, colour mode, palette, every layer (with opacity, blend mode, visibility, group nesting), every frame with its duration, animation tags, slices and the current selection. Read this before editing — guessing at layer names or frame counts is the most common way an agent corrupts someone's file.| Parameter | Type | Description |
|---|---|---|
| includePalette | boolean | Include the full palette as hex. |
| includeSlices | boolean |
sprite_manageOpen, create, focus, resize, save and close sprites in the running Aseprite session. Ops: 'list' (open documents), 'new', 'open', 'activate', 'save', 'save_as', 'close', 'resize_canvas', 'set_properties', 'slice_create', 'slice_update', 'slice_delete'. Canvas resize keeps existing pixels — pass an anchor to say where they land. Slices name a rectangular region of the canvas for an engine to read back — a 9-patch panel's `center`, or a hotspot's `pivot`.| Parameter | Type | Description |
|---|---|---|
| anchor | string | Where existing pixels sit after 'resize_canvas'. |
| color | string | For slice ops: slice colour in the timeline, #rrggbb. |
| colorMode | string | For 'new'. Indexed keeps a sprite honest about its palette. |
| force | boolean | Allow 'close' to discard unsaved changes. Ask the user before setting this. |
| height | number | |
| name | string | Slice name. Required for 'slice_create'; identifies it for update/delete. |
| op * | string | |
| path | string | File path for 'open' and 'save_as'. |
| pivot | object | For slice ops. |
| pixelAspect | string | e.g. '1:1' or '1:2'. |
| width | number |
tagManage animation tags — the named frame ranges a game engine imports as 'idle', 'walk', 'attack'. Ops: 'list', 'create', 'update', 'delete'. Tag every cycle before export; an untagged spritesheet is a pile of frames the engine cannot address.| Parameter | Type | Description |
|---|---|---|
| color | string | Tag colour in the timeline, #rrggbb. |
| direction | string | |
| from | number | First frame, 1-based, inclusive. |
| name | string | |
| newName | string | |
| op * | string | |
| repeats | number | Loop count; 0 means forever. |
| to | number | Last frame, 1-based, inclusive. |
tilesetWork with Aseprite tilemap layers. Ops:
• 'list' — tilesets in the sprite.
• 'create_layer' — a new empty tilemap layer on a given grid.
• 'get' — tile count and, with a path, the tiles as one packed PNG.
• 'stamp' — place tiles by grid coordinate. x/y are grid cells, not pixels.
• 'pack' — turn a hand-painted mockup layer into a tileset plus a tilemap that reconstructs it exactly. Deduplicates identical cells; `tolerance` also merges near-identical ones. The canvas must be a whole number of tiles, and the source layer is hidden rather than deleted so you can compare.
• 'export' — writes the packed PNG plus the file the engine reads: 'tiled' (.tsj tileset and a .tmj map that uses it), 'godot' (Godot 4 .tres TileSet), or 'json' (tile grid plus the tilemap layout).
Painting a level by hand and packing it produces better tilesets than authoring tiles in isolation, because you see the whole picture while drawing. `layout: 'blob47'` adds a Tiled wangset for autotiling, and assumes the tileset is authored in canonical blob47 order after the empty tile — it refuses rather than writing a wangset that would autotile wrongly. Requires an extension build advertising the 'tileset' feature — check preflight first.| Parameter | Type | Description |
|---|---|---|
| format | string | |
| layout | string | Autotile layout for 'export'. |
| name | string | |
| op * | string | |
| path | string | Output path for 'export' and 'get'. |
| tileHeight | number | |
| tileWidth | number | |
| tiles | array | For 'stamp'. x/y are tile-grid cells, not pixels. |
| tolerance | number | For 'pack': maximum per-channel difference at which two cells count as the same tile. 0 means exact, which is also much faster — anything above 0 compares every cell against every tile found so far. |
transformMove, flip, rotate or scale pixels on ONE cel — the target layer's image on the target frame. Ops: 'translate', 'flip', 'rotate', 'scale', 'outline', 'crop_to_content'. To transform part of a cel, crop the region out with `draw` op 'blit' first; there is no selection-scoped transform. Rotation is only clean at 90° multiples — arbitrary angles destroy pixel art, so anything else needs `allowLossy`. Scaling is nearest-neighbour and integer-only for the same reason.| Parameter | Type | Description |
|---|---|---|
| allowLossy | boolean | Permit a non-90° rotation or non-integer scale. Ask the user first. |
| angle | number | Degrees, clockwise. For 'rotate'. |
| axis | string | For 'flip'. |
| diagonals | boolean | For 'outline'. Treat diagonal neighbours as touching too (8-neighbour instead of 4). |
| dx | number | |
| dy | number | |
| factor | number | For 'scale'. |
| op * | string | |
| side | string | For 'outline'. 'outside' paints transparent pixels touching opaque ones, growing the cel by one pixel each way. 'inside' recolours opaque pixels that touch transparency instead, same size in and out. |
| thickness | number |
validateLint a sprite against pixel-art rules and report concrete, located problems. Checks: off-palette colours, orphan/stray pixels, broken or doubled outlines, banding, semi-transparent (soft or resized) pixels, empty layers, untagged frames and uniform frame timing; `expect` adds per-layer frame ranges and layers that must not overlap. Symmetry and cross-frame volume drift are not checked — judge those with `look` op 'ascii' and 'filmstrip'. Run this before telling the user a sprite is finished. It answers 'is this actually done' with evidence rather than optimism.| Parameter | Type | Description |
|---|---|---|
| checks | array | Omit to run everything. |
| expect | object | Per layer, the [from,to] frame ranges (1-based, inclusive) it should hold ink in. |
| strict | boolean | Treat style warnings as failures. Use when the user asked for a specific discipline. |
Security checks
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.8K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json and pnpm-lock.yaml.
2 checks have not been run yet.
Releases
README
The repository's README runs to about 1.8K words, fetched 2 days ago. The original in the repository is authoritative.
Read full README