API & MCP
Everything a person can do on PCB Trace Estimator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://ohmforgepcbtraceestimator.usefulweb.site/api/v1/calculate– run PCB Trace EstimatorGET https://ohmforgepcbtraceestimator.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
PCB Trace Estimator
Estimate copper trace width or current, resistance, voltage drop, and power loss using the IPC-2221 equation.
| Field | Type | Default | Description |
|---|---|---|---|
mode | select (width, current) | "width" | Calculate |
layer | select (external, internal) | "external" | Copper layer |
currentA | number | 1 | Current (used when calculating width) |
width | number | 0.5 | Trace width (used when calculating current) |
widthUnit | select (mm, mil) | "mm" | Width unit |
copper | number | 1 | Copper thickness |
copperUnit | select (oz, mm) | "oz" | Copper thickness unit |
temperatureRiseC | number | 10 | Allowed temperature rise above ambient |
length | number | 100 | Trace length. Used for the resistance, voltage drop and power loss estimates. |
lengthUnit | select (mm, in) | "mm" | Length unit |
Example request
Width for 1 A on external 1 oz copper
curl -X POST https://ohmforgepcbtraceestimator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"mode":"width","layer":"external","currentA":1,"copper":1,"copperUnit":"oz","temperatureRiseC":10,"length":100,"lengthUnit":"mm"}'
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://ohmforgepcbtraceestimator.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
ohmforge_pcb_trace_estimator - Local stdio connector:
node src/mcp-stdio.ts --tool=ohmforge-pcb-trace-estimator
{
"mcpServers": {
"ohmforge-pcb-trace-estimator": { "type": "http", "url": "https://ohmforgepcbtraceestimator.usefulweb.site/mcp" }
}
}