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

PCB Trace Estimator

Estimate copper trace width or current, resistance, voltage drop, and power loss using the IPC-2221 equation.

Inputs of PCB Trace Estimator
FieldTypeDefaultDescription
modeselect (width, current)"width"Calculate
layerselect (external, internal)"external"Copper layer
currentAnumber1Current (used when calculating width)
widthnumber0.5Trace width (used when calculating current)
widthUnitselect (mm, mil)"mm"Width unit
coppernumber1Copper thickness
copperUnitselect (oz, mm)"oz"Copper thickness unit
temperatureRiseCnumber10Allowed temperature rise above ambient
lengthnumber100Trace length. Used for the resistance, voltage drop and power loss estimates.
lengthUnitselect (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)

{
  "mcpServers": {
    "ohmforge-pcb-trace-estimator": { "type": "http", "url": "https://ohmforgepcbtraceestimator.usefulweb.site/mcp" }
  }
}