XL

xuio/ltspice-mcp

Developer tools

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

22 stars 7 forks 品質 60 トレンド 0

LTSpice MCP サーバー

概要

エージェントとMCPクライアントがシミュレーション、回路生成、データ抽出、検証、レンダリングのためにmacOS上でLTSPを制御することを可能にするモデルコンテキストプロトコル(MCP)サーバー。 このプロジェクトは、信頼性の高い実行、再現性のあるアーティファクト、およびLTスパイスの動作を密接に合わせた出力のために設計されています。 によって刺激される: - gtnoble/ngスパイスmcp - luc-me/ltスパイスMCP - MCP から LTSP シミュレーションを実行します。( simulateNetlistFile, runSimulation, queue ツール) - スキーマの生成と精製(createSchematic*、lint/clean/debug tools)。 - スキーマ、プロット、および記号のためのレンダリングの実質LTスパイスのイメージ。 - RAWベクターと分析メトリクス(帯域幅、マージン、上昇/降下、セトリング)のクエリ。 - .meas とアサーション主導の検証ワークフローを自動化します。 - 段取りとモンテカルロの研究を構造化した結果を実行します。 - LTスパイスがインストールしたmacOS(/Applications/LTスパイス.appはデフォルトで期待)。 - Python 3.11 +。 - uv(推奨)またはピップ。 デフォルトエンドポイント: - [http://127.0.0.

概要(AI 翻訳)

エージェントとMCPクライアントがシミュレーション、回路生成、データ抽出、検証、レンダリングのためにmacOS上でLTSPを制御することを可能にするモデルコンテキストプロトコル(MCP)サーバー。

このプロジェクトは、信頼性の高い実行、再現性のあるアーティファクト、およびLTスパイスの動作を密接に合わせた出力のために設計されています。

インスピレーション:

  • gtnoble/ngスパイスmcp
  • luc-me/ltスパイスMCP

できること

  • MCP([simulateNetlistFile]]、[runSimulation]]]]、キューツールからLTスパイスシミュレーションを実行します。
  • スキーマの生成と精製(createSchematic*])、lint/clean/debugツール)。
  • スキーマ、プロット、および記号のためのレンダリングの実質LTスパイスのイメージ。
  • RAWベクターと分析メトリクス(帯域幅、マージン、上昇/降下、セトリング)のクエリ。
  • [.measを自動化し、アサーション主導の検証ワークフロー。
  • 段取りとモンテカルロの研究を構造化した結果を実行します。

クイックスタート(5分)

##1 前提条件

  • デフォルトで期待されるLTSPがインストールされているmacOS (/Applications/LTspice.app)。
  • Python 3.11+.
  • [uv(推奨)または[pip])。

2) インストール

ピップを好む場合:

##3) MCPデーモンを開始

デフォルトエンドポイント:

  • [http://127.0.0.1:8765/mcp

4) 一度にmacOS権限を付与

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

README

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

LTspice MCP for macOS

Model Context Protocol (MCP) server that lets agents and MCP clients control LTspice on macOS for simulation, schematic generation, data extraction, verification, and rendering.

This project is designed for practical automation: reliable runs, reproducible artifacts, and outputs that match LTspice behavior closely.

Inspired by:

What You Can Do

  • Run LTspice simulations from MCP (simulateNetlistFile, runSimulation, queue tools).
  • Generate and refine schematics (createSchematic*, lint/clean/debug tools).
  • Render real LTspice images for schematics, plots, and symbols.
  • Query RAW vectors and analysis metrics (bandwidth, margins, rise/fall, settling).
  • Automate .meas and assertion-driven verification workflows.
  • Run stepped and Monte Carlo studies with structured results.

Quick Start (5 Minutes)

1) Prerequisites

  • macOS with LTspice installed (/Applications/LTspice.app expected by default).
  • Python 3.11+.
  • uv (recommended) or pip.

2) Install

uv sync

If you prefer pip:

python3 -m venv .venv
source .venv/bin/activate
pip install -e .

3) Start the MCP daemon

./scripts/ltspice_mcp_daemon.sh start
./scripts/ltspice_mcp_daemon.sh status

Default endpoint:

  • http://127.0.0.1:8765/mcp

4) Grant macOS permissions once

Required for screenshot/render and some UI automation features.

./scripts/ltspice_mcp_daemon.sh trigger-initial-permissions
./scripts/ltspice_mcp_daemon.sh check-accessibility

5) Run a smoke test

uv run python smoke_test_mcp.py \
  --transport streamable-http \
  --server-url http://127.0.0.1:8765/mcp

Client Configuration

URL-capable MCP clients

[mcp_servers.ltspice]
url = "http://127.0.0.1:8765/mcp"
enabled = true

Claude Desktop via mcp-remote

{
  "mcpServers": {
    "ltspice-mcp": {
      "command": "/opt/homebrew/bin/npx",
      "args": ["-y", "mcp-remote", "http://127.0.0.1:8765/mcp"]
    }
  }
}

stdio (subprocess) mode

{
  "mcpServers": {
    "ltspice-mcp": {
      "command": "ltspice-mcp",
      "args": ["--transport", "stdio"],
      "cwd": "/absolute/path/to/ltspice-mcp"
    }
  }
}

Core Capabilities by Category

Setup and diagnostics

  • getLtspiceStatus, getLtspiceUiStatus
  • daemonDoctor, tailDaemonLog, getRecentErrors, getCaptureHealth

Simulation and queueing

  • simulateNetlist, simulateNetlistFile, runSimulation
  • queueSimulationJob, listJobs, jobStatus, cancelJob, listJobHistory

Schematic workflows

  • createSchematic, createSchematicFromNetlist, createSchematicFromTemplate
  • validateSchematic, lintSchematic, autoDebugSchematic
  • inspectSchematicVisualQuality, autoCleanSchematicLayout

Data, measurements, and verification

GitHub で README 全文を見る

インストール

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

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

設定

{ "mcpServers": { "ltspice-mcp": { "command": "/opt/homebrew/bin/npx", "args": ["-y", "mcp-remote", "http://127.0.0.1:8765/mcp"] } } }