Docs menu
Docs/AI agents

Connect Cursor to Spritory

Connect Spritory to Cursor and ask its agent for pixel art sprites and effects while you build your game, without leaving the editor.

What you need

A Spritory token and the server address https://spritory.com/api/mcp. See how to connect to create a token. Below, replace spt_your_token with yours.

Pick a config file

  • One project. .cursor/mcp.json in the project folder.
  • Every project. ~/.cursor/mcp.json in your home folder.

Add Spritory

Add Spritory under mcpServers. This example reads the token from an environment variable, which keeps it out of the file:

mcp.json
{
  "mcpServers": {
    "spritory": {
      "url": "https://spritory.com/api/mcp",
      "headers": {
        "Authorization": "Bearer ${env:SPRITORY_TOKEN}"
      }
    }
  }
}

Set your token

Set SPRITORY_TOKEN in your shell profile, then restart Cursor so it sees the variable:

bash
export SPRITORY_TOKEN="spt_your_token"

Check the connection

Open Cursor Settings and go to the MCP section. Spritory should be listed and enabled, with its tools. If it shows an error, check the address and the token.

Next steps

Ask your agent to make something in Spritory. For ideas, see prompt ideas. If something goes wrong, see troubleshooting.

Try it in the Forge

Open the editor for free and build along with this page.

Open the Forge