
seeed-studio/kicad-mcp-server 是从 https://github.com/seeed-studio/kicad-mcp-server. 导入的 MCP 服务器候选
概览
seeed-studio/kicad-mcp-server 是从 https://github.com/seeed-studio/kicad-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
一款适用于KiCad 9.0+的模型上下文协议(MCP)服务器,允许AI助手分析原理图、检查PCB、追踪连接、验证设计并生成嵌入式代码。
特色
- 示意分析 - 组件、网络、符号、层级图表
- PCB分析 - 通过PCB新API进行封装、轨道、布线质量、信号/电源完整性
- 网表追踪 - 100%准确的引脚电平连接跟踪
- 设计验证 - 通过 kicad-cli 实现 ERC/DRC(无头,CI 友好)
- 引脚分析 - 引脚功能检测、冲突分析、引脚多工配置
- 代码生成 - 设备树(.dts)和硬件测试代码生成
- 项目管理 - 从模板创建KiCad项目
- 零件注册库 - 在开放、无需登录的注册表上搜索21,000+个已验证的零件(默认使用PartReel,
PARTS_REGISTRY_URL更改),并将足迹/符号/3D下载到项目中;下载内容有主机允许列表、扩展检查和大小限制
要求
- KiCad 8.0+(推荐9.0或10.0)
- PATH(KiCad 包含)中的
kicad-cli
安装
推荐:安装到KiCad Python(完整PCB分析)
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
KiCad MCP Server
A Model Context Protocol (MCP) server for KiCad 9.0+ that lets AI assistants analyze schematics, inspect PCBs, trace connections, validate designs, and generate embedded code.
Features
- Schematic Analysis - Components, nets, symbols, hierarchical sheets
- PCB Analysis - Footprints, tracks, routing quality, signal/power integrity via pcbnew API
- Netlist Tracing - 100% accurate pin-level connection tracking
- Design Validation - ERC/DRC via kicad-cli (headless, CI friendly)
- Pin Analysis - Pin function detection, conflict analysis, pinmux config
- Code Generation - Device tree (.dts) and hardware test code generation
- Project Management - Create KiCad projects from templates
- Parts Registry - Search 21,000+ verified parts on an open, no-login registry (PartReel by default,
PARTS_REGISTRY_URLto change) and download footprints/symbols/3D into the project; downloads are host-allowlisted, extension-checked and size-capped
Requirements
- KiCad 8.0+ (9.0 or 10.0 recommended)
kicad-cliin PATH (included with KiCad)
Installation
Recommended: Install into KiCad Python (Full PCB Analysis)
KiCad ships with its own Python that includes the pcbnew module. Installing into this Python gives you full PCB analysis capabilities (precise track lengths, via statistics, signal integrity, power integrity).
Step 1: Find your KiCad Python path:
| Platform | Path |
|---|---|
| Windows | C:\Program Files\KiCad\\bin\python.exe |
| macOS | /Applications/KiCad/KiCad.app/Contents/Frameworks/python3 |
| Linux | /usr/bin/python3 (if kicad python bindings installed) |
Step 2: Install the package into KiCad Python:
# Windows example (KiCad 10.0)
"C:\Program Files\KiCad\10.0\bin\python.exe" -m pip install fastmcp
"C:\Program Files\KiCad\10.0\bin\python.exe" -m pip install -e .
# macOS example
/Applications/KiCad/KiCad.app/Contents/Frameworks/python3 -m pip install fastmcp
/Applications/KiCad/KiCad.app/Contents/Frameworks/python3 -m pip install -e .
Step 3: Configure MCP to use KiCad Python (see Configuration section below).
Fallback: Install into System Python (Limited PCB Analysis)
If you skip KiCad Python setup, the server still works but falls back to text-based PCB parsing. You get basic data (track counts, net names, widths) but lose precise lengths, design rules, and signal integrity analysis.
pip install -e .
Configuration
Claude Desktop
Edit your config file:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
With KiCad Python (recommended):
{
"mcpServers": {
"kicad": {
"type": "stdio",
"command": "C:\\Program Files\\KiCad\\10.0\\bin\\python.exe",
"args": ["-m", "kicad_mcp_server"],
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"kicad": {
"type": "stdio",
"command": "C:\\Program Files\\KiCad\\10.0\\bin\\python.exe",
"args": ["-m", "kicad_mcp_server"],
"cwd": "C:\\Users\\YourName\\Desktop\\kicad-mcp-server"
}
}
}