spice-ts

The SPICE simulator built for agents.

TypeScript-native circuit simulation with an MCP server, JSON in and out, and structured errors a model can act on. It runs in Node, in the browser or inside an agent sandbox. No native binaries to ship.

The simulation on this page is live. Edit the netlist and watch the waveform change.

preview · netlist booting
warming the engine…
agents

Give your agent a simulator

Connect an MCP client with this config. Your agent gets spice_validate, spice_simulate, spice_measure and streaming jobs.

{
  "mcpServers": {
    "spice": {
      "command": "npx",
      "args": ["-y", "@spice-ts/mcp"]
    }
  }
}
diagnostics

Errors an agent can fix.

Bad decks return structured diagnostics with node and element IDs. A model can act on FLOATING_NODE or NO_DC_PATH_TO_GROUND instead of guessing from a log.

evidence

Check our work

Accuracy is checked against ngspice on a public, reproducible benchmark. Every outcome is published, failures and unsupported cases included.

Read the parity report →