text2d
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., "@text2dpixelize this car image to 32x32 PICO-8 with dithering"
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.
text2d — 2D Retro Pixel Art Texture MCP Server
A high-performance Model Context Protocol (MCP) server that empowers AI assistants to procedurally generate, manipulate, and export 2D retro pixel art textures and tilesets for game development.
Features
Image to Retro Pixel Art Conversion: Ingest external PNG files and automatically downscale, quantize to retro palettes, and apply Bayer dithering via
pixelize_image.Procedural Texture Synthesis: Deterministic generation of
wood,stone(cobblestone/rock),brick,grass,metal(brushed plates with rivets), andwatercaustics.Pixel-Level Primitives: Full control via
set_pixel,set_pixel_batch,draw_shape(lines, rects, circles), andflood_fill.Retro Palettes & Quantization: Built-in authentic color palettes including
PICO-8,DawnBringer 32 (DB32),Endesga 32,GameBoy,NES Classic, andCyberpunk Neon.Pixel-Art Post-Processing: Bayer ordered dithering (2x2, 4x4, 8x8) and 1px inner/outer pixel-perfect outlines.
Export Options: PNG files with nearest-neighbor integer scaling, Base64 Data URIs, ASCII Unicode block previews, and 2D JSON color grids.
Related MCP server: Piskel MCP Server
Visual Examples & Gallery
1. Image Pixelization (pixelize_image)
Convert high-resolution realistic photos or assets into authentic retro pixel art with automatic palette quantization and Bayer dithering.
Original Input | Endesga 32 (32x32) | PICO-8 (32x32) | GameBoy (32x32) |
DawnBringer 32 (48x48) | Cyberpunk Neon (64x64) |
2. Procedural Texture Synthesis (generate_texture)
Generate seamless, deterministic retro textures in seconds without external assets.
Wood ( | Stone ( | Brick ( |
Grass ( | Metal ( | Water ( |
MCP Tools Matrix
Tool Name | Description | Key Parameters |
| Ingests external PNG and converts to 2D retro pixel art |
|
| Initializes a new in-memory pixel canvas |
|
| Synthesizes a procedural retro texture |
|
| Sets a single pixel at (x, y) |
|
| Batch updates multiple coordinates |
|
| Draws rasterized line, rect, or circle |
|
| Contiguous area flood fill |
|
| Applies Bayer ordered dithering |
|
| Draws 1px pixel-perfect outline |
|
| Exports canvas to PNG, Data URI, ASCII or JSON |
|
| Lists all built-in retro palettes | None |
| Lists active canvases in memory | None |
| Inspects canvas metadata and dimensions |
|
| Frees canvas from memory |
|
Installation & Usage
You can install and run text2d directly from GitHub without publishing to npm:
1. Global Installation (Recommended)
Install globally directly from the GitHub repository:
npm install -g github:al3duc/text2d-mcpOnce installed, the text2d command is available system-wide.
MCP Client Configuration
Add text2d to your MCP client configuration (e.g. claude_desktop_config.json, mcp_config.json, or Cursor):
Option A: Using Global Installation (Simplest)
{
"mcpServers": {
"text2d": {
"command": "text2d"
}
}
}Option B: Direct Execution via npx (No permanent install)
{
"mcpServers": {
"text2d": {
"command": "npx",
"args": [
"-y",
"github:al3duc/text2d-mcp"
]
}
}
}Option C: Claude Code CLI Command
If using Claude Code, register it with a single terminal command:
claude mcp add text2d -- npx -y github:al3duc/text2d-mcpOption D: Local Clone (Development)
git clone https://github.com/al3duc/text2d-mcp.git
cd text2d-mcp
npm install
npm run build{
"mcpServers": {
"text2d": {
"command": "node",
"args": [
"<PATH_TO_TEXT2D_REPOSITORY>/dist/index.js"
]
}
}
}Note: Replace <PATH_TO_TEXT2D_REPOSITORY> with the absolute path to your cloned repository.
Build & Test
# Install dependencies
npm install
# Run unit & integration tests
npm test
# Build TypeScript to dist/
npm run build
# Generate procedural texture samples (wood, stone, brick, grass, metal, water)
npx tsx examples/generate_samples.ts
# Test converting realistic images from examples/input/ to pixel art
npx tsx examples/test_car_pixelize.tsLicense
This project is licensed under the MIT License - see the LICENSE file for details.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceGenerate animated pixel art characters, tilesets, and object directly from your AI coding assistant!38
- AlicenseBqualityBmaintenanceEnables AI assistants to create and manipulate pixel art by providing tools for drawing, layer management, and animation frame control. It supports exporting projects to PNG, GIF, and sprite sheet formats via the Model Context Protocol.2213Apache 2.0
- AlicenseAqualityCmaintenanceEnables AI sprite generation and semantic tools for Aseprite, allowing LLMs to create pixel art, add animations, and manage projects with visual feedback.61GPL 3.0
- AlicenseCqualityBmaintenanceEnables AI assistants to control Aseprite for creating pixel art and animated sprites, with 104 tools covering canvas, drawing, animation, palettes, effects, and more.100MIT
Related MCP Connectors
Generate game assets with AI: sprites, 3D models, animations, sound effects, music, and voices.
Generate authentic pixel art - sprites, animations, and tilesets - from any MCP client
Generate logos, social posts, app screenshots, comic panels & visual-novel assets from prompts.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/al3duc/text2d-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server