kicad-mcp
llms.txt1 starsChanged 4 months agoMITView on GitHub
KiCad MCP is a FastMCP 3.2 server for AI-driven PCB/schematic automation on KiCad EDA. 39 MCP tools across 6 categories. Version 0.3.0 adds hybrid KiCad install (stable 10.x exports + 11 nightly headless IPC CRUD). Env: KICAD_CLI_PATH, KICAD_IPC_CLI_PATH, KICAD_MCP_CRUD_BACKEND, KICAD_MCP_IPC_ENABLED. Probe: python -m kicad_mcp.scripts.probe_ipc_headless Doc: docs/NIGHTLY_HEADLESS.md kicad_cli_path, kicad_ipc_cli_path, version, kicad_ipc_version, ipc_api_server, ipc_python_installed, crud_backend, bridge_mode (alias), work_dir, uptime_s
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- llms-full.txtllms.txt
The file
We split this llms.txt into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 78
Use board copies for CRUD experiments (11 nightly may upgrade file format).
≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# KiCad MCP — LLM Context
KiCad MCP is a FastMCP 3.2 server for AI-driven PCB/schematic automation on KiCad EDA.
**39 MCP tools** across 6 categories. **Version 0.3.0** adds hybrid KiCad install (stable 10.x exports + 11 nightly headless IPC CRUD).
## Hybrid architecture (v0.3.0)
```
MCP/REST → crud_router OR run_kicad_cli
│
Export lane (KICAD_CLI_PATH, 10.x stable)
Gerber STEP DRC ERC BOM library schematic CLI
│
CRUD lane (crud_backend)
├─ ipc: kicad-cli api-server + kicad-python (11 nightly)
├─ tcp: kc_bridge.py :11018 (KiCad GUI, legacy)
└─ none: export-only
```
Env: `KICAD_CLI_PATH`, `KICAD_IPC_CLI_PATH`, `KICAD_MCP_CRUD_BACKEND`, `KICAD_MCP_IPC_ENABLED`.
Probe: `python -m kicad_mcp.scripts.probe_ipc_headless`
Doc: `docs/NIGHTLY_HEADLESS.md`
## Key Files
| Path | Purpose |
|------|---------|
| `src/kicad_mcp/server.py` | FastMCP + FastAPI gateway, hybrid lifespan |
| `src/kicad_mcp/kicad_install.py` | Stable vs IPC CLI discovery |
| `src/kicad_mcp/ipc_backend.py` | Headless IPC session (kipy) |
| `src/kicad_mcp/crud_router.py` | CRUD backend dispatch |
| `src/kicad_mcp/kc_bridge.py` | Legacy TCP JSON-RPC bridge (pcbnew GUI) |
| `src/kicad_mcp/tools/pcb.py` | 17 PCB tools |
| `src/kicad_mcp/tools/schematic.py` | 8 schematic tools |
| `src/kicad_mcp/scripts/probe_ipc_headless.py` | Hybrid install diagnostic |
| `docs/NIGHTLY_HEADLESS.md` | Hybrid install guide |
| `webapp/` | React 19 dashboard |
| `justfile` | bootstrap, serve, test, e2e |
## Ports
| Port | Service |
|------|---------|
| 11016 | Backend (FastAPI + FastMCP) |
| 11017 | Frontend (Vite dev) |
| 11018 | Legacy KiCad TCP bridge |
## Quick Start
```powershell
uv sync --extra ipc
just bootstrap
just serve
# http://localhost:11017
```
## kicad_status fields (v0.3.0)
`kicad_cli_path`, `kicad_ipc_cli_path`, `version`, `kicad_ipc_version`, `ipc_api_server`, `ipc_python_installed`, `crud_backend`, `bridge_mode` (alias), `work_dir`, `uptime_s`
## Tool Categories
- PCB (17): load, info, list, DRC, exports, place/track/via/save/outline (CRUD needs ipc or tcp)
- Schematic (8): load, info, ERC, exports
- BOM (1), Library (6), Marketplace (5), System (2)
## Install extras
```powershell
uv sync --extra ipc # kicad-python for headless CRUD
uv sync --extra dev # pytest, ruff
```
## Agent cautions
- Use board **copies** for CRUD experiments (11 nightly may upgrade file format).
- Manufacturing exports always use stable CLI, not IPC.
- `pcb_place_component` IPC not wired in v0.3.0 — use TCP bridge if needed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

