PCB Weaver
This server provides KiCad-focused PCB engineering tools through durable jobs, from project import and constrained layout through routing, repair, verification, release packaging, and review.
Manage persistent engineering jobs: submit, list, inspect, and cancel queued work; check local KiCad/Python/Java/router status.
Import PCB projects, list/inspect immutable revisions, and read components, nets, tracks, vias, layers, outline, restrictions, and constraints.
Set validated design constraints and generate/apply deterministic feasible layout candidates.
Autoroute unrouted boards and run scoped repair, automatic repair, reference ECO repair, clearance repair, or bounded completion pipelines.
Diagnose DRC repair findings, run native ERC/DRC/connectivity/geometric verification, and analyze ECO changes between revisions.
Build hash-manifested manufacturing ZIPs only after reverification and verify release archives without extraction.
Inspect the hash-chained project operation history and export self-contained HTML review reports with geometry and evidence.
Note: actions are bounded and evidence-based; they do not authorize manufacturing signoff or guarantee arbitrary-board auto-completion.
Provides tools for constraint-driven PCB layout, autorouting orchestration, ECO revision analysis, and manufacturing evidence management for KiCad projects, including importing .kicad_pcb and project files, applying constraints, running native ERC/DRC checks, exporting Gerbers/drills/BOMs, and packaging verified manufacturing outputs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PCB Weaver auto-repair the unrouted nets on my KiCad board and verify with DRC"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PCB Weaver
面向 PCB 工程的本机 MCP 与工作台:以 KiCad 为主链路,另提供独立的 Altium 静态检查内测服务。
项目处于开发者内测阶段。KiCad 的样例验收不等于任意 PCB 都能自动布通;Altium 服务目前不能自动布线或回写 PCB。 软件检查也不能替代工程师审查、打样与制造签核。
能力概览
入口 | 已实现 | 尚未覆盖 |
KiCad 主 MCP | 工程导入、约束布局、布线编排、原生复验、ECO、受门禁保护的制造包 | 任意复杂板的全自动完成;硬件可靠性和量产签核 |
Altium 内测 MCP | 允许目录内的静态工程检查、持久任务、断线续查 | 自动布线、PCB 回写、完整 DRC、制造放行 |
Related MCP server: kicad-mcp-pro
为什么做
让 AI 参与 PCB 设计,需要让它读取真实工程、调用本机工具,并把修改结果交回设计软件检查。PCB Weaver 将这些操作组织成有版本、有任务记录、有原生证据的工程流程。
输入是已有原理图、网络和封装的 KiCad 工程,以及结构化约束。项目可以用于梳理工程信息、比较受约束的布局候选、提交布线与有限修复任务、检查修改结果和追踪版本变化。
系统架构
图 1|系统分层与工程域边界。 AI 客户端通过 MCP 调用工具;工作台提供本机 HTTP 入口。持久任务由工作台线程或独立 Worker 执行,KiCad 工程服务管理约束、版本和发布门禁。Altium 使用自己的 MCP、任务库与 Worker,默认仅运行静态检查。点击图片可查看矢量原图。
KiCad 主链路如何工作
导入工程:复制工程文件与约束,记录文件哈希,建立版本快照。
计算布局:根据固定器件、区域、邻近和间距等约束生成候选,应用可行候选后创建子版本。
调用布线工具:KiCad/pcbnew 导出 DSN,Freerouting 生成 SES,再回导为待验证版本。
原生复验:运行对应版本的 ERC/DRC、网表一致性与几何等检查,保存具体失败原因和证据。
显式发布:请求制造包时重新检查,再导出真实产物、记录清单与归档哈希。
布局候选可行、布线回导成功、作业完成和制造门禁通过是不同结论。完整的技术架构包含五张图,进一步说明模块分工、有限修复、版本证据、执行模型和 Altium 边界。
快速开始
KiCad 主链路(Windows PowerShell):
./Setup.ps1
./Start-Platform.ps1需先准备 Python 3.11+。工作台默认在 http://127.0.0.1:8765;端口占用时运行 ./Start-Platform.ps1 -Port 8766。Setup.ps1 安装项目 Python 依赖并生成本机 .mcp.json;原生路由仍需另行安装 KiCad、Java 和 Freerouting,并核对 toolchain.unified.json 的 WSL 与工具路径配置。
将 .mcp.json 中完整的 pcb-weaver 条目按客户端要求导入,启用并重载。工作台默认承载队列执行;也可以运行 ./Start-Worker.ps1 单独执行任务。仅连接 MCP 不会启动队列 Worker。工作台 URL 不是 MCP stdio 地址。
完整步骤与故障排查见部署与 MCP 接入。可用 ./Run-Demo.ps1 运行小板回归,-Route 才会尝试完整工具链。
Altium 静态检查内测(单独配置):
./Setup-Altium-Service.ps1 -ProjectRoot 'D:\PCB-Projects'
./Start-Altium-Service.ps1把生成的 altium-local-developer-beta 条目添加到支持 stdio 的 MCP 客户端。先调用 altium_service_status,再提交 altium_submit_inspection;任务结果用 altium_get_job 查询。完整安装及限制见内测配置。
文档导航
想了解 | 文档 |
从安装到 MCP 调用与后台执行 | |
模块、任务、版本和工程门禁 | |
Altium 工具与故障恢复 | |
本机机器接口与企业接入边界 | |
KiCad 实测范围与历史记录 | |
完整文档目录与图源 |
公开仓库不包含本机工程、配置和大体积原生验收存档;克隆后必须在自己的工具链上重新验证。主项目使用 Apache-2.0,示例与第三方材料按各自许可使用。
Available Tools
25 toolsanalyze_pcb_ecoCRead-only
Compare connectivity, placement and project-file changes; identify changed nets for review.
Inputs: after (required), before (required), project (required).
apply_pcb_layoutC
Apply one recorded feasible placement plan into a new board revision and audit the result.
Inputs: plan_id (required), project (required), revision (required), candidate_id (required).
autoroute_pcb_revisionB
Export DSN, run local Freerouting and import SES through KiCad. Unrouted supported boards only.
Inputs: project (required), revision (required), passes.
build_pcb_manufacturing_releaseB
Reverify, export actual manufacturing files and create a hash-manifest ZIP only on success.
Inputs: project (required), revision (required).
cancel_engineering_jobA
Request cancellation at the next stage boundary; does not kill an active native EDA operation.
Inputs: job_id (required).
diagnose_pcb_repairBRead-only
Read recorded verified DRC findings and scoped repair proposals. Does not run native tools.
Inputs: project (required), revision (required).
environment_statusBRead-only
Discover actual local KiCad, native Python bridge and Java/router capabilities.
Inputs: no named parameters.
export_pcb_review_reportB
Generate a self-contained HTML review with actual board geometry and verification evidence.
Inputs: project (required), revision (required).
get_engineering_jobBRead-only
Read actual engineering stages, outcomes and evidence from a durable job.
Inputs: job_id (required).
import_pcb_projectB
Snapshot a KiCad board and project sidecars. Use parent_revision for an external ECO revision.
Inputs: project (required), board_path (required), constraints, parent_revision.
inspect_pcb_inventoryBRead-only
Read revision-bound component, pin, network and copper data. Page until total is exhausted; missing metadata and unverified connectivity stay explicit.
Inputs: project (required), revision (required), limit, offset, +2 more.
inspect_pcb_revisionBRead-only
Read the revision's actual components, nets, outline, restrictions and constraints.
Inputs: project (required), revision (required).
list_engineering_jobsARead-only
List up to 100 lightweight job summaries. Use get_engineering_job for full steps and native evidence.
Inputs: project. Returns: result
list_pcb_revisionsBRead-only
List known immutable revisions in creation order.
Inputs: project (required). Returns: result
pcb_project_historyBRead-only
Read and validate the project's local hash-chained operation ledger.
Inputs: project (required).
propose_pcb_layoutsC
Run deterministic numerical placement optimization; compare measured feasible candidates.
Inputs: project (required), revision (required), count.
set_design_constraintsB
Create a child revision containing validated design intent and compiled KiCad minima.
Inputs: project (required), revision (required), constraints (required).
submit_engineering_jobC
Queue a persistent job for the workbench or standalone worker. This MCP session never owns its execution.
Inputs: request (required).
submit_pcb_auto_repairA
Queue automatic target discovery, bounded proposals and native checks. No coordinates required. Default additive-only; optional neckdown/fanout require explicit options. Never manufactures. Read job detail for the retained revision and retry from it.
Inputs: project (required), revision (required), options.
submit_pcb_clearance_repairC
Queue bounded F.Cu joint movement in an explicit ROI. Keeps widths/vias/pads; fresh native gates reject regressions. Never releases.
Inputs: nets (required), region (required), project (required), revision (required).
submit_pcb_completionA
Queue bounded layout candidates, whole-board routing, native checks and automatic repair. Unrouted inputs only; no manufacturing authorization. Poll engineering job for actual attempts and the best review revision.
Inputs: project (required), revision (required), options.
submit_pcb_reference_repairB
Queue local multi-net ECO repair using an explicit compatible, natively verified reference. Preserves source rules/placement and adopts only native improvements. Not whole-board replacement or manufacturing authorization.
Inputs: project (required), revision (required), reference_project (required), reference_revision (required).
submit_pcb_repairC
Queue scoped repair with explicit nets, ROI and approved copper removal IDs. Never releases manufacturing files.
Inputs: nets (required), region (required), project (required), revision (required), +2 more.
verify_pcb_release_archiveBRead-only
Verify a release ZIP's exact file set and all SHA-256 values without extracting it.
Inputs: archive_path (required).
verify_pcb_revisionB
Run real ERC/DRC, schematic connectivity and geometric checks with revision-bound evidence.
Inputs: project (required), revision (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 25 tools
Most tools map to distinct lifecycle stages, but the set has six repair/layout submission tools (submit_pcb_repair, submit_pcb_auto_repair, submit_pcb_reference_repair, submit_pcb_clearance_repair, submit_pcb_completion, propose/apply_layout) that could easily be misselected. Descriptions do clarify scope and explicitly disclaim adjacent capabilities, but the overlap is substantial enough to create real ambiguity.
Nearly all tools follow a lowercase snake_case verb_noun pattern (list_engineering_jobs, verify_pcb_revision, build_pcb_manufacturing_release). A few break the verb-first pattern (environment_status, pcb_project_history) and the pcb_ infix is not perfectly uniform, but the overall convention is clear and predictable.
25 tools is heavy for a single MCP server, and the repair family in particular contains several variants that could be consolidated behind a mode parameter. The complex PCB lifecycle justifies breadth, but the current count sits at the upper boundary where each tool is not obviously earning its place.
The surface covers the core PCB lifecycle well: import, revision inspection, constraints, layout, autorouting, multiple repair modes, verification, release build/verify, and review export. Minor gaps remain around creating a design from scratch, BOM/component editing, and direct schematic manipulation, but these are workable for the stated automation purpose.
Related MCP Connectors
Design, route, check, review and export manufacturable PCBs from plain language; KiCad import.
Autonomous 0-DRC PCB Routing, RF/DFM Pre-Flight & KiCad MCP Server (calligraphyeda.com).
Design and revise PCBs from plain language, track jobs, and retrieve design artifacts.
Hosted KiCad PCB autorouter: route a placed .kicad_pcb, run KiCad 10 DRC, get JLCPCB Gerbers.
Related MCP Servers
- AlicenseAqualityAmaintenanceMCP servers for KiCad schematic, PCB, symbol, footprint, and project automation, enabling AI-assisted electronic design via tools for read/write, analysis, and exports.109519 PyPI16GPL 3.0
- AlicenseNot gradedqualityAmaintenanceKiCad MCP Pro is an MCP server for KiCad EDA workflows. It lets AI agents automate schematic and PCB tasks, ERC/DRC validation, DFM review, and manufacturing export.13,793 PyPI245AGPL 3.0
- 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
- AlicenseAqualityBmaintenanceEnables secure, read-only inspection and validation of KiCad PCB boards through MCP, with deterministic routing and optional AI policy plugins.114Apache 2.0