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

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.

Inputs of Ohmforge DC Operating Point
FieldTypeDefaultDescription
netlisttextarea—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.
projecttextarea—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)

{
  "mcpServers": {
    "ohmforge-dc-operating-point": { "type": "http", "url": "https://ohmforgedcoperatingpoint.usefulweb.site/mcp" }
  }
}