MCP server for running ngspice simulations via spicelib
Project description
spicelib-mcp
A thin MCP server that wraps ngspice for circuit simulation. The heavy lifting — 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.
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 datarun_transient— transient simulation, returns time-domain waveformsrun_dc_op— DC operating point analysis
Results are saved as .npz files alongside the netlist for further analysis and plotting.
Requirements
- Python 3.10+
- ngspice installed on PATH (
sudo apt install ngspice)
License
GPL-3.0-or-later
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spicelib_mcp-0.1.2.tar.gz.
File metadata
- Download URL: spicelib_mcp-0.1.2.tar.gz
- Upload date:
- Size: 136.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b4849acc17e53bbc41e62154f007d49660c43471e2b1db6de568108841c477b
|
|
| MD5 |
c278b79a558dced729702f844193561d
|
|
| BLAKE2b-256 |
a36565427074ab45266928ec2f0ec1b765c429332437d7908bb654ded16d367e
|
Provenance
The following attestation bundles were made for spicelib_mcp-0.1.2.tar.gz:
Publisher:
release.yml on lucasgerads/spicelib-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spicelib_mcp-0.1.2.tar.gz -
Subject digest:
5b4849acc17e53bbc41e62154f007d49660c43471e2b1db6de568108841c477b - Sigstore transparency entry: 1298955421
- Sigstore integration time:
-
Permalink:
lucasgerads/spicelib-mcp@d7bf8d32ecfa8c42d8c4e2a30d41c467beb9a071 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/lucasgerads
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d7bf8d32ecfa8c42d8c4e2a30d41c467beb9a071 -
Trigger Event:
push
-
Statement type:
File details
Details for the file spicelib_mcp-0.1.2-py3-none-any.whl.
File metadata
- Download URL: spicelib_mcp-0.1.2-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
758230f705b9864a6ce22eccbc3b3932a9c9b42790c98481110303eed0a800ec
|
|
| MD5 |
f2b717107f825d71ac311eed2d266fbe
|
|
| BLAKE2b-256 |
2e025af23839e57727aafeb4aac6e03750f8a68944f9b1bc2a84becdb71203b6
|
Provenance
The following attestation bundles were made for spicelib_mcp-0.1.2-py3-none-any.whl:
Publisher:
release.yml on lucasgerads/spicelib-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spicelib_mcp-0.1.2-py3-none-any.whl -
Subject digest:
758230f705b9864a6ce22eccbc3b3932a9c9b42790c98481110303eed0a800ec - Sigstore transparency entry: 1298955544
- Sigstore integration time:
-
Permalink:
lucasgerads/spicelib-mcp@d7bf8d32ecfa8c42d8c4e2a30d41c467beb9a071 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/lucasgerads
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d7bf8d32ecfa8c42d8c4e2a30d41c467beb9a071 -
Trigger Event:
push
-
Statement type: