✦ Agent Skill

Have AI simulate, sweep, and analyze LTspice circuitsv2026.12.04

Have your AI agent drive local LTspice or ngspice via MCP to run sweeps and Monte Carlo analyses, measure circuit metrics with units, plot waveforms, and edit .asc schematics

  • Needs LTspice / ngspice
Author CWYZLevel Mid
4.0
Free

Use when the user wants an AI agent to drive local LTspice or ngspice via MCP for circuit simulations, parameter sweeps, Monte Carlo runs, gain/phase margin and step-response measurements, waveform plots, or .asc schematic edits. Requires Python 3.11+ and local LTspice or ngspice.

Updated Dec 4, 2026

Have AI simulate, sweep, and analyze LTspice circuits

Skill name

ltspice-mcp

Good for

Works with

Claude CodeCodexAny agent that reads SKILL.md

Access

Free after sign-in

Related tutorials and cases

Tutorial

Meet cua-driver: let your AI agent control your desktop

Wire the open-source cua-driver into your AI agent via MCP so it reads OS Accessibility Trees to drive native macOS, Windows, and Linux apps reliably.

Tutorial

Give Your AI Agent a Browser of Its Own

Intermediate tutorial: Use the open-source Browserr to give your AI agent a separate browser. First decide which tasks suit it, then have your AI agent install and connect it over MCP. Start with read-only research, then fill forms and stop before submitting for your confirmation, and finally check the action log to see whether it did anything extra. Includes four prompts you can copy and paste.

Tutorial

Run Scheduled Tasks With Zero Tokens Using a System Timer

Intermediate tutorial: Don't have the Agent run scheduled tasks by hand every day. Have it write the task as one Python script, hand it to the system's built-in cron or Task Scheduler, and run it at 0 Tokens per run. When the script finishes, it sends you a message saying whether it succeeded or failed.

Project

Turn a Holdings Screenshot Into a Daily Stock Research Report With One Command

An open-source case study: hand the repetitive work of watching your watchlist every day and organizing signals to a local script. The workflow runs: import holdings from screenshots → theme aggregation → rule-based scoring → benchmark comparison → follow-up questions on the report → anomaly alerts, producing a daily research report and dashboard. It only organizes data; it does not connect to brokers, place orders automatically, or promise returns.

Similar skills

All skills

What you get

  • Measured gain, phase margin, and step response with units
  • Parameter sweep, corner, and Monte Carlo simulation runs
  • Validated .asc schematic edits and waveform plots

Good for

  • Analog and power engineers tuning circuits iteratively
  • EE grad students running SPICE sweeps and lab checks
  • Hardware developers automating SPICE metrics via MCP

Not for

  • Cloud-only setups without local LTspice or ngspice
  • Full PCB layout and Gerber fabrication workflows
  • Production pipelines requiring frozen zero-breakage APIs

About this skill

This skill connects your AI agent to the open-source ltspice-mcp server (GPL-3.0) so it can drive local LTspice or ngspice directly. In one workflow, your agent inspects netlists or edits .asc schematics, launches simulations, parameter sweeps, corners, or Monte Carlo runs in a single call, measures gain, phase margin, overshoot, settling time, noise, and operating points with exact units, plots waveforms, and iterates parameters from real numbers. Jobs run in the background and persist on disk across sessions.

The project is under active development and expects breaking changes across releases. macOS support is currently experimental; Windows and Linux are better supported.

What you need

  • Simulator: Local LTspice or ngspice installed (editing .asc schematics requires LTspice for its symbol libraries; reading netlists alone needs no simulator); no GPU or external API keys required.
  • Runtime: Python 3.11+ with uv or pipx on Windows, Linux, or experimental macOS (WSL requires setting the LTspice path manually).
  • MCP setup: Register the server as spice (not ltspice, which is taken by LTspice 26.1+'s built-in MCP server); in Codex, set tool_timeout_sec = 660.

FAQ

Does this conflict with LTspice 26.1+'s built-in MCP server?

No—register this server as spice instead of ltspice, and both can run side by side.

Can I edit .asc schematics with ngspice alone?

No. Schematic editing requires LTspice's symbol libraries; ngspice alone supports netlist simulation.

Why do longer runs time out in Codex?

Codex defaults to a 300 s tool timeout while run_code can run up to 600 s. Set tool_timeout_sec = 660 in ~/.codex/config.toml.

This is an outline. The full SKILL.md comes with the install: sign in, then copy the prompt or download.

REVIEWS

4.0

0 reviews

Rate this skill

No reviews yet.

Used this skill? Be the first to rate it.

Done with this one? Mark it to track your path.Sign in
Save it for laterSign in
Questions about this piece?Ask AI about this