2DPIXELMCP

2DPIXELMCP

An MCP server that bridges Antigravity AI with LibreSprite, enabling real-time pixel art drawing, animation, and manipulation through natural language commands.

Category
Visit Server

README

<div align="center">

🎨 2DPIXELMCP

The Official Antigravity-to-LibreSprite Bridge

Python 3.8+ LibreSprite MCP

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.

</div>


🚀 Overview

2DPIXELMCP is a highly specialized bridge built exclusively for Antigravity. It allows the AI to send natural language commands and structural data which is then translated into real-time pixel art operations inside LibreSprite.

Whether you want to generate a 20-frame highly detailed knight animation or just draw a simple tree swinging in the wind, 2DPIXELMCP handles the complex math, batch rendering, and real-time syncing seamlessly.

✨ Key Features

  • 🤖 Antigravity Exclusive: Purpose-built for Antigravity's advanced reasoning capabilities.
  • ⚡ Real-Time AI Cursor: Watch the AI draw in real-time with a visual Magenta (+) indicator on the canvas.
  • 🧱 Batch Rendering Engine: High-performance pixel grouping to prevent canvas freezes during heavy AI drawing operations.
  • 🎬 Advanced Animation Engine: Built-in timeline, keyframing, and 20+ easing functions (Elastic, Bounce, Cubic, etc.).
  • 🧠 Self-Healing & Auto-Evaluation: Automatically grades the AI's drawings (A-F) and prompts self-correction if the quality doesn't meet the standard.

🛠️ Installation

Setting up the bridge between Antigravity and LibreSprite takes less than two minutes.

1. Prerequisites

2. Download the Project

Clone this repository or download it as a ZIP file:

git clone https://github.com/alikayalll43-sudo/2DPIXELMCP.git
cd 2DPIXELMCP

3. Install Dependencies

Install the required lightweight python packages:

pip install -r requirements.txt

🔗 Connecting to Antigravity (Skill Setup)

⚠️ IMPORTANT: 2DPIXELMCP is built strictly and exclusively for Antigravity. It cannot be used with any other AI assistant or agent.

To give Antigravity the ability to control LibreSprite, you need to add the 2DPIXELMCP "Skill" to Antigravity's brain.

  1. Navigate to your Antigravity configuration directory (usually ~/.gemini/config/skills/).
  2. Create a new folder named 2dpixelmcp.
  3. Copy the SKILL.md (if provided, or copy the legacy one) into this folder.
  4. Restart Antigravity.

Once configured, just tell Antigravity "Draw a tree in LibreSprite" and it will automatically use this bridge!


🎮 Manual Usage & Testing

If you want to run the server manually without Antigravity to test the connection:

1. Start the Server:

python main.py serve

(This will automatically launch LibreSprite and establish a bidirectional WebSocket connection).

2. Send a Drawing Command (in a new terminal):

python main.py draw "a medieval knight attacking" --size 64 --frames 10

🏗️ 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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured