API & MCP
Everything a person can do on Ohmforge Resistor Network Calculator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://ohmforgeresistornetwork.usefulweb.site/api/v1/calculate– run Ohmforge Resistor Network CalculatorGET https://ohmforgeresistornetwork.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Ohmforge Resistor Network Calculator
Two jobs in one: find the combination of up to three standard resistors (E6 to E192) that comes closest to a resistance you cannot buy, or evaluate a series/parallel expression such as 100 + (220 || 330) with the voltage, current and power of every resistor at a given voltage.
| Field | Type | Default | Description |
|---|---|---|---|
mode | select (find, evaluate) | "find" | Task |
target | text | "1234" | Target resistance. For "find": engineering notation, e.g. 1234, 2k15, 12.5. |
series | select (E6, E12, E24, E48, E96, E192) | "E24" | Standard resistor series |
maxParts | select (1, 2, 3) | "3" | Resistors at most |
expression | text | "100 + (220 || 330)" | Network expression. For "evaluate": values joined with + (series) and || or // (parallel); parentheses group; || binds tighter than +. |
voltage | number | 10 | Voltage across the network. For "evaluate": used for the current and power of each resistor. |
Example request
Make 1234 Ω from E12 parts
curl -X POST https://ohmforgeresistornetwork.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"mode":"find","target":"1234","series":"E12","maxParts":"3"}'
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://ohmforgeresistornetwork.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
ohmforge_resistor_network - Local stdio connector:
node src/mcp-stdio.ts --tool=ohmforge-resistor-network
{
"mcpServers": {
"ohmforge-resistor-network": { "type": "http", "url": "https://ohmforgeresistornetwork.usefulweb.site/mcp" }
}
}