kicad10-mcp
Connects AI assistants to KiCad 10 for electronics design work: inspecting and editing live PCBs via the KiCad IPC API (moving/flipping footprints, adding tracks, vias, zones and graphics under atomic undo commits), running headless ERC/DRC and generating manufacturing exports (Gerbers, Excellon drills, BOM, pick-and-place, STEP, ODB++, PDF) through kicad-cli, discovering and inspecting projects, design rules, net classes and variants, searching KiCad symbol and footprint libraries, and directly parsing/editing .kicad_sch schematic files to place symbols, wire pins and update fields.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
kicad10-mcp — KiCad 10 Model Context Protocol (MCP) Server
kicad10-mcp connects AI assistants (Antigravity, Claude Desktop, Cursor, and other MCP clients) to KiCad 10 so you can inspect and edit live PCBs, run headless ERC/DRC checks, generate manufacturing packages, search KiCad libraries, and edit schematics directly.
Quick Start
1. Prerequisites
Python 3.11+ and
uv(orpip)KiCad 10 (
kicad-cli 10.xinPATH, or pointed to viaKICAD_CLI)(Optional, for live PCB tools) KiCad 10 GUI running with the IPC API enabled
2. Install
cd /home/tims/kicad1-mcp
uv sync --extra devConfirm the server starts:
uv run kicad10-mcp --help3. Enable KiCad 10 IPC API (for live pcb_* tools)
Open KiCad 10.
Go to Preferences → Plugins and enable Enable KiCad API.
Open a
.kicad_pcbboard in the PCB Editor.
Headless tools (
run_drc,run_erc,export_*,sch_*,search_*,inspect_*) work without the KiCad GUI open.
4. Connect Your MCP Client
Antigravity / Cursor / Windsurf (mcp.json)
{
"mcpServers": {
"kicad10": {
"command": "uv",
"args": ["run", "--directory", "/home/tims/kicad1-mcp", "kicad10-mcp"],
"env": {
"KICAD_READ_ONLY": "0"
}
}
}
}Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"kicad10": {
"command": "/home/tims/kicad1-mcp/.venv/bin/kicad10-mcp",
"args": [],
"env": {
"KICAD_READ_ONLY": "0"
}
}
}
}Streamable HTTP Transport (for remote or HTTP-based clients)
uv run kicad10-mcp --transport streamable-http --host 127.0.0.1 --port 8000The MCP endpoint is served at http://127.0.0.1:8000/mcp.
5. Verify Your Setup
Ask your AI client:
"Check KiCad status."
This calls kicad_status and reports:
cli.availableandcli.version(e.g.10.0.8)ipc.connected,ipc.kicad_version, and anyopen_documentsread_onlymode statusDiscovered KiCad 10 symbol and footprint library directories
Related MCP server: KiCad MCP Server
How kicad10-mcp Works
The server bridges four KiCad 10 interfaces under one MCP server:
Capability | Tools | Backend | Requires KiCad GUI Open? |
Live PCB inspect & edit |
| Official KiCad 10 IPC API ( | Yes (with IPC API enabled) |
ERC, DRC, stats, 3D renders, fab exports, jobsets |
|
| No (headless) |
Direct schematic inspect & edit |
| Native S-expression parser/writer | No (close schematic in GUI before editing) |
Project & library search/inspect |
| Direct file & lib-table parsing | No |
Common Workflows & Example Prompts
1. Run a Design Review (ERC, DRC, Stats, Stackup)
You can invoke the built-in pcb_design_review MCP prompt or ask directly:
"Find all KiCad projects under
~/hardwareand inspect the rules and variants insensor_board.kicad_pro.""Run ERC on
sensor_board.kicad_schand DRC with schematic parity and zone refill onsensor_board.kicad_pcb, then group errors by type.""Show board dimensions, drill summary, and layer stackup for my open PCB."
"Render a 3D isometric PNG of the top and bottom of
sensor_board.kicad_pcb."
2. Inspect & Edit a Live PCB in KiCad 10
With a board open in the KiCad 10 PCB Editor:
"List all 0603 resistors on
F.Cuand show the pads and bounding box ofU1.""Highlight
C1,C2, andU1in the KiCad PCB Editor." (pcb_set_selection)"Move
R1by +2.5 mm in X, rotate it to 90°, and flipC4to the bottom layer.""Route a 0.25 mm
F.Cutrack on net+3V3from(10, 20)to(15, 20)to(15, 25)and drop a 0.6/0.3 mm through via at(15, 25).""Create a
GNDcopper pour onB.Cucovering(0, 0)to(50, 40)and refill zones.""Find all copper items connected to pad UUID
<uuid>." (pcb_get_connected_items)
Every live edit (pcb_move_footprint, pcb_flip_footprint, pcb_add_track, pcb_add_via, pcb_add_zone, pcb_add_graphic, pcb_delete_items, pcb_update_footprint_fields) is wrapped in an atomic KiCad undo/redo commit — press Ctrl+Z in KiCad to undo any tool action in one step.
3. Generate a Manufacturing Release (and KiCad 10 Variants)
Invoke the built-in manufacturing_release_checklist MCP prompt or ask:
"Check
sensor_board.kicad_profor KiCad 10 variants, run ERC + DRC with parity, and if clean, export Gerbers, Excellon drills (with map & report), BOM CSV (excluding DNP), pick-and-place CSV in mm, STEP 3D model, and schematic PDF into./fab_release.""Export an ODB++ zip package for the
high_tempvariant.""Run the
release.kicad_jobsetjobset onsensor_board.kicad_pro."
Exporting Multiple KiCad 10 Variants at Once
When passing a list of multiple variants (e.g. variants=["standard", "high_temp"]), KiCad 10 requires ${VARIANT} in output_path / output_dir so each variant writes to its own file or folder:
Example:
output_path="out/bom_${VARIANT}.csv"oroutput_dir="out/gerbers_${VARIANT}"
4. Search Libraries & Edit Schematics Directly
"Search KiCad symbol libraries for
STM32F4and inspect the pin table forMCU_ST_STM32F4:STM32F405RGTx.""Search footprints for
QFN-48and inspect its pad sizes and courtyard bounding box.""Place
Device:RasR12(10k, footprintResistor_SMD:R_0603_1608Metric) at(100, 80)inpower.kicad_sch, wire pin 1 to(110, 76.19), and add a global label+3V3.""Update
R12inpower.kicad_schto add custom fieldMPN=RC0603FR-0710KLand markR13as DNP."
Safety, Backups, and Read-Only Mode
Read-only mode: Launch with
--read-onlyor setKICAD_READ_ONLY=1to permit all inspection, search, ERC/DRC, and export tools while blocking all PCB edits (pcb_move_*,pcb_add_*,pcb_delete_*,pcb_save_board,pcb_refill_zones), schematic edits (sch_place_symbol,sch_update_*,sch_add_*,sch_delete_items), andrun_drc(save_board=True).MCP Tool Annotations: Every tool carries MCP
ToolAnnotations(readOnlyHint,destructiveHint,idempotentHint) so compatible MCP clients can auto-approve read tools and prompt before writes or deletions.Schematic backups: Direct
.kicad_schwrite tools write atomically (temp file +os.replace) and save a.kicad_sch.bakbackup by default (create_backup=True). Close the schematic in KiCad's Schematic Editor before runningsch_*write tools so KiCad does not overwrite external edits when saving.Live PCB undo/redo: All IPC board edits run inside
begin_commit/push_commit, rolling back viadrop_commitif any error occurs.
CLI Options & Environment Variables
CLI Flags (kicad10-mcp)
Flag | Default | Description |
|
| MCP transport protocol. |
|
| Bind host for |
|
| Bind port for |
| Off | Disable all design write/edit tools (overrides |
| KiCad default | Override KiCad 10 IPC API socket URI. |
| Auto-detected | Explicit path to |
Environment Variables
Variable | Default | Purpose |
| Found via | Path to |
| Platform default (e.g. | KiCad 10 IPC API socket path. |
| Unset | Optional KiCad IPC API authentication token. |
|
| Timeout in ms for live IPC requests. |
|
| Subprocess timeout in seconds for |
|
| Set to |
| OS standard KiCad paths | Override/prepend KiCad 10 symbol library directory. |
| OS standard KiCad paths | Override/prepend KiCad 10 footprint library directory. |
Troubleshooting
Could not connect to KiCad 10 IPC APIVerify KiCad 10 is running and Preferences → Plugins → Enable KiCad API is checked.
Ensure a
.kicad_pcbboard is open in the PCB Editor.On Linux/macOS/Windows with custom sockets, pass
--socketor setKICAD_API_SOCKET.
kicad-cli executable not foundAdd KiCad 10's
bindirectory toPATH, or pass--kicad-cli /full/path/to/kicad-cli(or setKICAD_CLI).
Schematic edits don't show up in KiCad
KiCad's Schematic Editor does not auto-reload
.kicad_schfiles modified on disk. Close and reopen the schematic (or close it before runningsch_*write tools).
When specifying multiple variants, output_path must include '${VARIANT}'Either pass a single variant string (e.g.
variants="high_temp") or include${VARIANT}in the output path (e.g.out/board_${VARIANT}.pdf).
PermissionError: Cannot perform '...' while KICAD_READ_ONLY is enabledRemove
--read-onlyand unsetKICAD_READ_ONLY(or set it to0), then restart the MCP server.
Tool, Resource, and Prompt Reference
Project & Environment (4 tools)
Tool | Description |
| CLI version, live IPC connectivity/version, open documents, read-only status, library paths. |
| Recursively discover |
| Parse |
| List KiCad 10 design variants and active variant from |
Live PCB Inspection — IPC (12 tools)
Tool | Description |
| Layers, copper count, title block, grid/drill origins, item counts, net classes. |
| Copper, dielectric ( |
| Filter nets by regex pattern or netclass. |
| Filter footprints by reference regex, value, footprint ID, layer, or DNP flag. |
| Full fields, pads, nets, drills, 3D models, and bounding box. |
| Straight and arc tracks filtered by net/layer with total routed length. |
| Vias filtered by net or type ( |
| Copper pours and rule/keepout areas filtered by net/layer/type. |
| Board shapes ( |
| KiCad 10.0.1+ copper connectivity query from item KIID UUIDs. |
| Items currently selected in the KiCad PCB Editor GUI. |
| KiCad 10 layout groups and member item IDs. |
Live PCB Editing — IPC (11 tools)
Tool | Description |
| Move (absolute or relative), rotate, or lock/unlock a footprint. |
| Flip a footprint |
| Update reference, value, datasheet, description, DNP, and BOM/POS exclusion flags. |
| Route single or multi-segment polyline tracks on any copper layer. |
| Place through, blind/buried, or micro vias with optional start/end layers. |
| Create a copper pour or rule area polygon, with optional zone refill. |
| Refill all copper zones on the open board. |
| Add a |
| Delete board items by KIID UUID. |
| Select/highlight footprints or items in KiCad GUI, or clear selection. |
| Save or |
Headless Verification & Visual Exports — kicad-cli (6 tools)
Tool | Description |
| JSON DRC with schematic parity, zone refill, severity filters, and grouped summary. |
| JSON ERC grouped by schematic sheet. |
| Board statistics report ( |
| 3D PNG/JPEG board render ( |
| Schematic PDF (single file) or SVG (directory of sheets) with |
| PCB layer PDF or SVG export with |
Manufacturing Outputs & Jobsets — kicad-cli (8 tools)
Tool | Description |
| Gerber fabrication files ( |
| Excellon or Gerber drill files, plus optional drill map and drill hit report. |
| BOM CSV export ( |
| Pick-and-place CSV/ASCII/Gerber ( |
| Schematic netlist ( |
| STEP or GLB 3D CAD export ( |
| ODB++ or IPC-2581 manufacturing package export with |
| Execute a KiCad 10 |
Schematic S-Expression Workflows (9 tools)
Tool | Description |
| Parse title block, paper, symbols, power symbols, labels, wires, junctions, no-connects, sub-sheets. |
| Full properties, pin UUIDs, instances, and cached |
| Edit/add standard & custom fields (MPN, etc.) and DNP/BOM flags; syncs KiCad 10 |
| Add one or more connected wire segments. |
| Add |
| Add wire |
| Add schematic text annotations. |
| Embed a symbol from |
| Delete schematic items (symbols, wires, labels, junctions, etc.) by UUID. |
Symbol & Footprint Libraries (5 tools)
Tool | Description |
| Parse global & project |
| Fast search across |
| Parse symbol properties, unit count, |
| Search |
| Parse footprint attributes, pads, drills, courtyard bounding box, and 3D models. |
MCP Resources & Prompts
Resources:
kicad://status— Live JSON status snapshot (kicad-cli, IPC, open docs, read-only, library dirs).kicad://board/summary— Live JSON summary of the currently open PCB.
Prompts:
pcb_design_review— Guided electrical, DRC/ERC, stackup, and DFM review workflow.manufacturing_release_checklist— Gated pre-release verification and fab package generation workflow.
Development
uv run pytest -v
uv run ruff check src testsTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Design, route, check, review and export manufacturable PCBs from plain language; KiCad import.
EasyGerber brings AI printed circuit board (PCB) design, layout, and routing to MCP-compatible assistants. Describe a circuit or start from firmware pin assignments, search published electronic components, and build schematics using catalog parts with their footprints and available 3D models. Create and revise boards, generate layouts with automatic component placement and routing, inspect previews, and check saved layouts for blocking design issues. Export manufacturing ZIPs containing Gerber and drill files, a bill of materials, and component placement data, or download an editable EasyGerber (.egb) file. Start without signing up. Your agent uses one private board reference to create and continue a board, including catalog access, edits, layout, checks, previews, and exports, without a separate guest setup step or token to manage. To keep the board in your account or work with permitted saved personal or organization boards, complete EasyGerber sign-in and OAuth consent, then resume the same task. Account permissions, plan limits, and generation billing apply; support depends on your MCP client and installed integration.
Headless CAD engine & MCP server for 2D/3D drafting, solids, DXF/SVG export, and automation.
Design and revise PCBs from plain language, track jobs, and retrieve design artifacts.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives AI agents end-to-end control of KiCad 9+ for rule checks, manufacturing exports, production-readiness certification, and live PCB editor control.MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server for controlling KiCad EDA software, enabling schematics, PCB design, manufacturing outputs, design checks, and library management through any MCP-compatible AI assistant.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for KiCad 10 that enables AI assistants to inspect and control schematics and PCB layouts in real-time using the official kipy Python bindings.104 PyPI1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to drive KiCAD PCB design automation through MCP, covering schematic authoring, board and routing operations, footprint/symbol libraries, vendor PCB import, validation and DRC, and manufacturing export. It exposes 236 registered tools with keyword discovery, dynamic project-state resources, and optional Streamable HTTP transport with fail-closed Bearer authentication.MIT