2DPIXELMCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@2DPIXELMCPdraw a pixel art tree with 3 frames of swaying"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
https://github.com/user-attachments/assets/76c3b53d-7a61-4d63-bbd5-cb3e131e9721
π¨ 2DPIXELMCP v0.1.2
The Official Antigravity-to-LibreSprite Bridge
An exclusive Model Context Protocol (MCP) server designed specifically to give Antigravity (AI) the power to draw, animate, and manipulate 2D pixel art directly inside LibreSprite.
π₯ Showcase & Demonstrations
v0.1.2 Feature Update & Demonstration
Legacy Magic Brush Demonstration
π What's New in v0.1.2 (The AI Intelligence Update)
This massive update focuses on improving the AI's internal logic, fixing historical rendering bugs, and making the codebase completely safe for AI augmentation.
π AI Constitution (
ANAYASA.md): Introduced a strict set of rules for all AI agents. External agents will now natively understand the complex pixel-art workflow without hallucinating.π Madde 9 Bugfix: Permanently eradicated the flawed "white background" filter across the codebase. The AI now respects native alpha transparency! (No more deleted cat chests).
πͺ GUI Refactoring: Removed messy developer drawing panels. The GUI is now a sleek, readable log viewer with separated Error Logs.
π AI Onboarding: Added
AI_ONBOARDING.mdso external LLMs instantly learn the workflow rules.
Related MCP server: Aseprite MCP
π§ What is 2DPIXELMCP?
2DPIXELMCP is a highly specialized bridge built exclusively for Antigravity AI. It allows the AI to literally take control of your LibreSprite canvas and draw pixel art right in front of your eyes!
Forget boring image generation. With 2DPIXELMCP, the AI doesn't just "spit out" an imageβit paints it pixel-by-pixel using advanced mathematics, physics simulation, and real-time cursor visualization. Watch as Antigravity animates a knight's cape blowing in the wind or a character breathing, all calculated live on your screen.
β¨ Magical Key Features
π€ Exclusive to Antigravity: Specifically engineered for Antigravity's high-IQ spatial reasoning.
π¨ The "3-Lap" Magical Cursor: Watch the AI draw like a human! It scans the canvas in 3 distinct laps (Coarse Outline β Detailing β Final Fill), giving you an incredibly satisfying visual experience as the image forms piece-by-piece.
π Inverse Mapping Physics: Zero gaps, zero holes. When the AI animates fabric or physics, it calculates precise inverse-trigonometry to ensure every pixel lands exactly where it should.
β‘ Real-Time Visualization: A magenta (
+) cursor tracks exactly what the AI's "brain" is focusing on at any given millisecond.π§± High-Performance Memory Engine: Can handle thousands of pixels per frame without crashing LibreSprite, thanks to safe batch-rendering limits (
max_batch_size=3).
π οΈ Installation & Setup
Setting up the bridge between Antigravity and LibreSprite takes less than two minutes.
1. Prerequisites
Python 3.8+ (Ensure Python is added to your PATH).
LibreSprite (Download Latest Release).
2. Install the LibreSprite Bridge (CRITICAL)
You MUST install the JavaScript bridge into LibreSprite so it can receive commands. WARNING: Do NOT put the script in multiple folders! Having two bridge scripts running will cause extreme lag and crashes.
Open LibreSprite.
Go to
File -> Scripts -> Open Folder. (This will open yourAppData\Roaming\LibreSprite\scriptsfolder).Copy the
bridge/bridge_realtime.jsfile from this project and paste it into that folder.If you have any old versions in
C:\Program Files\LibreSprite\data\scripts, DELETE THEM.Restart LibreSprite completely.
3. Start the Server
pip install -r requirements.txt
python main.py serve(This will automatically launch LibreSprite and establish a bidirectional WebSocket connection).
π€ ATTENTION AI AGENTS (Read This If You Are an AI)
If you are an AI assistant (Antigravity, Copilot, ChatGPT, Claude, Cursor) and you have just been connected to this repository, STOP AND READ. The creator of this repository has established strict rules for how you must operate to avoid crashing LibreSprite or ruining the user's experience.
You MUST read the
AI_ONBOARDING.md,ANAYASA.md, and2DPIXELMCP_ENCYCLOPEDIA.mdfiles immediately.DO NOT AUTOMATE ANIMATIONS. The constitution demands an Absolute Manual Frame-by-Frame protocol. You must draw one frame, stop, and wait for the user to confirm and request the next frame.
Obey the physics constraints detailed in the constitution (Secondary motions, breathing, S-Curves for fabric).
ποΈ Architecture
main.py: The main entry point (serve / draw / status).core/: TCP/HTTP Server & LibreSprite API Client.bridge/: The JavaScript (Duktape) payload injected into LibreSprite for real-time control.drawing/: Core rendering logic (Primitives, Palettes, Batching).ai/: Memory, Evaluation, and Auto-Correction logic.ANAYASA.md&AI_ONBOARDING.md: π DO NOT DELETE! Contains the global AI behavior rules. These files ensure any AI agent that clones this repository instantly understands the project's animation physics constraints, workflow rules, and LibreSprite-specific bugs (like the NewFrame bug).
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/alikayalll43-sudo/2DPIXELMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server