aseprite-mcp logo

aseprite-mcp

Community
rkdfx

A Model Context Protocol (MCP) server for automating Aseprite with Lua scripts. This project provides a FastMCP server that exposes Aseprite functionality to Claude Desktop and other MCP clients,…

Publisherrkdfx
Repositoryaseprite-mcp
LanguagePython
Forks
2
Stars
12
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    aseprite-mcp exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    12 stars and 2 forks from the linked repository.

aseprite-mcp

A Model Context Protocol (MCP) server for automating Aseprite with Lua scripts. This project provides a FastMCP server that exposes Aseprite functionality to Claude Desktop and other MCP clients, enabling AI-assisted pixel art creation and sprite automation.

Features

  • Canvas Management: Create new canvases, add layers and frames
  • Drawing Tools: Draw pixels, lines, rectangles, circles with customizable colors and styles
  • Fill Operations: Paint bucket tool for area fills
  • Export Capabilities: Export sprites to PNG, GIF, and other formats
  • Lua Script Generation: Dynamically generates and executes Aseprite Lua scripts
  • FastMCP Integration: Seamless integration with Claude Desktop and MCP clients

Setup

Prerequisites

  1. Install Aseprite: Download and install Aseprite from aseprite.org

Platform-Specific Aseprite Installation

Windows

  • Download from the official website or Steam
  • Default installation path: C:\Program Files\Aseprite\Aseprite.exe
  • Or install via Chocolatey: choco install aseprite

macOS

  • Download from the official website or Steam
  • Default path: /Applications/Aseprite.app/Contents/MacOS/aseprite

Linux

  • Install via package manager (varies by distribution)
  • Ubuntu/Debian: Available in some PPAs
  • Arch Linux: pacman -S aseprite or yay -S aseprite
  • Flatpak: flatpak install flathub org.aseprite.Aseprite
  • Or compile from source following official instructions

Installing aseprite-mcp

Option 1: Install from PyPI (when published)

bash
coming soon

Option 2: Install from source

bash
git clone https://github.com/rkdfx/aseprite-mcp.git
cd aseprite-mcp
pip install -e .

Option 3: Development setup

bash
git clone https://github.com/rkdfx/aseprite-mcp.git
cd aseprite-mcp
pip install -e ".[dev]"

Configuration

  1. Automatic Detection: The server will automatically try to find Aseprite in common installation paths
  2. Manual Configuration: If Aseprite isn't found automatically, set the ASEPRITE_PATH environment variable:
bash
# Copy the example environment file
cp .env.example .env

# Edit .env and set your Aseprite path
# Windows: ASEPRITE_PATH=C:\Program Files\Aseprite\Aseprite.exe
# macOS: ASEPRITE_PATH=/Applications/Aseprite.app/Contents/MacOS/aseprite
# Linux: ASEPRITE_PATH=/usr/bin/aseprite

Running the Server

bash
# Run as a module
python -m aseprite_mcp

# Or use the installed script
aseprite-mcp

MCP Client Configuration

Add to your MCP client configuration (e.g., Claude Desktop):

json
{
  "mcpServers": {
    "aseprite": {
      "command": "python",
      "args": ["-m", "aseprite_mcp"],
      "env": {
        "ASEPRITE_PATH": "/path/to/your/aseprite"
      }
    }
  }
}

Tools Available

Canvas Tools

  • create_canvas(width, height, filename) - Create new Aseprite canvas
  • add_layer(filename, layer_name) - Add new layer to existing file
  • add_frame(filename) - Add new animation frame

Drawing Tools

  • draw_pixels(filename, pixels) - Draw individual pixels with colors
  • draw_line(filename, x1, y1, x2, y2, color, thickness) - Draw lines
  • draw_rectangle(filename, x, y, width, height, color, fill) - Draw rectangles
  • draw_ellipse(filename, center_x, center_y, width, height, color, fill) - Draw ellipses
  • draw_circle(filename, center_x, center_y, radius, color, fill) - Draw circles
  • draw_polygon(filename, points, color, fill) - Draw polygons with multiple vertices
  • draw_triangle(filename, x1, y1, x2, y2, x3, y3, color, fill) - Draw triangles
  • draw_arc(filename, center_x, center_y, radius, start_angle, end_angle, color, thickness) - Draw arcs
  • fill_area(filename, x, y, color) - Fill areas with paint bucket

Export Tools

  • export_sprite(filename, output_filename, format) - Export to PNG, GIF, etc.

Example Prompts

The server includes instructional prompts that guide LLMs on how to create complex artwork:

  • draw_cloud_example() - Instructions for creating a fluffy cloud using overlapping shapes
  • draw_tree_example() - Guide for drawing a tree with trunk and leafy crown
  • draw_house_example() - Steps to create a house using geometric shapes
  • draw_star_example() - Method for drawing a five-pointed star with precise coordinates
  • draw_flower_example() - Instructions for creating a flower with petals, stem, and leaves

These prompts return detailed instructions that help AI agents understand how to combine the basic drawing tools to create complex, recognizable objects.

Architecture

The project uses a modular architecture:

  • core/commands.py - Aseprite command execution and Lua script management
  • tools/canvas.py - Canvas creation and layer/frame management
  • tools/drawing.py - Drawing operations and pixel manipulation
  • tools/export.py - Export functionality for various formats

All tools are automatically exposed as MCP tools through the FastMCP decorator system.

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "rkdfx-aseprite-mcp": {
      "command": "",
      "args": []
    }
  }
}

Use aseprite-mcp MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once aseprite-mcp is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add aseprite-mcp as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the aseprite-mcp MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "rkdfx-aseprite-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "aseprite-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the aseprite-mcp MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the aseprite-mcp MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use aseprite-mcp to help me with this task?
aseprite-mcp
Sure. I read it.
Here is what I found using aseprite-mcp.

Frequently asked questions

What is the aseprite-mcp MCP server used for?

aseprite-mcp is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use aseprite-mcp MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use aseprite-mcp with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use aseprite-mcp MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With aseprite-mcp connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect aseprite-mcp MCP to TypingMind?

aseprite-mcp runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does aseprite-mcp MCP provide in TypingMind?

aseprite-mcp exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use aseprite-mcp MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If aseprite-mcp requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇