MCP server for running ngspice simulations via spicelib
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"spicelib-mcp","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# spicelib-mcp A thin MCP server that wraps [spicelib](https://pypi.org/project/spicelib/) for circuit simulation. The heavy lifting, such as simulator invocation, `.raw` file parsing, and multi-simulator abstraction, is done by spicelib, which deserves most of the credit. This project is purely a transport layer that exposes spicelib's functionality as MCP tools for use with Claude Code (and other coding agents). Primary use case: behavioral model fitting — run simulations, compare against real measurements, iterate on SPICE models. ## Tools - `run_ac_analysis` — AC frequency sweep, returns magnitude/phase data - `run_transient` — transient simulation, returns time-domain waveforms - `run_dc_op` — DC operating point analysis - `run_sweep` — run multiple simulations in parallel, sweeping component values Results are saved as `.npz` files alongside the netlist for further analysis and plotting. ## Supported simulators | Simulator | `SPICE_SIMULATOR` value | Install | |---|---|---| | [ngspice](https://ngspice.sourceforge.io/) | `ngspice` (default) | `sudo apt install ngspice` | | [LTspice](https://www.analog.com/en/resources/design-tools-and-calculators/ltspice-simulator.html) | `ltspice` | Download from Analog Devices | | [Qspice](https://www.qorvo.com/design-hub/design-tools/interactive/qspice) | `qspice` | Download from Qorvo | Set the `SPICE_PATH` environment variable to override the simulator binary location. ## Setup Copy `.mcp.json.template` to `.mcp.json` in your project directory and adjust `SPICE_SIMULATOR` if needed: ```json { "mcpServers": { "spicelib": { "type": "stdio", "command": "uvx", "args": ["spicelib-mcp"], "env": { "SPICE_SIMULATOR": "ngspice" } } } } ``` ## Requirements - Python 3.10+ - A supported simulator installed and on PATH ## License GPL-3.0-or-later
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.