Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ASEPRITE_PATHNoPath to the Aseprite executable. Standard Steam and standalone locations on Windows, macOS and Linux are checked, then PATH. Auto-detected by default.
ASEPRITE_TIMEOUTNoSeconds before a single Aseprite invocation is aborted.120
ASEPRITE_MCP_ROOTSNoFolders the server may read and write, separated by ';' on Windows and ':' elsewhere. Point this at your game projects. Defaults to your home folder.
ASEPRITE_MCP_ALLOW_LUANoSet to 1 to enable the run_lua tool. Disabled by default.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Tools for building pixel-art game assets with Aseprite and exporting them to Godot 4. Frames are 1-based. Colors are '#rrggbb' or '#rrggbbaa'. All paths must be absolute and inside: /root. Typical flow: create_sprite -> draw (the 'rows' op suits pixel art) -> add_frames / tag_animation -> preview to check the result -> export_godot_spriteframes or export_tileset.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
create_spriteC

Create a new .aseprite file.

palette is a list of '#rrggbb' colors; using one fixed palette keeps an asset set consistent. background fills the first layer; omit it for a transparent sprite.

sprite_infoB

Describe a sprite: size, color mode, frames (1-based, with durations), layers (bottom to top), animation tags and palette.

add_layerB

Add a layer (or a layer group when group=True) on top. parent places it inside an existing group.

add_framesA

Append count frames, either empty or copied from frame copy_from.

Copying a frame and then editing the copy is the simplest way to animate. Optionally sets duration_ms on frames duration_from..duration_to (default: all frames); use count=0 to change durations only. Existing animation tags are left unchanged.

tag_animationB

Tag a frame range as a named animation such as 'idle', 'walk' or 'attack'.

Tag names become animation names in Godot. repeat=0 loops forever; a positive value makes the animation play through and stop. A tag with the same name is replaced.

drawB

Draw on a layer (default: the topmost image layer) at frame, or on every frame listed in frames. Ops are applied in order; colors are '#rrggbb' or '#rrggbbaa'.

{"op":"rows","x":0,"y":0,"rows":["..kk..",".kssk."],"key":{"k":"#1a1c2c","s":"#f4b41b"}} Pixel-art grid: one character per pixel, '.' or ' ' leaves the pixel unchanged. Best suited to sprites. {"op":"pixels","points":[[x,y],...],"color":"#ffffff"} or points [[x,y,"#rrggbb"],...] {"op":"rect","x":0,"y":0,"w":8,"h":8,"color":"#000000","fill":true} {"op":"line","x1":0,"y1":0,"x2":7,"y2":7,"color":"#000000"} {"op":"circle","cx":8,"cy":8,"r":4,"color":"#000000","fill":false} {"op":"clear"} or {"op":"clear","color":"#00000000"}

set_paletteA

Replace the palette from a list of hex colors or a palette file (.gpl, .pal, .png, .aseprite). With to_indexed=True the sprite is converted to indexed mode and every pixel snaps to its nearest palette color.

palette_swapA

Recolor exact colors across all layers and frames, e.g. {"#38b764": "#b13e53"}. Writes to out_path, or overwrites the source when omitted. Useful for character variants, team colors and seasonal tilesets.

import_imageB

Import a PNG, JPG or GIF as an .aseprite file.

Resizes with nearest-neighbor sampling (give only width or height to keep the aspect ratio), then snaps to a fixed palette (colors) or quantizes to max_colors.

previewA

Render the sprite as a PNG image. frame=None shows all frames side by side. Use it after drawing to check the result.

export_spritesheetB

Export a sprite sheet PNG, plus optional Aseprite JSON (frame rectangles, durations, tags). Filter by tag or layer. Keep scale=1 for Godot and scale the viewport instead.

export_godot_spriteframesB

Export a sprite into a Godot 4 project as .png plus .tres (SpriteFrames).

Each Aseprite tag becomes an animation with per-frame timing preserved; reverse and ping-pong directions are baked into the frame order, and tags with a repeat count do not loop. Assign the .tres to an AnimatedSprite2D.

export_tilesetA

Export a tileset PNG with extrude pixels of edge padding around each tile, which prevents seams when tiles are scaled.

The source is a tilemap layer's tileset (pass layer), or the flattened frame sliced into a tile_w x tile_h grid. When godot_project is given, out_png must be inside it and a matching TileSet .tres is written next to the PNG.

batch_exportB

Re-export every .aseprite/.ase file under src_dir (recursively) into the Godot project as SpriteFrames, mirroring the folder structure. Failures are reported per file without stopping the batch.

run_luaA

Run arbitrary Aseprite Lua. Disabled unless ASEPRITE_MCP_ALLOW_LUA=1.

code is the body of function(params) and may return a JSON-serializable value, which is returned as {"result": value}. The full Aseprite scripting API is available: https://aseprite.org/api

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 15 tools

Disambiguation4/5

Most tools target clearly distinct stages: sprite creation, frame/layer/tag editing, palette operations, preview, and different export formats. The multiple export tools and set_palette vs palette_swap could initially look similar, but their descriptions make the boundaries clear. run_lua is a general escape hatch that overlaps all operations, but it is disabled by default and reads as a separate advanced tool.

Naming Consistency3/5

The set is mostly readable but mixes conventions: create_sprite, add_layer, add_frames, set_palette, import_image, and export_* follow verb_noun, while sprite_info and palette_swap are noun-first and draw/preview are bare verbs. export_godot_spriteframes also deviates by embedding a brand and resource name. The pattern is understandable but not consistently predictable.

Tool Count5/5

Fifteen tools is at the upper end of the typical range but is justified by the broad asset pipeline: creation, editing, palette management, import, preview, several export targets, batch processing, and an optional Lua escape hatch. Each tool maps to a concrete workflow rather than feeling redundant or padded.

Completeness4/5

The surface covers core creation, animation tagging, drawing, palette work, preview, sprite sheet export, Godot SpriteFrames export, tileset export, and batch export. The main gaps are destructive/lifecycle operations such as deleting layers, frames, or tags, plus layer properties like visibility or opacity. These are noticeable but can be worked around by recreating assets or using Lua when enabled.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues