ngspice circuit simulation MCP server
  • TypeScript 97.4%
  • CSS 1.3%
  • Dockerfile 0.6%
  • Shell 0.6%
Find a file
Erwan Lee Pesle 5ae1bb8360
Some checks failed
ci.yml / Merge pull request #14 from vidimus-dev/feat/widget-compose-sync (push) Failing after 0s
Publish / check (push) Waiting to run
Publish / publish-jsr (push) Blocked by required conditions
Merge pull request #14 from vidimus-dev/feat/widget-compose-sync
feat(ui): add bidirectional @mcpview/compose portSync to widgets
2026-12-05 20:39:43 +08:00
.github/workflows chore(ci): migrate engineering-toolchain and GHCR target to vidimus-dev 2026-12-05 15:32:20 +08:00
docs chore(ci): adopt engineering-toolchain@v1 (CI, Renovate, Release-Please) 2026-12-04 12:15:18 +08:00
scripts feat(widgets): migrate SPICE UI to 3 focused @mcpview widgets 2026-12-03 13:58:35 +08:00
src feat(ui): add bidirectional @mcpview/compose portSync to widgets 2026-12-05 20:37:56 +08:00
tests feat(ui): add bidirectional @mcpview/compose portSync to widgets 2026-12-05 20:37:56 +08:00
.dockerignore feat: add Dockerfile for self-contained ngspice 44.2 MCP server 2026-08-05 10:35:32 +08:00
.gitignore feat: move to @mcpview/server, add Code Mode snippets and npm build (0.7.0) 2026-12-03 11:36:42 +08:00
.release-please-manifest.json chore(ci): adopt engineering-toolchain@v1 (CI, Renovate, Release-Please) 2026-12-04 12:15:18 +08:00
CHANGELOG.md chore(ci): adopt engineering-toolchain@v1 (CI, Renovate, Release-Please) 2026-12-04 12:15:18 +08:00
CITATION.cff chore: add CITATION.cff citation metadata 2026-08-08 10:04:38 +08:00
deno.json chore: release 0.8.0 2026-12-03 14:27:24 +08:00
deno.lock feat: move to @mcpview/server, add Code Mode snippets and npm build (0.7.0) 2026-12-03 11:36:42 +08:00
docker-entrypoint.sh fix: use native Casys stdio transport 2026-08-27 13:39:31 +08:00
Dockerfile feat(widgets): migrate SPICE UI to 3 focused @mcpview widgets 2026-12-03 13:58:35 +08:00
LICENSE feat: bootstrap @casys/mcp-spice 0.1.0 — ngspice engine + stateless MCP skeleton [skip ci] 2026-08-05 08:00:30 +08:00
mod.ts feat: add durable simulation receipts 2026-08-30 09:22:01 +08:00
README.md chore: release 0.8.0 2026-12-03 14:27:24 +08:00
release-please-config.json chore(ci): adopt engineering-toolchain@v1 (CI, Renovate, Release-Please) 2026-12-04 12:15:18 +08:00
renovate.json chore(ci): migrate engineering-toolchain and GHCR target to vidimus-dev 2026-12-05 15:32:20 +08:00
SECURITY.md fix: close durable receipt release gaps 2026-08-30 11:15:23 +08:00
server.ts feat(widgets): migrate SPICE UI to 3 focused @mcpview widgets 2026-12-03 13:58:35 +08:00
THIRD_PARTY_NOTICES.txt feat(widgets): migrate SPICE UI to 3 focused @mcpview widgets 2026-12-03 13:58:35 +08:00

mcp-spice

mcp-spice runs bounded ngspice analyses behind MCP and keeps every result tied to the exact circuit bytes that produced it.

JSR · container · technical documentation · changelog · security

Recorded SPICE operating-point viewer

A read-only MCP App projecting an exact recorded operating-point artifact from a Digital Thread project. The values, units, source symbols, artifact identity, and projection fingerprint all come from the recorded result.

What it provides

  • Content-addressed admission for exact UTF-8 circuit netlists.
  • Bounded operating-point, transient, and DC-sweep analyses through ngspice.
  • Compact structured results instead of unbounded raw curves.
  • Immutable documentary receipts and exact result readback across restarts.
  • Small MCP Apps for a result or receipt, built from shared MCP View components.

The server reports numerical observations and declared analysis limits. It does not decide whether a circuit satisfies a requirement, and a successful execution is not a proof or compliance verdict.

Run it

The published container includes Deno and ngspice. Its default command starts the HTTP transport on port 3023. Pin the runtime to the GHCR index digest recorded by the post-publication verifier; replace <verified-index-digest> with that digest. Do not treat a mutable version tag as the runtime identity.

docker run --rm \
  -p 127.0.0.1:3023:3023 \
  -v mcp-spice-runs:/ngspice-runs \
  ghcr.io/casys-ai/mcp-spice@sha256:<verified-index-digest> http

The MCP endpoint is http://127.0.0.1:3023/mcp. Native stdio is available from the same image:

docker run --rm -i \
  -v mcp-spice-runs:/ngspice-runs \
  ghcr.io/casys-ai/mcp-spice@sha256:<verified-index-digest> stdio

To run the published JSR module, install ngspice on the host, then use the exact version:

deno run --allow-all jsr:@casys/mcp-spice@0.8.0/server --stdio

For local development:

deno task serve

The normal flow

Submit the exact circuit text, keep the returned SHA-256 reference, then request the analysis using that reference and explicit observables. Simulation responses include the input identity, bounded readings, declared not_checked limits, and a documentary receipt reference.

Details and complete examples live in the repository documentation:

Digital Thread boundary

mcp-spice owns circuit execution and its presentation contracts. Casys Digital Thread may record and display those exact artifacts, but its Workbench remains a read-only projection: it does not choose provider arguments, call ngspice, or reinterpret a documentary result as an engineering decision.

License and citation

The source is licensed under MIT. Citation metadata is available in CITATION.cff.