Skip to main content
Glama

text2d — 2D-Retro-Pixel-Art-Textur-MCP-Server

Ein leistungsstarker MCP-Server (Model Context Protocol), der KI-Assistenten dabei unterstützt, 2D-Retro-Pixel-Art-Texturen und Tilesets für die Spieleentwicklung prozedural zu erzeugen, zu bearbeiten und zu exportieren.


Features

  • Bild-zu-Retro-Pixel-Art-Konvertierung: Importiert externe PNG-Dateien und verkleinert sie automatisch, quantisiert sie auf Retro-Paletten und wendet über pixelize_image Bayer-Dithering an.

  • Prozedurale Texturerzeugung: Deterministische Generierung von wood, stone (Kopfstein/Fels), brick, grass, metal (gebürstete Platten mit Nieten) und water-Kaustiken.

  • Primitive auf Pixel-Ebene: Volle Kontrolle über set_pixel, set_pixel_batch, draw_shape (Linien, Rechtecke, Kreise) und flood_fill.

  • Retro-Paletten & Quantisierung: Integrierte authentische Farbpaletten, einschließlich PICO-8, DawnBringer 32 (DB32), Endesga 32, GameBoy, NES Classic und Cyberpunk Neon.

  • Pixel-Art-Nachbearbeitung: Geordnetes Bayer-Dithering (2x2, 4x4, 8x8) sowie 1-Pixel-Innen-/Außenkonturen, pixelgenau.

  • Exportoptionen: PNG-Dateien mit ganzzahliger Nearest-Neighbor-Skalierung, Base64-Daten-URIs, ASCII-Unicode-Blockvorschauen und 2D-JSON-Farbgittern.


Related MCP server: Piskel MCP Server

Visuelle Beispiele & Galerie

1. Bildpixelisierung (pixelize_image)

Konvertiere hochauflösende realistische Fotos oder Assets in authentische Retro-Pixel-Art – mit automatischer Palettenquantisierung und Bayer-Dithering.

Original-Eingabe

Endesga 32 (32x32)

PICO-8 (32x32)

GameBoy (32x32)

DawnBringer 32 (48x48)

Cyberpunk Neon (64x64)

2. Prozedurale Texturzeugung (generate_texture)

Erzeuge nahtlose, deterministische Retro-Texturen in Sekunden ohne externe Assets.

Holz (wood)

Stein (stone)

Ziegel (brick)

Gras (grass)

Metall (metal)

Wasser (water)


MCP-Tools-Matrix

Tool-Name

Beschreibung

Wichtige Parameter

pixelize_image

Importiert externe PNG-Dateien und konvertiert sie in 2D-Retro-Pixel-Art.

file_path, target_width, target_height, palette, sampling, dither, export_output_path

create_canvas

Initialisiert eine neue Pixel-Canvas im Speicher.

width, height, palette, mode, backgroundColor

generate_texture

Erzeugt eine prozedurale Retro-Textur.

canvas_id, texture_type, seed, palette, options

set_pixel

Setzt ein einzelnes Pixel an (x, y).

canvas_id, x, y, color

set_pixel_batch

Aktualisiert mehrere Koordinaten in einem Stapelvorgang.

canvas_id, pixels: [{x, y, color}]

draw_shape

Zeichnet eine gerasterte Linie, ein Rechteck oder einen Kreis.

canvas_id, shape, x1, y1, x2, y2, color, filled

flood_fill

Führt eine Flutfüllung in einer zusammenhängenden Bereich aus.

canvas_id, x, y, color

apply_dither

Wendet geordnetes Bayer-Dithering an.

canvas_id, matrix_size, spread

apply_outline

Zeichnet eine 1-Pixel-pixelgenaue Kontur.

canvas_id, color, mode

export_texture

Exportiert die Canvas als PNG, Daten-URI, ASCII oder JSON.

canvas_id, format, file_path, scale

list_palettes

Listet alle integrierten Retro-Paletten auf.

Keine

list_canvases

Listet aktive Canvases im Speicher auf.

Keine

get_canvas_info

Überprüft Canvas-Metadaten und -Abmessungen.

canvas_id

delete_canvas

Gibt die Canvas aus dem Speicher frei.

canvas_id


Installation und Verwendung

Sie können text2d direkt von GitHub installieren und ausführen, ohne es auf npm zu veröffentlichen.

1. Globale Installation (Empfohlen)

Installieren Sie global direkt aus dem GitHub-Repository:

npm install -g github:al3duc/text2d-mcp

Nach der Installation ist der Befehl text2d systemweit verfügbar.


MCP-Client-Konfiguration

Fügen Sie text2d zu Ihrer MCP-Client-Konfiguration hinzu (z. B. claude_desktop_config.json, mcp_config.json oder Cursor):

Option A: Globale Installation verwenden (am einfachsten)

{
  "mcpServers": {
    "text2d": {
      "command": "text2d"
    }
  }
}

Option B: Direkte Ausführung über npx (keine dauerhafte Installation)

{
  "mcpServers": {
    "text2d": {
      "command": "npx",
      "args": [
        "-y",
        "github:al3duc/text2d-mcp"
      ]
    }
  }
}

Option C: Claude Code CLI-Befehl

Wenn Sie Claude Code verwenden, registrieren Sie es mit einem einzigen Terminal-Befehl:

claude mcp add text2d -- npx -y github:al3duc/text2d-mcp

Option D: Lokales Klonen (Entwicklung)

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"
      ]
    }
  }
}

Hinweis: Ersetzen Sie <PATH_TO_TEXT2D_REPOSITORY> durch den absoluten Pfad zu Ihrem geklonten Repository.


Build und 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.ts

Lizenz

Dieses Projekt ist unter der MIT-Lizenz lizenziert – siehe die Datei LICENSE für Details.

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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