API & MCP
Everything a person can do on Twinworks, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
GET https://twinworks.usefulweb.site/api/v1/tools– catalogGET https://twinworks.usefulweb.site/api/v1/tools/{id}– inputs, output schema, examplesPOST https://twinworks.usefulweb.site/api/v1/tools/{id}/calculate– run a toolGET https://twinworks.usefulweb.site/api/v1/workflows·POST https://twinworks.usefulweb.site/api/v1/workflows/{id}/run- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Tools on Twinworks
- Twinworks Factory Simulation – Simulate a production line: throughput, lead time, WIP, OEE and the bottleneck, with CIs.
twinworks_simulate - Twinworks Bottleneck Analysis – Find the constraint of a production line and test fixes: ranked bottlenecks with what-if gains.
twinworks_bottleneck_analysis - Twinworks Line Balancing – Assign assembly tasks to stations for a takt time: efficiency, balance delay and smoothness index.
twinworks_line_balance - Twinworks Buffer & Parameter Sweep – Sweep a buffer size (or any parameter) and get the throughput curve with confidence intervals.
twinworks_buffer_sweep - Twinworks Buffer Allocation Optimiser – Distribute a fixed number of buffer places over a line for maximum throughput.
twinworks_buffer_allocation - Twinworks Queueing Check – M/M/1, M/M/c, M/D/1, M/G/1 and Kingman waiting times — optionally verified by simulation.
twinworks_queue_formulas - Twinworks Line Capacity Calculator – Takt time, bottleneck, OEE, throughput and Little’s law lead time of a production line.
twinworks_line_capacity - Material Transport Scheduler – Schedule shared vehicles and inspect travel and waiting times.
twinworks_transport_scheduler - Twinworks PLC Scan Simulator – Structured Text, ladder or state machine + input timeline → scan-by-scan outputs, timers and trace.
twinworks_plc_simulator
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)
- Streamable HTTP endpoint:
https://twinworks.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
twinworks_simulate,twinworks_bottleneck_analysis,twinworks_line_balance,twinworks_buffer_sweep,twinworks_buffer_allocation,twinworks_queue_formulas,twinworks_line_capacity,twinworks_transport_scheduler,twinworks_plc_simulator - Local stdio connector:
node src/mcp-stdio.ts
{
"mcpServers": {
"usefulweb": { "type": "http", "url": "https://twinworks.usefulweb.site/mcp" }
}
}