API & MCP

Everything a person can do on Threadsmith Design Stats, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Threadsmith Design Stats

Reads a Tajima DST, Brother PES, Janome JEF or Melco EXP file (or a stitch list) and reports stitches, jumps, trims, colour changes, size and hoop fit, thread length per colour with a bobbin estimate, sewing time at your machine speed and a thread-density check with the densest spots, plus a thread-look preview. A job estimate adds thread, cones and bobbins for many pieces, machine time on one or more heads and the cost.

Inputs of Threadsmith Design Stats
FieldTypeDefaultDescription
filefile—Embroidery file. Tajima .dst, Brother .pes, Janome .jef or Melco .exp.
stitchestextarea—Or: stitch list (JSON). Same format as threadsmith-stitch-file.
colorslist—Thread colours in sewing order. Optional #rrggbb per colour block (DST/EXP files store no colours; PES/JEF colours are read from the file otherwise).
spminteger700Machine speed
trimSecondsnumber4Time per trim
colorSecondsnumber20Time per colour change
hoopselect (50x50, 100x100, 130x180, 150x150, 160x260, 200x200, 200x300, 240x150, 360x200)"130x180"Hoop
densityThresholdnumber2.6Too-dense limit. Thread coverage per 1 mm cell above which the design is flagged (2.6 ≈ underlay + top + some overlap).
piecesinteger1Pieces to sew. For the job estimate: thread, cones, bobbins, machine time and cost for this many pieces.
headsinteger1Machine heads. Pieces sewn at the same time on a multi-head machine.
hoopingSecondsnumber0Hooping time per machine cycle
coneLengthMnumber5000Thread per cone
conePricenumber—Price per cone (optional)
bobbinLengthMnumber100Thread per bobbin. Check the length printed on your pre-wound bobbins.
bobbinPricenumber—Price per bobbin (optional)
machineRatePerHournumber—Machine and operator cost per hour (optional)
currencytext"EUR"Currency

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": {
    "threadsmith-design-stats": { "type": "http", "url": "https://threadsmithdesignstats.usefulweb.site/mcp" }
  }
}