ssyubix-pixelart-mcp
i need money
This server provides tools for creating pixel art, managing canvases, generating color palettes, and assembling 2D game tilesets, designed to integrate with Unity via unity-mcp-server.
Drawing: Create blank canvases, import PNGs, set pixels, draw lines (with width), rectangles, circles, polygons (outline or filled), and flood fill.
Canvas Management: Clear, flip, duplicate, get info/previews, delete, and list canvases.
Color Palette: Generate cohesive palettes in styles (forest, desert, ocean, retro, pastel, night, lava, candy) and extract dominant colors from existing art.
Size Suggestions: Get recommended tile sizes based on object category or screen resolution (
pixelart_suggest_tile_size) and tilemap grid layouts (pixelart_suggest_tilemap_layout).Tileset Assembly & Export: Create tileset sheets, place tiles, and export to PNG with JSON metadata (tile size, grid, PPU, palette) for use in game engines like Unity (
pixelart_export_tileset). Manage tilesets (delete, list).
ssyubix-pixelart-mcp
MCP server (Python) for drawing pixel art and assembling 2D game tilesets.
Built with MCP Python SDK v1.x
(stable), stdio transport, designed to be used alongside
unity-mcp-server in a single agent session.
Installation
From PyPI:
pip install ssyubix-pixelart-mcpOr from source:
git clone https://github.com/syuaibsyuaib/ssyubix-pixelart-mcp
cd ssyubix-pixelart-mcp
python3 -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -e .Related MCP server: Unity MCP Server
Running
python -m pixelart_mcp.server
# or, if installed from PyPI:
ssyubix-pixelart-mcpConnecting to Claude Desktop / Claude Code
Add to claude_desktop_config.json (Claude Desktop) or via
claude mcp add (Claude Code):
{
"mcpServers": {
"pixelart": {
"command": "/path/to/ssyubix-pixelart-mcp/venv/bin/python",
"args": ["-m", "pixelart_mcp.server"]
}
}
}Tools List (24)
Drawing
pixelart_create_canvas,pixelart_import_canvas,pixelart_set_pixel,pixelart_draw_line,pixelart_draw_rect,pixelart_draw_circle,pixelart_draw_polygon,pixelart_flood_fill
Canvas Management
pixelart_clear_canvas,pixelart_flip_canvas,pixelart_duplicate_canvas,pixelart_get_canvas_info,pixelart_get_canvas_preview,pixelart_delete_canvas,pixelart_list_canvases
Color Palette
pixelart_generate_palette,pixelart_extract_palette
Size Suggestion
pixelart_suggest_tile_size,pixelart_suggest_tilemap_layout
Tileset
pixelart_create_tileset,pixelart_set_tile,pixelart_export_tileset,pixelart_delete_tileset,pixelart_list_tilesets
Terminology: Tile vs Tileset vs Tilemap
These are easy to conflate and doing so produces broken/tiny output — a real bug that happened in production: an agent asked for a "tilemap" got back a single 32x32 canvas (that's a tile size) and shipped it as the whole map, which looked broken when used at real scale.
Tile: one small square (e.g. 16x16px) —
pixelart_create_canvas.Tileset: a sheet of many distinct tiles arranged in a grid (e.g. grass, path, water tile types) —
pixelart_create_tileset+pixelart_set_tile+pixelart_export_tileset.Tilemap: a full level/map, composed of many tiles placed across a grid (built the same way as a tileset, but every slot is filled to represent the actual level layout) — never a single tile-sized canvas.
Typical Workflow
For a single asset/tile:
pixelart_suggest_tile_size(optional) — ask for ideal tile size based on object category or screen resolution.pixelart_generate_palette— create color palette according to style/mood.pixelart_create_canvas→pixelart_set_pixel/draw_line/draw_rect/draw_circle/flood_fill— draw a single tile.pixelart_get_canvas_preview— view the result (upscaled PNG) before proceeding.
For a tileset or a full tilemap/level:
5. pixelart_suggest_tilemap_layout — get the grid (columns/rows) and total pixel
size needed, from either an explicit tile count or a target screen/level size.
6. pixelart_create_tileset with that grid → pixelart_set_tile for every slot → pixelart_export_tileset.
7. The result of export_tileset is PNG + JSON metadata (tile size, grid, PPU) —
the agent can then call unity-mcp-server tools to slice/import into a Unity project.
Running Tests
sh claude_tools/run_tests.shStructure
pixelart_mcp/
server.py # entry point, registers 23 tools
canvas.py # pixel drawing primitives
palette.py # palette generator
sizing.py # tile size heuristics
tileset.py # tileset assembly & export
models.py # Pydantic input models
tests/ # 58 unit tests
claude_tools/ # helper script (dump schema, run tests)
task.md # status & work notes
PUBLISHING.md # guide to publish to PyPI & official MCP RegistryIf unity-mcp-server is Not Available
pixelart_mcp is not technically dependent on unity-mcp-server —
all tools above work fully without it. The difference is only in the final step:
without unity-mcp-server, the result of pixelart_export_tileset (PNG +
JSON metadata) must be imported manually into Unity Editor. Here are the steps
(based on official Unity Manual), to guide an AI when helping a non-technical user:
Copy the exported PNG file to the
Assetsfolder (or a subfolder likeAssets/Sprites) within your Unity project.In the Project window, click on the PNG file. In the Inspector panel:
Texture Type →
Sprite (2D and UI)Sprite Mode →
Multiple(because it contains many tiles in one sheet)Pixels Per Unit → enter the
ppuvalue from the JSON metadata fileFilter Mode →
Point (no filter)— to keep pixel art sharp, not blurredCompression →
None— to prevent color corruptionClick Apply.
Click the Sprite Editor button in the Inspector to open the Sprite Editor.
In the Sprite Editor, click the Slice dropdown, select Grid By Cell Size, then enter the Pixel Size with
tile_widthxtile_heightfrom the JSON metadata.Click Slice, then click Apply in the Sprite Editor toolbar.
Done — each tile is now a separate sprite that can be dragged directly into the Scene or used in a Tilemap.
All required values (tile_width, tile_height, ppu) are automatically
available in the .json file generated by pixelart_export_tileset
— the AI does not need to calculate them, just read them and guide the user
through the steps above.
For AI Agents Maintaining/Developing This Project
Read AGENTS.md first — it contains the architecture map, mandatory conventions,
checklist for adding new tools, and the workflow for handling user feedback/feature requests.
License
Apache License 2.0 — see LICENSE and NOTICE files.
Publishing to PyPI & MCP Registry
See PUBLISHING.md for complete guide (exact commands, requires personal
credentials — PyPI token & GitHub OAuth login).
SDK Version Notes
This server is built on top of v1.x MCP Python SDK (stable, recommended for production). SDK v2 is still pre-release as of July 2026 — not used here per policy of "only stable/current official references".
Available Tools
24 toolspixelart_clear_canvasBDestructiveIdempotent
Erase all drawing on a canvas back to a flat background color.
Args: params: canvas_id, background RGBA (default fully transparent). Returns: Confirmation string.
Inputs: params (required). Returns: result
pixelart_create_canvasA
Create a new blank pixel-art canvas (a single tile/sprite surface).
Args: params: canvas_id, width, height, background RGBA. Returns: JSON string confirming creation with canvas_id, width, height.
Inputs: params (required). Returns: result
pixelart_create_tilesetB
Create a blank tileset sheet (grid of equally-sized tile slots).
Args: params: tileset_id, tile_width, tile_height, columns, rows, ppu. Returns: JSON string confirming the grid dimensions.
Inputs: params (required). Returns: result
pixelart_delete_canvasBDestructiveIdempotent
Remove a canvas from memory once it's no longer needed.
Args: params: canvas_id. Returns: Confirmation string.
Inputs: params (required). Returns: result
pixelart_delete_tilesetADestructiveIdempotent
Remove a tileset from memory once it's no longer needed.
Args: params: tileset_id. Returns: Confirmation string.
Inputs: params (required). Returns: result
pixelart_draw_circleAIdempotent
Draw a circle/ellipse (outline or filled) on a canvas.
Args: params: canvas_id, center_x, center_y, radius, color, fill. Returns: Confirmation string.
Inputs: params (required). Returns: result
pixelart_draw_lineBIdempotent
Draw a straight line on a canvas between two points.
Args: params: canvas_id, x0, y0, x1, y1, color, line_width. Returns: Confirmation string.
Inputs: params (required). Returns: result
pixelart_draw_polygonAIdempotent
Draw a polygon (outline or filled) from a list of vertex points.
Use this for shapes that draw_rect/draw_circle can't express (roof slopes, tree silhouettes, diagonal terrain edges, etc).
Args: params: canvas_id, points (>=3 [x,y] pairs), color, fill. Returns: Confirmation string.
Inputs: params (required). Returns: result
pixelart_draw_rectCIdempotent
Draw a rectangle (outline or filled) on a canvas.
Args: params: canvas_id, x0, y0, x1, y1, color, fill. Returns: Confirmation string.
Inputs: params (required). Returns: result
pixelart_duplicate_canvasA
Copy an existing canvas into a new canvas id.
Useful for repeated/near-identical tiles (grass variants, floor tiles) without redrawing from scratch.
Args: params: source_canvas_id, new_canvas_id. Returns: Confirmation string.
Inputs: params (required). Returns: result
pixelart_export_tilesetA
Export a tileset to a PNG file plus a JSON metadata sidecar.
The metadata (tile size, grid, PPU, filled slots, palette) is meant to be handed to a downstream engine-integration tool (e.g. an agent calling unity-mcp-server) so it can slice/import the sheet without re-deriving those values.
Args: params: tileset_id, output_dir, name, palette (optional hex list to record). Returns: JSON string: {"png_path", "json_path", "metadata": {...}}.
Inputs: params (required). Returns: result
pixelart_extract_paletteARead-onlyIdempotent
Extract the dominant colors currently used on a canvas.
Args: params: canvas_id, n_colors. Returns: JSON string: {"colors": ["#rrggbb", ...]}.
Inputs: params (required). Returns: result
pixelart_flip_canvasAIdempotent
Mirror a canvas horizontally or vertically in place.
Common for pixel-art symmetry: draw one half of a character/object and flip instead of hand-drawing the mirrored half.
Args: params: canvas_id, direction ('horizontal' or 'vertical'). Returns: Confirmation string.
Inputs: params (required). Returns: result
pixelart_flood_fillBIdempotent
Flood-fill the contiguous region containing (x, y) with a color.
Args: params: canvas_id, x, y, color. Returns: Confirmation string.
Inputs: params (required). Returns: result
pixelart_generate_paletteARead-only
Generate a limited, cohesive color palette for pixel art.
Args: params: n_colors, style (forest/desert/ocean/retro/pastel/night/lava/candy, optional). Returns: JSON string: {"colors": ["#rrggbb", ...]}.
Inputs: params (required). Returns: result
pixelart_get_canvas_infoARead-onlyIdempotent
Get lightweight metadata about a canvas without rendering a preview image.
Cheaper than pixelart_get_canvas_preview when the agent only needs to check dimensions or whether anything has been drawn yet.
Args: params: canvas_id. Returns: JSON string: {"width", "height", "non_transparent_pixels", "total_pixels"}.
Inputs: params (required). Returns: result
pixelart_get_canvas_previewARead-onlyIdempotent
Return the current canvas as an upscaled PNG image for visual inspection.
Args:
params: canvas_id, scale (nearest-neighbor upscale factor).
Returns:
Image: PNG preview, upscaled by scale so small pixel art is visible.
Inputs: params (required).
pixelart_import_canvasA
Load an existing PNG (or other image) file from disk into a new canvas.
Use this to continue editing a sprite that already exists (e.g. a tile already in the user's Unity project) instead of redrawing it from a blank canvas.
Args: params: canvas_id (new id to store it under), file_path (local path to the image). Returns: JSON string: {"canvas_id", "width", "height"}.
Inputs: params (required). Returns: result
pixelart_list_canvasesARead-onlyIdempotent
List every canvas currently held in memory for this server session.
Use this to recover canvas_id/size context in a long session instead of relying on conversation memory of what was created earlier.
Returns: JSON string: {"canvases": [{"canvas_id", "width", "height"}, ...]}.
Inputs: no named parameters. Returns: result
pixelart_list_tilesetsARead-onlyIdempotent
List every tileset currently held in memory for this server session.
Returns: JSON string: {"tilesets": [{"tileset_id", "columns", "rows", "tile_width", "tile_height", "filled_tiles"}, ...]}.
Inputs: no named parameters. Returns: result
pixelart_set_pixelAIdempotent
Set a single pixel's color on a canvas.
Args: params: canvas_id, x, y, RGBA color. Returns: Confirmation string.
Inputs: params (required). Returns: result
pixelart_set_tileBIdempotent
Place a drawn canvas into a tileset slot.
Args: params: tileset_id, index (row-major slot), canvas_id. Returns: Confirmation string.
Inputs: params (required). Returns: result
pixelart_suggest_tilemap_layoutARead-onlyIdempotent
Work out the grid (columns x rows) and total pixel size for a FULL tilemap.
Use this whenever the user wants an actual level/map, not a single tile or asset. Call pixelart_suggest_tile_size first to get tile_width/tile_height, then this tool with either an explicit columns+rows or a target screen/level size in pixels. Build the result with pixelart_create_tileset using the returned columns/rows, filling every slot via pixelart_set_tile -- a tilemap is never a single small canvas.
Args: params: tile_width, tile_height, and either (columns, rows) or (screen_width, screen_height). Returns: JSON string: {"tile_width", "tile_height", "columns", "rows", "total_tiles", "total_map_width_px", "total_map_height_px", "reasoning"}.
Inputs: params (required). Returns: result
pixelart_suggest_tile_sizeARead-onlyIdempotent
Suggest an ideal size in pixels for ONE tile -- NOT a full tilemap/level image.
Uses a 16-pixel-per-unit (PPU) base-grid convention by default. If
category is given (small_prop, character, large_character,
structure, large_structure) it takes priority. Otherwise, if a
target screen resolution is given, picks a PPU that divides the
screen evenly. Falls back to a 16x16 default.
IMPORTANT: the result is one tile's size. A playable tilemap/level is a grid of MANY tiles at this size, not a single canvas this size -- call pixelart_suggest_tilemap_layout next to work out the grid, then pixelart_create_tileset to build it. Never export a single tile-sized canvas as if it were the whole tilemap.
Args: params: category, screen_width, screen_height (all optional). Returns: JSON string: {"tile_width", "tile_height", "ppu", "reasoning", "note"}.
Inputs: params (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 24 tools
Each tool has a clearly distinct purpose, from canvas creation and drawing primitives to tileset management and palette generation. Even overlapping concepts like get_canvas_info and get_canvas_preview are well-differentiated.
All tools follow a consistent verb_noun pattern with the 'pixelart_' prefix, making it easy to predict tool names (e.g., pixelart_create_canvas, pixelart_set_pixel).
With 24 tools, the set is comprehensive but slightly above the ideal range. However, each tool serves a necessary function in pixel art creation, avoiding bloat.
The tool surface covers the full lifecycle of pixel art creation: canvas management, drawing primitives, transformations, palette generation, tileset creation, and export. No obvious gaps for the intended domain.
Maintenance
Related MCP Connectors
Generate game assets with AI for 2D games, including sprites, tilesets, and animations.
Generate pixel art sprites, animations, 8-direction rotations and palettes for games.
Generate, edit, style-match, turn, and animate game-ready pixel art at exact sizes.
Game-ready pixel art: generate sprites, animate them, pixelate images, remove backgrounds.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceGenerate animated pixel art characters, tilesets, and object directly from your AI coding assistant!50-
- FlicenseBqualityAmaintenanceProvides AI assistants with comprehensive control over Unity Hub and Unity Editor through over 200 specialized tools for project management and scene manipulation. It enables users to perform complex tasks like script creation, asset management, and project builds using natural language commands.80209 npm550-
- AlicenseAqualityDmaintenanceGenerates mock 2D PNG assets for game prototypes, supporting gradients, patterns, text, spritesheets, and embedded metadata.381 npm7MIT
- AlicenseNot gradedqualityDmaintenanceGenerate real pixel art — sprites, animations, and tilesets — from any MCP-capable AI assistant. Grid-aligned pixels, controlled palettes, transparent backgrounds, with cost estimation always free.8MIT