Texture-Craft
Runs as a Gradio Space app that uses Gradio's built-in MCP server to expose the texture-generation flow, so the generation tool can be invoked directly from the Space UI/endpoint.
Deploys as a Hugging Face Space (with ZeroGPU runtime support) that hosts the texture generator and its MCP endpoint; only texture generation is exposed, with no resource-pack creation or caller-supplied filesystem paths.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
title: Texture-Craft emoji: 🎨 colorFrom: purple colorTo: pink sdk: gradio sdk_version: 6.31.0 app_file: app.py python_version: 3.12 license: mit
Texture-Craft
Texture-Craft generates transparent 16x16 item textures from text prompts using a diffusion model. It offers local REST and stdio MCP workflows, plus a Gradio Space with MCP tools.
Related MCP server: texel-mcp
Features
Generate one or multiple texture variants from a prompt
Export each tile as base64 PNG or data URI
Remove magenta and edge-connected flat backgrounds, keeping transparent PNG output
Detect GPU/CPU runtime status via the health endpoint
Expose the generation flow through MCP for agent tooling
Example textures
These prompts were used for the freshly generated sample gallery:
"ruby sword, red blade, brown handle"
"blue potion bottle with cork"
"gold coin with a simple embossed star"
"purple dagger with dark handle"
"red apple with green leaf"
"iron axe with orange blade"
"staff with crescent moon at the top"
"green healing potion bottle with cork"
"steel hammer with blue head"
"purple magic orb with dark outline"
Generated textures are 16x16 RGBA PNGs. Background transparency is inferred from the image edges, in addition to the model's magenta chroma-key. A checkerboard in the gallery represents transparent pixels. This works best for flat or repeating backgrounds; complex backgrounds or an item touching the image corners may still need manual cleanup.
Example output gallery
The model was run locally and generated a 10-item example collage. The raw files are stored in the examples/ folder.

Example workflow
flowchart LR
A[User prompt] --> B[TextureEngine.generate_single]
B --> C[Stable Diffusion inference]
C --> D[16x16 transparent tile]
D --> E[Base64 PNG + data URI]
E --> F[REST API / MCP response]
F --> G[UI, plugin, or asset pipeline]Quick start
uv sync
python server.pyThen open: http://127.0.0.1:8000/docs
Generate a texture
curl -X POST http://127.0.0.1:8000/v1/textures/generate \
-H "Content-Type: application/json" \
-d '{
"prompt": "ruby broadsword with glowing runes",
"variants": 2,
"seed": 42,
"steps": 30,
"guidance_scale": 9.0
}'Example response:
{
"prompt": "ruby broadsword with glowing runes",
"count": 2,
"results": [
{
"variant_index": 1,
"seed": 42,
"latency_sec": 1.7,
"base64_png": "iVBORw0KGgoAAAANSUhEUgAA...",
"data_uri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."
}
]
}Local stdio MCP usage
{
"mcpServers": {
"texture-craft": {
"command": "C:\\path\\to\\Texture-Craft\\.venv\\Scripts\\python.exe",
"args": ["C:\\path\\to\\Texture-Craft\\local_mcp_server.py"]
}
}
}The local server uses FastMCP and exposes the generate_texture tool. REST stays available through python server.py; the Hugging Face Space runs app.py and uses Gradio's built-in MCP server.
Example MCP calls
from mcp import ClientSession
# Example tool call payload
payload = {
"prompt": "frost potion with blue crystal glow",
"variants": 1,
"seed": 123,
"steps": 30,
"guidance_scale": 9.0,
}Hugging Face Space
The root README metadata configures this repository as a Gradio Space. For deployment steps, ZeroGPU setup, MCP endpoint verification, usage limits, and model licensing, see Hugging Face Space deployment.
The Space exposes only texture generation. It does not create resource packs or accept caller-supplied filesystem paths.
License and model
The application code is MIT-licensed. The model weights use the Stable Diffusion 1.5 / CreativeML OpenRAIL-M license; review and comply with the model's usage restrictions before deploying or using generated results. No Hugging Face token is required for the public model.
You can also call the local MCP tool with a prompt like:
"golden wand with arcane sparkle"
"shadow blade with dark violet accents"
"emerald crystal shard with subtle glow"
These generate clean item-style textures ready to use in game asset pipelines.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate game-ready 3D models, textures, and audio from natural language, over MCP.
Generate AI images, video, music, and sound effects, and upscale them, from any MCP client.
Generate AI images and videos from any compatible MCP client.
Pixel art for your game, from your coding agent. Generate sprites, items and tiles in your game's style (64 to 1024 px), make variants, reskins and N/E/S/W directions, then edit everything in a full pixel art editor that syncs into your project. Works with Claude, Claude Code, Cursor and ChatGPT; sign in with OAuth, no API key.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to create, edit, validate, and package pixel-art textures for Minecraft resource packs through deterministic MCP tools.549 npm5MIT
- AlicenseAqualityBmaintenanceEnables AI agents to create, validate, review, patch, save, share, and preview Minecraft textures and skins by compiling JSON specs deterministically to PNG, with review sheets, art feedback, docs, examples, and workspace-safe file operations.1477 npm1MIT
- FlicenseNot gradedqualityAmaintenanceExposes tools for local text-to-image generation, listing available models, and browsing past generations over the Model Context Protocol, with stdio entrypoints plus SSE and Streamable HTTP transports so AI agents can create and retrieve images.-
- FlicenseNot gradedqualityAmaintenanceEnables AI agents to generate images from text, list available models, and browse generation history over Model Context Protocol via stdio, SSE, and Streamable HTTP transports.-