Skip to main content
Glama
eecalc-mcp

eecalc-mcp

by aysel-elsh

eecalc-mcp

An MCP server that gives AI assistants exact electronics math.

Ask Claude "how wide should a 3 A trace be on 2 oz copper?" and it will often guess at the IPC-2221 exponents and get it wrong. With this server it calls a tool and gets the exact number. Built on eecalc.

Tools

Tool

What it does

pcb_trace_width

Min trace width for a current and temperature rise (IPC-2221)

pcb_trace_current

Max current for a trace width (IPC-2221)

pcb_trace_resistance

DC resistance, plus voltage drop and power loss if you give a current

pcb_microstrip_impedance

Microstrip Z0 (IPC-2141), warns when outside the formula's range

nearest_standard_value

Snap to E3–E192 (IEC 60063)

list_standard_values

Every standard value in a range

design_voltage_divider

Best standard resistor pair for Vin → Vout

led_series_resistor

LED resistor, rounded up, with a power rating

rc_filter

Cutoff from R and C, or pick standard R and C for a cutoff

lc_resonance

Resonant frequency and characteristic impedance

reactance

Xc and Xl at a frequency

combine_components

Series / parallel

ohms_law

Any two of V, I, R → all of V, I, R, P

All tools are read-only and work offline. Numbers can be sent as "4k7", "100n", "2M2".

Related MCP server: Campervan-mcp

Install

Needs uv (or use pip install git+https://github.com/aysel-elsh/eecalc-mcp and run eecalc-mcp).

Claude Code

claude mcp add eecalc -- uvx --from git+https://github.com/aysel-elsh/eecalc-mcp eecalc-mcp

Claude Desktop: add to claude_desktop_config.json

{
  "mcpServers": {
    "eecalc": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/aysel-elsh/eecalc-mcp", "eecalc-mcp"]
    }
  }
}

Cursor / VS Code / others: same command and args in your MCP config.

Try asking

  • "I need to run 5 A on an inner layer of 1 oz copper with a 20 °C rise. How wide?"

  • "Pick E96 resistors to divide 12 V down to 3.3 V for an ADC."

  • "What resistor for three white LEDs in series on 12 V at 15 mA?"

  • "Give me standard parts for a 2.5 kHz RC low-pass."

Develop

pip install -e ".[test]" && pytest

New tools should wrap a tested function in eecalc. Ideas: stripline, IPC-2152, op-amp gain, 555 timer, battery life, buck converter inductor sizing.

MIT License.

Available Tools

13 tools
combine_componentsB
Read-onlyIdempotent

Combine resistors (or inductors) in series or parallel. For capacitors, swap: caps in parallel add.

Inputs: how (required), values (required). Returns: object

design_voltage_dividerB
Read-onlyIdempotent

Pick the best pair of standard resistors for a voltage divider (Vout = Vin * Rb / (Rt + Rb)).

Inputs: vin (required), vout (required), r_max, r_min, +1 more. Returns: object

lc_resonanceB
Read-onlyIdempotent

Resonant frequency of an LC circuit: f = 1 / (2π√(LC)).

Inputs: c_farad (required), l_henry (required). Returns: object

led_series_resistorB
Read-onlyIdempotent

Series resistor for an LED (or a string of LEDs). Rounds up to a standard value and suggests a power rating.

Inputs: supply_v (required), led_forward_v (required), series, led_current_a, +1 more. Returns: object

list_standard_valuesA
Read-onlyIdempotent

List every standard E-series value in a range, e.g. all E24 values between 1k and 10k.

Inputs: series, max_value, min_value. Returns: object

nearest_standard_valueA
Read-onlyIdempotent

Snap a resistor/capacitor/inductor value to the nearest standard E-series value (IEC 60063).

E12 is common 10% parts, E24 is 5%, E96 is 1%.

Inputs: value (required), series. Returns: object

ohms_lawA
Read-onlyIdempotent

Ohm's law and power. Give exactly two of voltage, current, resistance; returns all four (V, I, R, P).

Inputs: current_a, voltage_v, resistance_ohm. Returns: object

pcb_microstrip_impedanceA
Read-onlyIdempotent

Characteristic impedance of a surface microstrip trace (IPC-2141). FR-4 er is about 4.2-4.6.

Accurate to a few percent for 0.1 < width/height < 2.0.

Inputs: width_mm (required), dielectric_height_mm (required), er, copper_oz. Returns: object

pcb_trace_currentB
Read-onlyIdempotent

Maximum current a PCB trace of a given width can carry for a temperature rise (IPC-2221).

Inputs: width_mm (required), layer, copper_oz, temp_rise_c. Returns: object

pcb_trace_resistanceB
Read-onlyIdempotent

DC resistance of a copper PCB trace. If current_a is given, also returns voltage drop and power loss.

Inputs: width_mm (required), length_mm (required), temp_c, copper_oz, +1 more. Returns: object

pcb_trace_widthB
Read-onlyIdempotent

Minimum PCB trace width to carry a current without exceeding a temperature rise (IPC-2221).

Returns width in mm and mil. Internal layers need roughly 2.6x the width of external ones.

Inputs: current_a (required), layer, copper_oz, temp_rise_c. Returns: object

rc_filterA
Read-onlyIdempotent

First-order RC filter. Give R and C to get the cutoff frequency and time constant, or give target_cutoff_hz (and optionally C) to pick standard R and C values.

Inputs: r_ohm, c_farad, target_cutoff_hz. Returns: object

reactanceB
Read-onlyIdempotent

Reactance of a capacitor and/or inductor at a frequency, in ohms.

Inputs: frequency_hz (required), c_farad, l_henry. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 13 tools

    Disambiguation4/5

    Each tool targets a distinct calculation domain (combining, Ohm's law, PCB traces, E-series values, dividers, LED, RC, LC, reactance). The only real overlap risk is the inverse pair pcb_trace_width vs pcb_trace_current, but their descriptions clearly state opposite directions so an agent can pick correctly.

    Naming Consistency3/5

    All names are snake_case, which is good, but the style is split roughly evenly between verb_noun (combine_components, list_standard_values, design_voltage_divider) and bare noun phrases (ohms_law, rc_filter, lc_resonance, reactance, pcb_trace_width). It is readable but not a predictable single convention.

    Tool Count5/5

    13 tools sits comfortably in the well-scoped 3-15 range, and every tool corresponds to a genuine, commonly needed EE calculation. Nothing looks like filler or a redundant variant.

    Completeness4/5

    Core passive-component, Ohm's law, PCB trace, and filter/resonance calculations are all covered with both forward and inverse operations for traces. Minor gaps remain: no wire gauge/ampacity, capacitor/inductor energy or charge-discharge, or dB/unit conversions, but agents can work around these.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Provides AI agents with instant, structured access to electronic component datasheets, pinouts, and electrical specifications without requiring PDF uploads. It enables seamless part searching, design validation, and side-by-side component comparisons across major hardware providers.
      14
      96 npm
      14
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to perform campervan electrical calculations, payload checks, component spec lookups, and semantic search over van build manuals.
      -
    • A
      license
      B
      quality
      B
      maintenance
      Enables AI agents to perform accurate local computations including arbitrary-precision math, date handling, unit conversion, subnet calculations, encoding, hashing, and text analysis, all without network calls or API keys.
      27
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables an AI model to turn a described circuit into a checked KiCad schematic and board, calculating and simulating every voltage and current with cited sources, and marking anything unverified rather than guessing.
      1
      AGPL 3.0