
uucut
io.github.nlog2n/uucut
Cutting optimizer for rectangular parts on stock sheets: kerf, trim, edge banding, grain, offcuts.
Documentation
uucut.cc API
uucut.cc is a hosted cutting optimizer for rectangular parts on stock sheets (panel saw, guillotine cuts): wood panels, glass, plastic and sheet metal. This repository holds the OpenAPI spec, runnable examples and the MCP configuration. The optimizer itself is a hosted service; it is not in this repository.
What it does
- Several sheet sizes and stock limits; the optimizer picks the sizes
- Saw kerf, sheet trim, edge banding (finished vs cut size), grain / rotation rules
- Offcuts from earlier jobs used first, materials, sheet prices (cheapest plan)
- Cut order, cut count, fence settings, stack cutting
- Proven optimal:
optimal: truewhen no plan uses less sheet area - A plain-English
summaryand a share link with the drawn layouts, ready for AI agents
Quick start
- Sign up (30 free optimizations), then create a key in Settings -> API keys.
- Run:
curl "https://uucut.cc/api/v1/cut?share=true" \
-H "Authorization: Bearer $UUCUT_KEY" -H "Content-Type: application/json" \
-d @examples/requests/simple.json
The answer comes back in the same request (at most about 30 seconds):
{"summary": "Cuts 14 of 14 parts from 2 sheets of 2440 x 1220 (Plywood 18). Utilization 87.7%. Proven optimal: no plan cuts these parts with less sheet area. 21 saw cuts.",
"share_url": "https://uucut.cc/s/...", "optimal": true, "sheets": 2, "distributions": [...]}
Endpoints
| Method | Path | What it does | Credits |
|---|---|---|---|
| POST | /api/v1/cut | Compute a cutting plan for one task (?share=true adds share_url) | 1 |
| POST | /api/v1/validate | Check a task without solving | free |
| GET | /api/health | Service status, no key | free |
| POST | /api/mcp | MCP server for AI agents, see mcp/ | 1 per optimization |
Full reference: https://uucut.cc/api/docs - spec: openapi/openapi.json
(also at https://uucut.cc/api/openapi.json). Generate a client with any OpenAPI generator, for example
npx openapi-typescript openapi/openapi.json -o uucut.d.ts.
Things to know
- Units: lengths are numbers in one unit of your choice (mm or inches); the result uses the same unit. Strings
with fractions and feet also work and are read as inches:
"23 5/8","7' 6\"".unitis for display only. - Sizes are finished sizes.
orientation: 0 may rotate, 1 keep as given (grain), 2 must rotate. - Errors carry
error.code,error.fieldanderror.hint. 402 = not enough credits (error.buy_url), 429 = retry afterRetry-Afterseconds. - Limits: 10 requests per minute per account, 500 rows of sheets and of parts per task.
- Pricing: credits, US$10 per 100 optimizations, no subscription. See https://uucut.cc/pricing.
Examples
| Language | File |
|---|---|
| curl | examples/curl/cut.sh |
| Python | examples/python/cut.py |
| Node | examples/node/cut.mjs |
Requests in examples/requests/: simple (mm), options (trim, banding, offcuts, two
sheet sizes), inches (fractions and feet).
AI agents
- MCP:
https://uucut.cc/api/mcp, seemcp/README.md - For language models: https://uucut.cc/llms.txt
Support
Issues here are for the spec and the examples. For accounts, credits or integrations write to james@uucut.cc.
No installation packages available.