LTspice MCP Server
Allows for the design and simulation of electronic circuits by generating netlists, searching component libraries, and performing automated simulations with iterative error correction for common SPICE issues.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@LTspice MCP Server Design a low-pass RC filter with a 1kHz cutoff using a 10nF capacitor."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LTspice MCP Server
Un servidor MCP (Model Context Protocol) que permite a los LLMs diseñar y simular circuitos electrónicos usando LTspice.
Este proyecto conecta asistentes de IA (como Google Gemini) con LTspice XVII, permitiendo diseño de circuitos en lenguaje natural y simulación automática. Simplemente describí un circuito y la IA generará el netlist, lo simulará, detectará errores y los corregirá iterativamente hasta lograr una simulación exitosa.
🌟 Características
🔌 Integración directa con LTspice - Generación automática de netlists y simulación
🔄 Auto-corrección - Detecta y corrige errores comunes de SPICE (singular matrix, convergencia, etc.)
📚 Búsqueda en biblioteca - Valida componentes antes de simular
📁 Organización automática - Cada circuito se guarda en su propia carpeta con logs
🤖 Diseño asistido por IA - Compatible con cualquier LLM que soporte MCP
📋 Requisitos Previos
Necesitás tener instalado:
Python 3.11+ - Descargar
uv - Guía de instalación
LTspice XVII - Descargar de Analog Devices
Gemini CLI - Guía de instalación
Sistema: Windows 10/11
🚀 Instalación
1. Clonar el Repositorio
git clone https://github.com/luc-me/ltspiceMCP.git
cd ltspiceMCP2. Instalar Dependencias
uv sync3. Configurar Biblioteca de LTspice
Después de instalar LTspice, extraer la biblioteca de componentes:
Ir a
C:\Program Files\ADI\LTspice\(o donde instalaste LTspice)Buscar el archivo
lib.zipExtraerlo en
C:\Users\<TuUsuario>\Documents\LTspice\lib\
4. Configurar Gemini CLI
Editar el archivo de configuración de Gemini CLI:
Ubicación: C:\Users\<TuUsuario>\.gemini\settings.json
Agregar en la sección mcpServers:
{
"mcpServers": {
"ltspice-circuit": {
"command": "uv",
"args": ["run", "server.py"],
"cwd": "C:\\ruta\\completa\\a\\ltspiceMCP",
"env": {
"PYTHONIOENCODING": "utf-8"
}
}
}
}Importante: Reemplazar la ruta con tu ubicación real del proyecto.
5. Verificar
Ejecutar el script de verificación:
uv run install.py💡 Ejemplos de Uso
Una vez configurado, podés usar lenguaje natural en Gemini CLI:
Diseñame un filtro pasa-bajos RC con frecuencia de corte de 1kHz.
Usá un capacitor de 10nF y calculá el resistor.Creá un amplificador emisor común con un transistor BC547.
Tensión de alimentación: 12V, resistor de carga: 2.2kΩ.La IA automáticamente:
Buscará componentes disponibles
Generará el netlist
Simulará el circuito
Intentará corregir errores si los hay
Guardará todo en
circuitos/<nombre_proyecto>/
🔧 Configuración
Ruta Personalizada de LTspice
Si LTspice está en otra ubicación, editar en server.py:
LTSPICE_EXE = r"C:\Tu\Ruta\LTspice.exe"Ruta Personalizada de Biblioteca
LTSPICE_LIB_PATH = os.path.expanduser(r"~\Tu\Ruta\lib")🐛 Solución de Problemas
"LTspice.exe no encontrado"
Verificar que LTspice esté instalado
Revisar la ruta en
server.pyEjecutar
install.pypara auto-detectar la ruta
"Componente no encontrado"
Asegurar que
lib.zipesté extraído enDocuments\LTspice\lib\La IA sugerirá automáticamente alternativas genéricas
"Singular Matrix" o "Time step too small"
Son errores de SPICE que la IA corrige automáticamente (hasta 3 intentos)
Revisar el archivo
.logen la carpeta del circuito para más detalles
El servidor MCP no se conecta
Verificar que Gemini CLI esté instalado correctamente
Revisar que
settings.jsontenga la ruta correctaAsegurar que
uvesté en el PATH del sistemaReiniciar Gemini CLI después de cambios
Available Tools
2 toolsbuscar_componente_en_libreriaC
Busca componentes en la biblioteca de LTspice.
Inputs: nombre (required). Returns: result
gestionar_simulacion_ltspiceC
Guarda y simula un circuito en su propia carpeta.
Inputs: netlist_content (required), nombre_proyecto (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one searches for components in the LTspice library, while the other manages simulation by saving and simulating circuits in a folder. There is no overlap in functionality, making them easy to differentiate.
Both tools use Spanish snake_case naming, which is consistent in style. However, the verb choices differ ('buscar' vs. 'gestionar'), and the naming pattern is not perfectly uniform (e.g., one includes 'en_libreria' while the other specifies 'ltspice'), leading to some inconsistency in structure.
With only two tools, the server feels under-scoped for an LTspice domain, which typically involves tasks like circuit creation, component placement, parameter setting, and analysis. This limited set may not cover essential operations, making it too few for the apparent scope.
The tool set is severely incomplete for LTspice functionality. It lacks core operations such as creating or editing circuits, setting simulation parameters, running analyses (e.g., transient, AC), and viewing results. The existing tools cover only library search and basic simulation management, leaving significant gaps that will hinder agent workflows.
Maintenance
Related MCP Connectors
Design circuits, simulate and verify embedded firmware, and lay out PCBs with AI agents.
Design, route, check, review and export manufacturable PCBs from plain language; KiCad import.
Autonomous 0-DRC PCB Routing, RF/DFM Pre-Flight & KiCad MCP Server (calligraphyeda.com).
AI electronics blueprint generator — BOM, wiring, firmware, renders for Arduino/ESP32/RPi.