• OPTIMIZED
  • COORDINATES
  • ANALYSIS
  • HUMAN

How to automate sprite sheet generation with your AI

Connect this MCP to your AI client to handle the math of texture packing. Once connected, your agent manages the spatial arrangement of your assets.

Ask AI about this page

Short answer

How can I automate sprite sheet generation with my AI?

Your AI client uses the 2D Guillotine Packer to calculate the best way to fit individual sprites into a single texture. It outputs optimized coordinates that you can use to build your final sprite sheet. You'll get a precise layout that minimizes wasted space.

Where your assets land.

The outcomes of packing

The AI processes your asset dimensions to produce these results.

OPTIMIZED

Tight texture layouts

The AI calculates the most efficient way to group rectangles. You get a layout that minimizes empty space.

COORDINATES

Precise UV data

The agent provides the exact X and Y positions for every asset. This data maps directly to your sprite sheet.

ANALYSIS

Density reports

Your agent can tell you how much of the texture is actually being used. This helps you decide if you need a larger sheet.

HUMAN

Manual adjustments

The AI handles the math, but you decide if the final layout meets your specific engine requirements.

The workflow

What your AI does when the asset list arrives.

The AI takes your raw dimensions and turns them into a structured layout.

  1. Analyze dimensions

    The agent looks at the width and height of every individual sprite you want to pack.

    calculate_packing_density
  2. Arrange sprites

    The AI runs the guillotine algorithm to find the best fit for every rectangle.

    pack_rectangles
  3. Verify efficiency

    The agent checks the final layout to ensure the assets are packed tightly.

    calculate_packing_density
  4. Output coordinates

    The AI prepares the final set of coordinates for your game engine.

    pack_rectangles

Try it

Copy these to start.

Use these prompts to kick off the packing process.

Starting points

Swap the bracketed text with your actual asset dimensions or file lists.

2D Guillotine Packer Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_QE7g1HY0ehCZ2CR6LMkpqQ3mw9PuboVh52TfHu6g/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — 2D Guillotine Packer capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "2d-guillotine-packer-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_QE7g1HY0ehCZ2CR6LMkpqQ3mw9PuboVh52TfHu6g/mcp"
    }
  }
}
Copy into chat04
  • Pack these sprite dimensions into a 1024x1024 texture: [list dimensions here].

  • Calculate the packing density for these assets: [list dimensions here].

  • I have a list of 50 sprites in 'assets/player_run/'. Can you pack them into a single sheet?

  • Check how much wasted space I have in this current layout: [list coordinates].

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect 2D Guillotine Packer once, then ask.

You only need to link the MCP to your client once. After that, your agent can handle any packing task you throw at it.

Connect 2D Guillotine Packer to your AI

FAQ

How the packing task behaves

  • 01

    Can the AI generate the actual PNG image file?

    No. The AI calculates the coordinates and the layout, but you must use those coordinates to generate the image in your engine or image editor.

  • 02

    Does the AI decide the final texture size?

    You decide the target texture size. The AI then works to fit your assets within those specific bounds.

  • 03

    Can the AI rotate sprites to fit better?

    No. This specific tool focuses on standard rectangle packing without rotation.

  • 04

    Will the AI delete my original asset files?

    No. The AI only reads the dimensions you provide and does not interact with your local file system to delete or move files.

  • 05

    Can I ask the AI to re-pack if the density is too low?

    Yes. You can ask the agent to try a different target size or check the density again if the first attempt isn't efficient enough.

  • More questions about 2D Guillotine Packer? The Connector page answers them. See everything the 2D Guillotine Packer Connector can do

Connect 2D Guillotine Packer to Claude, Cursor, ChatGPT & more