# SpriteSheetGen

> SpriteSheetGen is a freemium MCP server for game development. MCP server and CLI that generates 2D game sprite sheets and Godot or Phaser files. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, API, Linux, macOS, Windows
- **Website:** https://terror668.github.io/spritesheetgen/
- **Repository:** https://github.com/terror668/spritesheetgen
- **MCP Registry name:** io.github.terror668/spritesheetgen
- **Categories:** [game development](https://ai-powered.com/categories/game-development)
- **Listing updated:** 2026-11-23

## About

SpriteSheetGen lets a coding agent such as Claude Code, Codex or Cursor create a 2D game character, animate it, and write the results into a project folder. Each export includes a PNG sheet, a TexturePacker-style JSON atlas, a Godot 4 SpriteFrames resource, single frames and a GIF preview.

The agent estimates the price first and only spends credits after the user approves. Each paid request carries a credit cap and a client key so retries are not charged twice. API keys have their own permissions and daily and total spending limits.

The package also works without an agent, through a command line tool with JSON output for scripts. It can pack a GIF you already have into a sprite sheet at no cost and needs no key. It is aimed at indie and hobbyist game developers working with Phaser, PixiJS, Godot or similar engines.

## Features

- **Character generation from text:** Creates a single character image from a written description, or uses your own PNG, JPEG or WebP instead.
- **Preset animations:** Produces walk, run, idle, attack and jump animations for a character.
- **Engine-ready exports:** Writes sprite sheets, JSON atlases and Godot SpriteFrames files into your project folder.
- **Price estimates before spending:** Shows the cost of a character or action and the key's remaining budget before any paid call.
- **Spending limits per key:** Each API key has its own permissions and daily and total credit caps.
- **Command line interface:** Runs the same features from a terminal with JSON output for scripts.

## Good for

- Generating placeholder characters and their walk cycles for a prototype
- Packing an existing GIF into a transparent sprite sheet for Phaser or Godot
- Producing single frames for Unity or GameMaker projects
- Creating idle and attack animations for a 2D platformer character

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add spritesheetgen --env SPRITESHEETGEN_API_KEY='<SPRITESHEETGEN_API_KEY>' -- npx -y @spritesheetgen/cli
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "spritesheetgen": {
      "command": "npx",
      "args": [
        "-y",
        "@spritesheetgen/cli"
      ],
      "env": {
        "SPRITESHEETGEN_API_KEY": "<SPRITESHEETGEN_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "spritesheetgen": {
      "command": "npx",
      "args": [
        "-y",
        "@spritesheetgen/cli"
      ],
      "env": {
        "SPRITESHEETGEN_API_KEY": "<SPRITESHEETGEN_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "spritesheetgen": {
      "command": "npx",
      "args": [
        "-y",
        "@spritesheetgen/cli"
      ],
      "env": {
        "SPRITESHEETGEN_API_KEY": "<SPRITESHEETGEN_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "spritesheetgen": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@spritesheetgen/cli"
      ],
      "env": {
        "SPRITESHEETGEN_API_KEY": "<SPRITESHEETGEN_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add spritesheetgen --env SPRITESHEETGEN_API_KEY='<SPRITESHEETGEN_API_KEY>' -- npx -y @spritesheetgen/cli
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.spritesheetgen]
command = "npx"
args = ["-y", "@spritesheetgen/cli"]
env = { SPRITESHEETGEN_API_KEY = "<SPRITESHEETGEN_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "spritesheetgen": {
      "command": "npx",
      "args": [
        "-y",
        "@spritesheetgen/cli"
      ],
      "env": {
        "SPRITESHEETGEN_API_KEY": "<SPRITESHEETGEN_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e SPRITESHEETGEN_API_KEY='<SPRITESHEETGEN_API_KEY>' spritesheetgen npx -- -y @spritesheetgen/cli

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "spritesheetgen": {
      "command": "npx",
      "args": [
        "-y",
        "@spritesheetgen/cli"
      ],
      "env": {
        "SPRITESHEETGEN_API_KEY": "<SPRITESHEETGEN_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "spritesheetgen": {
      "command": "npx",
      "args": [
        "-y",
        "@spritesheetgen/cli"
      ],
      "env": {
        "SPRITESHEETGEN_API_KEY": "<SPRITESHEETGEN_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "spritesheetgen": {
      "command": "npx",
      "args": [
        "-y",
        "@spritesheetgen/cli"
      ],
      "env": {
        "SPRITESHEETGEN_API_KEY": "<SPRITESHEETGEN_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "spritesheetgen": {
      "command": "npx",
      "args": [
        "-y",
        "@spritesheetgen/cli"
      ],
      "env": {
        "SPRITESHEETGEN_API_KEY": "<SPRITESHEETGEN_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "spritesheetgen": {
      "command": "npx",
      "args": [
        "-y",
        "@spritesheetgen/cli"
      ],
      "env": {
        "SPRITESHEETGEN_API_KEY": "<SPRITESHEETGEN_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "spritesheetgen": {
      "command": "npx",
      "args": [
        "-y",
        "@spritesheetgen/cli"
      ],
      "env": {
        "SPRITESHEETGEN_API_KEY": "<SPRITESHEETGEN_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "spritesheetgen": {
      "command": "npx",
      "args": [
        "-y",
        "@spritesheetgen/cli"
      ],
      "env": {
        "SPRITESHEETGEN_API_KEY": "<SPRITESHEETGEN_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "spritesheetgen": {
      "command": "npx",
      "args": [
        "-y",
        "@spritesheetgen/cli"
      ],
      "env": {
        "SPRITESHEETGEN_API_KEY": "<SPRITESHEETGEN_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 9 tools change data; 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `estimate_sprite`: Price of a character or an action, your balance and the key's remaining budget
- `improve_prompt`: Turns a rough idea into a character description that generates well
- `create_character` (name suggests: changes): One character image from a description
- `upload_character` (name suggests: changes): Uses your own PNG, JPEG or WebP character instead
- `animate_character`: One animation of a character: walk, run, idle, attack or jump
- `get_generation` (name suggests: reads): Status and result of a generation (can wait for it)
- `list_characters` (name suggests: reads): Characters you generated or uploaded
- `list_actions` (name suggests: reads): Animations a character already has
- `export_sprite_sheet` (name suggests: reads): Packs a finished animation or a local GIF into a folder on your machine

## FAQ

### Which AI coding agents can use SpriteSheetGen?

The docs show setup with Claude Code and Codex, and the JSON config example works with clients that read an mcpServers file such as Cursor.

### What does the export contain?

A sheet.png, a sheet.json atlas with an animations block, an animation.tres for Godot 4, a preview.gif, an export.json with the settings and optional individual frames.

### Do I need an account to pack a GIF?

No. Exporting a local GIF needs no key and costs nothing.

### What does SpriteSheetGen need to run?

Node.js 20 or newer. The server communicates over stdio.

### Is SpriteSheetGen free?

SpriteSheetGen has a free plan, with paid plans for more usage or features.

### How do I add SpriteSheetGen to Claude Code?

Run this command in your terminal: claude mcp add spritesheetgen --env SPRITESHEETGEN_API_KEY='<SPRITESHEETGEN_API_KEY>' -- npx -y @spritesheetgen/cli

### What are the best alternatives to SpriteSheetGen?

The closest alternatives to SpriteSheetGen are LPC Character Generator, AI Spritesheet Maker, Sprite AI, Spritesheet Forge and Itemsmith game assets.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [LPC Character Generator](https://ai-powered.com/mcp/lpc-character-generator): LPC Character Generator is an open-source MCP server for game development.
- [AI Spritesheet Maker](https://ai-powered.com/mcp/ai-spritesheet-maker): AI Spritesheet Maker is a freemium MCP server for developer tools.
- [Sprite AI](https://ai-powered.com/mcp/sprite-ai): Sprite AI is an MCP server for design and media.
- [Spritesheet Forge](https://ai-powered.com/mcp/spritesheet-forge): Spritesheet Forge is an MCP server for game development.
- [Itemsmith game assets](https://ai-powered.com/mcp/itemsmith-game-assets): Itemsmith game assets is a freemium MCP server for game development.
- [Sprite Flow](https://ai-powered.com/mcp/sprite-flow): Sprite Flow is a paid MCP server for game development.
- [2D Assets MCP](https://ai-powered.com/mcp/2d-assets-mcp): 2D Assets MCP is an open-source MCP server for game development.
- [GDMaestro](https://ai-powered.com/mcp/gdmaestro): GDMaestro is a paid MCP server for game development.

---
Source: https://ai-powered.com/mcp/spritesheetgen
