Logo: aseprite-mcp

aseprite-mcp

Communautéit
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,…

Editeurrkdfx
Repositoryaseprite-mcp
SproochPython
Forks
2
Stären
12
Disponibel Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    aseprite-mcp bitt MCP-Funktiounen un, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • Disponibel Tools: 0

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an deem MCP-Client ze konfiguréieren, deen Dir am léifste benotzt.

  • Interessi vun der Communautéit um Open-Source-Projet

    Zuele vum verlinkte Repository – Stären: 12, Forks: 2.

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.

Installatioun

TypingMind
Viraussetzungen:

Node.js 18+

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

aseprite-mcp MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal aseprite-mcp verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung, fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector: D'Optioun „Dësen Apparat“ ass ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Setzt de kopéierte Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

aseprite-mcp als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a setzt d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Setzt d'MCP-Serverkonfiguratioun fir aseprite-mcp an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert d'Säit, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "rkdfx-aseprite-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "aseprite-mcp"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vun der Integratioun aseprite-mcp. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vun der Integratioun aseprite-mcp.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierten MCP-Tools an engem ausgewielte KI-Modell
Kënnt Dir mir mat aseprite-mcp bei dëser Aufgab hëllefen?
aseprite-mcp
Jo. Ech hunn et gelies.
Dat hunn ech mat aseprite-mcp fonnt.

Heefeg gestallte Froen

Fir wat gëtt den MCP-Server aseprite-mcp benotzt?

aseprite-mcp ass en MCP-Server, deen et kompatibele KI-Clienten erlaabt, op extern Tools a Kontextinformatioune zouzegräifen. An TypingMind kënnt Dir dësen MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech aseprite-mcp MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir aseprite-mcp mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni den MCP-Server fir all Modell separat anzeriichten.

Firwat aseprite-mcp MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann aseprite-mcp verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Ären Aarbechtsoflaf beim Chatten an TypingMind organiséieren.

Wéi verbannen ech aseprite-mcp MCP mat TypingMind?

aseprite-mcp leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann den MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt aseprite-mcp MCP an TypingMind zur Verfügung?

aseprite-mcp stellt MCP-Funktioune zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agente zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir aseprite-mcp MCP ze benotzen?

Nee. TypingMind ass nom Local-first-Prinzip opgebaut a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann aseprite-mcp eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir deen MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇