schematic-mcp-bridge
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., "@schematic-mcp-bridge Design an RC filter schematic and export to KiCad"
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.
schematic-mcp
AI-agent-friendly system for building electrical schematics: an MCP server
exposes a high-level, semantic API (components, pins, nets) so an LLM never
has to touch coordinates, wires, or .kicad_sch internals directly.
AI Agent → MCP / high-level API → semantic schematic model → validation/ERC
→ automatic layout → SVG and/or KiCad schematicSee schematic_mcp_requirements.md for the full spec and SKILL.md
for agent rules.
Status
Stage 1 done: minimal semantic model (
Component,Pin,Net,Schematic) with JSON save/load, inschematic/model.py.Stage 2 done: KiCad symbol library import backed by SKiDL (
schematic/library.py:search_components/get_component_pins/instantiate) and structural validation + basic ERC (schematic/validation.py:validate/run_erc). Tested against real official KiCad symbol libraries vendored intests/fixtures/kicad-symbols/(Device,MCU_Espressif,Sensor_Current).Stage 3 done: naive auto layout (
schematic/layout.py, one row of boxes, no overlap), an SVG renderer (schematic/renderer.py) that draws component boxes with pin numbers/names and net-name labels next to each pin — no drawn wires yet, connectivity is shown via labels (see requirements section 11); and a CLI (cli/main.py:search,validate,render).Stage 4 done: MCP server (
mcp_server/server.py) exposing the full section 8 tool list — library lookup, schematic lifecycle, connections, layout hints, validation/ERC, SVG output — over stdio. The stateful logic lives inmcp_server/tools.py::SchematicSession(one active schematic per session), framework-free so it's tested directly without an MCP client.set_placement_hint/set_pin_side/group_componentsstore intent on the model already.Stage 5 done:
auto_layoutnow honorsleft_of/right_ofplacement hints (topological reorder of the row; other relations are still ignored, a real 2D layout is stage 7 territory if needed). Newschematic/routing.pydraws an actual orthogonal wire between two components when they land as immediate neighbors and it's a 2-endpoint net with pins facing each other — otherwise still a net label, since routing around an intervening box is real routing-algorithm work (deferred).set_pin_side/group_componentsare still stored-but-unconsumed.Stage 6 done:
.kicad_schexport (schematic/exporters/kicad.py), reusing SKiDL's own schematic generator rather than hand-rolling a KiCad file writer — it already draws real classical symbols with correct geometry (section 4/19's stated preference). Only works for components sourced from a real library symbol viaadd_component; raisesKicadExportErroron a hand-authored/invented component or one that doesn't resolve, rather than silently producing a broken file.examples/esp32_ina226.jsoncan't export (its ESP32/INA226 pins are hand-authored placeholders, not real symbols) — seeexamples/build_rc_filter.pyfor a small schematic built entirely from real library parts that does. Needed vendoringpower.kicad_symtoo (SKiDL's schematic generator loads it unconditionally).Also fixed a real bug found while building that RC filter example:
ComponentLibrary.instantiate()defaultedreferenceto the bare library ref_prefix ('R' for every resistor) instead ofcomponent_id— so adding a second resistor without an explicitreference=produced a falseduplicate_referenceERC error on a perfectly valid schematic.
MVP is now complete end-to-end (search → add → connect → validate/ERC → SVG / KiCad export) via both the CLI and the MCP server. What's left is optional polish: stage 7 (ELK-based 2D layout + general wire routing) is explicitly "only if this isn't good enough" territory in the spec, not committed to.
Related MCP server: KiCAD MCP Server
Development
python3 -m pip install --user --break-system-packages -e ".[dev]"
PYTHONPATH=. python3 -m pytest
# CLI
PYTHONPATH=. python3 -m cli.main search resistor
PYTHONPATH=. python3 -m cli.main validate examples/esp32_ina226.json
PYTHONPATH=. python3 -m cli.main render examples/esp32_ina226.json -o out.svg
PYTHONPATH=. python3 -m cli.main export-kicad examples/rc_filter.json -o out.kicad_sch
# MCP server (stdio)
PYTHONPATH=. python3 -m mcp_server.serverAvailable Tools
22 toolsadd_componentD
Inputs: library_id (required), component_id (required), label, value, +1 more.
auto_layoutD
Inputs: no named parameters.
connectD
Inputs: pin_a (required), pin_b (required).
connect_netD
Inputs: pins (required), net_name (required).
create_schematicD
Inputs: name (required).
disconnectD
Inputs: pin (required).
export_kicadD
Inputs: path (required).
get_componentD
Inputs: library_id (required).
get_component_pinsD
Inputs: library_id (required). Returns: result
get_previewD
Inputs: no named parameters.
group_componentsD
Inputs: group_name (required), component_ids (required).
load_schematicD
Inputs: path (required).
remove_componentD
Inputs: component_id (required).
rename_netD
Inputs: new_name (required), old_name (required).
render_svgD
Inputs: no named parameters.
run_ercD
Inputs: no named parameters.
save_schematicD
Inputs: path (required).
search_componentsD
Inputs: query (required). Returns: result
set_component_valueD
Inputs: value (required), component_id (required).
set_pin_sideD
Inputs: pin (required), side (required), component_id (required).
set_placement_hintD
Inputs: target (required), relation (required), component_id (required).
validateD
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Several tool pairs overlap in purpose: connect and connect_net both appear to handle wiring, validate and run_erc both check the design, and render_svg and get_preview both produce visual output. Without descriptions, an agent would struggle to choose between these near-duplicates.
Most tools follow a clear snake_case verb_noun pattern such as search_components, create_schematic, set_component_value, and export_kicad. A few bare verbs like connect, disconnect, and validate, plus auto_layout, deviate slightly but the overall pattern remains predictable.
At 22 tools, the server sits in the heavy range. The count is plausible for a schematic editor workflow, but redundant tools like connect/connect_net and validate/run_erc make the set feel larger than it needs to be.
The tool surface covers the core schematic lifecycle: component search/placement, schematic create/load/save, wiring, validation, layout, rendering, and KiCad export. Minor gaps such as explicit component move or net deletion are workable through existing tools like set_placement_hint and disconnect.
Maintenance
Related MCP Connectors
Design, route, check, review and export manufacturable PCBs from plain language; KiCad import.
Turn datasheets into source-backed JSON contracts, pinout matrices, and KiCad CAD for AI agents.
Design circuits, simulate and verify embedded firmware, and lay out PCBs with AI agents.
AI electronics blueprint generator — BOM, wiring, firmware, renders for Arduino/ESP32/RPi.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI tools to create, edit, and inspect KiCAD schematic files, including components, wires, labels, and sheets.MIT
- AlicenseBqualityCmaintenanceEnables AI assistants to interact with KiCAD for PCB design automation, including schematic editing, component placement, routing, DRC/ERC, and export.10038 npm2MIT
- -licenseNot gradedqualityNot gradedmaintenanceEnables AI agents to perform electronics design automation through the ZapTrace EDA kernel, including parsing designs, running ERC, placing components, routing nets, and generating manufacturing outputs (Gerber, BOM, etc.).-
- AlicenseBqualityCmaintenanceEnables creating and editing KiCad projects through natural language, including scaffolding projects, placing schematic symbols, wires and labels, and adding PCB footprints, tracks and nets. It also runs ERC/DRC checks and exports to PDF, SVG, netlist, BOM, STEP, DXF, gerbers and drill files via kicad-cli.141MIT