SuperAPIAI Directory

texel-mcp

github.com · AI developer platforms

Texel is a format and toolchain for making Minecraft textures as code. Textures are defined as JSON specs containing a palette and ordered drawing operations for the model's named parts and faces, and the compiler deterministically converts them into the PNGs the game reads. The toolchain includes an MCP server, a command-line tool, and an Agent Skill (also packaged as a Claude Code plugin), designed for AI agents. It covers player skins (classic and slim) plus 68 other textures via layouts, all based on the Java Edition 1.21 texture layout. The project is open source (MIT), currently at version 0.9.0, and in development.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

Texel is a format and toolchain for making Minecraft textures as code. A texture is represented as a JSON spec: containing a palette (naming colors, with support for derived shades like robe~-1) and an ordered list of drawing operations targeting the model's named parts and faces (e.g. head.front, rightArm.sides@overlay). The compiler converts the spec into the PNG the game reads, with byte-identical output every time. The review feature returns texture problems as JSON paths, fix hints, art scores, and pixel art suggestions.

Main capabilities:

  • Supports player skins (classic and slim) plus 68 other textures via layouts, all based on the Java Edition 1.21 texture layout: 57 mob textures (zombie, skeleton, creeper, horse, llama, fox, bee, axolotl, illager, warden, golem, etc.), armor layers, capes with elytra, items, blocks with top and side files (logs, grass, furnace), plants, GUI sprites, particles, and paintings.
  • Textures can be animated and emissive, a set of specs can build a resource pack, and Texel also checks resource packs.
  • A spec contains a palette, an optional legend (one character per color, for pixel rows), and layers that run in order. Each layer is one of 18 operations: 12 ordinary drawing operations (fill, rect, clear, pixels, points, line, gradient, pattern, noise, shade, copy, mirror), 1 symmetry fix (symmetrize), and 5 advanced operations (material, face, hair, lighting, bevel). Operations marked "emissive": true also draw the texture's emissive map <name>_eyes.png.
  • Layer targets are selectors: part, face, and layer, such as head.front, legs.sides, body.front+back@overlay, or arms.top@both. Coordinates are relative to each face, and drawing is clipped to the face.
  • Modifications are made via patches by layer ID; patches are also used for animation frames and family members (extending one base spec into variants or an axis matrix by swapping palettes, toggling layers, patching base layers by ID, and appending layers).
  • Existing PNGs can be imported as editable specs, import --pixelize converts any image into layout-sized textures.
  • asset specifies the texture's location in the resource pack; pack builds a resource pack from a spec and family, including pack.mcmeta (supporting Minecraft 1.21 through 1.21.11), and can generate the models, blockstates, and item definitions needed for new items or blocks; check-pack checks the structure and references of any resource pack.

Usage:

  • The MCP server and CLI require Node 20 or later.
  • Claude Code plugin: the repository is a plugin marketplace; the plugin starts the MCP server from a single bundled file (no npm install needed) and adds the minecraft-skin-design skill. Files are written to the project directory.
  • Any MCP client: the package name is texel-mcp (npm). Configuration example: use the mcpServers format in clients such as Claude Desktop, Cursor, and VS Code. In Claude Code, run claude mcp add texel -- npx -y texel-mcp. For a local build, point to the file: "command": "node", "args": ["/absolute/path/texel-mcp/dist/texel-mcp.mjs", "--workspace", "/absolute/path/skins"].
  • CLI: npx -y -p texel-mcp texel-cli build skin.json -o skin.png --sheet sheet.png, or run node dist/texel.mjs ... from a build. No dependencies. --help lists the commands: build, review, patch, sheet, palette, family, import, diff, pack, check-pack, share, pull, live, format, layouts, and init. Exit codes: 0 done, 1 the spec, family, or pack has errors, 2 usage error.
  • All writes go to a single workspace directory: --workspace, $TEXEL_WORKSPACE, or the server startup directory. Resolving outside the workspacepaths are rejected.

Review return content: Every render comes with a review. Errors and warnings point to the JSON path or face that caused the problem, and most carry a hint indicating the fix. The code is stable across versions. Block textures also measure tiling seams. The score (0 to 100) measures technical hygiene only: errors, holes in the base layer, blank faces, flat surfaces, too few colors. The art part has a separate score based on seven measurement checks (R2 to R7: face readability, brightness contrast between parts, light from above, surface texture, the back of the design, using overlays to add depth) and a color count, each with a measurement description and hints. art.advice points out classic pixel art mistakes found in the texture (pillow shading, shading that only darkens, static noise, banding that stops at cube corners) and shows the faces where they appear; it never changes the score. The next list is ordered by priority of fixes. Whether the texture matches the brief (R1) is never measured; the MCP tool returns review sheet images (front, back, both sides and the texture) so that agents with vision can judge for themselves, and provides a text rendering for models without vision.

The MCP server has 16 tools, resources for docs/examples/schemas, the ui://texel/viewer MCP App and 5 prompts (design_skin, design_texture, continue_skin, design_family, critique_skin).

When to use it:

  • AI agents making Minecraft textures, turning spatial tasks into symbolic tasks (naming parts, choosing colors, ordering layers, acting on errors that point to JSON lines).
  • Texture specs that need to be reviewable, version-controllable and deterministically regenerable.
  • Building and checking resource packs.

Limitations:

  • Java Edition only. Bedrock skins and Bedrock geometry are not supported.
  • Vanilla box models only. No custom 3D models or geometry, no HD skins: mob and skin textures are vanilla size (items, blocks and plants can be HD).
  • Layouts follow Java Edition 1.21 model code: UV mappings have been checked against decompiled code and vanilla textures for 1.21.1, 1.21.5, 1.21.11. No textures are loaded into the game by this project; checks are based on code and vanilla files. Mobs without a layout (fish, sniffer, breeze, creaking, etc.) and saddles cannot yet be drawn.
  • Views and 3D previews only simulate 90° rotations. Tilted parts (such as the hoglin's head, the horse's neck or the strider'smane) are drawn untilted or omitted from the view (the notes for each layout say which).
  • check-pack knows resource pack formats from 1.21 to 1.21.11. It checks structure and references, not how models or textures look in game, and it does not check data packs.
  • Art scores and craft advice are heuristics, not validated by human judgment, and do not say whether a texture matches the brief. How good a texture looks depends mainly on the agent writing the spec.
  • texel_share, texel_pull and short links require texel.dev.br: share links are stored there. Long #z= links work without website storage.

The project is open source (MIT), version 0.9.0, the format is versioned (version: 1) but may change between minor versions and should be treated as beta. The website texel.dev.br is built on this toolchain.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools