API & MCP

Everything a person can do on Kerfwise Sheet Nesting Optimizer, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Kerfwise Sheet Nesting Optimizer

A cutting optimiser for panel saws and CNC routers: list parts (rectangles, L-shapes, corner cuts or quarter rounds) with quantity and grain, choose the sheet size (e.g. 2800 × 2070), saw kerf and trim margin, and get guillotine-cuttable or MaxRects layouts, sheet count, yield per sheet, the lower bound on the sheet count and the gap to it, reusable offcuts, the guillotine cut sequence, SVG drawings and a DXF R12 file. An optional deep search tries many seeded variations and stops as soon as the layout is proven optimal.

Inputs of Kerfwise Sheet Nesting Optimizer
FieldTypeDefaultDescription
parts (required)table—Parts. Length runs along the grain. Tick grain to forbid rotation (on a grained material).
sheetLengthnumber2800Sheet length. Common sizes: 2800 × 2070, 2440 × 1220, 3050 × 1220, 2500 × 1250, 2620 × 2070, 2750 × 1830, 2800 × 2100, 2440 × 1830, 1220 × 610.
sheetWidthnumber2070Sheet width
sheetQtyinteger0Sheets available. 0 = unlimited.
sheetPricenumber0Price per sheet
kerfnumber4Saw kerf
trimnumber10Trim margin per edge
methodselect (auto, guillotine, maxrects)"auto"Method
grainedMaterialbooleantrueMaterial has grain
allowRotationbooleantrueAllow rotating parts without grain
minOffcutLengthnumber300Min. offcut length to keep
minOffcutWidthnumber100Min. offcut width to keep
effortselect (fast, deep)"fast"Optimisation
iterationsinteger400Deep search iterations
seedinteger1Search seed. Same seed + same input = same layout.

Example request

16 panels 600 × 500 on 2800 × 2070 (exactly one sheet)

curl -X POST https://kerfwisesheetnesting.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"parts":[{"name":"Panel","length":600,"width":500,"qty":16}],"sheetLength":2800,"sheetWidth":2070,"kerf":4,"trim":10,"method":"guillotine","grainedMaterial":false}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "kerfwise-sheet-nesting": { "type": "http", "url": "https://kerfwisesheetnesting.usefulweb.site/mcp" }
  }
}