CL

cognitohazard/ltspice-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

67 stars 7 forks 品質 88 トレンド 35GPL-3.0

LLM を LTSpice および NGスパイス によって SPICE 回路の設計、シミュレート、および分析する機能を与える MCP サーバー

概要

コア機能は使いやすさですが、荒いエッジや変化を遮断します。 LLM アシスタント (クロード、その他の MCP クライアント) を実際の回路シミュレーションに接続する MCP サーバー: LTスパイスと ngスパイス、LTスパイス .asc スキーマの直接編集。 シミュレーション結果は、構造化された数値として戻って来ます — 切断周波数, オーバーシュート, フェーズマージン, 上昇時間, およびデバイスごとの小規模な信号の動作ポイントパラメータ (gm, gds, vth, ...) 読み戻す — アシスタントは、設計することができます, 検証, そして、あなたが同じファイルで開いている回路上で反復, 決して手分けなし. スパイスリブの上に建てられました。 また、ホスト上でLTスパイスやngスパイス(Windows、Linux、macOS上で自動検出)が必要です。WSLではLTスパイスパスを明示的に設定します。WSLノート) Netlist編集(.cir/.net)は、まったくシミュレータなしで動作します。 .ascの回路図編集は、LTSの.asyシンボルライブラリを必要とします。 uv が必要です。サーバー自体は PyPI から最初の使用時に取得されます.

概要(AI 翻訳)

WIP 0.6.0 はリリースを中断しました: 古い操作ツールが統合されました 以下に示すセットに、エンジンをPythonとしてインポートできるようになりました。 旧ツールが必要な場合は、Pin [ltspice-mcp==0.5.*] を実行します。

ltspir-mcp は、AI アシスタントが LTスパイスと ngスパイスのシミュレーションを実行し、 LTスパイス [.asc のスキーマを編集できるようにします。 生の出力ファイルではなく、アシスタントは名前で測定を取り戻します:カットオフ周波数、オーバーシュート、フェーズマージン、上昇時間、および/デバイスごとの動作ポイント値(gm]])、[gds]および[vth]])。 LTスパイスで開くのと同じファイルで動作します。 スパイスリブの上に建てられました。

クイックスタート

ロードコード:

Claude Desktop: [[T5] の拡張機能をビルドする] .mcpbファイルをClaude Desktopにドラッグします。 それは任意サンドボックスを提供します フォルダ; 左空白、サンドボックスはありません。

他の MCP クライアント (Cursor, Windsurf, Gemini CLI, Continue, Cline, Zed,…): サーバをインストールし、クライアントの MCP 設定に追加します。

Python 3.11 または newer が必要です。 Claudeコードでは、JSONをJSONでスキップできます。 [claude mcp add -s project spice -- ltspice-mcp].

あなたはまた、同じマシンでシミュレータが必要です: LTスパイスまたはngスパイス, 発見 自動的にWindows、LinuxおよびmacOSで.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

ltspice-mcp

WIP 0.6.0 was a breaking release: the old per-operation tools were merged into the set described below, and the engine became importable as a Python API. Pin ltspice-mcp==0.5.* if you need the old tools.

ltspice-mcp lets AI assistants run LTspice and ngspice simulations and edit LTspice .asc schematics. Instead of raw output files, the assistant gets measurements back by name: cutoff frequency, overshoot, phase margin, rise time, and per-device operating-point values such as gm, gds and vth. It works on the same files you open in LTspice. Built on spicelib.

Quick start

Claude Code:

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

Claude Desktop: build the extension in packaging/mcpb/ and drag the .mcpb file onto Claude Desktop. It offers an optional sandbox folder; left blank, there is no sandbox.

Any other MCP client (Cursor, Windsurf, Gemini CLI, Continue, Cline, Zed, …): install the server and add it to the client’s MCP config.

uv tool install ltspice-mcp        # or: pipx install ltspice-mcp
{
  "mcpServers": {
    "spice": { "command": "ltspice-mcp", "args": [] }
  }
}

This needs Python 3.11 or newer. In Claude Code you can skip the JSON with claude mcp add -s project spice -- ltspice-mcp.

You also need a simulator on the same machine: LTspice or ngspice, found automatically on Windows, Linux and macOS. On WSL, set the LTspice path yourself (WSL). Editing .asc schematics needs LTspice, because it uses LTspice’s symbol libraries. Reading and checking netlists works without a simulator. The plugin and the extension need uv.

Make sure the assistant uses it. An assistant may run the simulator from the shell out of habit. Keep the server’s name spice (the plugin already does; avoid ltspice, which LTspice’s own MCP server uses), and add this to your project’s CLAUDE.md or your client’s equivalent:

Always use the spice MCP server for any SPICE/circuit simulation, sweep, or analysis. Do not invoke ngspice or LTspice from the shell, and do not hand-parse .raw files or wrdata output.

When the shell is fine covers the exceptions, if you prefer a softer rule.

What you can ask

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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