spicelib-mcp
MCP serverCommunity
A thin wrapper over spicelib with four tools for AC, transient, DC operating point and parameter sweeps in ngspice, LTspice or Qspice. By Lucas Gerads.
8 starsUpdated 7 months agoGitHub data from 5 Nov 2026
At a glance
- Type
- MCP server
- How it connects
- Drives a running copy of the tool
- Access
- Read-only
- Tool versions
- ngspice (default), LTspice or Qspice selected with SPICE_SIMULATOR
- Operating systems
- Not stated in its documentation
- Needs a ngspice licence
- No
- Transport
- Local (stdio)
- AI clients documented
- Claude Code
- Licence
- GPL-3.0
- Language
- Python
What it can do
- Runs AC sweeps, transient analyses and DC operating points on a netlist you provide.
- Runs several simulations in parallel while sweeping component values.
- Saves results as .npz files next to the netlist for later plotting and comparison with measurements, which suits behavioural model fitting.
Limitations
- Four tools only; it doesn't edit schematics or return named measurements.
- The simulator must be installed and on PATH, or set with SPICE_PATH.
Install
{
"mcpServers": {
"spicelib": {
"type": "stdio",
"command": "uvx",
"args": ["spicelib-mcp"],
"env": {
"SPICE_SIMULATOR": "ngspice"
}
}
}
}MCP servers and skills run code on your computer. Review the source before installing.
AI-generated models, drawings and results must be checked by a qualified engineer before use.