text2d
text2d — 2DレトロピクセルアートテクスチャMCPサーバー
ゲーム開発用に、AIアシスタントが2Dレトロピクセルアートのテクスチャやタイルセットを手続き的に生成・操作・エクスポートできるようにする、高性能なModel Context Protocol (MCP)サーバーです。
特徴
画像からレトロピクセルアートへの変換: 外部PNGファイルを取り込み、自動でダウンスケール、レトロパレットへの量子化、
pixelize_imageによるBayerディザリングを適用します。手続き的テクスチャ合成:
wood、stone(玉石/岩)、brick、grass、metal(リベット付きブラッシュプレート)、water(コースティクス)を決定的に生成します。ピクセルレベルのプリミティブ:
set_pixel、set_pixel_batch、draw_shape(直線、矩形、円)、flood_fillによる完全な制御を提供します。レトロパレットと量子化:
PICO-8、DawnBringer 32 (DB32)、Endesga 32、GameBoy、NES Classic、Cyberpunk Neonなどの本格的なカラーパレットを内蔵しています。ピクセルアート後処理: Bayerオーダードディザリング(2x2、4x4、8x8)と、1pxの内側/外側ピクセルパーフェクトアウトラインを適用できます。
エクスポートオプション: 最近傍整数スケーリングによるPNGファイル、Base64 Data URI、ASCII Unicodeブロックプレビュー、2D JSONカラーグリッドを出力できます。
Related MCP server: Piskel MCP Server
ビジュアル例とギャラリー
1. 画像のピクセル化(pixelize_image)
高解像度のリアルな写真やアセットを、自動パレット量子化とBayerディザリングで本格的なレトロピクセルアートに変換します。
元の入力 | Endesga 32 (32x32) | PICO-8 (32x32) | GameBoy (32x32) |
DawnBringer 32 (48x48) | Cyberpunk Neon (64x64) |
2. 手続き的テクスチャ合成(generate_texture)
外部アセットなしで、シームレスで決定的なレトロテクスチャを数秒で生成します。
木( | 石( | レンガ( |
草( | 金属( | 水( |
MCPツールマトリックス
ツール名 | 説明 | 主なパラメータ |
| 外部PNGを取り込み、2Dレトロピクセルアートに変換します |
|
| 新しいインメモリピクセルキャンバスを初期化します |
|
| 手続き的なレトロテクスチャを合成します |
|
| (x, y)に単一のピクセルを設定します |
|
| 複数の座標を一括更新します |
|
| ラスタライズされた直線、矩形、または円を描画します |
|
| 連続領域をフラッドフィルします |
|
| Bayerオーダードディザリングを適用します |
|
| 1pxのピクセルパーフェクトアウトラインを描画します |
|
| キャンバスをPNG、Data URI、ASCIIまたはJSONにエクスポートします |
|
| 内蔵のレトロパレットをすべて一覧表示します | なし |
| メモリ内のアクティブなキャンバスを一覧表示します | なし |
| キャンバスのメタデータと寸法を検査します |
|
| キャンバスをメモリから解放します |
|
インストールと使用方法
text2dはnpmに公開せず、GitHubから直接インストールして実行できます:
1. グローバルインストール(推奨)
GitHubリポジトリから直接グローバルにインストールします:
npm install -g github:al3duc/text2d-mcpインストール後、text2dコマンドがシステム全体で利用可能になります。
MCPクライアント設定
text2dをMCPクライアント設定(例:claude_desktop_config.json、mcp_config.json、Cursor)に追加します:
オプションA:グローバルインストールを使用(最も簡単)
{
"mcpServers": {
"text2d": {
"command": "text2d"
}
}
}オプションB:npxによる直接実行(永続的なインストール不要)
{
"mcpServers": {
"text2d": {
"command": "npx",
"args": [
"-y",
"github:al3duc/text2d-mcp"
]
}
}
}オプションC:Claude Code CLIコマンド
Claude Codeを使用する場合は、単一のターミナルコマンドで登録します:
claude mcp add text2d -- npx -y github:al3duc/text2d-mcpオプションD:ローカルクローン(開発用)
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"
]
}
}
}注:<PATH_TO_TEXT2D_REPOSITORY>を、クローンしたリポジトリの絶対パスに置き換えてください。
ビルドとテスト
# 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ライセンス
このプロジェクトはMITライセンスの下で提供されています。詳細はLICENSEファイルを参照してください。
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