Skip to content

Claude Code Setup

mcltspice communicates over standard MCP stdio transport. The examples below show the three main ways to configure it.

The quickest option. This pulls the latest published version from PyPI and runs it with uvx:

Terminal window
claude mcp add mcltspice -- uvx mcltspice

If you need to pin a specific version:

Terminal window
claude mcp add mcltspice -- uvx mcltspice==2026.2.10

Any MCP client that supports stdio transport can use mcltspice. The generic configuration is:

FieldValue
Transportstdio
Commanduvx
Arguments["mcltspice"]
EnvironmentLTSPICE_DIR (optional)

The server reads from stdin and writes to stdout using JSON-RPC over the MCP protocol. No HTTP server, no ports to configure.

If your LTspice installation is not at the default path, set LTSPICE_DIR in whichever way your client supports:

  • Claude Code CLI: Pass it through the env field in .mcp.json (shown above).
  • Shell: export LTSPICE_DIR=/path/to/ltspice before launching the client.
  • Docker: Add -e LTSPICE_DIR=/path/to/ltspice to your docker run command.

After adding the server, ask your MCP client to call the check_installation tool:

check_installation()

If the server is connected and LTspice is found, you will get a status report confirming the Wine version, LTspice binary path, and library availability. If anything is missing, see Prerequisites.