How to add sprites to your Godot project with your AI coding assistant
If you build your game with an AI coding assistant, it can fetch your SpriteRig characters for you. You ask for a walk cycle in plain words, and the assistant puts the sprite sheet into your Godot 4 project as a scene that already plays. SpriteRig's connector does this. It is a small free program that runs on your own computer and speaks MCP, the standard that assistants use to reach outside tools. The feature is in beta, on the Indie and Studio plans.
What can the assistant do?
- List the characters saved in your SpriteRig account.
- List a character's AI sprite sheets: the move, the number of frames, and whether it loops.
- Add a sprite sheet to a Godot 4 project as three files: the image, a SpriteFrames resource and an AnimatedSprite2D scene.
- It adds what is already in your account. Making a new character or a new sprite sheet is still done on SpriteRig.
What do you need?
- A SpriteRig account on the Indie or Studio plan.
- At least one AI sprite sheet, made on the AI animation page.
- Node.js 18 or newer on your computer. The connector runs through npx, which comes with Node.js.
- A Godot 4 project: a folder with a project.godot file in it.
- One of these assistants: Claude Code, OpenAI Codex, Google Antigravity, Cursor or Claude Desktop. Other apps that run local MCP servers work too.
New to AI sprite sheets? AI sprite sheets for Unity, Godot and GameMaker
How do you set it up?
It takes about two minutes, and you only do it once on each computer.
- Make a token. On SpriteRig, open Billing, find Connect your AI coding assistant, type a name such as My laptop, and click Make a token. Copy it straight away: it is shown once.
- Add SpriteRig to your assistant. The Billing page shows the command for your assistant with your token already filled in. Paste it into a terminal. The same commands are listed below.
- Open your Godot project in the assistant. Start the assistant in the project folder, the one that holds project.godot, and begin a new chat so that it picks up the new tools.
- Ask for a sprite sheet. For example: "Add my knight's walk animation from SpriteRig to this Godot project." The assistant asks before it writes files. Say yes.
- Open the scene in Godot. Godot imports the new folder by itself. Open the .tscn file or drag it into your level, and the animation plays.
What is the command for each assistant?
Replace srk_your_token with your own token. The Billing page shows the same lines with your token filled in.
To add SpriteRig to Claude Code, run:
claude mcp add --env SPRITERIG_TOKEN=srk_your_token --transport stdio spriterig -- npx -y spriterig-mcp
To add SpriteRig to OpenAI Codex, run:
codex mcp add spriterig --env SPRITERIG_TOKEN=srk_your_token -- npx -y spriterig-mcp
To add SpriteRig to Google Antigravity, run:
agy mcp add --env SPRITERIG_TOKEN=srk_your_token spriterig -- npx -y spriterig-mcp
For Cursor, Claude Desktop, Google Antigravity, add this to the app's MCP settings:
{
"mcpServers": {
"spriterig": {
"command": "npx",
"args": [
"-y",
"spriterig-mcp"
],
"env": {
"SPRITERIG_TOKEN": "srk_your_token"
}
}
}
}Where each app keeps those settings:
- Cursor: ~/.cursor/mcp.json
- Claude Desktop: Settings → Developer → Edit Config
- Google Antigravity: ~/.gemini/config/mcp_config.json
Any other app that runs local MCP servers: add a server with the command npx -y spriterig-mcp and the environment variable SPRITERIG_TOKEN.
Gemini CLI takes the same settings block. Since June 2026 Google only runs Gemini CLI for business licences and paid API keys, so with a personal Google account, use Antigravity.
What can you ask for?
Talk to the assistant the way you normally do. A few examples:
- List my SpriteRig characters.
- Which sprite sheets does my knight have?
- Add the knight's attack sheet to this project at 128 pixels a frame.
- Add the walk sheet again and replace the old files.
What ends up in your Godot project?
One new folder at the top of the project, named after the character and the move, with three files in it:
- A PNG image with the frames side by side. Every frame is a square of 128, 256 or 512 pixels (256 unless you ask for another size), all at the same scale, with the feet on the same line.
- A SpriteFrames resource (.tres) with one animation, named after the move.
- An AnimatedSprite2D scene (.tscn) that plays it, with its origin at the character's feet.
Adding a sheet costs no credits. It was paid for when it was made.
To export by hand instead, see How to import animated sprites into Godot 4
Is it safe to connect an assistant?
- The connector only writes inside the project folder you name, and never replaces existing files unless you ask it to.
- A token can list your characters and sprite sheets and download a sheet. It cannot spend credits, change your account or delete anything.
- You can have up to 5 tokens, for example one for each computer, and revoke any of them on the Billing page at any time.
- The connector is open source under the MIT license, and published on npm as spriterig-mcp.
What if something doesn't work?
- The assistant doesn't see SpriteRig.
- Start a new chat, or restart the assistant, after adding it. The first start can take a few seconds while npx downloads the connector, so a quick status check may show it as not connected yet.
- It says the token isn't valid.
- The token was revoked or not copied whole. Make a new one on the Billing page and run the command again.
- It says the connector is available on Indie and Studio.
- The account the token belongs to is on the Free plan.
- It says the folder isn't a Godot project.
- Give the assistant the full path of the folder that holds project.godot.
- It says the files already exist.
- Ask it to replace them, or to use a different name.
Frequently asked questions
- Which AI coding assistants work with SpriteRig?
- Claude Code, OpenAI Codex, Google Antigravity, Cursor and Claude Desktop have been tested. Any other app that can run a local MCP server should work with the same command.
- Does adding a sprite sheet cost credits?
- No. Credits are spent when the sprite sheet is made on SpriteRig. Adding it to a project is free, as many times as you like.
- Can the assistant create a new character or animation?
- Not yet. It lists and adds what is already in your account. Make the character and its sprite sheets on SpriteRig first.
- Does it work with Unity or GameMaker?
- Not yet. The connector writes Godot 4 files. For Unity and GameMaker, download the sheet from the AI animation page instead.
- What is MCP?
- The Model Context Protocol, an open standard that lets AI assistants use outside tools. SpriteRig's connector is a small MCP server that runs on your own computer.
- Do I have to install anything?
- Only Node.js. The command uses npx, which downloads the connector the first time you use it.
The connector is part of the Indie and Studio plans. Rigging, posing and export are free on every plan. Start with 20 free credits.