API & MCP
Everything a person can do on Ohmforge Microstrip & Stripline Impedance Calculator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://ohmforgemicrostripimpedance.usefulweb.site/api/v1/calculate– run Ohmforge Microstrip & Stripline Impedance CalculatorGET https://ohmforgemicrostripimpedance.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Ohmforge Microstrip & Stripline Impedance Calculator
Characteristic impedance of a PCB trace: surface microstrip with the Hammerstad–Jensen equations (thickness correction included) or a centred stripline with Wheeler's formula, plus effective permittivity, propagation delay and guided wavelength. Synthesis mode solves the trace width for a target impedance such as 50 Ω with Brent's root finder; every result is cross-checked against an independent formula and the IPC-2141 rule of thumb.
| Field | Type | Default | Description |
|---|---|---|---|
structure | select (microstrip, stripline) | "microstrip" | Line |
task | select (analyze, synthesize) | "analyze" | Task |
widthMm | number | 0.3 | Trace width W. Analysis only. |
heightMm | number | 0.17 | Dielectric height h (microstrip) or plane spacing b (stripline). Microstrip: from the trace to its reference plane. Stripline: total distance between the two planes. |
thicknessUm | number | 35 | Copper thickness t. 35 µm = 1 oz/ft², 18 µm = ½ oz; 0 = ideal thin strip. |
er | number | 4.3 | Relative permittivity εr. FR-4 about 4.2–4.6 (falls with frequency), Rogers RO4350B 3.66, PTFE 2.2. Use the laminate maker's value at your frequency. |
targetZ0 | number | 50 | Target impedance. Synthesis only. |
frequencyMHz | number | 0 | Frequency (optional). For the guided wavelength; 0 = skip. |
Example request
FR-4: 0.3 mm trace on 0.17 mm prepreg
curl -X POST https://ohmforgemicrostripimpedance.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"structure":"microstrip","task":"analyze","widthMm":0.3,"heightMm":0.17,"thicknessUm":35,"er":4.3,"frequencyMHz":1000}'
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://ohmforgemicrostripimpedance.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
ohmforge_microstrip_impedance - Local stdio connector:
node src/mcp-stdio.ts --tool=ohmforge-microstrip-impedance
{
"mcpServers": {
"ohmforge-microstrip-impedance": { "type": "http", "url": "https://ohmforgemicrostripimpedance.usefulweb.site/mcp" }
}
}