
KiCad Copilot
io.github.biosshot由 GitHub 账号 biosshot 发布v0.1.0更新于 Oct 24, 2026
File-oriented MCP server for KiCad schematics, PCB placement, routing, and pours.
概览
让 AI 助手创建和修改 KiCad 原理图、完成 PCB 布局与布线,并对本地工程文件运行 KiCad CLI 检查。
- 可以做什么
- KiCad Copilot 为智能体提供面向文件的 KiCad 工程接口:在原理图中添加、删除、替换并连接真实元件,在保留电气连接的前提下重组电路块,并创建工程、层次化图纸和 PCB 文件。它可按 MPN 或元件 UUID 搜索元件,保存与恢复文件检查点,将原理图变更导入电路板,依据 JavaScript DSL 生成 PCB 布局并提供 PNG/SVG 预览,在本地完成布线并添加铺铜。它还会发现 kicad-cli,用于 ERC、DRC、导出、渲染和制造文件,并提供 analyze_schematic 与 analyze_pcb 输出精简的设计分析结果。
- 适用场景
- 适合让助手用自然语言起草或修改 KiCad 原理图与电路板、反复调整布局和布线,或对现有工程执行 ERC、DRC 与导出步骤。它面向基于文件的层次化 KiCad 工作流,而不是编辑器内插件方式。
- 运行要求
- 通过 npx 以 stdio 在本地运行(npm 包 kicad-copilot-mcp)。需要 Node.js 20 或更高版本、KiCad 9 或 10,以及用于托管安装 EasyEDA2KiCad 和 kicad-happy 分析的 Python 3。kicad-cli 从 PATH 或标准安装位置查找,可用 KICAD_CLI_PATH 覆盖;可选 KICAD_HAPPY_DIR 指向可信的本地副本。未声明账号或 API 密钥。
安装
在 SourceWeft 中
- 打开 控制台中的 KiCad Copilot,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
KiCad Copilot
AI-powered MCP server for KiCad. Create and modify schematics from natural language, search real components, work with hierarchical projects, generate PCB placement, route boards locally, and create simple copper pours directly through an AI agent.
KiCad Copilot is the KiCad counterpart to EasyEDA Copilot. It provides the same core circuit-generation and PCB automation capabilities—and goes further with file-oriented hierarchical projects, recoverable checkpoints, native kicad-cli integration, and fully local PCB routing.
Integrated analysis: KiCad Copilot downloads a pinned, verified kicad-happy v2.2.0 release on first use of
analyze_schematicoranalyze_pcb. The MCP tools return compact, token-efficient actionable findings and focused design data.
[Latest release] [npm package] [License] [Discord]
What it does
KiCad Copilot gives AI agents a high-level, file-oriented interface to KiCad:
- Generate and modify schematics: add, remove, replace, and connect real components without editing every KiCad object individually.
- Rebuild schematic blocks: reorganize selected components while preserving their electrical connections.
- Search components and reusable blocks: resolve components by MPN or part UUID and insert proven functional circuits.
- Work with KiCad projects: inspect project trees and create projects, standalone schematics, hierarchical sheets, and PCB files.
- Preserve recoverable checkpoints: save, list, and restore exact versions of individual KiCad files.
- Synchronize schematic and PCB: explicitly import schematic changes into the associated board.
- Generate PCB placement: describe board constraints in a compact JavaScript DSL, review PNG/SVG previews, and apply the approved result.
- Route locally: use
eda-copilot-routerwith its managed KRT backend without sending routing work to an external service. - Create copper pours: add simple full-board zones with optional stitching vias.
- Use native KiCad tooling: discover
kicad-clifor ERC, DRC, previews, exports, manufacturing files, and other native operations.
KiCad Copilot works directly with saved .kicad_pro, .kicad_sch, and .kicad_pcb files. It does not require KiCad IPC or a plugin installed inside KiCad.
Examples
These projects were generated and iterated through KiCad Copilot. The complete KiCad source files are available in the examples directory.
ATmega328P development board
A hierarchical ATmega328P design with the MCU core, clock, reset, decoupling, USB-UART power, Nano-compatible headers, and debug connections split across functional sheets.
Download the ATmega328P project
Geiger high-voltage supply
A larger multi-sheet design covering power input, 3.3 V regulation, the high-voltage generator, flyback stage, feedback, detector, controller, and user interface.
Download the Geiger high-voltage project
RP2350 development board
A hierarchical RP2350 design with power, clock, flash, USB/debug, GPIO headers, and an AI-generated PCB placement. The example includes the placement DSL and an editable KiCad board.
[3D render of the RP2350 PCB placement generated with KiCad Copilot]
KiCad 3D render of the generated PCB placement
Installation
Add the MCP server to your AI agent.
Codex:
Claude Code:
Generic MCP configuration:
Restart the MCP client after adding the server. KiCad Copilot includes local workflow documentation for the agent; tool descriptions expose its installed path automatically.
Requirements
- Node.js 20 or newer
- KiCad 9 or 10
- Python 3 for managed EasyEDA2KiCad installation and kicad-happy analysis
KiCad Copilot searches for kicad-cli in PATH and standard KiCad installation locations, preferring KiCad 10 when multiple supported versions are installed. Set KICAD_CLI_PATH when the executable is stored elsewhere.
The first real-component conversion uses an existing EasyEDA2KiCad installation or installs it automatically into a managed local virtual environment.
The first design-analysis call downloads the pinned kicad-happy release into the shared
EDA Copilot asset cache after verifying its archive size and SHA-256 hash. Set
KICAD_HAPPY_DIR to use a trusted local checkout instead.
Schematic workflow
Ask the agent to inspect a KiCad project or give it the path to a target .kicad_sch file. A typical request can be as simple as:
The agent can inspect the project tree, read the target sheet as compact component/net JSON, find exact components, assemble the requested change, and validate the saved result through KiCad.
Hierarchical projects remain file-oriented: each physical schematic sheet is modified through its own .kicad_sch path, while project-wide context is used where the operation requires the complete signal map.
File synchronization
KiCad Copilot changes files on disk. KiCad does not reliably merge those changes with newer unsaved edits in an already open editor.
Before a write:
- Save intentional changes in KiCad.
- Avoid keeping the only copy of newer work in the editor buffer.
After a write:
- Reload, revert, or reopen the document in KiCad.
- Do not overwrite the updated file with an older editor buffer.
PCB workflow
PCB placement and routing use an explicit review flow:
- Import schematic changes into the target
.kicad_pcbfile. - Describe the outline, holes, constraints, regions, and important components in the placement DSL.
- Generate a mechanical preview without modifying the PCB.
- Review the returned PNG or SVG preview.
- Generate and approve the complete placement.
- Apply the stored placement to the PCB.
- Route the remaining connections locally.
- Inspect the result and run final KiCad DRC.
Every placement response containing a PCB is checkpointed and applied atomically, including preview and issue-bearing results. The agent inspects the returned preview or PCB analysis and can roll back through checkpoints when needed; no separate assembly tool call is required.
Placement and router DSL execution remain separate operations. This keeps schematic-to-PCB synchronization explicit and makes it possible to clear or rebuild routing without deleting placed components.
KiCad CLI
get_project_info reports the discovered kicad-cli path and version. Agents should use the native CLI whenever KiCad already provides the operation, including:
- schematic ERC and PCB DRC;
- schematic and PCB PDF/SVG exports;
- 3D PCB renders;
- Gerber and drill generation;
- BOM, position, STEP, STL, GLB, and VRML exports;
- project jobsets and format upgrades.
See KiCad CLI workflow for ready-to-use commands.
Design analysis
analyze_schematic runs the offline schematic checks and can return focused top-level
overview, hierarchy, block, connectivity, power, bus, BOM, assembly, and verification data.
analyze_pcb automatically enriches PCB analysis from the associated schematic, runs
cross-domain checks, and optionally adds thermal, EMC, or trace-proximity analysis. Individual
boolean flags control each optional report field; compact findings are enabled by default.
Long-running PCB layout, PCB routing, and lifecycle audits return a prefixed
operation_id such as pcb-dsl:1a2b3c4d. Continue any of them with
wait_operation; stop obsolete work with cancel_operation.
The tools omit internal rule identifiers, runtime metrics, and coordinate-level copper from
the LLM response.
See design analysis for the exact compact result contract and workflow.
Compatibility
Other major versions are rejected because their file formats and CLI behavior are not covered by the current implementation.
Documentation
- AI agent instructions
- Circuit creation and modification
- Projects and hierarchical sheets
- Checkpoints
- PCB workflow
- PCB placement rules
- Placement DSL
- KiCad CLI
- Design analysis
- Troubleshooting
Development
Run the MCP Inspector with:
The repository also contains focused schematic, PCB, and routing test scripts for development against disposable files.
License
MIT
来源:README.md,提交 505081d
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分