CL

cognitohazard/ltspice-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

67 stars 7 forks 품질 88 트렌드 35GPL-3.0

MCP 서버는 LTSpice와 NGspice를 통해 디자인, 시뮬레이션 및 분석 SPICE 회로를 제공

개요

핵심 기능은 쓸모 있 그러나 거친 가장자리 및 끊는 변화를 예상합니다. 실제 회로 시뮬레이션에 LLM 조수 (Claude 및 기타 MCP 클라이언트)를 연결하는 MCP 서버 : LTspice 및 ngspice, LTspice .asc schematics의 직접 편집. 시뮬레이션 결과가 구조화 된 숫자로 돌아 왔습니다. 컷오프 주파수, 과잉, 단계 마진, 상승 시간 및 per-device 작은 신호 작동 지점 매개 변수 (gm, gds, vth, ...) 다시 읽기 - 그래서 조수는 설계, 확인 및 LTspice에서 열 같은 파일에서 회로에 적용 할 수 있으므로 원시 파일을 손으로 감싸지 않고. spicelib에 내장. 호스트의 LTspice 또는 ngspice가 필요합니다 (Windows, Linux 및 macOS에서 자동 감지; WSL에서 LTspice 경로 명시적으로 - WSL 노트). Netlist 편집 (.cir/.net)은 모든 시뮬레이터 없이 작동합니다. .asc schematic 편집은 LTspice의 .asy 기호 라이브러리를 필요로 합니다. uv는 요구됩니다; 서버 자체는 첫번째 사용에 PyPI에서 fetched.

개요(AI 번역)

** 방수 ** **0.6.0는 끊는 방출이었습니다: ** 오래된 가동 공구는 합병되었습니다 아래에 설명된 집합으로, 엔진은 Python으로 importable되었다 API. Pin ltspice-mcp==0.5.* 오래된 도구가 필요한 경우.

ltspice-mcp는 AI 조수가 LTspice와 ngspice 시뮬레이션을 실행하고 LTspice .asc schematics를 편집합니다. 원시 출력 파일 대신, 조수는 이름에 의해 측정을 다시 가져옵니다: 컷오프 빈도, 과잉, 단계 마진, 상승 시간, 및 gm], gds 및 vth. 그것은 당신이 LTspice에서 열 같은 파일에 작동합니다. spicelib에 내장.

빠른 시작

Claude 코드:

**Claude 데스크톱 : ** packaging/mcpb/에서 확장을 구축 그리고 Claude Desktop에 .mcpb파일을 드래그합니다. 그것은 선택적인 sandbox를 제안합니다 폴더; 왼쪽 공백, 샌드 박스가 없습니다.

** 다른 MCP 클라이언트 ** (Cursor, Windsurf, Gemini CLI, Continue, Cline, Zed, …) : 서버를 설치하고 클라이언트의 MCP 구성에 추가하십시오.

Python 3.11 또는 newer가 필요합니다. Claude Code에서 JSON을 실행할 수 있습니다. claude mcp add -s project spice -- ltspice-mcp].

** 당신은 또한 같은 기계에 시뮬레이터 **가 필요합니다 : LTspice 또는 ngspice, 발견 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": [] } } }