Skip to main content
Glama
ltspice-mcp

ltspice-mcp

by ossenna-hq

リポジトリの由来: この公開インテグレーションフォークは、上流の cognitohazard/ltspice-mcp タグ v0.5.0(コミット 4dc456000e1a436ef37a585c23ab35954a8caf04e)に基づいています。 このブランチでの追加分は、インストールに依存しないデプロイ例とドキュメントを提供するものです。 上流のサーバーソースは一切変更されていません。

ltspice-mcp

開発中。 コア機能は使用可能ですが、荒削りな部分や破壊的変更があることを想定してください。

LLMアシスタント(Claude、およびその他のMCPクライアント)を実際の回路シミュレーションに接続するMCPサーバーです。LTspiceとngspice、さらにLTspiceの.asc回路図の直接編集に対応しています。シミュレーション結果は構造化された数値として返されます — カットオフ周波数、オーバーシュート、位相余裕、立ち上がり時間、そしてデバイスごとの小信号動作点パラメータ(gm、gds、vth、…)を名前で読み戻します — そのため、アシスタントはLTspiceで開いているのと同じファイルで回路の設計、検証、反復を、rawfileを手で解析することなく行えます。spicelib 上に構築されています。

クイックスタート

Claude Codeで、プラグインをインストールします:

/plugin marketplace add cognitohazard/ltspice-mcp
/plugin install ltspice-mcp

ホストにLTspiceまたはngspiceも必要です(Windows、Linux、macOSで自動検出されます。WSLではLTspiceのパスを明示的に設定してください — WSLの注意点)。回路編集はシミュレータなしでも動作します。uv が必要です。サーバー自体は初回使用時にPyPIから取得されます。

手動インストール(任意のMCPクライアント)

サーバーをインストールし、クライアントからサーバーを指定します:

uv tool install ltspice-mcp     # or: pip install ltspice-mcp / pipx install ltspice-mcp

Claude Code — 1コマンド(グローバルにインストールする場合は -s project を省略):

claude mcp add -s project ltspice -- ltspice-mcp

その他のクライアント — Claude Desktop、Cursor、Windsurf、Gemini CLI、Continue、Cline、Zed など — クライアントのMCP設定ファイルにこの mcpServers スタンザを追加します(各クライアントが独自のパスをドキュメント化しています):

{
  "mcpServers": {
    "ltspice": { "command": "ltspice-mcp", "args": [] }
  }
}

Python 3.11+ が必要です。ltspice-mcp --help で確認してください。同じサーバーは circuit-mcp と ngspice-mcp という2つのエイリアス名でも公開されているため、uvx circuit-mcp / uvx ngspice-mcp は、どちらかの名前の方が見つけやすい場合、uvx ltspice-mcp の代替としてそのまま使用できます。

Webクライアント(claude.ai、ChatGPT)には、mcp-proxy などのstdio→HTTPブリッジが必要です — このサーバーは allowed_paths 内でファイルを書き込み、プロセスを起動するため、完全に制御できるネットワーク上でのみ公開してください。

Claude Desktop拡張機能も利用可能です。packaging/mcpb/ で .mcpb をビルドし、Claude Desktopにドラッグ&ドロップすると、回路ディレクトリ用のネイティブフォルダピッカー付きでワンクリックインストールできます。プラグインと同様に、PyPIパッケージをラップし、ホストに uv とシミュレータが必要です(LTspiceやngspiceはバンドルされていません)。

Related MCP server: ltspice-mcp

使用方法

接続すると、回路作業を平易な言葉で依頼できます。アシスタントが回路を設計し、何を測定するかを決定します。サーバーはシミュレータを実行し、バイナリ出力を解析し、数値を返します。実行結果、シミュレータ自身の警告を含めて報告し、結果が良いかどうかの判断はあなたとアシスタントに委ねます。

"このNMOSコモンソース段を目標のドレイン電流で飽和状態にバイアスし、gm/IDを報告してください。"

アシスタントはネットリストを作成し、LTspiceでバイアス点を解き、デバイスの動作点を名前で読み戻します — ドレイン電流、gm、gds、飽和状態を確認するためのVDS対VDSAT、そしてアナログ設計者がサイズを決めるgm/ID。バイアスがずれている場合は、ゲート基準またはW/Lを調整して再実行します。1回あたり数秒です。

同じように機能する他のリクエスト:

  • 「このレギュレータのステップ応答のオーバーシュートと整定時間は?」 — 過渡解析を実行し、波形から両方を測定します。立ち上がり時間、リンギング周波数、最終値も含みます。

  • 「5%の抵抗で200回のモンテカルロを実行し、出力のばらつきを教えてください。」 — 実行ごとにコンポーネントを変動させ、バッチをシミュレートし、測定ごとに平均、シグマ、最悪値を報告します。

  • 「負荷を100 Ωから10 kΩまでスイープし、効率が低下する場所を見つけてください。」 — 実行ごとの結果付きのパラメータスイープ。

  • 「このNMOSを特性評価してください: gmとgm/ID対VGS。」 — .dc Vgs デッキを .save @m1[gm] @m1[id] 付きで書き込み、ngspiceで実行し、gm/IDテーブルを1つのCSVとして返します(.control ブロックもrawfile解析も不要)。

  • 「ローサイドスイッチ用のNチャネルパワーMOSFETを見つけ、オン状態のドロップを測定してください。」 — ロードされたライブラリから部品を検索し(find_model)、パルスゲート過渡解析に配置し、Vds(on)と負荷電流を .meas 結果から読み戻します。

  • 「この差動ペアをLTspiceで開ける回路図として構築してください。」 — 直交ルーティングとピン衝突チェック付きで、コンポーネントを実際の .asc に配置し、配線します。

  • 「このループは安定していますか?」 — ループゲインのAC解析。すべてのクロスオーバーで位相余裕とゲイン余裕を報告します(最初のものだけでなく)。

  • 「この直列RLCの共振周波数とQは?」 — ACスイープを実行し、各ピークの中心周波数、Q、−3 dB帯域幅を報告します。

警告は影響する数値に付随します。 ngspiceのようなシミュレータは、開くことのないログの奥深くに "singular matrix" を1回出力し、その後実行を完了して完全に妥当な数値を書き出すことがあります — 手動で読んでも何もおかしく見えません。サーバーにそれらの数値の1つを要求すると、埋もれた行がその値のすぐ隣の observations フィールドに付随して表示されるため、失敗はスクロールして通り過ぎる場所ではなく、すでに確認している場所に現れます。

同じファイルでの共同設計

すべての操作は通常のLTspiceおよびSPICEファイルで行われるため、作業はチャット内に閉じ込められるのではなく、あなたとアシスタントの間で行き来します:

  • LTspiceで回路図をスケッチし、それを渡します: "バイアス点は?"、"出力が動かないのはなぜ?"、"補償を追加して位相余裕を確認してください。"

  • または逆に: アシスタントが回路を設計・検証し、.asc を書き込みます。あなたはLTspiceで開き、検査し、手動で調整します。手動編集は単にファイルの新しい状態であり、アシスタントは次のリクエストでそこから続行します。

  • 変更は設計途中でどちらの方向にも流れます: GUIで値を調整して再検証を依頼するか、アシスタントに検討中の変更をスイープさせてからコミットします。

機能

シミュレーションと測定。 LTspiceまたはngspiceを実行し、バイナリ出力を直接解析します。測定はサーバー側で計算され、数値として返されます: 時間領域(立ち上がり/立ち下がり、オーバーシュート、整定、遅延、周期/デューティ/ジッタ、RMS、THD)、周波数領域(フィルタのカットオフとロールオフ、任意の周波数でのゲインと位相、安定性マージン、Q付き共振ピーク、積分ノイズ)、DC動作点、および失敗したものを含む .MEAS ディレクティブ結果。デバイスごとの小信号動作点パラメータ(gm、gds、vth、…)は、両方のシミュレータで名前付きで返されます — LTspiceではログに自動追加された .options logopinfo ブロックを介して、ngspiceでは .save @dev[param] トレースを介して。.dc スイープ全体でセットをgm/IDテーブルとして export_waveform で読み取るか、operating_point で単一のバイアス点を読み取ります(m1.gm / @m1[gm] として指定。rawfile解析は不要)。

回路図とネットリストの編集。 実際のLTspice .asc ファイルを作成・編集します — コンポーネントの配置、ピンの配線、ネットのラベル付け — 書き込み前に検証が行われます: ピンと衝突する配線、ジャンクションと重なる配線、または斜めに走る配線は拒否され、すべての編集でフローティングピンやぶら下がりラベルに関する警告が返されます。セッションの編集は元に戻せます。プレーンなネットリスト(.cir/.net)は、テキストレベルで同じ操作に加えて、シミュレーションを費やす前に不正なカードを検出する静的検証パスが適用されます。

スイープとモンテカルロ。 多次元パラメータスイープと、コンポーネントごとの許容差、.MODEL プロセス変動、Pelgrom W·L デバイスミスマッチを備えたモンテカルロ。測定ごとの統計が実行全体で集計され、任意の単一実行を抽出してスタンドアロンのシミュレーションのように分析できます。

ジョブと信頼。 シミュレーションは、タイムアウトと同時実行数の上限を持つキャンセル可能なジョブとして実行されます。長時間の実行はジョブIDを即座に返し、ジョブ状態はサーバー再起動後も維持されます。結果は事実を報告し、判定は行いません: 完了した実行には、シミュレータ自身の警告、何も生成しなかった測定、極端なノード値が構造化された観察として含まれます。結果が信頼できるかどうかの判断は、それを読むモデルに委ねられます。

対応シミュレータ

シミュレータ

ステータス

LTspice

プライマリ。Windowsネイティブ、WSL2(Windows LTspice.exe を interop 経由)、Linux は Wine 経由。.asc 回路図編集に必要(.asy シンボルライブラリが必要)。

ngspice

ファーストクラス: シミュレート、解析、診断、分析。LTspiceインストール不要のオープンソースパス。

QSPICE, Xyce

対応していますが、セカンダリ。

設定

デフォルトでそのまま動作します。カスタマイズするには、ltspice-mcp.example.toml を ltspice-mcp.toml にコピーします。任意の設定は LTSPICE_MCP_ プレフィックス付きの環境変数で上書きでき、--config PATH または LTSPICE_MCP_CONFIG でファイルを選択します。主なオプション:

[simulator]
default = "ltspice"      # ltspice, ngspice, qspice, xyce (null = auto-detect)
path = ""                # explicit executable path (required on WSL)
ngbehavior = "hsa"       # ngspice compat mode; unset = spicelib default, "hsa" fixes sectioned .lib corner select

[security]
allowed_paths = ["."]    # sandbox: only these directories are accessible

[simulation]
max_parallel = 4
timeout = 300.0          # seconds

[tools]
profile = "full"         # or "agentic"

[state]
persist_jobs = true

完全なオプションリストは src/ltspice_mcp/config.py を参照してください([analysis]、[schematic]、[logging]、...)。

WSLでは、LTspice.exe はWindows interop(Wineではなく)を介して実行され、spicelibはWSL境界を越えて自動検出できません。Windows側のパスを明示的に設定してください:

[simulator]
path = "/mnt/c/Program Files/ADI/LTspice/LTspice.exe"

シミュレーション出力は自動的にWindowsの一時ディレクトリにリダイレクトされます: LTspiceの .MEAS 結果は、UNCパス(\\wsl.localhost\...)で失敗するSQLite .db ファイルを経由するため、リダイレクトがないと測定データはログから静かに消えてしまいます。

.asc 編集用の .asy シンボルパスは、WindowsとWSLで自動検出されます。[schematic] symbol_paths または LTSPICE_MCP_SYMBOL_PATHS で上書きします。

ツールプロファイル

プロファイル

ツール

ユースケース

full(デフォルト)

49

任意のMCPクライアント、自動化、非エージェントLLM

agentic

41

ネイティブファイルアクセス(Read/Edit/Write)を持つLLMエージェント

agentic プロファイルは、ネットリスト編集ラッパーとライブラリセッション管理を削除します — 有能なエージェントが直接ファイル編集で行う作業 — シミュレーションライフサイクル、バイナリ .raw 解析、バッチオーケストレーション、.asc ジオメトリツールを保持します。skills/ ディレクトリ(skills/ltspice/SKILL.md、skills/ngspice/SKILL.md)には、それと組み合わせるドメイン知識が含まれています: 関連するスキルをクライアントの永続的な指示の場所にコピーしてください。

実行場所。 サーバーはローカルのLTspice/ngspiceにシェルアウトし、ディスクから回路ファイルを読み込むため、シミュレータとファイルが存在する場所で実行する必要があります。機能するセットアップは2つあります。自分のマシン上のローカルMCPホスト(Claude Desktop、Claude Code、Cursor、Gemini CLI、Codex、…)、またはサンドボックスにngspiceをインストールしてサーバーを登録できるブラウザベースのクラウドエージェント(Claudeで検証済み)です。LTspiceはローカルのみ(Windowsアプリ)です。ngspiceはオープンソースで、どちらの環境でも動作します。サンドボックスのない一般向けWebチャットにはシミュレータもファイルアクセスもないため、このサーバーを直接実行できません。そのUIが必要な場合は、管理下のマシンにブリッジしてください(例: mcp-proxy)。

内部の仕組み: ツールレベルのループ

アシスタントが「1 kHz RCローパスを設計して検証する」ために実際に行うこと。ネットリストを書き込み(R=1k、C=159.155n → fc = 1 kHz):

* rc.cir — RC low-pass
V1 in 0 AC 1
R1 in out 1k
C1 out 0 159.155n
.ac dec 50 1 1Meg
.end

次に3つのツールを駆動します:

validate_netlist(path="rc.cir")
  → OK: directives valid, element arities check out — safe to simulate

run_simulation(netlist="rc.cir")
  → {"job_id": "sim_a3f1", "status": "completed", "raw_file": ".../rc.raw", ...}

bode_metrics(raw_file=".../rc.raw", signal="V(out)", mode="filter")

そしてプロットではなくスカラーを受け取ります:

{
  "signal": "V(out)",
  "filter_type": "lowpass",
  "passband_gain_db": 0.0,
  "passband_ripple_db": 0.02,
  "cutoff_low_hz": null,
  "cutoff_high_hz": 1000.4,
  "stopband_rejection_db": 59.97,
  "rolloff_slope_db_per_decade": -19.9,
  "estimated_order": 1,
  "warnings": []
}

(省略版 — 完全なレスポンスには通過帯域の境界と遷移帯域幅も含まれます)

目標値から外れた場合 → set_component_value、再実行、再測定。長時間のシミュレーションはブロックせずにジョブIDを返します。check_job/cancel_jobがそれらを管理します。ジョブのメタデータは回路ごとのサイドカー({dir}/.ltspice-mcp/jobs/ — .gitignoreに.ltspice-mcp/を追加してください)に永続化され、MCPリソース(spice://results/...、spice://netlists/...、spice://config)はジョブ、信号、測定値、設定をブラウジング用に公開します。

すべてのツールはMCPアノテーション(readOnlyHint、destructiveHint、idempotentHint、openWorldHint)を宣言します。データを返すツールは、structuredContentイントロスペクション用のoutputSchemaを宣言します。

ツール

説明

create_netlist

コンテンツ文字列から新しいネットリストを作成します

create_schematic

増分編集に対応した空の .asc を作成します

read_circuit

回路ファイルを読み取ります (.cir のネットリストテキスト、.asc の回路図レイアウト)

list_components

コンポーネントを一覧表示します (オプションのプレフィックスフィルタ付き)。または参照指定で1つを検索します

set_component_value

1つのコンポーネント値を設定するか、values ディクショナリで複数を一括設定します

parameter

すべての .PARAM 値を読み取るか、1つを設定します

edit_directive

SPICE ディレクティブ (.tran, .ac, .lib, ...) を追加または削除します

add_component

コンポーネントを追加します。ピン位置、バウンディングボックス、重なり警告を返します

connect

ウェイポイントルーティングで参照指定の2つのピンを配線します。ピンの衝突、ジャンクション、斜め配線を検証します

symbol_info

シンボルのピン位置、方向、バウンディングボックス、説明

component_info

配置済みコンポーネントのピン位置、バウンディングボックス、属性

export_netlist

LTspice 経由で .asc を .net にエクスポートします (前回のエクスポートとの差分付き)

validate_netlist

シミュレーション前にネットリストまたは回路図に対して静的な事前チェックを行います

trace_net

ピン / net:NAME / (x,y) でネット上のすべてのピン/ラベル/配線をトレースします。偶発的なショートをフラグします

reset_schematic

.asc をこのセッションの編集前スナップショットに戻します

diff_circuit

2つの回路ファイル間の構造的差分

apply_schematic_ops

多数の .asc 編集を1つのトランザクションで適用します。ack のみのミューテーション操作 (move_component, remove_component, set_component_attribute, add_net_label, remove_net_label, remove_wire) の本拠地です

run_simulation

シミュレーションを実行します — 短時間の実行は同期、長時間の実行は非同期 (ジョブ ID) です。バッチフラグを設定し、ngspice のヘッダーレス raw 方言を処理し、raw/log アーティファクトをルーティングし、収束/タイムアウトエラーを表面化します (raw ファイルの手動解析は不要)

check_job

ID でジョブのステータスを確認するか、すべてのジョブを一覧表示します

cancel_job

実行中のシミュレーションまたはバッチをキャンセルします。シミュレータプロセスを強制終了します

signal_stats

最小値、最大値、平均値、RMS、ピークツーピーク (AC の場合は dB/位相)

get_waveform

ウィンドウ内の信号のデシメーションされた最小/最大統計エンベロープ — 形状を確認してから、より狭いウィンドウを再リクエストしてズームします

export_waveform

1つ以上の信号をフル忠実度の CSV としてディスクに出力します (すべての解析タイプに対応。.step では tidy/long 形式)。デバイス動作点パラメータ (m1.gm/@m1[gm]) を受け付けます — .dc スイープ全体では gm/ID テーブルの読み出しになります。自分で計算するためのパスを返します

plot_waveform

インタラクティブな HTML チャート (過渡 / DC / Bode デュアルパネル、ac_structure コーナー + 非最小位相マーカー / ノイズ / .step オーバーレイ) を回路の隣に書き出し、ブラウザで開きます。測定ではなく形状確認用です

query_value

特定の時間/周波数での信号値 (またはデバイス動作点パラメータ m1.gm/@m1[gm])。step_axis+step_value で .step 実行を選択します

operating_point

DC 動作点: LTspice (自動 .options logopinfo) と ngspice 上のすべてのノード電圧、ブランチ電流、デバイスごとの動作点パラメータ (gm/gds/vth/…)。m1.gm/@m1[gm] としてアドレス指定可能。device= で1つのデバイスにスコープを絞ります

simulation_summary

完全なサマリー: シミュレーションタイプ、信号、測定値、警告

edge_metrics

1つの過渡エッジの立ち上がり/立ち下がり時間とスルーレート

pulse_response

ステップ応答のオーバーシュート、アンダーシュート、整定時間

timing_between

2つの過渡信号間の伝搬遅延

periodic_metrics

発振信号の周期、周波数、デューティサイクル、ジッタ

thd

FFT による周期過渡信号の全高調波歪み (THD/THD+N)。正確な結果のためのコヒーレントサンプリング。すべての条件を表面化します

measurement_stats

スイープまたはモンテカルロ実行全体で .MEAS スカラーを集計します

bode_metrics

mode による AC/Bode 解析: filter, slope, point, crossing。ステップごとの結果には all_steps=true

stability_metrics

ループゲイン安定性: すべてのユニティゲイン / -180° 交差と、交差ごとのマージン

resonance

AC ピークと、ピークごとの Q 値および -3 dB 帯域幅

ac_structure

AC 応答の極/零点構造: ネット次数、コーナー範囲 + Q、非最小位相 / RHP 零点、輸送遅延 (人間が確認するための事実)

noise_integral

.noise スペクトル密度を帯域全体の RMS に積分します (sqrt(∫ density² df))。帯域とサンプル数を報告します

configure_sweep

マルチパラメータスイープ (線形または対数) を構成します

run_sweep

構成済みのスイープを実行します (非同期、ジョブ ID を返します)

configure_montecarlo

モンテカルロを構成します: トレランス、.MODEL ばらつき、Pelgrom ミスマッチ

run_montecarlo

構成済みのモンテカルロ解析を実行します (非同期、ジョブ ID を返します)

batch_results

スイープ/MC ジョブの進行状況、信号ごとの統計、または実行ごとのデータ

find_model

名前でモデル候補を検索します (デフォルトはあいまい検索、完全一致は exact=true)

load_library

.lib/.mod ファイルまたはライブラリのディレクトリをロードします

unload_library

以前にロードしたライブラリをアンロードします

list_libraries

ロード済みライブラリを一覧表示します。オプションでモデル名付き

server_status

検出されたシミュレータ、設定、サンドボックスパス、ランタイム状態

recent

永続インデックスからの最近使用した回路とジョブ

開発

uv sync                        # install runtime + dev dependencies
uv run pytest tests/ -v        # tests
uv run pyright                 # type checking
uv run ruff check src/ tests/  # lint
uv run ltspice-mcp             # run the server (stdio)

詳細: docs/DESIGN.md (スコープ、アーキテクチャ、非目標) および docs/spice_lex.md (SPICEパーサーの内部)。

ライセンス

GPL-3.0

Available Tools

49 tools
ac_structureA
Read-onlyIdempotent

Read the pole/zero STRUCTURE of an .AC response — net order, corner frequencies (as ranges) with Q, out-of-phase zeros, and transport delay — to support design reasoning (where the poles/zeros roughly are, damping, out-of-phase zeros). It first tries a rational fit and uses its poles/zeros when the fit is clean; otherwise it falls back to asymptotic Bode reading (slope breakpoints + joint gain-phase + group delay + a gain-phase consistency residual).

Returns FACTS, not a verdict — bring your own control/design knowledge. The most design-critical fact is the non_minimum_phase flag: an out-of-phase zero or a transport delay adds phase lag the magnitude plot cannot show, and caps achievable loop bandwidth; do not close a loop on magnitude alone when it is flagged.

IMPORTANT — these are read from a finite sweep, so HAVE A HUMAN REVIEW them against the Bode plot (use plot_waveform on the same signal) and the circuit before acting. Closely-spaced corners merge into one range (merged: true) rather than being resolved individually, and exact pole/zero COUNTS are not guaranteed — for exact poles/zeros run a .pz analysis on ngspice. Requires a .AC run. Siblings: bode_metrics (margins / cutoffs / point queries), resonance (peaks + Q), stability_metrics (loop margins).

Inputs: signal (required), step, format, job_id, +2 more. Returns: method, signal, corners, net_order, +7 more

add_componentA

Add a new component to an .asc schematic at a specified grid position.

Inputs: x (required), y (required), path (required), symbol (required), +5 more. Returns: pins, symbol, position, rotation, +3 more

apply_schematic_opsA
Destructive

Apply many .asc edits in one transaction. Loads the schematic once, runs each op against the in-memory editor in order, and saves once at the end. Cuts the typical 25+ tool calls to build a real circuit (add_component × N + connect × N + add_net_label × N + edit_directive × N) down to a single round-trip. This is also the home for the ack-only schematic mutations that have no standalone tool — they return no geometry to act on, so they live here rather than each costing a separate tool slot.

Supported ops (each tagged via the op field): add_component, set_component_value, set_component_attribute, remove_component, move_component, add_net_label, remove_net_label, remove_wire, connect, add_directive, remove_directive.

By default, the first op that raises aborts the whole transaction and nothing is written to disk. Set stop_on_error=false to run every op and persist whatever subset succeeded — useful when each op is independent and partial progress is acceptable. Errors are recorded under each op's error field; successes carry the per-op result keys (e.g. wire_count).

Inputs: ops (required), path (required), format, dry_run, +1 more. Returns: path, saved, dry_run, results, +3 more

batch_resultsA
Read-onlyIdempotent

Query a batch simulation job (sweep or Monte Carlo). Without signal: returns job status and progress. With signal: returns aggregate statistics or per-run data for that signal.

Inputs: job_id (required), at, raw, limit, +4 more. Returns: mode, runs, stats, job_id, +12 more

bode_metricsA
Read-onlyIdempotent

AC / Bode-plot analysis in one tool, selected by mode. The response shape depends on the mode: mode='filter' — filter type, cutoffs (at ref_db below passband), passband gain/ripple, stopband rejection, transition BW, pole-order, and an auto-estimated asymptotic roll-off slope (dB/decade) — covers cutoff AND slope in one call. mode='slope' — magnitude slope (dB/decade + dB/octave) between f_low and f_high; pick endpoints ≥1 decade past any knee. Use when you need a custom window or dB/octave ('filter' already reports an auto-estimated asymptotic dB/decade slope). mode='point' — magnitude (dB + linear) and phase at each of frequencies (log-axis interpolation; out-of-range clamps + warns). mode='crossing' — every frequency where quantity crosses level (phase is UNWRAPPED first); the escape hatch for custom queries like unity-gain (0 dB) or phase-margin (-180°) frequencies.

Pass all_steps=true to compute the chosen mode for every step of a .step sweep in one call (returns a steps list instead of a single result) — e.g. the -3 dB cutoff at every value of a stepped component.

To analyze a run of a completed sweep/MC job, pass job_id + run_index instead of raw_file (combine with all_steps to also sweep the .step axis within that run).

For loop-gain stability margins use stability_metrics; for resonant peaks & Q use resonance.

Inputs: mode (required), signal (required), step, f_end, +19 more. Returns: mode, level, steps, params, +31 more

cancel_jobA
DestructiveIdempotent

Cancel a running simulation job (single run, or a sweep/Monte-Carlo batch). Kills the simulator process(es) and marks the job as cancelled.

Inputs: job_id (required).

check_jobA
Read-onlyIdempotent

Check status of a simulation job by ID, or list all jobs. Without job_id: lists active jobs (filter with status param). With job_id: returns detailed status or completion results.

Inputs: format, job_id, status. Returns: jobs, count, error, range, +23 more

component_infoA
Read-onlyIdempotent

Get a placed component's pin positions, bounding box, value, and attributes from an .asc schematic.

Inputs: path (required), reference (required), format. Returns: pins, value, symbol, position, +4 more

configure_montecarloA
Idempotent

Configure a Monte Carlo analysis with component tolerances and return a config_id for later execution.

Inputs: netlist (required), seed, mismatch, num_runs, +3 more.

configure_sweepA
Idempotent

Configure a multi-parameter sweep for a netlist and return a config_id for later execution. Dimensions combine as a full cross-product, so this also covers deterministic worst-case corner analysis (give each component a two-value [low, high] set — N parts yields 2^N corners that bound the true extremes, which random Monte Carlo cannot guarantee) and sensitivity analysis (sweep one part at a time across its tolerance to rank impact). Use configure_montecarlo instead for statistical yield/spread. NOT for a bias sweep: a native .dc Vds Vgs (e.g. a gm/ID characterization) goes in one deck + run_simulation + export_waveform, not here — this is for per-value SEPARATE runs (corners, L/W, .lib model swaps).

Inputs: netlist (required), parameters (required).

connectA

Connect two component pins with wire(s). Resolves pin positions automatically. Waypoints define the wire route through intermediate points. For a straight horizontal or vertical connection, waypoints can be omitted.

Inputs: path (required), to_pin (required), from_pin (required), waypoints. Returns: to, from, points, warnings, +2 more

create_netlistA
Destructive

Create a new SPICE netlist file from content string. Automatically appends .END if missing.

Inputs: name (required), content (required), overwrite.

create_schematicA
Destructive

Create an empty .asc schematic ready for incremental editing via add_component / connect / add_net_label. Tip: prefer create_netlist + .cir for design iteration; use this only when a visual schematic is the deliverable. Prefer apply_schematic_ops for multi-step builds (one transaction); wire signal nets with connect; label grounds — and any net a .meas/B-source references by name — via add_net_label flags at pins. Don't hand-edit the .asc. Full layout guidance: the spice://guide resource.

Inputs: name (required), width, format, height, +1 more. Returns: path, width, height

diff_circuitA
Read-onlyIdempotent

Structural diff between two circuit files: reports added/removed components, components whose value or attributes (Value2/SpiceLine/SpiceModel) changed, and added/removed .PARAM/.MEAS/.MODEL directives. Use after set_component_value, set_component_attribute or edit_directive to confirm that the intended change actually landed.

Inputs: path_a (required), path_b (required), format.

edge_metricsA
Read-onlyIdempotent

Use when you need to quantify HOW FAST one transition happened: rise time, fall time, slew rate. Inputs a transient .raw plus a time window around the edge of interest.

Returns: transition_time (10→90% by default, configurable via low_pct/high_pct), slew_rate (V/s or A/s), detected low/high levels, and the three crossing times.

Levels are auto-estimated from the first/last 10% of the window — NOT global min/max — so overshoot/undershoot doesn't poison the level estimate. Crossings are sub-sample-accurate via linear interpolation. Rejects AC analysis.

PICK THE WINDOW. If the transient has startup glitches or multiple edges, set t_start/t_end tightly around the edge you care about — otherwise you get the first edge in the full waveform, which is often the power-up artifact. Use edge_index only when multiple edges in the window are intentional.

For settling/overshoot after the edge, use pulse_response. For delay between two signals' edges, use timing_between.

Inputs: signal (required), edge, step, t_end, +10 more. Returns: signal, low_pct, high_pct, warnings, +10 more

edit_directiveA

Add or remove a SPICE directive or .asc free-text comment. Set kind=comment for annotation text; default is a SPICE directive. Works on .cir/.net and .asc; kind=comment is .asc-only. remove matches against directives AND comments, so callers can delete either kind without knowing which it is. Adding a .param is not supported here — use the 'parameter' tool to set .PARAM values.

Inputs: path (required), action (required), instruction (required), x, +3 more.

export_netlistA
DestructiveIdempotent

Export an .asc schematic to a SPICE netlist (.net) using LTspice.

Inputs: path (required).

export_waveformA

Full-fidelity waveform egress: write every sample of one or more signals to a CSV file on disk and return its path — for when you want to compute on the raw data yourself (FFT, custom metrics, cross-correlation) rather than read a scalar or a decimated envelope.

Lossless within the chosen window (no decimation — that is get_waveform's job). Works on transient (.tran), DC sweep (.dc), AC (.ac), and noise (.noise). Complex AC traces are written as magnitude(dB)+phase(deg) by default (complex_format selects re/im or both); phase is the wrapped np.angle — run np.unwrap yourself for a continuous curve. A stepped (.step / Monte-Carlo) run is written tidy/long: one row per (step, sample) with leading step_index/step_value columns, because each transient step has its own time vector. The observations list surfaces FACTS (rows written, window coverage, non-finite samples KEPT, the complex format used) — not verdicts.

Returns the CSV path plus row/column counts; read the file with your own tools. Sibling egress, don't confuse: get_waveform returns a DECIMATED envelope as numbers in your context (no file); plot_waveform renders an interactive PICTURE for a human. For a single scalar use signal_stats/query_value.

Inputs: t_end, format, job_id, out_dir, +5 more. Returns: path, columns, n_steps, signals, +6 more

find_modelA
Read-onlyIdempotent

Find model/subcircuit candidates across loaded (and optionally built-in) libraries. Default is fuzzy matching — finds typos, case variants, and near-neighbour part numbers (e.g., '2N3905' → '2N3904'); pass exact=true to only return the exact case-insensitive match. Returns ranked candidates with similarity score and an include_directive emitted in the simulator's native path form (on WSL this is the Windows path LTspice.exe expects, not the /mnt/c Linux path). Each candidate carries ports (the .SUBCKT port list, empty for .MODEL) and params (default parameter values from the body / params: clause). For .MODEL devices it also carries device_type (the SPICE device token: NPN, PNP, D, NMOS, VDMOS, NJF …) and, for recognised tokens, a usage connection-order string (e.g. Qxxx C B E <name>) — a .MODEL gives parameters but not node order, and wiring the part in the wrong order simulates silently wrong.

Inputs: name (required), full, exact, limit, +3 more. Returns: exact, query, cutoff, results, +1 more

get_waveformA
Read-onlyIdempotent

Decimated numeric egress FOR THE MODEL: returns a min/max-preserving stat-envelope of one real-valued signal as DATA in your context (numbers, not a picture) over a time/sweep/frequency window — for when a scalar isn't enough and you need the SHAPE (switching nodes, amplifier internal nodes, startup transients).

Splits the window into equal-time buckets; each bucket reports the raw sample min/max (a narrow spike or ringing peak is never averaged away), time-weighted trapezoidal mean/rms (correct on SPICE's adaptive timestep), pk_pk, and crest_factor (peak/rms — high = impulsive/spiky). Scalar-guided zoom: read the envelope, then re-request a narrower [t_start, t_end] to resolve a region at higher resolution (same call, tighter window). The observations list surfaces FACTS, not verdicts (decimation coverage, dropped non-finite samples, which bucket has the largest pk-to-pk) — you decide what the shape means.

Works on transient (.tran), DC sweep (.dc), and noise (.noise) results. Sibling egress, don't confuse: export_waveform writes EVERY sample to a CSV FILE for your own code; plot_waveform renders an interactive PICTURE for a human to look at. For complex AC data use bode_metrics; for a single scalar use signal_stats; for one point value use query_value.

Inputs: signal (required), step, t_end, format, +5 more. Returns: signal, buckets, axis_unit, decimated, +7 more

list_componentsA
Read-onlyIdempotent

List components in a circuit file, optionally filtered by type prefix, or return a single component value by reference.

Inputs: path (required), limit, format, offset, +2 more. Returns: components, pagination

list_librariesD
Read-onlyIdempotent

List loaded libraries. With detail=true, also shows the .SUBCKT and .MODEL names defined in each library (so foundry .bjt/.mod files with hundreds of .MODEL cards are discoverable without guessing), and names encrypted vendor files whose bodies can't be parsed.

Inputs: path, limit, detail, format, +1 more. Returns: libraries, pagination

load_libraryA

Load a SPICE library file (.lib, .mod) or directory of library files into the session.

Inputs: path (required).

measurement_statsA
Read-onlyIdempotent

Use to AGGREGATE .MEAS scalar results across a .step sweep or Monte Carlo run. Answers questions like 'across 100 MC trials, what's the worst-case rise time?' or 'how does gain vary as R sweeps 1k..10k?'. Inputs the .log file produced by the run.

Returns per-measurement: min, max, mean, median, std, p10, p90, min_step_index (argmin) and max_step_index (argmax), failure count, and an optional histogram (set histogram_bins=0 to skip).

Accepts any job id: a sweep/MC batch aggregates across its runs; a single-simulation job aggregates its own log (one value per step for a .step run). WHEN-style .MEAS (constant level, varying crossing) is detected the same way on both paths and swaps to aggregating the 'at' (crossing) field; the aggregated_field output says which was used. On a plain single run, stats collapse to n=1 (one value per measurement): the headline stats are the value the simulator printed — for a WHEN that's the trigger level — and any AT/crossing time is returned separately in the entry's 'at' field, so a single-run WHEN/AT read isn't lost. (simulation_summary also just reads the raw scalars.)

Works with .MEAS from any analysis type (.tran/.ac/.dc/.op) — the measurement directives themselves embed the analysis context. Pass measurement=NAME to aggregate just one; otherwise returns all .MEAS in the log.

Inputs: format, job_id, log_file, measurement, +1 more. Returns: stats, per_run

noise_integralA
Read-onlyIdempotent

Integrate a .noise spectral density to a total RMS noise over a band. SPICE stores amplitude density (V/√Hz or A/√Hz) for both LTspice and ngspice, so total = sqrt(∫ density² df) — the same value LTspice shows when you Ctrl-click a V(onoise) label. Reports the band actually integrated and the sample count. Noise figure / SNR are left to you (they need the source resistance and a reference level).

Inputs: step, f_end, format, job_id, +4 more. Returns: unit, signal, n_points, warnings, +4 more

operating_pointA
Read-onlyIdempotent

Read DC operating point data: all node voltages, branch currents, and each semiconductor's small-signal params (gm/gds/vth/vdsat/caps) — from LTspice's log (run_simulation auto-adds '.options logopinfo' on .op runs) or ngspice's @dev[param] traces, surfaced uniformly by name. Each value carries its SI unit where the simulator declared the type (see units). Pass device='M1' to get just one device's params + terminal currents in a single call.

A run-level solve failure (singular matrix / non-convergence) taints every value here; that simulator line is relayed into warnings — read it before trusting the bias point.

Inputs: at, step, device, format, +3 more. Returns: step, units, device, currents, +5 more

parameterA
Idempotent

Read, write, or delete .PARAM directive values in a circuit file. Pass delete=true with name to remove a parameter (the inverse of setting one).

Inputs: path (required), name, value, delete, +1 more. Returns: parameters

periodic_metricsA
Read-onlyIdempotent

Use for an oscillating transient signal (clock, oscillator output, switching waveform) when you need period, frequency, duty cycle, pulse widths, and period-to-period jitter.

Returns: period (mean across measured periods), frequency (1/period), jitter_rms (std-dev of period lengths — timing jitter, NOT signal amplitude variance), duty_cycle_pct, mean high/low pulse widths, edge counts. duty_cycle_pct / pulse_widths are null if no full periods could be paired. A period is the span between consecutive rising crossings, so num_periods_measured = num_rising_edges - 1 (you need N+1 edges to measure N periods).

Uses threshold crossings; threshold defaults to the midpoint of window min/max. For a signal with DC drift, set an explicit threshold — the auto midpoint moves with the drift and the edge detection gets unstable. min_periods guards against accidentally running on 1-edge windows.

Skip the startup transient via t_start/t_end; the first cycle is often wider than steady state. Rejects AC analysis. For a single edge (not periodic), use edge_metrics.

Inputs: signal (required), step, t_end, format, +6 more. Returns: period, signal, warnings, frequency, +8 more

plot_waveformA

Render an INTERACTIVE chart of one or more signals FOR A HUMAN to look at (zoom/pan/hover) — the co-design complement to the numeric tools. It returns NO data values to the model; it produces a picture.

Picks the chart from the run type: transient (V/I vs time), DC sweep, AC Bode (stacked magnitude-dB + phase-deg vs log frequency), noise (vs log frequency); a .step / Monte-Carlo run overlays every step as a labelled trace (or pass step for one). Full fidelity by default, with a min/max-preserving downsample above max_points (spikes survive; surfaced as a fact). Writes a self-contained HTML file and returns its path — into out_dir if given, else a '.ltspice-mcp/plots/' sidecar next to the circuit (for a job_id) or next to the raw (for a raw_file); on a host that supports MCP Apps the chart is also embedded as an interactive in-chat widget, otherwise it opens in your local browser.

Sibling egress, don't confuse: for numbers in your context use get_waveform (decimated); for every sample on disk use export_waveform (CSV); for a scalar use signal_stats/bode_metrics. This tool is for looking, not measuring.

Inputs: open, step, t_end, format, +8 more. Returns: path, opened, opener, panels, +11 more

pulse_responseA
Read-onlyIdempotent

Use when you need step-response quality metrics: overshoot %, undershoot %, settling time, peak value and peak time. Inputs a transient .raw covering ONE step transition — ideally with the stimulus edge near t_start and enough tail to see settling.

Returns: direction (rising/falling), initial/steady-state values, peak (absolute and pct), settling_time (to within settling_tolerance_pct band). settling_time is null in three cases, kept distinct in the text and quality flags: 'never (within window)', 'undefined (full-pulse window)', and 'unknown' when the trailing window is too noisy to trust the final value (still ringing) — pass final_value there.

Definitions: overshoot is excursion BEYOND final in the step direction; undershoot is excursion beyond initial opposite the step direction. overshoot_pct = 0 means MEASURED overdamped, not missing data. settling_tolerance_pct defaults to 2% of |final - initial|; 1% and 5% are also common.

If the auto-detected initial/final (mean of first/last 10% of window) is contaminated by ringing, pass explicit initial_value/final_value. Rejects AC analysis.

For just rise/fall time without overshoot, use edge_metrics.

Inputs: signal (required), step, t_end, format, +7 more. Returns: signal, quality, warnings, direction, +8 more

query_valueA
Read-onlyIdempotent

Look up the value of a signal at a specific time point (transient) or frequency (AC). Returns the nearest data point without interpolation.

To pick a step of a .step/.DC sweep by its axis VALUE (rather than a raw step index), pass step_axis + step_value (e.g. step_axis='temp', step_value='27'); at then selects the inner-axis point within that step (optional). AC samples also return magnitude_linear alongside magnitude_db/phase_deg.

To query a run of a completed sweep/MC job, pass job_id + run_index instead of raw_file — the run is analyzed like any standalone raw.

This is one signal at one point (signal=). For many signals, or a whole waveform over a window, use export_waveform (signals=).

If the run hit a run-level solve failure (singular matrix / non-convergence), that simulator line is relayed into warnings — the value is still returned, but the whole solve is suspect, so read it.

Inputs: signal (required), at, step, format, +5 more. Returns: axis, unit, value, signal, +12 more

read_circuitA
Read-onlyIdempotent

Read and parse a circuit file (.cir/.net or .asc). For netlists: returns content and component values. For schematics: returns layout and directives.

Inputs: path (required), format. Returns: file, type, wires, labels, +4 more

recentA
Read-onlyIdempotent

Call on session start to find circuits the user was last working with, including jobs that were still running when the server stopped. Needs no inputs.

Returns a list of recent circuits, each with its absolute path, whether the file still exists, last-touched timestamp, total persisted job count, status_counts (completed/failed/interrupted/etc.), and the IDs of any interrupted jobs.

'interrupted' means a simulation was in flight when the server stopped — recovery path is check_job(job_id) to see whether results are recoverable or the run needs to be re-kicked. Does NOT start or cancel anything; purely read-only.

Inputs: format. Returns: count, circuits

reset_schematicA
DestructiveIdempotent

Revert an .asc schematic to the state it had BEFORE the first edit this session — a recovery escape hatch for when a sequence of edits went wrong. The server snapshots each .asc file's bytes just before its first in-session mutation (add_component, set_component_value, move_component, connect, apply_schematic_ops, etc.); this restores that snapshot exactly and drops it (so a later edit establishes a fresh restore point). Because add_component is a trigger, the first add_component on a freshly created schematic snapshots the empty file — so reset can revert all the way back to the empty post-create state, dropping every component added this session. Returns reverted=false (not an error) when the file has no recorded in-session edits. Note: the snapshot lives only for the current server session — it does not persist across restarts, and it is not a substitute for version control.

Inputs: path (required), format. Returns: path, bytes, reverted

resonanceA
Read-onlyIdempotent

Detect magnitude peaks in an AC sweep and estimate Q factor + -3 dB bandwidth for each. Useful for RLC resonators, crystal oscillators, peaking amps, or any response with distinct resonant modes.

Q = f_peak / Δf(-3 dB from peak). Q is returned as null for peaks without two flanking -3 dB crossings inside the swept range — widen the sweep if you need Q for a boundary peak.

min_prominence_db=3 rejects the gentle hump of a filter's passband (which isn't a resonance). Tight resonances (Q > 30) need dense sampling near f_peak — log sweeps with <50 pts/decade will under-sample the peak and give inflated Q/bandwidth.

For overall filter characterization use bode_metrics(mode='filter'); for stability margins use stability_metrics.

Inputs: signal (required), step, format, job_id, +5 more. Returns: peaks, signal, warnings, num_peaks_detected

run_montecarloA

Execute a previously configured Monte Carlo analysis asynchronously and return a job_id immediately.

Inputs: config_id (required), max_parallel.

run_simulationA

Run a SPICE simulation on a netlist file. Sets the right batch flags, handles the ngspice headerless-raw dialect, routes the raw/log artifacts, and parses the results — so you never hand-parse a rawfile. Automatically runs synchronously for short simulations (<=30s timeout) or asynchronously for longer ones. Use wait=true to force synchronous execution. Returns raw/log file paths and simulation summary on completion, or a job ID for async tracking.

Inputs: netlist (required), wait, format, timeout. Returns: error, range, errors, job_id, +16 more

run_sweepA

Execute a previously configured parameter sweep asynchronously and return a job_id immediately.

Inputs: config_id (required), max_parallel.

server_statusA
Read-onlyIdempotent

Get comprehensive server status including detected simulators, configuration settings, security sandbox paths, and runtime state. Use this to check what capabilities are available before attempting operations.

Inputs: format. Returns: runtime, simulators, tool_count, diagnostics, +6 more

set_component_valueA
Idempotent

Set component value(s) in a circuit file (single or batch mode), or rewrite one component's node connectivity ('nodes', single mode, .cir/.net only). A no-op value write is reported as unchanged.

Inputs: path (required), nodes, value, values, +1 more.

signal_statsA
Read-onlyIdempotent

Scalar summary of one signal in a .raw result. Use this when you need a single number per metric (average, RMS, peak, etc.) — not a waveform or a trend.

Transient: time-weighted mean, RMS, std, abs-mean, and min/max/pk-pk using trapezoidal integration (RMS = sqrt(∫ y² dt / T)). This is correct on SPICE's adaptive timestep — simple np.mean(y) would overweight densely sampled regions. Optionally restrict to [t_start, t_end]; passing no window averages the whole waveform including any startup transient, which is usually wrong for RMS/mean.

DC: returns min/max/pk-pk and the simple/abs mean over the swept axis, plus sweep_start_used/sweep_end_used/sweep_span. RMS and std are deliberately omitted — they're meaningless on a non-time axis. Use t_start/t_end to restrict the sweep range.

AC: returns magnitude (dB) min/max/mean and phase (deg) min/max. t_start/t_end are rejected for AC — use query_value for a point at a specific frequency.

Noise: returns min/max/pk-pk of the noise spectral density over the frequency axis, plus freq_start_used/freq_end_used. Mean, RMS, std, and duration are omitted — a plain mean of spectral density is dominated by sample clustering and the sweep span, not the circuit; min/max is the useful worst-case reading. t_start/t_end are rejected — pass them via query_value at specific frequencies instead.

Related tools: for rise/fall times use edge_metrics; for overshoot/settling use pulse_response; for period/duty use periodic_metrics; to aggregate .MEAS values across a sweep use measurement_stats.

Inputs: signal (required), step, t_end, format, +4 more. Returns: max, min, rms, std, +20 more

simulation_summaryA
Read-onlyIdempotent

Get a comprehensive simulation summary including type, signal list, data size, .MEAS results, Fourier analysis, AC bandwidth metrics, and warnings.

Inputs: step, format, job_id, signal, +3 more. Returns: range, errors, fourier, signals, +9 more

stability_metricsA
Read-onlyIdempotent

Find EVERY unity-gain and -180° phase crossover in a loop-gain AC sweep, report phase margin at each unity-gain crossing and gain margin at each -180° crossing. Replaces the single-crossing approximation in simulation_summary, which returns wrong margins on conditionally-stable systems.

Run this on a LOOP-GAIN signal (typically a dedicated middlebrook probe or .AC of the open loop). Running on a closed-loop output gives meaningless margins — if the DC phase starts near ±180° (a closed-loop / inverting output rather than a loop probe, which starts near 0°), a warning says so in warnings.

Returns: dc_gain_db, high_freq_gain_db, stability classification (stable / unstable / conditional / unconditional / always_below_unity), all crossings, per-crossing margins, and the worst-case values.

Nuances:

  • Phase is UNWRAPPED first, so systems whose phase drops past -360° are handled correctly (otherwise the raw wrap hides the crossing).

  • If phase NEVER crosses -180°, gain margin is 'infinite' (returned as null with stability='unconditional'). That's stable, not an error.

  • If gain NEVER reaches unity, phase margin is undefined (returned as null with stability='always_below_unity').

  • Multiple crossovers trigger stability='conditional' and a warning — each one needs its own review.

For -3 dB filter cutoffs use bode_metrics(mode='filter'); for custom crossings use bode_metrics(mode='crossing').

Inputs: signal (required), step, format, job_id, +3 more. Returns: signal, warnings, stability, dc_gain_db, +7 more

symbol_infoA
Read-onlyIdempotent

Get symbol pin positions, bounding box, and description. Optionally compute absolute positions for a given placement and rotation.

Inputs: symbol (required), x, y, format, +1 more. Returns: name, pins, placement, bbox_width, +4 more

thdA
Read-onlyIdempotent

Total harmonic distortion (THD and THD+N) of a periodic transient signal via FFT — works on any .tran result without a .four directive in the deck, and on any simulator. Defaults to COHERENT sampling (record trimmed to whole fundamental cycles, rectangular window) so harmonics land exactly on bins and THD is exact; window='hann' is the approximate fallback. Surfaces every condition the number depends on: the fundamental (given vs auto-detected), window kind, cycles analyzed, FFT length, sample rate, and per-harmonic levels. For LTspice's own .four result instead, see simulation_summary's Fourier section.

Inputs: signal (required), step, t_end, format, +7 more. Returns: fs_hz, n_fft, signal, thd_db, +12 more

timing_betweenA
Read-onlyIdempotent

Use when you need propagation delay / skew between TWO signals — e.g. input-to-output delay, clock-to-Q, input-skew. Inputs one transient .raw containing both signals on a shared time axis.

Returns: signed delay = t_b - t_a where t_a and t_b are the FIRST threshold crossings of signal_a and signal_b in the window. Negative delay means signal_b leads signal_a.

Thresholds default to 50% of EACH signal's own min-max range in the window — intentional for asymmetric CMOS where V_in and V_out have different rails. Override per-signal via threshold_a / threshold_b if you need absolute thresholds (e.g. VIH/VIL at fixed voltages). Set direction_a / direction_b independently (e.g. rising input → falling output for an inverter).

Picks only the FIRST crossing of each signal in the window — if both signals have multiple edges, tighten t_start/t_end around the specific edge pair you want. Rejects AC analysis.

Inputs: signal_a (required), signal_b (required), step, t_end, +10 more. Returns: t_a, t_b, delay, signal_a, +8 more

trace_netA
Read-onlyIdempotent

Report everything electrically connected to a net: starting from a pin ('Ref.Pin'), a net label ('net:NAME'), or an (x,y) coordinate, return the net's labels and every component pin, FLAG, and wire vertex on it. Follows both wires (segment-aware — catches labels placed mid-wire) and same-name FLAGs (LTspice's name-based nets). Use it to answer 'what's on net X', to confirm a connect landed, or to spot an accidental short (a net carrying two different non-ground labels).

Inputs: path (required), x, y, pin, +1 more. Returns: pins, start, labels, is_shorted, +1 more

unload_libraryA
Idempotent

Unload a previously loaded library from the session.

Inputs: path (required).

validate_netlistA
Read-onlyIdempotent

Lint a netlist or schematic before simulation — the static circuit check gate. Catches: empty/whitespace-only netlist files, element arity (too few nodes, missing E/G/F/H/B value), dangling nodes in .cir/.net netlists (a node touching only one element terminal — warning, since deliberate fragments are legal), bias-topology degeneracies in .cir/.net netlists (a net with no DC path to ground — floating MOSFET gate, capacitive island, current-source-only node, or isolated domain — warning, since the operating point may still be defined by other means), duplicate/multiple analysis directives ('More than one analysis specified'), .MEAS whose analysis kind isn't present, known-bad .MEAS patterns (vdb()/phase()/group_delay()), and directives the LTspice runner is known to reject (set target_simulator='ngspice' to instead flag ngspice-only incompatibilities, e.g. a zero '.tran' step time). On .asc, also surfaces named-net shorts, floating pins, and dangling labels. Returns a structured issue list; an empty list means the file passes the static gate. Note: value tokens (e.g. a typo'd '1kk') and undefined model references are NOT checked — LTspice coerces or resolves those at run time.

Inputs: path (required), format, target_simulator. Returns: file, issues, issue_count

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 49 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes, with detailed cross-referencing that resolves potential confusion (e.g., get_waveform vs export_waveform vs plot_waveform). A few overlaps exist—such as run_sweep/run_montecarlo and the various AC analysis tools—but the descriptions explicitly delineate when each should be used.

    Naming Consistency4/5

    All tool names follow a snake_case convention with a mostly verb_noun pattern (run_simulation, list_components, set_component_value). A few names are nouns or adjectives (resonance, operating_point, recent, parameter), but the overall style is consistent and readable.

    Tool Count2/5

    49 tools is a very large surface for an MCP server, exceeding the 25+ threshold where coherence tends to degrade. While the domain is broad (simulation, analysis, schematic editing, libraries), the sheer number makes navigation and selection harder.

    Completeness5/5

    The tool set covers the full LTspice workflow: circuit creation/editing, netlist validation, simulation execution (single, sweep, Monte Carlo), job management, comprehensive signal analysis (time/frequency/AC/noise), and library management. There are no obvious dead ends; every core operation has a corresponding tool.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      AI-powered circuit design through simulation — an MCP server that gives language models direct access to SPICE circuit simulation via ngspice, enabling natural language circuit description and automated netlist generation, simulation, measurement, and spec verification.
      28
      107 PyPI
      51
      GPL 3.0
    • F
      license
      C
      quality
      C
      maintenance
      MCP server for automating LTspice on macOS, enabling simulation, schematic generation, data extraction, verification, and rendering via natural language or agents.
      71
      22
      -
    • A
      license
      A
      quality
      B
      maintenance
      An MCP server that connects LLM assistants to real circuit simulation: LTspice and ngspice, plus direct editing of LTspice .asc schematics. Simulation results come back as structured numbers so the assistant can design, verify, and iterate on circuits.
      48
      594 PyPI
      89
      GPL 3.0