API & MCP
Everything a person can do on Ohmforge DC Operating Point, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://ohmforgedcoperatingpoint.usefulweb.site/api/v1/calculate– run Ohmforge DC Operating PointGET https://ohmforgedcoperatingpoint.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Ohmforge DC Operating Point
Solves the DC operating point of a circuit with Ohmforge's SPICE-style engine (Modified Nodal Analysis, Newton–Raphson with junction limiting, damping, gmin and source stepping). Returns every node voltage, the current and power of every element, total supply power, parts beyond their ratings and plain-language convergence diagnostics.
| Field | Type | Default | Description |
|---|---|---|---|
netlist | textarea | — | SPICE netlist. Subset: R C L V I D Q M E G K, X subcircuit instances with .subckt/.ends (nested, with params), .param and {expressions}, .model, SIN/PULSE/PWL sources, engineering suffixes (k, m, u, n, p, meg). Node 0 is ground. Leave empty when you pass an Ohmforge project instead. |
project | textarea | — | Ohmforge project JSON (optional). Alternative to the netlist: a .ohmforge.json project as saved by the app (format "ohmforge", version 1). |
Example request
Voltage divider (10 V, 1k/3k → 7.5 V)
curl -X POST https://ohmforgedcoperatingpoint.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"netlist":"* Voltage divider\nV1 in 0 DC 10\nR1 in out 1k\nR2 out 0 3k\n.op\n.end"}'
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://ohmforgedcoperatingpoint.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
ohmforge_dc_operating_point - Local stdio connector:
node src/mcp-stdio.ts --tool=ohmforge-dc-operating-point
{
"mcpServers": {
"ohmforge-dc-operating-point": { "type": "http", "url": "https://ohmforgedcoperatingpoint.usefulweb.site/mcp" }
}
}