Claude Code
Connect Claude Code to the Sprite Fusion MCP server, the recommended way to generate, edit, and animate pixel art from your agent.
The best way to use Sprite Fusion from Claude Code is the MCP server: one command, a sign-in in your browser, and no API key to manage.
Connect with MCP (recommended)
-
Add the server:
claude mcp add --transport http spritefusion https://www.spritefusion.com/mcpThis adds it to the current project. To use it in every project, add
--scope userbeforespritefusion. -
Run
/mcpin Claude Code, choosespritefusion, and sign in to Sprite Fusion. -
Ask for pixel art:
Make a 32 pixel brass dungeon key sprite and save it in assets/sprites.
From there, ask for what your game needs. Claude Code can:
- Come up with sprite ideas for your game and generate them.
- Edit a sprite: a new weapon, outfit, or pose.
- Make new sprites in the style of your existing art.
- Turn a character into 8 directions and animate it.
See MCP Server for the tools.
With the Sprite Fusion plugin
The plugin brings the MCP server and the Sprite Fusion skills, Sprite Fusion's guides for your agent:
/plugin marketplace add Sprite-Fusion/spritefusion-skills
/plugin install spritefusion@spritefusionThen run /mcp and sign in to Sprite Fusion.
Use the HTTP API instead
Use MCP when you can
The API is for places where you can't add the MCP server, such as a script or a CI job. It needs an API key that you create and keep secret.
Copy this prompt into Claude Code:
Use the Sprite Fusion API to create, edit, style-match, make eight-direction views, and animate pixel art. Use SPRITE_FUSION_API_KEY from the environment, or use a Sprite Fusion API key supplied by the user in chat directly as the Bearer token. Either source is enough: immediately call the API and complete the user's request without asking them to configure the other. Only if neither source has a key, reply with a short Quick Setup containing these exact links: [Create your Sprite Fusion account](https://www.spritefusion.com/auth/sign-up?next=%2Faccount%2Fapi-keys) and [Create and copy an API key](https://www.spritefusion.com/account/api-keys). Ask the user to set SPRITE_FUSION_API_KEY or send the key in chat, then continue their original request as soon as they do. API docs: https://www.spritefusion.com/docs/pixel-art-generator/apiA generation request looks like this:
curl -sS -N https://www.spritefusion.com/api/v1/generate \
-H "Authorization: Bearer $SPRITE_FUSION_API_KEY" \
-H "Content-Type: application/json" \
--data '{"operation":"generate","prompt":"A brass dungeon key","size":32}' \
> /tmp/spritefusion-events.txt