aseprite-mcpのロゴ

aseprite-mcp

コミュニティ
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,…

公開者rkdfx
リポジトリaseprite-mcp
言語Python
フォーク
2
スター
12
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    aseprite-mcpは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 利用可能なツール(0個)

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースプロジェクトの注目度

    リンク先のリポジトリには12件のスターと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.

インストール

TypingMind
前提条件:

Node.js 18+

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

aseprite-mcpのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度aseprite-mcpに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」→「詳細設定」→「Model Context Protocol」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「Model Context Protocol」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

aseprite-mcpをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. aseprite-mcpのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタのステータスが「準備完了」のままか確認するには、画面を更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "rkdfx-aseprite-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "aseprite-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてaseprite-mcpのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. aseprite-mcpのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
aseprite-mcpを使ってこのタスクを手伝ってもらえますか?
aseprite-mcp
はい、読みました。
aseprite-mcpで調べた結果をお伝えします。

よくある質問

aseprite-mcp MCPサーバーは何に使いますか?

aseprite-mcpは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでは、複数のAIモデルでaseprite-mcp MCPを利用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでaseprite-mcpを利用できます。

TypingMindでaseprite-mcp MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けのトップクラスのフロントエンドです。aseprite-mcpを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

aseprite-mcp MCPをTypingMindに接続するにはどうすればよいですか?

aseprite-mcpはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでaseprite-mcp MCPのどのようなツールを利用できますか?

aseprite-mcpはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

aseprite-mcp MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。aseprite-mcpで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇