qucs-mcp
Enables MCP-compatible agents to generate Qucs circuit schematics, run simulations, and parse results programmatically.
README
qucs-mcp
MCP server for Qucs/uSimmics circuit simulation. Enables MCP-compatible agents to generate circuit schematics, run simulations, and parse results programmatically.
What it does
This MCP exposes tools that lets agents:
- Build a Qucs schematic from component descriptions or KiCad files
- Run the Qucs backend simulator (
simulator.exe) headlessly - Parse the binary
.datresult files into readable data - Manage Qucs projects on disk
Prerequisites
- uSimmics installed (download the zip, extract anywhere)
- Python 3.11+ (managed by uv)
- uv:
winget install astral-sh.uvorpip install uv
Setup
# Clone the repo
git clone https://github.com/leonardoAB1/qucs-mcp.git
cd qucs-mcp
# Install dependencies
uv sync
# Set the path to your uSimmics installation
$env:QUCS_HOME = "C:\Program Files\uSimmics"
# Verify the server starts
uv run qucs-mcp
Claude integration
Add to %APPDATA%\Claude\claude_desktop_config.json or .claude/settings.json in your project:
{
"mcpServers": {
"qucs-mcp": {
"command": "uv",
"args": ["--directory", "C:\\path\\to\\qucs-mcp", "run", "qucs-mcp"],
"env": {
"QUCS_HOME": "C:\\Program Files\\uSimmics"
}
}
}
}
Environment variables
| Variable | Description | Default |
|---|---|---|
QUCS_HOME |
Root of the uSimmics installation | Auto-discovered from common paths |
QUCS_PROJECTS |
Directory for Qucs projects | %HOMEPATH%\.qucs |
QUCS_SIM_TIMEOUT |
Simulation timeout in seconds | 60 |
Available tools (Phase 1)
| Tool | Description |
|---|---|
create_schematic |
Generate a .sch file and netlist from component definitions |
run_simulation |
Run simulator.exe on a netlist, return the .dat results path |
read_simulation_results |
Parse a .dat file into structured numeric data |
create_project |
Create a Qucs project directory under ~/.qucs |
list_project_files |
List all files in a project |
list_components |
Browse available component types from Qucs libraries |
Example: voltage divider via MCP
Ask an agent (with this MCP enabled):
Create a voltage divider with R1=10k and R2=10k, supply 5V, sweep the supply from 0 to 10V in 11 steps, run the DC simulation, and tell me the midpoint voltage at each step.
The agent will call create_schematic then run_simulation then read_simulation_results
and report the values.
Development
uv sync --extra dev
uv run pytest # unit tests
uv run pytest -k integration # integration tests (requires QUCS_HOME)
uv run ruff check src/
uv run mypy src/
uv run mcp dev src/qucs_mcp/server.py # open MCP Inspector in browser
Roadmap
- Phase 2: KiCad schematic import (
parse_kicad_schematic,kicad_to_qucs_schematic) - Phase 3: Circuit image analysis (
extract_circuit_from_imageusing Claude vision) - Phase 4: AC, transient, S-parameter simulation support; result plotting
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.