ltspice-agents
Enables LTspice-style circuit work: parsing and validating LTspice netlists and .asc schematics, reading LTspice .raw waveform files, and running real LTspice decks through an installed LTspice binary when available.
Exports waveform/raw simulation data to SQLite databases for querying and downstream analysis.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ltspice-agents
Open-source LTspice-style circuit simulation for agents — one CLI and MCP server, ngspice-backed.
Modeled on REA's architecture: shared
workflows behind a CLI and a stdio MCP server, a bundled agent skill,
additive setup/doctor client registration, and evidence-bearing results.
Simulations run on open engines — ngspice
by default, or a bring-your-own LTspice binary (native or wine) for real
LTspice decks. No proprietary components required.
Quick start
pip install 'git+https://github.com/guirguispierre/ltspice-agents.git'
ltspice-agents doctor # what engines + agents are present?
ltspice-agents setup --dry-run # show planned MCP registrations
ltspice-agents setup --yes # register (additive, backed up)A PyPI package is planned; once published, pip install ltspice-agents (or
pipx install ltspice-agents) will be the preferred installation path.
With no MCP client, use the CLI directly — every command prints the same JSON envelope the MCP tools return:
ltspice-agents simulate examples/rc_lowpass.net
ltspice-agents waveforms sim.raw --signals v\(in\),v\(out\)
ltspice-agents validate mydeck.net --engine ngspice
ltspice-agents netlist divider.asc --symbol-dir ./libEngines: ngspice is found on PATH (apt install ngspice,
brew install ngspice, conda-forge). ltspice is detected if an LTspice
binary exists natively or under wine — ltspice-agents never installs
engines for you.
Related MCP server: SpiceMCP
MCP tool surface
Group | Tools |
Identity |
|
Docs |
|
Design |
|
Simulate |
|
Waveforms |
|
Workflows |
|
Run the server: ltspice-agents mcp (stdio).
What it does
Decks: parse/validate
.net/.cir/.sp— elements, dot-cards,.param,.inc, subckts — with line-referenced errors and engine-compatibility warnings (LTspice-only cards flagged for ngspice).Simulation:
ngspice -bthrough a.controlwrapper so.measresults land in the log and a binary rawfile is written deterministically..stepis expanded into per-step runs (cartesian product), each with its own log/raw —get_spice_logtabulates meas per step.Schematics: parse
.asc(wires, flags, symbols, directives) and netlist them via.asypin geometry +SpiceOrder. Derived netlists are marked as derived evidence — verify before simulating.Waveforms: read ngspice (point-major) and LTspice (variable-major) binary/ASCII rawfiles, stepped runs, complex AC data; export to SQLite, CSV, or JSON.
Docs: bundled references (written here, not ADI's) are one tool call away so an agent never has to guess syntax.
Evidence contract
Every result is {ok, data|error, evidence:{sources, limitations, unknowns}}. Observed, derived, and inferred facts stay distinct; coverage
that could not be examined is reported as unknown, never as absence.
Setup for your agent
ltspice-agents setup registers the MCP server and installs the bundled
skill, per client, with backups — approval required before anything writes.
Client | Config touched |
Claude Code |
|
Claude Desktop |
|
Cursor |
|
Windsurf |
|
Gemini CLI |
|
Codex |
|
VS Code |
|
OpenCode |
|
Zed |
|
Devin | manual — org-managed MCP integrations; use the CLI |
Why not the official LTspice MCP?
LTspice 26.1+ ships an excellent MCP server — on Windows, behind a proprietary binary. This package exists for everywhere else: Linux/macOS CI, containers, agents on bare VMs, and anyone who wants the whole stack open-source. When you do have LTspice 26.1+, use its MCP — it's the better path for native LTspice semantics.
Caveats
.ascnetlisting is derived evidence: verified on hand-built fixtures, not against LTspice's own netlister. Checkget_schematic_netlist.LTspice
.rawdetection uses header + axis-monotonicity heuristics;get_raw_inforeports the layout it chose.ngspice has no
.stepcard — steps are expanded into multiple runs, so stepped LTspice decks take step_count × run time.
Development
From a fresh clone:
sudo apt-get update && sudo apt-get install -y ngspice # Debian/Ubuntu
python -m venv .venv
. .venv/bin/activate
pip install -U pip setuptools wheel
pip install -e '.[dev]'
pytest -qCoding agents should start with
.agents/skills/ltspice-agents-bootstrap/SKILL.md;
it captures the environment setup, validation commands, architecture map, and
repository guardrails. Human contributors can start with
CONTRIBUTING.md.
Security reports are private through SECURITY.md. Community expectations are in CODE_OF_CONDUCT.md, and release notes live in CHANGELOG.md.
License
MIT — see LICENSE. ngspice is BSD-3-Clause (invoked as a subprocess; no linking). LTspice is © Analog Devices — referenced only via documented file formats and your own installed binary.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Turn datasheets into source-backed JSON contracts, pinout matrices, and KiCad CAD for AI agents.
Design circuits, simulate and verify embedded firmware, and lay out PCBs with AI agents.
Inspect, edit, and simulate an open Modeloop control-system model from your coding agent.
Protocol-native energy infrastructure orchestration for AI data centers. Provides 46 MCP tools across 8 grid protocols (IEC-61850, DNP3, Modbus, OCPP, OpenADR, IEEE 2030.5, IEC 60870-5-104, ICCP) with 5 core API primitives: connect, dispatch, settle, comply, and intel. Enables AI agents to programmatically interact with substations, grid interfaces, and energy assets for real-time workload-grid coordination.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceGenerates, simulates, and inspects LTspice circuits via MCP tools and resources, providing structured JSON interfaces for AI agents.MIT
- FlicenseNot gradedqualityBmaintenanceEnables debugging LTspice circuits through natural language by exposing netlists as structured text, including components, nodes, directives, static checks, and simulation logs, so LLMs can reason over circuit topology instead of screenshots.-
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to build and edit Micro-Cap 9 circuits, run analyses, sweeps, Monte Carlo and optimization, read numeric results, place cursors, and capture native MC9 screenshots through 33 tools.18 PyPIMIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to run LTspice simulations against declared circuit requirements and retrieve reproducible evidence files, including checks, measurements, and original simulation artifacts.GPL 3.0