Skip to article

Pixel Art & Game Asset MCP Quickstart

Connect Claude Code, Cursor, or Codex to the Sprite Flow MCP server (23 tools) to generate and reuse 2D game assets.

Connect an AI coding agent

Sprite Flow exposes a stateless HTTP JSON MCP server (v1.3.0, 23 tools) at https://spriteflow.io/api/mcp for Claude Code, Cursor, Codex, and any client supporting remote HTTP MCP with Bearer headers.

  1. Create a scoped API key in API & MCP settings.
  2. Export SPRITEFLOW_API_KEY in the environment that launches your client.
  3. Add the server snippet from Client configuration.
  4. Verify authentication and tools/list discovery in settings—discovery spends no credits.

Available MCP tools (23 total)

12 AI generation tools

  • generate_character — 2D character concepts, sheets, turnarounds, and full-body sprites (Web tool)
  • generate_sprite_motion — Classic (4–16 frames) and Pro (32 frames) 2D sprite animations (Web tool)
  • generate_sprite_replacement — AI sprite recolor, weapon swap, and prop addition (Web tool)
  • generate_direction_sprites — 4-direction and 8-direction character turnaround views (Web tool)
  • generate_direction_animation — Compass-direction animation batches in Basic or Pro mode (Web tool)
  • generate_npcs — Coordinated casts of 4, 9, or 16 NPCs (Web tool)
  • generate_map — World, region, settlement, dungeon, and level maps (Web tool)
  • generate_tileset — Fixed 4×4 16-tile corner16-v2 Wang corner terrain atlases (Web tool)
  • generate_props — Coordinated 4, 9, or 16-slot transparent prop grids (Web tool)
  • extract_scene_assets — Extract up to 32 transparent PNG objects from a scene (Web tool)
  • generate_music — Game music and songs via Lyria or Suno (Web tool)
  • generate_sound_effects — Custom 1–22s game SFX batches across ElevenLabs V3, Sonilo v1.1, and Stable Audio 3 Small SFX (Web tool)

11 discovery, upload, lookup, and download tools

  • get_capabilities, estimate_cost, get_credit_balance, get_task
  • upload_image (local PNG/JPEG/WebP up to 4 MiB as base64), create_upload_url (presigned PUT up to 20 MiB, 60-minute reservation), confirm_upload
  • search_assets, list_projects, list_characters, get_download_url (5-minute signed download URL)

Run a complete workflow

Try this prompt in a connected agent:

Discover Sprite Flow's available operations. Estimate the cost of a 1k full-body pixel ranger and a Pro walking animation. Explain the cost before generation. Generate the character once, poll it to a terminal state, reuse its ready asset in the animation, then retrieve the download URL and save the file locally. Preserve each idempotency key when recovering any lost response.

The agent executes: get_capabilities → estimate_cost → generate_character → get_task → generate_sprite_motion → get_task → get_download_url.

Understand tool results

Tools return structured JSON in structuredContent alongside a JSON text copy. A generation call returns a task receipt immediately; poll get_task after pollAfterSeconds until terminal is true. No OAuth, SSE subscription, or experimental MCP Tasks support is required.

Reuse files and recover batches

Pass a public HTTPS image URL directly when available, or call search_assets to reuse existing ready files without re-uploading. For local files up to 4 MiB, call upload_image with standard base64; for files up to 20 MiB, use create_upload_url → HTTP PUT → confirm_upload (see Uploads). For batches, inspect individual items and preserve successful files—never resubmit an unknown paid request with a new idempotency key.

Permissions and next steps

Every tool call authenticates the key owner and verifies the scopes required for that tool (for example, get_capabilities checks tasks:read without checking balance). Generation tools additionally verify credit balance, and get_download_url checks your account's download entitlements. See Authentication, API quickstart, Task lifecycle, and Errors & limits.