Provides programmatic interaction with Aseprite, including canvas operations, drawing tools, palette management, and batch processing. Allows creating sprites, managing layers and frames, drawing shapes, applying color palettes, and exporting to various formats.
Implements a Python-based MCP server for interacting with Aseprite, requiring Python 3.13+ to operate and offering Lua script generation for Aseprite operations.
Aseprite MCP Tools v2.0
A powerful Python MCP (Model Context Protocol) server for programmatic interaction with Aseprite, featuring enhanced error handling, configuration management, batch processing, and more!
🚀 What's New in v2.0
🛡️ Comprehensive Error Handling: Custom exceptions with detailed, actionable error messages
🔧 Configuration Management: Pydantic-based settings with JSON/YAML support
📝 Advanced Logging: Structured logging with performance metrics
🎨 Palette Management: Create, apply, and extract color palettes
⚡ Batch Processing: Process multiple files in parallel
🏗️ Lua Script Builder: Clean, type-safe Lua script generation
🔒 Enhanced Security: Input validation and path traversal protection
🧪 Full Test Coverage: Comprehensive unit tests
📋 Features
Core Drawing Tools
Canvas Operations: Create sprites, add layers and frames
Drawing Tools: Pixels, lines, rectangles, circles, and fill operations
Export Tools: Export to various formats with scaling and layer support
New Palette Tools (v2.0)
Preset Palettes: GameBoy, NES, PICO-8, CGA, Monochrome, Sepia
Custom Palettes: Create and apply custom color schemes
Palette Extraction: Extract colors from existing images
Color Remapping: Replace colors throughout sprites
Batch Processing (v2.0)
Batch Resize: Resize multiple sprites maintaining aspect ratio
Batch Export: Convert multiple files to different formats
Batch Palette Apply: Apply palettes to multiple files
Custom Scripts: Run Lua scripts on file sets
🔧 Installation
Requirements
Python 3.13+
Aseprite (must be installed separately)
Claude Desktop Configuration
Using UV (Recommended)
Using Python
Install Dependencies
⚙️ Configuration
Environment Variables
Configuration File (config.json)
Configuration File (config.yaml)
📖 Usage Examples
Basic Drawing Operations
Layer and Frame Management
Palette Operations
Export Operations
Batch Processing
🏗️ Architecture
Project Structure
Error Handling
Lua Script Builder
🧪 Testing
Run all tests:
Run specific test:
Run demo script:
📝 Logging
Logs include:
Operation tracking
Performance metrics
Error details with context
Structured JSON output (optional)
Example log:
🤝 Contributing
Fork the repository
Create a feature branch
Follow the coding standards:
Use type hints
Add input validation
Include error handling
Write unit tests
Update documentation
Submit a pull request
📄 License
MIT License - see LICENSE file for details
🙏 Credits
Original implementation: Divyansh Singh
v2.0 improvements: Enhanced error handling, configuration, batch processing, and more
📚 Additional Resources
IMPROVEMENTS.md - Detailed v2.0 changes
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
A Python MCP server enabling programmatic interaction with Aseprite for pixel art creation and manipulation with features like drawing operations, palette management, and batch processing.
Related MCP Servers
- -securityFlicense-qualityThis is an MCP server that facilitates building tools for interacting with various APIs and workflows, supporting Python-based development with potential for customizable prompts and user configurations.Last updated -
- AsecurityFlicenseAqualityA Python-based server that helps users easily install and configure other MCP servers across different platforms.Last updated -23
Recraft AI MCP Serverofficial
AsecurityAlicenseAqualityAn MCP server that integrates with Recraft AI to enable generation and manipulation of high-quality raster and vector images through tools like image generation, editing, vectorization, background removal, and upscaling.Last updated -92235MIT License- -securityAlicense-qualityA dynamic MCP server that automatically discovers Python files in a directory and exposes them as tools to any MCP-compatible AI client, allowing users to easily create and deploy custom AI tools.Last updated -MIT License