Pixel

Design and media

MCP server for creating pixel art with Aseprite through AI assistants. Supports animation, retro palettes, dithering, shading, and spritesheet export.

Your AI app calls the Pixel MCP server, which does the design and media work and sends the result back to the chat.

About Pixel

Pixel is a community MCP server from willibrandon, filed in our directory under design and media. MCP server for creating pixel art with Aseprite through AI assistants. Supports animation, retro palettes, dithering, shading, and spritesheet export.

At a glance

Publisher
willibrandon (community)
Runs
See the README for setup
Written in
Go
License
MIT
GitHub stars
164

How to set up Pixel

  1. Follow the install steps in the Pixel README; it is written in Go, so have that toolchain ready.
  2. Check the Pixel README for keys or settings; the registry lists none that Pixel requires.
  3. Add Pixel to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Pixel tools to confirm the connection.
  5. Run one read-only task with Pixel first, and keep your app asking before each tool call until the results look right.

Pixel compared with similar servers

  • Audacity by xDarkzx has fewer GitHub stars than Pixel (163 against 164); both are community servers, and both run locally.
  • Excalidraw Architect by BV-Venky has fewer GitHub stars than Pixel (164 against 164); both are community servers, and both run locally.
  • Musescore by ghchen99 has fewer GitHub stars than Pixel (160 against 164); both are community servers, and both run locally.

Before you connect Pixel

  • Give Pixel its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Pixel tool call until you trust what it does with them.
  • Treat text that Pixel fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Pixel on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Pixel

How marketing and sales teams put Pixel to work, by company size. Pick the size closest to yours and start Pixel on one use case.

Small business

  • A small business can use Pixel to resize and adapt one design for every channel instead of hiring for each version.
  • Owners can ask Pixel to pull brand assets and make quick ad and social variations that still look on brand.
  • Pixel runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Creative teams can connect Pixel so agents produce variants for testing while designers keep control of the master files.
  • Marketing teams can use Pixel to hand off designs to web and ads with specs attached, cutting review rounds.
  • Start Pixel on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can use Pixel with brand rules and approved assets only, so generated work stays inside the brand system.
  • Large creative ops teams can use Pixel to localize and version assets for many markets with review built in.
  • Pixel is a community server, so have security review the code and pin a version before Pixel touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Pixel README

From willibrandon/pixel-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Aseprite MCP Server

A Model Context Protocol (MCP) server that exposes Aseprite's pixel art and animation capabilities to AI assistants, enabling you to create and edit sprites using natural language.

Example scene created using pixel-mcp: 64x64 indexed sprite with custom 16-color palette, demonstrating drawing primitives (rectangles, circles) and palette management.

Features

  • Canvas & Layer Management: RGB, Grayscale, and Indexed color modes with multi-layer support and layer deletion
  • Drawing Primitives: Pixels, lines, rectangles, circles, polylines, flood fill with batch operations and palette-aware drawing
  • Selection Tools: Rectangle, ellipse, select all, copy, cut, paste, move selections with multiple blend modes (replace/add/subtract/intersect)
  • Professional Pixel Art Tools:
    • Reference Analysis: Extract palettes, brightness maps, edge detection, and composition guides from images
    • Color Quantization: Reduce images to 2-256 colors using median_cut, k-means, or octree algorithms with optional Floyd-Steinberg dithering
    • Automatic Shading: Apply geometry-based shading with 3 styles (cell/smooth/soft), 8 light directions, and adjustable intensity
    • Dithering: 16 patterns including Bayer matrices (2x2, 4x4, 8x8), Floyd-Steinberg, checkerboard, and textures (grass, water, stone, cloud, brick, dots, diagonal, cross, noise, lines)
    • Palette Management: Set custom palettes (1-256 colors), sort by hue/luminance, analyze color harmonies (complementary/triadic/analogous), and extract from reference images
    • Shading Tools: Apply palette-constrained shading with smooth, hard, or pillow styles and 8 light directions
    • Antialiasing: Detect jagged diagonal edges and suggest intermediate colors for smoother curves (manual or auto-apply)
    • Transform Operations: Flip, rotate, scale, crop, resize canvas, apply outlines, and downsample for pixel art conversion
    • Palette-Aware Drawing: All drawing tools support snapping to nearest palette color using LAB color space
  • Animation Tools: Frame durations, tags, frame duplication/deletion, linked cels
  • Inspection Tools: Read pixel data with pagination for verification and analysis
  • Export Formats: PNG, GIF, JPG, BMP, and spritesheet export (horizontal/vertical/grid layouts)
  • Cross-platform: Windows, macOS, Linux
  • MCP Integration: Works with Claude Desktop and other MCP clients

Requirements

  • Go 1.23+
  • Aseprite 1.3.0+ (1.3.10+ recommended)

Quick Start

1. Install
# Clone the repository
git clone https://github.com/willibrandon/pixel-mcp.git
cd pixel-mcp

# Build the server
make build
2. Configure

Create ~/.config/pixel-mcp/config.json:

{
  "aseprite_path": "/path/to/aseprite",
  "temp_dir": "/tmp/pixel-mcp",
  "timeout": 30,
  "log_level": "info",
  "log_file": "",
  "enable_timing": false
}

Configuration options:

  • aseprite_path (required): Absolute path to Aseprite executable. No automatic discovery or environment variables.
  • temp_dir (optional): Directory for temporary files. Defaults to /tmp/pixel-mcp.
  • timeout (optional): Command timeout in seconds. Defaults to 30.
  • log_level (optional): Logging verbosity (debug, info, warn, error). Defaults to info.
  • log_file (optional): Path to log file for persistent logging. If empty, logs only to stderr.
  • enable_timing (optional): Enable request tracking and operation timing. Defaults to false.
3. Run
# Run the server (stdio transport)
./bin/pixel-mcp

# Check health
./bin/pixel-mcp --health

# Enable debug logging
./bin/pixel-mcp --debug

Usage with Claude Desktop

Add to your Claude Desktop config:

{
  "mcpServers": {
    "aseprite": {
      "command": "/absolute/path/to/pixel-mcp"
    }
  }
}

Then use natural language to create sprites:

  • "Create a 64x64 sprite and draw a red circle in the center"
  • "Add a new layer called 'Background' and fill it with blue"
  • "Export the sprite as a PNG"

Available Tools

Canvas & Layer Management
Tool Description
create_canvas Create new sprite with specified dimensions and color mode
add_layer Add a new layer to the sprite
delete_layer Delete a layer from the sprite (cannot delete last layer)
flatten_layers Flatten all layers in a sprite into a single layer
get_sprite_info Get sprite metadata (size, layers, frames)
Drawing & Painting
Tool Description
draw_pixels Draw individual pixels (supports batch operations, optional palette snapping)
draw_line Draw a line between two points (optional palette snapping)
draw_contour Draw a polyline or polygon by connecting multiple points (optional palette snapping)
draw_rectangle Draw a rectangle (filled or outline, optional palette snapping)
draw_circle Draw a circle/ellipse (filled or outline, optional palette snapping)
fill_area Flood fill from a point (paint bucket, optional palette snapping)
Selection & Clipboard
Tool Description
select_rectangle Create a rectangular selection with mode (replace/add/subtract/intersect)
select_ellipse Create an elliptical selection with mode (replace/add/subtract/intersect)
select_all Select the entire canvas
deselect Clear the current selection
move_selection Move selection bounds by offset (does not move pixels)
cut_selection Cut selected pixels to clipboard
copy_selection Copy selected pixels to clipboard
paste_clipboard Paste clipboard content at specified position

Note: Selection and clipboard operations persist across MCP tool calls using sprite custom properties (sprite.data) and a hidden clipboard layer. This allows you to create a selection in one tool call, then copy/cut/paste in subsequent calls. Selection bounds are automatically saved and restored, and clipboard content is stored in a hidden __mcp_clipboard__ layer.

Professional Pixel Art
Tool Description
analyze_reference Extract palette, brightness map, edges, and composition from reference images
draw_with_dither Fill region with dithering patterns (15 patterns: Bayer, checkerboard, grass, water, stone, cloud, brick, etc.)
downsample_image Downsample high-res images to pixel art dimensions using box filter
get_palette Retrieve current sprite palette as array of hex colors with size
set_palette Set sprite's color palette to specified colors (supports 1-256 colors)
set_palette_color Set a specific palette index to a color (0-255)
add_palette_color Add a new color to the palette (max 256 colors)
sort_palette Sort palette by hue, saturation, brightness, or luminance (ascending/descending)
apply_shading Apply palette-constrained shading based on light direction (smooth, hard, or pillow styles)
analyze_palette_harmonies Analyze palette for complementary, triadic, analogous relationships and color temperature
suggest_antialiasing Detect jagged diagonal edges and suggest intermediate colors for smooth curves (with optional auto-apply)
Transform & Filter
Tool Description
flip_sprite Flip sprite, layer, or cel horizontally or vertically
rotate_sprite Rotate sprite, layer, or cel by 90, 180, or 270 degrees
scale_sprite Scale sprite with algorithm selection (nearest, bilinear, rotsprite)
crop_sprite Crop sprite to rectangular region
resize_canvas Resize canvas without scaling content (with anchor positioning)
apply_outline Apply outline effect to layer with configurable color and thickness
Animation
Tool Description
add_frame Add a new animation frame
delete_frame Delete a frame from the sprite (cannot delete last frame)
set_frame_duration Set the duration of an animation frame in milliseconds
create_tag Create an animation tag with playback direction
delete_tag Delete an animation tag by name
duplicate_frame Duplicate an existing frame with all cels
link_cel Create a linked cel that shares image data
Inspection & Export
Tool Description
get_pixels Read pixel data from a rectangular region (paginated, for verification)
export_sprite Export sprite to PNG/GIF/JPG/BMP
export_spritesheet Export animation frames as spritesheet (horizontal/vertical/rows/columns/packed layout, optional JSON metadata)
import_image Import external image file as a layer in the sprite
save_as Save sprite to a new .aseprite file path

Examples

See examples/ for a complete working example client that demonstrates all features including canvas creation, animation, dithering, palette management, shading, and antialiasing.

Development

Using Make
# Build (development - fast, no version info)
make build

# Build release (with version and timestamp)
make release

# Run unit tests
make test

# Run unit tests (no cache)
make test-nocache

# Run integration tests (requires configured Aseprite)
make test-integration

# Run integration tests (no cache)
make test-integration-nocache

# Run benchmarks
make bench

# Run linters
make lint

# Generate coverage report
make test-coverage

# Clean build artifacts
make clean
Using Go CLI
# Build (development)
go build -o bin/pixel-mcp ./cmd/pixel-mcp

# Build release (with version info)
go build -ldflags "-X main.Version=$(git describe --tags --always --dirty) -X main.BuildTime=$(date -u '+%Y-%m-%d_%H:%M:%S')" -o bin/pixel-mcp ./cmd/pixel-mcp

# Run unit tests
go test -v -race -cover ./...

# Run unit tests (no cache)
go test -v -race -cover -count=1 ./...

# Run integration tests
go test -tags=integration -v ./...

# Run integration tests (no cache)
go test -tags=integration -v -count=1 ./...

# Run benchmarks
go test -tags=integration -bench=. -benchmem ./pkg/aseprite ./pkg/tools

# Run linters
go vet ./...
go fmt ./...

# Generate coverage report
go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
go tool cover -html=coverage.txt -o coverage.html

Performance

All operations complete in under 100ms on typical hardware, with complete workflows finishing in 280-840ms. See docs/BENCHMARKS.md for detailed benchmark results.

License

MIT

Questions about Pixel

What is the Pixel MCP server?

MCP server for creating pixel art with Aseprite through AI assistants. Supports animation, retro palettes, dithering, shading, and spritesheet export. Pixel is maintained by willibrandon on GitHub at willibrandon/pixel-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Pixel MCP server?

Pixel doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (willibrandon/pixel-mcp). Like most servers, Pixel ends with a command or URL you paste into your AI app's MCP config.

Does Pixel need an API key?

The registry lists no required keys for Pixel. Check the Pixel README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Pixel an official MCP server?

No. Pixel is a community server maintained by willibrandon. Community servers can be excellent; read the code and the open issues before you give Pixel access to company data.

What license is Pixel under?

Pixel is released under the MIT license, according to its GitHub repository. The license covers the code of Pixel; the service it connects to has its own terms.