API & MCP

Everything a person can do on Capacitor Code, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Capacitor Code

Translate common three-character capacitor codes and exactly representable capacitances in picofarads.

Inputs of Capacitor Code
FieldTypeDefaultDescription
modeselect (decode, encode)"decode"Calculate
codetext"104"Three-character code (decode). For example 104 or 2R2. R is the decimal point.
picofaradsnumber100000Capacitance in pF (encode)

Example request

Decode 104

curl -X POST https://ohmforgecapacitorcode.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"mode":"decode","code":"104"}'

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-capacitor-code": { "type": "http", "url": "https://ohmforgecapacitorcode.usefulweb.site/mcp" }
  }
}