Ltspice MCP logo

Ltspice MCP

Runs LTspice and ngspice simulations, edits LTspice schematics, analyzes results, and supports sweeps and Monte Carlo jobs.

Install Ltspice MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ltspice-mcp": {
      "command": "uvx",
      "args": [
        "ltspice-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio ltspice-mcp -- uvx ltspice-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 8 tools correctly ().

Overview

ltspice-mcp connects AI assistants to LTspice and ngspice for circuit simulation, measurement, schematic editing, and result analysis. It runs individual experiments or parameter and Monte Carlo grids as background jobs, then returns measurements such as cutoff frequency, phase margin, overshoot, operating-point values, and noise. The server also checks `.asc`, `.cir`, `.net`, `.sp`, and `.raw` files, with interactive waveform plots available in supported MCP Apps clients or a browser. Reach for it when an agent needs numeric circuit results, validated schematic changes, or repeatable simulation workflows rather than shell-based simulator access.

Use cases

  • Simulate a circuit and measure transient or frequency-domain performance
  • Sweep component values and identify a design limit
  • Run Monte Carlo variation and summarize output spread
  • Create or revise an LTspice schematic with validated connectivity
  • Inspect and analyze an existing SPICE raw file

Key features

  • LTspice and ngspice simulation support
  • Parameter sweeps and Monte Carlo jobs
  • Typed measurements for transient, AC, noise, and operating-point results
  • Transactional LTspice schematic editing
  • Circuit verification and netlist comparison
  • Interactive waveform chart generation

Tools8

What Ltspice MCP lets your agent do. Expand a tool for its parameters.

Verified live~11.1k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

19/19 checks healthy over the last 46d

What it can do

From the 8 tools this server returned when we ran it; 8 declare their own safety hints.

Runs commands · 3Can delete or modify data · 4Makes network requests · 3Read-only tools · 4
Tool definitions changed on 2026-11-11. Review them if you approved this server earlier.
Network at startup2 connections
Files written at startup28

Observed 2026-11-11 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · ltspice-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars88Stargazers on the source repository.
Last commit10d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed8Callable tools this server registers over MCP.
Directory activity19 viewsConfig copies, upvotes, and views on AllMCPs.

How Ltspice MCP works

What ltspice-mcp does

ltspice-mcp gives MCP clients access to LTspice and ngspice simulations while working with the ordinary circuit files used by those applications. It can run a single simulation, execute parameter sweeps, or create Monte Carlo runs with component tolerances, model variation, and device mismatch. QSPICE and Xyce are also available for selected netlist runs; LTspice is required for .asc schematic editing.

Measurements cover transient, AC, DC, noise, and operating-point work. Available analyses include rise and fall time, overshoot, settling, propagation delay, RMS, THD, filter cutoff and bandwidth, resonance and Q, gain and phase margins, integrated noise, .MEAS results, and device values such as gm, gds, and vth. Results include simulator warnings, missing measurements, and extreme values alongside the affected values.

How it works

run_experiments accepts one or more decks and an analysis block, returning measurements inline for short work or a receipt for longer jobs. A variations grid expresses a sweep or Monte Carlo batch in one request, with cases running in parallel up to the server limit. The jobs tool can wait for completion, inspect records and artifact paths, or cancel a run. Job records are stored in the working directory, and a caller-supplied request ID can make retries replay the same submitted job.

Use analyze_results for completed jobs or existing .raw files. It supports multiple sources and metrics in one call, with cursors and result-set IDs for work that exceeds the compute budget. plot_waveform creates a self-contained interactive HTML chart and returns its path; it displays a chart rather than numeric samples. run_code provides a Python worker with access to the server API, NumPy, raw-file loading, measurements, and recipe references.

Setup and configuration

Python 3.11 or newer is required. Install the package with uv tool install ltspice-mcp or pipx install ltspice-mcp, then register the command as a standard MCP server, for example:

config.json
{
  "mcpServers": {
    "spice": { "command": "ltspice-mcp", "args": [] }
  }
}

The machine must have LTspice or ngspice for simulation. The server locates installed simulators on Windows, Linux, and macOS; WSL requires an explicitly configured LTspice path. Netlist reading and checking can work without a simulator, while .asc editing needs LTspice and its symbol libraries. Claude Code can add the server with claude mcp add -s project spice -- ltspice-mcp. Claude Desktop can use the packaged extension from packaging/mcpb/. Other supported clients require their MCP configuration to point at the installed command.

Name the registration spice when using it alongside LTspice's own MCP server, which uses the name ltspice.

Tools and capabilities

  • run_experiments runs simulations, sweeps, and Monte Carlo grids with optional measurements.
  • jobs waits for, checks, cancels, and lists submitted work.
  • analyze_results applies typed measurement recipes to finished runs or .raw files.
  • inspect reads capabilities, symbols, nets, components, models, and recipe references without writing files.
  • edit_schematic creates or changes .asc files using transactional, revision-checked operations.
  • verify_circuit checks syntax, connectivity, schematic geometry, LTspice netlist export, and optional graph comparisons.
  • plot_waveform generates interactive charts for transient, DC, AC, noise, stepped, and Monte Carlo results.
  • run_code executes Python against the live engine in a single warm worker, with time limits and captured output.

Schematic edits can place components, wire pins, and label nets. Verification reports issues such as floating pins, dangling wire ends, invalid connectivity, and wires silently omitted by LTspice's authoritative netlist export. Edits to an existing file require the expected file hash, so a concurrent change produces a revision conflict without writing partial results.

Limitations and notes

The server is a work in progress, and its newer tool surface differs from older one-operation tools. LTspice is the primary simulator; QSPICE and Xyce are limited to selected netlist workflows, and QSPICE requires native Windows execution. Schematic editing is specific to LTspice .asc files and depends on LTspice's symbol libraries.

run_code has the file and process authority of the server rather than an isolated sandbox, so it should be permitted like a shell-capable tool. Only one code snippet runs at a time. Its default timeout is 60 seconds, with a maximum of 600 seconds; a timeout interrupts the snippet and cancels a run it is waiting for. Waveform plots are visual outputs, so numeric extraction should use analyze_results recipes such as waveform, signal_stats, or the Bode analyses.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Ltspice MCP

ltspice-mcp is an MCP server that connects AI assistants to LTspice and ngspice. Its main tools run experiments, manage simulation jobs, analyze completed results, inspect circuits, edit and verify LTspice schematics, plot waveforms, and execute Python against the server engine. It returns measurements for circuit design and analysis workflows.

Install it with `uv tool install ltspice-mcp` or `pipx install ltspice-mcp`, then register the `ltspice-mcp` command in the client's MCP configuration. Python 3.11 or newer is required, and simulation work also needs LTspice or ngspice on the same machine.

Yes, ltspice-mcp works with Cursor through its MCP configuration. Install the command, add a server entry such as `spice` with `ltspice-mcp` as the command, and ensure the required simulator is available on the host.

Yes, it can create and modify LTspice `.asc` schematics with typed operations for components, wiring, and net labels. Existing-file edits use revision checks, and the server can verify symbols, connectivity, geometry, and LTspice's exported netlist. LTspice and its symbol libraries are required.

Use `run_experiments` with an `analyze` block for measurements returned with a simulation, or use `analyze_results` for completed jobs and `.raw` files. Recipes include stability, Bode, signal statistics, timing, transient response, operating point, noise, THD, and waveform samples.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLtspice MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ltspice-mcp?style=directory)](https://allmcps.com/mcp/ltspice-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/ltspice-mcp"><img src="https://allmcps.com/api/badge/ltspice-mcp?style=directory" alt="Ltspice MCP on AllMCPs" /></a>