Skip to main content
Glama

text2d — 2DレトロピクセルアートテクスチャMCPサーバー

ゲーム開発用に、AIアシスタントが2Dレトロピクセルアートのテクスチャやタイルセットを手続き的に生成・操作・エクスポートできるようにする、高性能なModel Context Protocol (MCP)サーバーです。


特徴

  • 画像からレトロピクセルアートへの変換: 外部PNGファイルを取り込み、自動でダウンスケール、レトロパレットへの量子化、pixelize_imageによるBayerディザリングを適用します。

  • 手続き的テクスチャ合成: woodstone(玉石/岩)、brickgrassmetal(リベット付きブラッシュプレート)、water(コースティクス)を決定的に生成します。

  • ピクセルレベルのプリミティブ: set_pixelset_pixel_batchdraw_shape(直線、矩形、円)、flood_fillによる完全な制御を提供します。

  • レトロパレットと量子化: PICO-8DawnBringer 32 (DB32)Endesga 32GameBoyNES ClassicCyberpunk 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

外部アセットなしで、シームレスで決定的なレトロテクスチャを数秒で生成します。

木(wood

石(stone

レンガ(brick

草(grass

金属(metal

水(water


MCPツールマトリックス

ツール名

説明

主なパラメータ

pixelize_image

外部PNGを取り込み、2Dレトロピクセルアートに変換します

file_pathtarget_widthtarget_heightpalettesamplingditherexport_output_path

create_canvas

新しいインメモリピクセルキャンバスを初期化します

widthheightpalettemodebackgroundColor

generate_texture

手続き的なレトロテクスチャを合成します

canvas_idtexture_typeseedpaletteoptions

set_pixel

(x, y)に単一のピクセルを設定します

canvas_idxycolor

set_pixel_batch

複数の座標を一括更新します

canvas_idpixels: [{x, y, color}]

draw_shape

ラスタライズされた直線、矩形、または円を描画します

canvas_idshapex1y1x2y2colorfilled

flood_fill

連続領域をフラッドフィルします

canvas_idxycolor

apply_dither

Bayerオーダードディザリングを適用します

canvas_idmatrix_sizespread

apply_outline

1pxのピクセルパーフェクトアウトラインを描画します

canvas_idcolormode

export_texture

キャンバスをPNG、Data URI、ASCIIまたはJSONにエクスポートします

canvas_idformatfile_pathscale

list_palettes

内蔵のレトロパレットをすべて一覧表示します

なし

list_canvases

メモリ内のアクティブなキャンバスを一覧表示します

なし

get_canvas_info

キャンバスのメタデータと寸法を検査します

canvas_id

delete_canvas

キャンバスをメモリから解放します

canvas_id


インストールと使用方法

text2dはnpmに公開せず、GitHubから直接インストールして実行できます:

1. グローバルインストール(推奨)

GitHubリポジトリから直接グローバルにインストールします:

npm install -g github:al3duc/text2d-mcp

インストール後、text2dコマンドがシステム全体で利用可能になります。


MCPクライアント設定

text2dをMCPクライアント設定(例:claude_desktop_config.jsonmcp_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ファイルを参照してください。

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