Aseprite Studio MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ASEPRITE_PATH | No | Path to the Aseprite executable. Default is auto-detected. | |
| ASEPRITE_MCP_MODE | No | Server mode: auto (Live when connected, else Staged), live, or staged. Default is auto. | |
| ASEPRITE_MCP_WORKDIR | No | Base directory for resolving relative paths. Default is process.cwd(). | |
| ASEPRITE_MCP_WS_HOST | No | WebSocket server bind host. Default is 127.0.0.1. | |
| ASEPRITE_MCP_WS_PORT | No | WebSocket server port (0 for ephemeral OS port). Default is 49210. | |
| ASEPRITE_MCP_DATA_DIR | No | Storage for staged sessions, undo snapshots, and backups. Default is ~/.aseprite-studio-mcp. | |
| ASEPRITE_MCP_WS_TOKEN | No | Optional shared auth token between Aseprite extension and server. Default is empty. | |
| ASEPRITE_MCP_AUTOCOMMIT | No | Automatically save/commit after each mutation (still creates backups). Default is false. | |
| ASEPRITE_MCP_TIMEOUT_MS | No | Timeout per headless CLI run in milliseconds. Default is 120000. | |
| ASEPRITE_MCP_WS_ENABLED | No | Enable/disable the local WebSocket Live Bridge server. Default is true unless mode is staged. | |
| ASEPRITE_MCP_ALLOWED_DIRS | No | Allowed workspace directories, separated by ; on Windows or : on macOS/Linux. Default is empty, meaning unrestricted. | |
| ASEPRITE_MCP_BACKUP_LIMIT | No | Max rollback backups kept per file. Default is 20. | |
| ASEPRITE_MCP_HISTORY_LIMIT | No | Max undo/redo snapshots kept per staged session. Default is 50. | |
| ASEPRITE_MCP_LIVE_TIMEOUT_MS | No | Timeout per Live Bridge RPC in milliseconds. Default is 30000. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Aseprite Studio MCP — dual-mode pixel-art server (Live WebSocket GUI Bridge + Safe Staged CLI). Core workflow:
Check
aseprite_statusif unsure whether Live mode is active. In Live mode,filealso accepts '@active', '@index:N', or '@name:Sprite-0001'.Plan palettes first with
manage_palette(generate_rampfor hue-shifted cool shadows / warm highlights, orload_presetfor retro palettes).Organize sprites into semantic layers (Shadow, Body, Head, Equipment, FX) so animation parts move independently.
Combine multi-step edits into
batch_opswithpreview: truefor speed and single-step undo (native Ctrl+Z in Live, snapshot journal in Staged).Inspect visually after each pass with
render_preview(regionto zoom into details,onion: truefor motion,grid: truefor alignment).Shade with one consistent light direction using
apply_effect(dither_gradientwithmaskToSolid: true,adjust_hsl) andadd_outlinefor silhouette readability.Animate with
animate_cels(propagate,tween_position/tween_opacitywith easing,oscillate,duplicate_rangewithreverse: true).QA before committing with
analyze_sprite(lintfor stray pixels/islands,color_statsfor palette drift,compare_frames,get_bounds,audit_animation).Persist edits via
commit_changes(automatically creates a rollback backup; checks disk conflicts in Staged mode).
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| aseprite_statusB | Inspect server mode (auto/live/staged), Live WebSocket Bridge connection & open sprites in Aseprite GUI, Aseprite binary path, active staged sessions, undo/redo journal, and disk conflict status. |
| aseprite_liveB | Control the real-time Aseprite Live WebSocket Bridge: switch server mode (auto/live/staged), inspect bridge connection, ping latency, or list/open/activate/save/close open sprites in Aseprite GUI. In Live mode, any tool also accepts '@active', '@index:N', or '@name:Sprite-0001' as 'file'. |
| commit_changesA | Persist changes to disk with automatic pre-save rollback backup. In Staged mode: commits staged copy atomically with external disk conflict detection. In Live mode: saves the open sprite in Aseprite to disk (accepts path or '@active'). |
| discard_changesA | Discard uncommitted changes. In Staged mode: drops staged edits and journal without modifying disk. In Live mode: closes unsaved modifications and reloads the sprite cleanly from disk. |
| undo_redoB | Undo or redo recent edits. In Staged mode: steps through the snapshot journal. In Live mode: invokes Aseprite's native Ctrl+Z / Ctrl+Y undo stack directly on the open sprite. |
| manage_backupsA | List automatic pre-commit backups for a sprite or roll back the file on disk to a previous backup. |
| batch_opsA | Run multiple Aseprite operations atomically in a single Aseprite invocation and single undoable journal step. Ideal for drawing sprites, adding layers/frames/tags, and previewing in one call. |
| create_spriteA | Create a new .aseprite sprite in a staged session (call commit_changes to write to disk, or set autoCommit=true). |
| inspect_spriteB | Get full metadata for a sprite: dimensions, color mode, layers, cels, frames, durations, tags, slices, and palette size. |
| render_previewB | Render a crisp nearest-neighbor PNG preview of one or more frames directly as an image in the response (supports pixel grid, onion skin, single layer, and staged vs disk comparison). |
| get_pixelsB | Read pixels from a sprite region as an ASCII character grid + color legend (max 16,384 pixels). |
| transform_spriteC | Transform a sprite or cel: resize, crop, expand canvas, flip, rotate (90/180/270), or convert color mode. |
| manage_layerC | Add, delete, update, duplicate, merge down, or flatten layers and layer groups. |
| manage_celB | Clear, move (relative dx/dy or absolute x/y, plus opacity), or copy cels between frames and layers. |
| manage_framesB | Add frames (copied or empty), delete frames, or set frame durations (ms). |
| manage_tagsC | Create, update, or delete animation tags (idle, walk, attack, etc.). |
| draw_patternB | Draw pixel art from ASCII rows + a single-character color legend. Characters matching skipChar (default '.') and spaces leave existing pixels unchanged. |
| draw_pixelsC | Plot individual pixels at exact (x, y) coordinates. |
| draw_shapesC | Draw pixel-perfect line/polyline, rectangle, ellipse, filled polygon, or shaded isometric 3D box. |
| fill_areaC | Flood-fill an area (contiguous bucket fill or global color fill) with optional color tolerance. |
| replace_colorC | Swap one color for another across a single layer or all layers ('*') and chosen frames. |
| add_outlineB | Add a crisp 1px pixel-art outline (outside or inside, 4-way or 8-way diagonal) around non-transparent pixels. |
| manage_paletteB | Inspect/edit palette, load retro presets, generate hue-shifted shading ramps (generate_ramp), extract unique colors from pixels (extract), or quantize RGB pixels to a palette with optional ordered dithering (quantize). |
| export_assetB | Export a sprite to PNG frame(s), animated GIF, Sprite Sheet (PNG + optional JSON data), or separate per-layer PNGs (format='layers'). |
| run_luaB | Execute custom Aseprite Lua code against a sprite inside a staged snapshot or live app.transaction (safe & undoable). Globals |
| apply_effectC | Apply pixel-art shading & color effects: HSL adjustment, brightness/contrast, color invert, ordered Bayer dithering gradient/pattern, smooth/banded gradient rect, or 3x3 convolution filter. |
| edit_regionC | Move, copy, or erase rectangular pixel regions, or erase all pixels matching a color. |
| draw_textB | Draw or measure crisp pixel-art text using a built-in cross-platform 5x7 ASCII bitmap font (no external font files needed; supports drop shadow & 1px outline). |
| animate_celsB | High-level animation tools: propagate cels across frames, duplicate (and optionally reverse) a frame range, batch offset cels, tween cel position or opacity with easing, oscillate/bob cels for idle loops, or ensure missing cels exist. |
| analyze_spriteA | Inspect & critique pixel art quality: diff two frames (compare_frames), measure drawn bounding boxes & ground line (get_bounds), detect orphan/lone pixels & detached islands & empty cels (lint), compute color histogram & near-duplicate palette drift (color_stats), or audit animation layer coverage & tag overlaps (audit_animation). |
| manage_slicesC | List, create, update, or delete named sprite slices with optional 9-patch center rect and pivot point. |
| manage_tilemapB | Create and edit Aseprite tilemap layers & tilesets: create_layer, inspect info, add_tile slots, draw_tile artwork (ASCII rows+legend or pixels), set_tiles on grid (with optional flipX/flipY/flipD), or get_tile. |
| import_assetB | Import an external image file (PNG/GIF/BMP) onto a new or existing layer, or copy named image layers from another .aseprite file into this sprite. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 33 tools
Most tools target a clearly distinct operation: drawing primitives (draw_pattern vs draw_pixels vs draw_shapes), region edits, effects, and per-resource managers (layer/cel/frame/tag/slice/tilemap) are well separated by their descriptions. A few boundaries blur: batch_ops vs run_lua both run arbitrary multi-step logic, edit_region's move/copy overlaps manage_cel, and commit_changes/discard_changes partially duplicate aseprite_live/aseprite_status save-close behavior.
The dominant convention is verb_noun (create_sprite, draw_shapes, manage_layer, export_asset, analyze_sprite) applied consistently across ~25 tools. Minor deviations exist: prefix-style aseprite_live/aseprite_status, the ambiguous verb_verb undo_redo, and noun-only batch_ops, but the overall pattern remains predictable.
33 tools is heavy, but the domain (a full pixel-art editor with modes, layers, cels, frames, tags, slices, tilemaps, palettes, export, and analysis) is genuinely broad and the tools are dense multi-operation bundles rather than one-op wrappers. Still, the surface is large enough that an agent must scan a lot of vocabulary to pick correctly.
The surface covers the full sprite lifecycle: create/inspect, draw/fill/replace/outline, transform, layers/cels/frames/tags/slices/tilemaps, palette management, import/export, preview rendering, quality analysis, backups, undo/redo, commit/discard, and a run_lua escape hatch for anything missing. No obvious dead ends remain for a pixel-art workflow.