KiCad MCP Server
Enables LLMs to inspect, edit, analyze, and render PCB layouts in real-time using the KiCad IPC API, providing tools for board configuration, footprints, tracks, zones, nets, text, shapes, dimensions, exports, screenshots, and CLI automation.
README
KiCad MCP Server 🔌📐
An implementation of the Model Context Protocol (MCP) server for KiCad 9.0+, enabling Large Language Models (LLMs) like Claude to inspect, edit, analyze, and render PCB layouts in real-time.
It leverages the official kicad-python API to communicate with running KiCad instances over local Unix domain sockets or Windows named pipes.
🚀 Key Features
This server exposes 14 specialized modules providing comprehensive control over the board layout:
| Module | Description | Key Tools |
|---|---|---|
| 🎛️ Board | Inspect/update PCB configurations, units, and canvas settings | get_board_info, get_board_stackup, set_active_layer, undo_transaction |
| 🧩 Footprints | Manage component properties, placements, and pads | get_footprints, move_footprint, set_footprint_property, delete_footprints |
| ⚡ Tracks & Vias | List, route, resize, and remove traces and vias | get_tracks, create_track, get_vias, create_via, delete_tracks_in_rect |
| 🗺️ Zones | Control copper pours, fill/unfill, and rule boundaries | get_zones, create_zone, refill_zones |
| 🌐 Nets | Import netlists, manage classes, and trace connectivity | get_nets, get_net_classes, import_netlist |
| 🔤 Text | Add and style free-standing board text labels and textboxes | get_text, create_text, create_textbox, delete_text |
| 🎨 Shapes | Draw graphic segments, rects, circles, and polygons on user layers | get_shapes, create_shape |
| 📏 Dimensions | Place precise dimension and measurement markings | get_dimensions, create_dimension |
| 👥 Groups | Read structural component groupings (KiCad 10+) | get_groups |
| 🎯 Selection | Read active selection, select footprints, and invoke actions | get_selection, select_footprints, run_action |
| 👁️ Appearance | Adjust layer visibility, contrast modes, ratsnest lines, and flip view | get_editor_appearance, set_board_flip, set_inactive_layer_display |
| 📦 Exports | Export manufacturing files (Gerbers, drills, position, ODB++, PDF, STEP) | export_gerbers, export_drill, export_position, export_3d, export_pdf |
| 📸 Screenshots | Render visual PNG screenshots of the board or specific selection | get_board_screenshot, get_selection_screenshot |
| 💻 CLI Wrapper | Headless CLI automation for schematics, ERC, DRC, and more | run_kicad_cli, run_erc, run_drc, export_schematic_pdf, export_schematic_netlist |
📋 Prerequisites
- KiCad 9.0 or higher must be installed and running.
- Enable the IPC API inside KiCad:
- Go to Preferences ➔ Preferences...
- Navigate to Plugins
- Check the Enable KiCad IPC API box.
- Python 3.10+ (tested on Python 3.10 through 3.14).
⚙️ Installation & Setup
We recommend using uv for fast and isolated environment setup.
1. Clone the Repository
git clone https://github.com/brovk2008/Kicad-MCP-server.git
cd Kicad-MCP-server
2. Set Up the Virtual Environment
# Using uv (recommended)
uv venv
uv pip install -e .
# Or using standard pip
python -m venv .venv
source .venv/bin/activate # Or `.venv\Scripts\activate` on Windows
pip install -e .
Note: The project automatically applies a dynamic Protobuf descriptor pool patch to ensure compatibility with kicad-python 0.7.1 on Python 3.14.
🛠️ MCP Configuration
To use this server with Claude Desktop, add the configuration snippet below to your Claude configuration file:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS/Linux:
~/Library/Application Support/Claude/claude_desktop_config.json
Configuration Snippet
{
"mcpServers": {
"kicad-mcp": {
"command": "uv",
"args": [
"run",
"--package",
"kicad-mcp",
"kicad-mcp"
],
"cwd": "C:/Users/techp/Downloads/more projects/Kicad mcp",
"env": {
"KICAD_API_SOCKET": "ipc:///tmp/kicad/api.sock"
}
}
}
}
(Adjust the cwd directory to point to your local installation path. For Windows, the socket path defaults to ipc://%TEMP%\\kicad\\api.sock if not explicitly set).
🧪 Running Tests
A test suite is included to verify unit conversions, coordinate mappings, and error wrappers:
# Activate your virtual environment and run:
pytest tests/unit/
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。