Repository avatar
AI Tools
v1.0.0
active

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: true when no plan uses less sheet area
  • A plain-English summary and a share link with the drawn layouts, ready for AI agents

Quick start

  1. Sign up (30 free optimizations), then create a key in Settings -> API keys.
  2. 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

MethodPathWhat it doesCredits
POST/api/v1/cutCompute a cutting plan for one task (?share=true adds share_url)1
POST/api/v1/validateCheck a task without solvingfree
GET/api/healthService status, no keyfree
POST/api/mcpMCP 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\"". unit is for display only.
  • Sizes are finished sizes. orientation: 0 may rotate, 1 keep as given (grain), 2 must rotate.
  • Errors carry error.code, error.field and error.hint. 402 = not enough credits (error.buy_url), 429 = retry after Retry-After seconds.
  • 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

LanguageFile
curlexamples/curl/cut.sh
Pythonexamples/python/cut.py
Nodeexamples/node/cut.mjs

Requests in examples/requests/: simple (mm), options (trim, banding, offcuts, two sheet sizes), inches (fractions and feet).

AI agents

Support

Issues here are for the spec and the examples. For accounts, credits or integrations write to james@uucut.cc.

No installation packages available.

Remote