Cutting optimizer for rectangular parts on stock sheets: kerf, trim, edge banding, grain, offcuts.
Maintained by@nlog2n(verified)Also a maintainer?
Call this server's tools from your browser. Nothing to install.
Bearer followed by your uucut.cc API key: Bearer sk_...
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
How many credits are left on the user's uucut.cc account (one per optimize_cutting call), and where to buy more.
This tool takes no arguments.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http uucut https://uucut.cc/api/mcp \ --header 'Authorization: Bearer YOUR_TOKEN'
Headers
Authorization (required): Bearer followed by your uucut.cc API key: Bearer sk_...How many credits are left on the user's uucut.cc account (one per optimize_cutting call), and where to buy more.
No arguments.
{
"type": "object",
"title": "account_creditsArguments",
"properties": {}
}Compute the cutting plan for one task: which parts go on which sheets. Returns a plain-English `summary`, a `share_url` with the drawn layouts (show it to the user), totals, parts not cut and one entry per distinct sheet layout. Solves in up to about 30 seconds (`options.time_limit` for less). Uses one credit of the user's uucut.cc account.
| Argument | Type | Description |
|---|---|---|
| task* | any | One cutting task: `sheets` (stock) and `items` (parts) are required. Give `name` a short title in the user's language; it becomes the task title in their task list. |
| share | boolean | Save the plan in the user's task list and return a read-only `share_url` with the drawn layouts. |
| include_layout | boolean | Also return every part's position (x, y, rotated) and the offcuts. Large; only when you need coordinates. |
{
"type": "object",
"$defs": {
"ItemIn": {
"type": "object",
"title": "ItemIn",
"required": [
"width",
"height"
],
"properties": {
"id": {
"anyOf": [
{
"type": "string",
"maxLength": 64
},
{
"type": "null"
}
],
"title": "Id",
"default": null,
"examples": [
"p1"
],
"description": "Your identifier for this part row, returned as `item_id` in the result. Defaults to the row index (\"0\", \"1\", ...)."
},
"edges": {
"type": "string",
"title": "Edges",
"default": "",
"examples": [
"TB"
],
"maxLength": 8,
"description": "Edges to band, as letters of the part as given: `T` top, `B` bottom, `L` left, `R` right (e.g. `\"TB\"`, `\"TBLR\"`). Also accepted: `L1` `L2` `W1` `W2` for the two long and two short sides (e.g. `\"L1L2W1\"`). Empty = no banding. Normalised to TBLR in the result."
},
"label": {
"type": "string",
"title": "Label",
"default": "",
"examples": [
"Side panel"
],
"maxLength": 100,
"description": "Free text, returned unchanged in the result."
},
"width": {
"gt": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Width",
"examples": [
600
],
"description": "Finished width of the part (before rotation). Decimals allowed. With edge banding this is the size after banding; the solver cuts the smaller cut size (see `options.band_thickness`)."
},
"height": {
"gt": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Height",
"examples": [
400
],
"description": "Finished height of the part (before rotation)."
},
"material": {
"type": "string",
"title": "Material",
"default": "",
"examples": [
"18mm plywood"
],
"maxLength": 100,
"description": "Material and thickness, free text. When any part has a material, each part is cut only from sheets of the same material (compared ignoring case and extra spaces); parts without a material use sheets without a material. When no part has a material, sheet materials are ignored."
},
"quantity": {
"type": "integer",
"title": "Quantity",
"default": 1,
"maximum": 2147483647,
"minimum": 1,
"examples": [
4
],
"description": "Number of parts required."
},
"orientation": {
"enum": [
0,
1,
2
],
"type": "integer",
"title": "Orientation",
"default": 0,
"description": "Rotation rule, for parts with grain or a print direction: `0` = may be rotated 90 degrees, `1` = keep as given (width along the sheet width), `2` = must be rotated 90 degrees (width along the sheet height)."
}
},
"description": "A part (piece) to cut: finished size, quantity, rotation rule and edge banding."
},
"TaskIn": {
"type": "object",
"title": "TaskIn",
"required": [
"sheets",
"items"
],
"properties": {
"name": {
"type": "string",
"title": "Name",
"default": "",
"examples": [
"Kitchen cabinet"
],
"maxLength": 200,
"description": "Returned unchanged in the result."
},
"unit": {
"anyOf": [
{
"enum": [
"mm",
"cm",
"m",
"in",
"ft-in"
],
"type": "string"
},
{
"type": "null"
}
],
"title": "Unit",
"default": null,
"description": "Optional: the unit your lengths are in (`mm`, `cm`, `m`, `in`, `ft-in`). It does not change the solve; it is returned in the result, used in `summary`, and used to show sizes on the `share_url` page."
},
"items": {
"type": "array",
"items": {
"$ref": "#/$defs/ItemIn"
},
"title": "Items",
"maxItems": 500,
"minItems": 1,
"description": "Parts to cut, 1 to 500 rows."
},
"sheets": {
"type": "array",
"items": {
"$ref": "#/$defs/SheetIn"
},
"title": "Sheets",
"maxItems": 500,
"minItems": 1,
"description": "Stock sheets, 1 to 500 rows. Several sizes may be mixed."
},
"options": {
"$ref": "#/$defs/OptionsIn"
}
},
"description": "One cutting task: available sheets, required parts and options."
},
"SheetIn": {
"type": "object",
"title": "SheetIn",
"required": [
"width",
"height"
],
"properties": {
"id": {
"anyOf": [
{
"type": "string",
"maxLength": 64
},
{
"type": "null"
}
],
"title": "Id",
"default": null,
"examples": [
"s1"
],
"description": "Your identifier for this sheet row, returned as `sheet_id` in the result. Defaults to the row index (\"0\", \"1\", ...)."
},
"label": {
"type": "string",
"title": "Label",
"default": "",
"examples": [
"Plywood 2440 x 1220"
],
"maxLength": 100,
"description": "Free text, returned unchanged in the result."
},
"price": {
"anyOf": [
{
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
]
},
{
"type": "null"
}
],
"title": "Price",
"default": null,
"examples": [
45.5
],
"description": "Price of one sheet, in any currency. When every full (non-offcut) sheet has a price, plans are compared by total price instead of total area. An offcut without a price is free."
},
"width": {
"gt": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Width",
"examples": [
2440
],
"description": "Sheet width (x direction). Decimals allowed; same unit as all other lengths."
},
"height": {
"gt": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Height",
"examples": [
1220
],
"description": "Sheet height (y direction). Decimals allowed."
},
"offcut": {
"type": "boolean",
"title": "Offcut",
"default": false,
"description": "An offcut left over from an earlier job. Offcuts are used before full sheets (their area counts for only a tenth when comparing plans) and are not trimmed."
},
"material": {
"type": "string",
"title": "Material",
"default": "",
"examples": [
"18mm plywood"
],
"maxLength": 100,
"description": "Material and thickness, free text, returned in the result. Parts with a `material` are cut only from sheets of the same material."
},
"quantity": {
"type": "integer",
"title": "Quantity",
"default": 1,
"maximum": 2147483647,
"minimum": 1,
"examples": [
10
],
"description": "Number of sheets in stock. Use 2147483647 for unlimited stock."
}
},
"description": "A stock sheet (board) size and how many are available."
},
"OptionsIn": {
"type": "object",
"title": "OptionsIn",
"properties": {
"kerf": {
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Kerf",
"default": 0,
"examples": [
4
],
"description": "Saw kerf: width of material removed by each cut, kept between parts."
},
"trim_top": {
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Trim Top",
"default": 0,
"examples": [
10
],
"description": "Trim: width cut off the top edge of every sheet before cutting parts (include the kerf of the trim cut)."
},
"stack_max": {
"type": "integer",
"title": "Stack Max",
"default": 1,
"maximum": 100,
"minimum": 1,
"examples": [
3
],
"description": "Stack cutting: up to this many sheets with the same layout are cut together as one stack. Only changes `cut_count`, `cut_length` and `fence_settings` (counted once per stack) and `stacks`; layouts are the same."
},
"trim_left": {
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Trim Left",
"default": 0,
"description": "Trim on the left edge (x = 0)."
},
"time_limit": {
"anyOf": [
{
"ge": 1,
"le": 30,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
]
},
{
"type": "null"
}
],
"title": "Time Limit",
"default": null,
"examples": [
5
],
"description": "Maximum solving time in seconds, 1 to 30 (default: the full limit, about 28 seconds). The optimizer stops as soon as the plan is proven optimal, otherwise at this limit and returns the best plan found; `optimal` in the result tells which. Set it lower (e.g. 3 to 5) for faster responses on large jobs, at the cost of a plan that may use slightly more material."
},
"trim_right": {
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Trim Right",
"default": 0,
"description": "Trim on the right edge."
},
"trim_bottom": {
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Trim Bottom",
"default": 0,
"description": "Trim on the bottom edge (y = 0)."
},
"band_premill": {
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Band Premill",
"default": 0,
"examples": [
0.5
],
"description": "Pre-milling: material milled off each banded edge before the band is applied."
},
"band_thickness": {
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Band Thickness",
"default": 0,
"examples": [
1
],
"description": "Edge band thickness. For each banded edge the part is cut smaller by `band_thickness - band_premill`, so it reaches its finished size after banding."
},
"offcut_min_area": {
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Offcut Min Area",
"default": 0,
"examples": [
100000
],
"description": "Offcuts whose area is at least this are marked `reusable` (area unit = length unit squared). An offcut is reusable when it meets both `offcut_min_side` and `offcut_min_area`."
},
"offcut_min_side": {
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Offcut Min Side",
"default": 0,
"examples": [
100
],
"description": "Offcuts (leftover rectangles) whose short side is at least this are marked `reusable`."
},
"reduce_patterns": {
"type": "boolean",
"title": "Reduce Patterns",
"default": true,
"description": "When several solutions use the same sheet area, prefer the one with fewer distinct layouts (patterns), which means fewer machine setups. May give slightly less reusable offcut."
}
},
"description": "Cutting options. All lengths use the same unit as the sheet and part sizes; all default to 0 / off."
}
},
"title": "optimize_cuttingArguments",
"required": [
"task"
],
"properties": {
"task": {
"$ref": "#/$defs/TaskIn",
"examples": [
{
"name": "Cabinet",
"unit": "mm",
"items": [
{
"id": "side",
"label": "Side",
"width": 720,
"height": 560,
"quantity": 4
},
{
"id": "door",
"label": "Door",
"width": 716,
"height": 396,
"quantity": 4,
"orientation": 1
}
],
"sheets": [
{
"id": "s1",
"label": "Plywood 18",
"width": 2440,
"height": 1220,
"quantity": 10
}
],
"options": {
"kerf": 4
}
}
],
"description": "One cutting task: `sheets` (stock) and `items` (parts) are required. Give `name` a short title in the user's language; it becomes the task title in their task list."
},
"share": {
"type": "boolean",
"title": "Share",
"default": true,
"description": "Save the plan in the user's task list and return a read-only `share_url` with the drawn layouts."
},
"include_layout": {
"type": "boolean",
"title": "Include Layout",
"default": false,
"description": "Also return every part's position (x, y, rotated) and the offcuts. Large; only when you need coordinates."
}
}
}Check a task without solving and without using a credit: invalid fields, parts larger than every sheet (after trim and banding, with the rotation rule), parts with no sheet of the same material, not enough stock, likely unit mistakes. Use it before optimize_cutting when the input came from a photo, PDF or free text.
| Argument | Type | Description |
|---|---|---|
| task* | any | One cutting task: `sheets` (stock) and `items` (parts) are required. Give `name` a short title in the user's language; it becomes the task title in their task list. |
{
"type": "object",
"$defs": {
"ItemIn": {
"type": "object",
"title": "ItemIn",
"required": [
"width",
"height"
],
"properties": {
"id": {
"anyOf": [
{
"type": "string",
"maxLength": 64
},
{
"type": "null"
}
],
"title": "Id",
"default": null,
"examples": [
"p1"
],
"description": "Your identifier for this part row, returned as `item_id` in the result. Defaults to the row index (\"0\", \"1\", ...)."
},
"edges": {
"type": "string",
"title": "Edges",
"default": "",
"examples": [
"TB"
],
"maxLength": 8,
"description": "Edges to band, as letters of the part as given: `T` top, `B` bottom, `L` left, `R` right (e.g. `\"TB\"`, `\"TBLR\"`). Also accepted: `L1` `L2` `W1` `W2` for the two long and two short sides (e.g. `\"L1L2W1\"`). Empty = no banding. Normalised to TBLR in the result."
},
"label": {
"type": "string",
"title": "Label",
"default": "",
"examples": [
"Side panel"
],
"maxLength": 100,
"description": "Free text, returned unchanged in the result."
},
"width": {
"gt": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Width",
"examples": [
600
],
"description": "Finished width of the part (before rotation). Decimals allowed. With edge banding this is the size after banding; the solver cuts the smaller cut size (see `options.band_thickness`)."
},
"height": {
"gt": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Height",
"examples": [
400
],
"description": "Finished height of the part (before rotation)."
},
"material": {
"type": "string",
"title": "Material",
"default": "",
"examples": [
"18mm plywood"
],
"maxLength": 100,
"description": "Material and thickness, free text. When any part has a material, each part is cut only from sheets of the same material (compared ignoring case and extra spaces); parts without a material use sheets without a material. When no part has a material, sheet materials are ignored."
},
"quantity": {
"type": "integer",
"title": "Quantity",
"default": 1,
"maximum": 2147483647,
"minimum": 1,
"examples": [
4
],
"description": "Number of parts required."
},
"orientation": {
"enum": [
0,
1,
2
],
"type": "integer",
"title": "Orientation",
"default": 0,
"description": "Rotation rule, for parts with grain or a print direction: `0` = may be rotated 90 degrees, `1` = keep as given (width along the sheet width), `2` = must be rotated 90 degrees (width along the sheet height)."
}
},
"description": "A part (piece) to cut: finished size, quantity, rotation rule and edge banding."
},
"TaskIn": {
"type": "object",
"title": "TaskIn",
"required": [
"sheets",
"items"
],
"properties": {
"name": {
"type": "string",
"title": "Name",
"default": "",
"examples": [
"Kitchen cabinet"
],
"maxLength": 200,
"description": "Returned unchanged in the result."
},
"unit": {
"anyOf": [
{
"enum": [
"mm",
"cm",
"m",
"in",
"ft-in"
],
"type": "string"
},
{
"type": "null"
}
],
"title": "Unit",
"default": null,
"description": "Optional: the unit your lengths are in (`mm`, `cm`, `m`, `in`, `ft-in`). It does not change the solve; it is returned in the result, used in `summary`, and used to show sizes on the `share_url` page."
},
"items": {
"type": "array",
"items": {
"$ref": "#/$defs/ItemIn"
},
"title": "Items",
"maxItems": 500,
"minItems": 1,
"description": "Parts to cut, 1 to 500 rows."
},
"sheets": {
"type": "array",
"items": {
"$ref": "#/$defs/SheetIn"
},
"title": "Sheets",
"maxItems": 500,
"minItems": 1,
"description": "Stock sheets, 1 to 500 rows. Several sizes may be mixed."
},
"options": {
"$ref": "#/$defs/OptionsIn"
}
},
"description": "One cutting task: available sheets, required parts and options."
},
"SheetIn": {
"type": "object",
"title": "SheetIn",
"required": [
"width",
"height"
],
"properties": {
"id": {
"anyOf": [
{
"type": "string",
"maxLength": 64
},
{
"type": "null"
}
],
"title": "Id",
"default": null,
"examples": [
"s1"
],
"description": "Your identifier for this sheet row, returned as `sheet_id` in the result. Defaults to the row index (\"0\", \"1\", ...)."
},
"label": {
"type": "string",
"title": "Label",
"default": "",
"examples": [
"Plywood 2440 x 1220"
],
"maxLength": 100,
"description": "Free text, returned unchanged in the result."
},
"price": {
"anyOf": [
{
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
]
},
{
"type": "null"
}
],
"title": "Price",
"default": null,
"examples": [
45.5
],
"description": "Price of one sheet, in any currency. When every full (non-offcut) sheet has a price, plans are compared by total price instead of total area. An offcut without a price is free."
},
"width": {
"gt": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Width",
"examples": [
2440
],
"description": "Sheet width (x direction). Decimals allowed; same unit as all other lengths."
},
"height": {
"gt": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Height",
"examples": [
1220
],
"description": "Sheet height (y direction). Decimals allowed."
},
"offcut": {
"type": "boolean",
"title": "Offcut",
"default": false,
"description": "An offcut left over from an earlier job. Offcuts are used before full sheets (their area counts for only a tenth when comparing plans) and are not trimmed."
},
"material": {
"type": "string",
"title": "Material",
"default": "",
"examples": [
"18mm plywood"
],
"maxLength": 100,
"description": "Material and thickness, free text, returned in the result. Parts with a `material` are cut only from sheets of the same material."
},
"quantity": {
"type": "integer",
"title": "Quantity",
"default": 1,
"maximum": 2147483647,
"minimum": 1,
"examples": [
10
],
"description": "Number of sheets in stock. Use 2147483647 for unlimited stock."
}
},
"description": "A stock sheet (board) size and how many are available."
},
"OptionsIn": {
"type": "object",
"title": "OptionsIn",
"properties": {
"kerf": {
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Kerf",
"default": 0,
"examples": [
4
],
"description": "Saw kerf: width of material removed by each cut, kept between parts."
},
"trim_top": {
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Trim Top",
"default": 0,
"examples": [
10
],
"description": "Trim: width cut off the top edge of every sheet before cutting parts (include the kerf of the trim cut)."
},
"stack_max": {
"type": "integer",
"title": "Stack Max",
"default": 1,
"maximum": 100,
"minimum": 1,
"examples": [
3
],
"description": "Stack cutting: up to this many sheets with the same layout are cut together as one stack. Only changes `cut_count`, `cut_length` and `fence_settings` (counted once per stack) and `stacks`; layouts are the same."
},
"trim_left": {
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Trim Left",
"default": 0,
"description": "Trim on the left edge (x = 0)."
},
"time_limit": {
"anyOf": [
{
"ge": 1,
"le": 30,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
]
},
{
"type": "null"
}
],
"title": "Time Limit",
"default": null,
"examples": [
5
],
"description": "Maximum solving time in seconds, 1 to 30 (default: the full limit, about 28 seconds). The optimizer stops as soon as the plan is proven optimal, otherwise at this limit and returns the best plan found; `optimal` in the result tells which. Set it lower (e.g. 3 to 5) for faster responses on large jobs, at the cost of a plan that may use slightly more material."
},
"trim_right": {
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Trim Right",
"default": 0,
"description": "Trim on the right edge."
},
"trim_bottom": {
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Trim Bottom",
"default": 0,
"description": "Trim on the bottom edge (y = 0)."
},
"band_premill": {
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Band Premill",
"default": 0,
"examples": [
0.5
],
"description": "Pre-milling: material milled off each banded edge before the band is applied."
},
"band_thickness": {
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Band Thickness",
"default": 0,
"examples": [
1
],
"description": "Edge band thickness. For each banded edge the part is cut smaller by `band_thickness - band_premill`, so it reaches its finished size after banding."
},
"offcut_min_area": {
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Offcut Min Area",
"default": 0,
"examples": [
100000
],
"description": "Offcuts whose area is at least this are marked `reusable` (area unit = length unit squared). An offcut is reusable when it meets both `offcut_min_side` and `offcut_min_area`."
},
"offcut_min_side": {
"ge": 0,
"anyOf": [
{
"type": "integer"
},
{
"type": "number"
}
],
"title": "Offcut Min Side",
"default": 0,
"examples": [
100
],
"description": "Offcuts (leftover rectangles) whose short side is at least this are marked `reusable`."
},
"reduce_patterns": {
"type": "boolean",
"title": "Reduce Patterns",
"default": true,
"description": "When several solutions use the same sheet area, prefer the one with fewer distinct layouts (patterns), which means fewer machine setups. May give slightly less reusable offcut."
}
},
"description": "Cutting options. All lengths use the same unit as the sheet and part sizes; all default to 0 / off."
}
},
"title": "validate_cutting_taskArguments",
"required": [
"task"
],
"properties": {
"task": {
"$ref": "#/$defs/TaskIn",
"examples": [
{
"name": "Cabinet",
"unit": "mm",
"items": [
{
"id": "side",
"label": "Side",
"width": 720,
"height": 560,
"quantity": 4
},
{
"id": "door",
"label": "Door",
"width": 716,
"height": 396,
"quantity": 4,
"orientation": 1
}
],
"sheets": [
{
"id": "s1",
"label": "Plywood 18",
"width": 2440,
"height": 1220,
"quantity": 10
}
],
"options": {
"kerf": 4
}
}
],
"description": "One cutting task: `sheets` (stock) and `items` (parts) are required. Give `name` a short title in the user's language; it becomes the task title in their task list."
}
}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Dec 5, 2026.