2D Guillotine Packer

2D Guillotine Packer MCP Connector for Claude

A+

Efficiently pack 2D rectangles into a container using the Guillotine split algorithm.

3 tools Official Updated Oct 1, 2026 Official Vinkius Partner

The 2D Guillotine Packer is a geometric utility designed to determine if a collection of rectangular items can be successfully arranged within a fixed bounding container. Using the efficient Guillotine split algorithm, it manages space by partitioning empty areas into smaller sub-rectangles as items are placed. This tool is ideal for bin-packing problems in UI layout, sprite sheet generation, and material cutting optimization. You can use pack_rectangles to find exact coordinates for each item, calculate_packing_density to measure area utilization, and validate_item_compatibility to perform quick pre-checks on item dimensions.

bin-packingguillotinerectangleslayoutalgorithm

3 tools expose this connector's capabilities to your AI agent.

calculate_packing_density

Calculates how much of the container's total area is occupied by placed items

pack_rectangles

Determines if a set of 2D rectangles can fit inside a larger bounding rectangle

validate_item_compatibility

Performs a quick pre-check to see if any item's intrinsic size makes it impossible to fit

See how to talk to your AI agent using 2D Guillotine Packer.

Can you pack a 10x10, 5x5, and 2x2 rectangle into a 15x15 container?

Yes, all items can be placed. The 10x10 item is at (0,0), the 5x5 item is at (10,0), and the 2x2 item is at (10,5).

Check if a 20x20 item can fit in a 15x15 container.

No, the 20x20 item is too large for the 15x15 container boundaries.

What is the packing density of my current placement?

The calculated packing density for the provided placements within the container is 0.65.

It uses a Guillotine split strategy. The algorithm sorts items by height in descending order and places them into available free rectangles, splitting any remaining space into two new smaller rectangles after each placement.

Related Connectors