GUIDES API OPEN APP

SpriteLab MCP

Every SpriteLab generation mode as tools for Claude Code, Cursor, Claude Desktop, Windsurf and any MCP client. One config line, your API key, and the same billing as the REST API.

Private beta. Runs on your sl_live_… API key; key issuing is invite-only while we harden it. Join the Discord to get in.
ON THIS PAGE

Overview

The SpriteLab MCP server exposes every generation mode as tools for Claude Code, Cursor, Claude Desktop, Windsurf and any other MCP client — generate pixel art without leaving your editor or agent.

Same key, same billing

The MCP server sits on top of the REST API: your sl_live_… key, top-up credits only, automatic refunds on failure, and the same subscriber gate on Micro, Reskin and Backgrounds.

Setup

Endpoint: https://spritelab.dev/mcp (streamable HTTP).

Claude Code

terminal
claude mcp add --transport http spritelab https://spritelab.dev/mcp \
  --header "Authorization: Bearer sl_live_YOUR_KEY"

Cursor / Windsurf / generic

mcp.json
{
  "mcpServers": {
    "spritelab": {
      "url": "https://spritelab.dev/mcp",
      "headers": { "Authorization": "Bearer sl_live_YOUR_KEY" }
    }
  }
}

claude.ai web connectors need OAuth, which we don't support yet; use the key-header clients above.

Tools

Thirteen tools, one per generation mode plus the free iteration and probe calls. Costs and the subscriber gate are identical to the REST API.

ToolCostWhat it does
generate_sprite1 / 6 CRText to sprite: transparent bg, clean palette, 1px outline
generate_sprite_pack2 / 9 CRA whole grid of sprites in one call, split into individual PNGs. Cheapest per sprite
generate_rotation4 / 15 CR4-direction rotation sheet (front/right/back/left) for characters & mobs: frames + spritesheet + GIF
resize_spriteFreeRe-render any generated sprite at a new size or tuning. The iteration loop
convert_image3 CRAny image to faithful pixel art
micro_sprite3 / 10 CRExact-size 16-64px sprites on a true pixel grid (subscribers)
reskin_sprite2 / 6 CR / variantThemed variants of an existing sprite, identical dimensions (subscribers)
generate_background4 / 15 CRFull-frame scene art up to 8K (subscribers)
generate_tileset10 / 30 CRAutotiling tileset + drop-in Godot 4 & Tiled files (subscribers)
animate_sprite20 CRSubmit an animation job (async)
check_animation_jobFreePoll an animation job; returns spritesheet + GIF URLs when done
get_creditsFreeBalance + tier
enhance_promptFreeRewrite a rough subject into a stronger sprite prompt

Saving results to disk

Tool results are deliberately compact: a small JSON summary, a preview image when it's tiny, and a download_url. Your agent saves the real asset with the same key:

terminal
curl -H "Authorization: Bearer sl_live_YOUR_KEY" \
  "https://spritelab.dev/api/v1/sprites/SPRITE_ID/download" \
  --output assets/sprites/knight.png

So prompts like this just work in Claude Code:

> generate a 64px armoured knight sprite and save it to
  assets/sprites/knight.png, then make ice and lava variants
  of it in the same folder

Notes for agents

  • For a coherent set, generate the hero first and pass its sprite_id as style_reference_id on later generate_sprite calls: palette and proportions match automatically.
  • Prefer epic quality unless the user asks for better; it's a sixth of the cost and usually enough.
  • Iterate with resize_sprite (free), not by regenerating.
  • animate_sprite returns immediately; poll check_animation_job every 4-5 seconds, typical total 60-120s.
  • Every result reports credits_remaining; failed generations refund automatically.
  • Rate limit: 60 requests per minute per key, shared with the REST API.

Billing

Identical to the REST API: top-up (purchased) credits only, the monthly subscription bucket is never touched, and Micro / Reskin / Backgrounds need an active subscription. Full cost table lives in the API billing section. Key issuing is invite-only during the private beta — ask in the Discord.