PixelLab Forge MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PixelLab Forge MCPCreate a 32px tall pixel art knight with a shield."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PixelLab Forge MCP
An MCP server that connects AI assistants to the PixelLab pixel art generation API. Generate sprites, tilesets, characters, animations, and more directly from Claude, Cursor, or any MCP-compatible client.
Generated images are automatically saved to ./pixellab-forge-output/ in your project directory, ready to be moved into your game assets.
Prerequisites
Node.js 18 or later
A PixelLab API key — get one at pixellab.ai/account
Related MCP server: aseprite-mcp
Setup
No installation needed. npx downloads and runs the package automatically on first use.
Package registry:
pixellab-forge-mcpis published to the public npm registry (npmjs.org) — that's whatnpx/npm installuse. It is not distributed via GitHub Packages, so the repo's/pkgs/npm/…page will 404; that's expected.
Claude Code (CLI)
claude mcp add pixellab-forge-mcp -e PIXELLAB_API_KEY=your-api-key-here -- npx pixellab-forge-mcpThis adds it to the current project. To make it available across all your projects:
claude mcp add pixellab-forge-mcp -s user -e PIXELLAB_API_KEY=your-api-key-here -- npx pixellab-forge-mcpThat's it. Claude Code will start the server automatically when you begin a conversation.
Claude Desktop
Add to your config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"pixellab-forge-mcp": {
"command": "npx",
"args": ["pixellab-forge-mcp"],
"env": {
"PIXELLAB_API_KEY": "your-api-key-here"
}
}
}
}Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"pixellab-forge-mcp": {
"command": "npx",
"args": ["pixellab-forge-mcp"],
"env": {
"PIXELLAB_API_KEY": "your-api-key-here"
}
}
}
}Other MCP Clients
Any MCP client that supports stdio transport can use PixelLab Forge. Set the command to npx pixellab-forge-mcp and pass PIXELLAB_API_KEY as an environment variable.
Generated Images
When a tool returns image data, PixelLab Forge automatically saves the images as PNGs to ./pixellab-forge-output/ in whatever directory the MCP server is running from (usually your project root).
Image inputs can be passed by file_path instead of inline base64 — any image argument accepts { "file_path": "pixellab-forge-output/sprite.png" }, which the server resolves from disk before calling the API (saves passing large base64 blobs through the model). Paths are restricted to the output directory and workspace root. The dedicated read_image tool remains available for loading an image explicitly.
Add this to your .gitignore:
pixellab-forge-output/Available Tools (66)
Generation tools automatically poll for results — no manual job status checking needed. If a job takes longer than 10 minutes or the connection drops, use list_pending_jobs to find the job ID and get_job_status to retrieve the result.
Image Generation
Tool | Description | Key Options |
| Generate pixel art from text |
|
| Match style from 1-4 references |
|
| Game UI elements (buttons, panels, icons) |
|
| Pixen engine (max area 512×512, dims ÷4) |
|
| Pixflux engine (32-400px) |
|
| Pixflux engine tuned for backgrounds/scenes | Same as |
| Bitforge engine (max 200px) |
|
Characters & Objects
Tool | Description | Key Options |
| Character via v3 model (32-256px, newest) |
|
| Character/object via Pro engine (32-168px) |
|
| Character with N/S/E/W views |
|
| Character with 8 directional views | Same as 4dir |
| New state/variant of a saved character |
|
| Animate saved character (template only) |
|
| Animate saved character (template/v3/pro) |
|
| Object, single direction (32-256px) |
|
| Object with 8 directional views (32-256px) |
|
| Animate a saved object |
|
| New state/variant of a saved object |
|
| Keep specific candidate frames as objects |
|
| Accept an object as-is (clear review) |
|
| List with pagination |
|
| Get details by ID | |
| Delete by ID | |
| Export character as ZIP (saved to | |
| Manage tags |
Animation
Tool | Description | Key Options |
| Animate from text + reference |
|
| Animate existing image (32-256px) |
|
| Animate from first/last keyframes |
|
| Pose control via keypoints |
|
| Edit animation frames (2-16) |
|
| Generate in-between frames |
|
| Apply outfit to frames |
|
| Extract keypoints from image |
|
Rotation
Tool | Description | Key Options |
| 8 directional views (32-168px) |
|
| 8 rotations from one frame (v3) |
|
| Rotate between views/directions |
|
Editing & Inpainting
Tool | Description | Key Options |
| Batch edit 1-16 images |
|
| Edit single image |
|
| Mask-based editing |
|
| Inpainting (legacy, max 200px) |
|
Image Operations
Tool | Description | Key Options |
| Convert photo to pixel art |
|
| Convert photo to pixel art (Pro, auto-sizes) |
|
| AI-powered pixel art resize |
|
| Remove background (max 400px) |
|
Tilesets
Tool | Description | Key Options |
| Top-down tileset (16 or 32px) |
|
| Platformer tileset |
|
| Isometric tile (16-64px) |
|
| Pro tiles (hex, iso, octagon, square) |
|
| Retrieve by ID | |
| List with pagination |
|
Map Objects
Tool | Description | Key Options |
| Game-ready object |
|
Prompt Enhancement
Expand a short description into a richer prompt. These return enhanced text only — they do not generate images.
Tool | Description | Key Options |
| Enrich a prompt for |
|
| Enrich a motion prompt for |
|
| Enrich a prompt for |
|
Account & Jobs
Tool | Description |
| Check your credit balance |
| Check a background job by ID |
| List jobs that haven't completed (for recovery after disconnection) |
| Recent job history (auto-pruned after 24h) |
| Load a saved PNG as a Base64 image to pass into other tools |
Common Options
Most tools share these parameters, but the field names differ between endpoint generations:
Concept | v2 endpoints | Legacy endpoints |
Prompt adherence | n/a |
|
Transparent background |
|
|
Color reference | n/a |
|
Style controls | n/a |
|
Negative prompt | n/a |
|
Isometric mode | n/a |
|
Reproducibility |
|
|
Character, object, tileset, and map object endpoints also accept text_guidance_scale, outline, shading, detail, and color_image.
Usage
Just describe what you want in plain language. The assistant picks the right tool and parameters automatically.
Quick Examples
Sprites and icons:
"Generate a 64x64 pixel art knight with a blue cape, no background"
"Make a 16x16 health potion icon"
"Create a 128x128 dragon boss with detailed shading and thick outlines"Characters (persistent, multi-directional):
"Create a 48x48 character with 4 directions: a dwarf blacksmith in a leather apron, chibi proportions"
"Animate that character with the walk template"
"Now add a fireball animation"Tilesets:
"Create a 32x32 top-down tileset: ocean water below, sandy beach on top, foam transition"
"Make a 16x16 sidescroller tileset with stone platforms"Editing existing art:
"Edit this sprite to make the armor gold instead of silver"
"Remove the background from this image"
"Generate 8 rotations of this character"Which Tool Gets Used?
The assistant picks the right tool automatically, but the key decision is:
generate_image— default for most requests, highest quality, largest sizesgenerate_with_style— when you want new art matching existing art ("in the same style as these sprites")generate_ui— for game UI elements (buttons, panels, health bars, icons)create_tileset/create_tiles_pro— for tileable terrain; standard for square RPG tiles, pro for hex/isometric/octagoncreate_character_4dir/8dir— for persistent characters you can animate later by ID
Key Concepts
Sizes are in pixels as
width x height— different tools have different limits (e.g. characters max 128x128,generate_imagegoes up to 792x688)Transparent backgrounds are the default on most tools — ask for a background explicitly if you want one
Characters are persistent — once created, you can animate them by ID without re-describing
Seeds make results reproducible — same seed + same description = same output
For detailed size limits, style controls, endpoint comparison, and step-by-step workflows, see the Prompting Guide.
Prompt Commands
PixelLab Forge includes MCP prompt templates that appear as slash commands in supported clients (Claude Desktop, Cursor, etc.):
Command | Description |
| Overview of all tools and how to use them |
| Generate a pixel art sprite |
| Create a character with directional views + animation |
| Animate an existing sprite or character |
| Create a top-down or sidescroller tileset |
| Create hex, isometric, or octagon tiles |
| Generate game UI elements |
| Generate art matching existing sprites' style |
| Edit or modify an existing sprite |
Reliability
Auto-polling: Generation jobs are polled every 2 seconds for up to 10 minutes
Retry on failure: Network errors during polling are retried 3 times with backoff
Job recovery: If the connection drops, job IDs are logged to stderr and persisted to disk. Use
list_pending_jobsto find them andget_job_statusto retrieve resultsImage saving: Generated images are automatically saved as PNGs to
./pixellab-forge-output/
Testing
npx @modelcontextprotocol/inspector node dist/index.jsSet PIXELLAB_API_KEY in the inspector's environment variables, connect, and test any tool.
Contributing
Contributions are welcome via pull requests.
See CHANGELOG.md for release history. Maintainers: see RELEASING.md for the release process.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/rabbitcannon/pixellab-forge-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server