kicad-jlcpcb
Automates the KiCad-to-JLCPCB workflow from part sourcing through project, schematic, PCB generation, and manufacturing handoff.
Detect local KiCad installation and report version/path/install guidance.
Create or load KiCad projects with JLCPCB-tuned rules, project folders, and session state.
Search LCSC/JLCPCB parts, resolve BOM rows, prefer basic-tier parts, and warn about extended-part costs.
Fetch EasyEDA symbols, footprints, 3D models, and pin-name-to-pad maps with caching.
Generate KiCad schematics from netlist specs and run schematic ERC.
Generate fully wired .kicad_pcb files from specs, including auto-fetched pin maps, footprint placement, net wiring, and board outline.
Produce EasyEDA handoff instructions for routing and JLCPCB ordering.
Package Gerbers, drill files, position files, and BOM into a JLCPCB-ready zip.
Persist workflow sessions, record BOM approval, and resume prior work.
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., "@kicad-jlcpcb /pcb-new ESP32-C3 sensor board, USB-C, 3.3V LDO"
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.
kicad-jlcpcb
From "I want a board that does X" to a wired
.kicad_pcbEasyEDA can auto-route and JLCPCB can build — in a single Claude Code conversation.
kicad-jlcpcb is a Claude Code plugin + MCP server that automates the tedious half of going from idea to fab. It sources LCSC parts with a hard preference for JLCPCB basic-library stock, auto-fetches pin maps from EasyEDA, places KiCad-stdlib footprints, wires every net by pin name (not pad number), and hands off a .kicad_pcb that EasyEDA can route and order in two clicks.
┌─ you ──────────────────────────────────┐
│ /pcb-new An ESP32-C3 soil-moisture │
│ sensor, USB-C, 3.3V LDO... │
└────────────────┬───────────────────────┘
│
┌─────────────▼─────────────┐
│ kicad-jlcpcb MCP server │
│ • source parts (LCSC) │
│ • fetch pin maps │
│ • place + wire footprints│
│ • save .kicad_pcb │
└─────────────┬─────────────┘
│
drag into easyeda.com
│
Auto Route
│
Order via JLCPCBWhy this plugin
Three recurring friction points in small-batch PCB work, automated:
"Is this part basic or extended on JLCPCB?" — You stop needing to cross-reference LCSC's UI. The plugin queries the JLCPCB catalog directly, caches the answer, and always prefers basic-tier (no $3/part assembly setup fee).
"What's the right pad number for this IC's
GPIO10?" — You stop reading datasheets to build netlists. The plugin queries EasyEDA by LCSC C-number, caches the pin-name → pad-number map, and lets you reference pins by their functional names."Why is my auto-router failing?" — You stop fighting Freerouting on RF boards. The plugin stops at "wired
.kicad_pcb" and hands off to EasyEDA's cloud auto-router, which works on real designs.
Related MCP server: kicad-mcp
Quick tour
Two slash commands:
/pcb-new(from a description) and/pcb-from-bom(from a CSV).One agent:
part-sourcer— finds the best JLCPCB-stocked part for a generic spec.One skill:
kicad-jlcpcb-workflow— the full reference the LLM consults while driving the workflow.14 MCP tools covering setup, sourcing, schematic, PCB generation, EasyEDA handoff, and session resume.
Session persistence — each project writes a
.kicad_jlcpcb_session.jsonso/pcb-newcan resume mid-flow after a Claude Code restart.
Requirements
Component | Version | Notes |
Python | 3.10 – 3.13 | Tested on all four in CI |
KiCad | 8.0 – 10.x |
|
EasyEDA account | free | Only needed for the final routing + ordering step |
Network | required | Part data is fetched live — see below |
Data dependencies
Part sourcing depends on three live services, none with a documented public API, none run by us. All are overridable, so a fork can point at a mirror without touching code:
Service | Used for | Override |
| Part-number search, descriptive search, live JLCPCB stock, tier. Undocumented; tried first |
|
Fallback search, structured resistor/capacitor lookup |
| |
| Exact C-number lookup, symbols, pin maps |
|
Resolved parts are cached in ~/.cache/kicad-jlcpcb/lcsc_parts.sqlite for 24
hours. There is no bulk catalog download.
Why the overrides exist. v0.1.0 hardcoded a single third-party URL. Upstream retired that data layout, the URL started returning 404, and part sourcing broke silently for months before anyone noticed (#1). A weekly CI job now tests every service directly, and you can repoint any of them yourself.
It happened again in October 2026: after a crawler rewrite, jlcsearch began answering part-number searches with unrelated parts (a search for
SS34returned ferrite beads) and reporting stock as null (#9). Since v0.17 search goes to JLCPCB's own parts search first. Every result also has to pass a relevance check before it is offered: a named part number or value must actually appear on the part. When jlcpcb.com declines a request (it protects the endpoint against automated clients), the plugin honours that, backs off for five minutes, and uses jlcsearch meanwhile.
Install KiCad:
Fedora 40+:
sudo dnf install kicadUbuntu 22.04+:
sudo add-apt-repository ppa:kicad/kicad-9.0-releases && sudo apt install kicadArch:
sudo pacman -Syu kicadmacOS: kicad.org/download
Install
/plugin marketplace add BeckhamLabsLLC/claude-plugins
/plugin install kicad-jlcpcb@beckhamlabs-pluginsRestart Claude Code, then run /mcp and look for kicad-jlcpcb.
That is the whole install. You do not need to clone the repo, and you do not
need to install anything with pip — the plugin resolves its own two
dependencies (mcp, httpx) on first launch via uv,
which most Python toolchains already have:
curl -LsSf https://astral.sh/uv/install.sh | sh # if you do not have itIf you would rather not use uv, install the dependencies into whichever Python
python3 resolves to and the plugin will use them directly:
python3 -m pip install mcp httpxKiCad itself is a separate install — see Requirements.
git clone https://github.com/BeckhamLabsLLC/kicad-jlcpcb.git
cd kicad-jlcpcb
pip install -e ".[dev]"Then register the clone as a local marketplace, which is what makes Claude Code
expand ${CLAUDE_PLUGIN_ROOT} for the MCP server:
/plugin marketplace add /abs/path/to/kicad-jlcpcb
/plugin install kicad-jlcpcb@beckhamlabsNote the marketplace name differs from the published one: the repo's own
.claude-plugin/marketplace.json declares beckhamlabs, while the aggregator
repo declares beckhamlabs-plugins.
Do not register the checkout by enabling its .mcp.json as a project
server. ${CLAUDE_PLUGIN_ROOT} is only substituted for plugin-provided MCP
configs; in project scope it stays a literal string and the server cannot be
found. See TROUBLESHOOTING.
Sanity check
/mcp in Claude Code should list kicad-jlcpcb with its 14 tools. If it
reports the server failed, see TROUBLESHOOTING — the
first step there prints the actual reason, which Claude Code does not show you.
From a clone, you can also check the whole path end to end — that the server starts, registers its handlers, and answers a real tool call:
python3 bin/launch.py --version # prints the version, exits 0
python3 scripts/check_protocol.py # initialize -> tools/list -> tools/callRun the launcher with no arguments and it will appear to hang — that is correct. An MCP server speaks JSON-RPC on stdio and is waiting for a client.
Five-minute quick-start
Pick a small idea — an ESP32-C3 board with one sensor, a USB-C port, and an LDO works well. Run:
/pcb-new An ESP32-C3 soil-moisture sensor with two capacitive probes,
USB-C 5V in, a 3.3V LDO, status LED, and JST-PH battery header.
Place it on an 80x60 mm board.Claude walks you through:
detect_kicad— verify the toolchain (< 1 s)create_project— scaffold.kicad_pro+.kicad_sch+ session fileDecomposes the description into ~12 generic part specs
lcsc_searchper spec (live catalog query, cached locally for 24 h)BOM checkpoint — shows every resolved part, flags extended-tier ones with cost warnings, and waits for your confirmation
pcb_generate— fetches EasyEDA pin maps (~12 s each, only for parts whose nets reference pins by name, first run only), places footprints, wires nets, saves.kicad_pcbeasyeda_handoff— prints the import instructions
The full trace with real timings and tool outputs: examples/soilnode-esp32/walkthrough.md.
First run: ~90 s. Subsequent runs on similar designs: under 10 s.
What the plugin does not do
Set expectations honestly before you start:
❌ Auto-route traces. That's why the
.kicad_pcbgets handed to EasyEDA. Freerouting 2.1.0's CLI is buggy and can't handle RF matching networks; nothing else works headlessly well enough to ship.❌ Beautiful placement. The three-band grid (connectors on top, ICs in the middle, passives below) is functional, not pretty. You rearrange in EasyEDA before routing.
❌ Design review. There's no DRC integration (yet — see Roadmap). The plugin trusts your spec and relies on KiCad / EasyEDA to catch rule violations.
❌ PyPI distribution. Install through the Claude Code marketplace. There is no
pip install kicad-jlcpcb.
MCP tool surface
Stage | Tool | Purpose |
Setup |
| Probe |
Setup |
| Scaffold |
Setup |
| Validate existing |
Resume |
| Report where a prior workflow left off for a project dir |
Resume |
| Record the user's BOM approval so a restart doesn't re-ask |
Sourcing |
| Free-text part search, basic-only by default |
Sourcing |
| Batch BOM resolution with cost-impact warnings |
Sourcing |
| Symbol + footprint from EasyEDA's real geometry into project |
Pin maps |
| Fetch pin-name → pad-number map from EasyEDA |
Schematic |
| Emit |
Schematic |
| Run |
PCB |
| Main tool. Auto-fetches pin maps, places footprints, wires every net, saves |
Terminal |
| Recommended terminal tool. Produces EasyEDA import instructions |
Legacy |
| For users routing in KiCad: export Gerbers + package a JLCPCB upload zip |
Full input-schema definitions are in src/kicad_jlcpcb_mcp/server.py under _tool_definitions().
PCB spec format
pcb_generate consumes a JSON-serializable dict:
{
"name": "demo",
"board": {"width_mm": 80, "height_mm": 60, "layer_count": 2},
"components": [
{
"ref": "U1",
"value": "ESP32-C3-WROOM-02",
"lcsc": "C2934560",
"lib": "RF_Module",
"fp": "ESP32-C3-WROOM-02"
}
],
"nets": {
"3V3": [["U1", "3V3"], ["C1", "1"]],
"GND": [["U1", "GND"], ["C1", "2"]],
"SPI_SCK": [["U1", "GPIO10"], ["U2", "SCK"]]
}
}Key rules:
Reference IC pins by their functional name (
3V3,GPIO10,SCK). The plugin resolves them via EasyEDA's pinmap.For passives (R, C, L, D), use bare pad numbers:
"1","2".libandfpare KiCad-stdlib library + footprint names. The plugin finds KiCad's footprint directory automatically on Linux, macOS, Windows and Flatpak; override withKJLC_FOOTPRINT_DIRorpcb_generate'slib_dir.
Full worked spec: examples/soilnode-esp32/spec.json.
Architecture
src/kicad_jlcpcb_mcp/
server.py ← MCP server + 14 tool definitions
session.py ← per-project state (.kicad_jlcpcb_session.json)
project.py ← .kicad_pro create / load / validate
kicad_cli.py ← async wrapper for kicad-cli (KiCad 8–10)
lcsc_client.py ← jlcpcb.com + jlcsearch + EasyEDA, relevance gate, SQLite cache
part_library.py ← EasyEDA client (EasyEdaRateLimiter + pin-map cache)
pcb.py ← pcbnew-based .kicad_pcb generator
schematic.py ← netlist spec → .kicad_sch
gerber_pack.py ← Protel extension normalizer + JLCPCB zip
sexpr.py ← s-expression reader/writer
config.py ← module-level constantsAll HTTP goes through lcsc_client and part_library. All KiCad CLI invocations go through kicad_cli. pcbnew is lazy-imported inside pcb.py so the rest of the plugin runs fine when KiCad isn't installed (most tools don't need it).
Testing
pytest tests/ # offline suite; nothing here touches the networkTwo suites are gated behind environment variables because they need something the default run can't assume:
KICAD_INSTALLED=1 pytest tests/ -v # needs pcbnew
KJLC_NETWORK_TESTS=1 pytest tests/test_network_contract.py # hits live APIsThe offline suite covers subprocess wrapping, HTTP mocking, the SQLite cache,
s-expression round-trip, schematic emission, Gerber renaming, EasyEDA pin-map
parsing, rate-limit / retry, session persistence, MCP tool routing, and real
pcbnew board generation.
test_network_contract.py earns its own paragraph. Every other test is
mocked, which is why the whole suite stayed green for four months while part
sourcing was completely broken in the field. The contract tests assert the
shape of live upstream responses — never a specific price or stock figure —
and run weekly in CI. If that badge goes red, part sourcing is broken for
everyone; please open an issue.
Lint:
ruff check .
ruff format --check .Troubleshooting
Full guide: TROUBLESHOOTING.md. Most common issues:
Symptom | Fix |
MCP server shows as failed / | Run |
| Install KiCad; don't try to |
First run stalls ~12 s per part | Expected — EasyEDA rate limit, and only for parts whose nets use pin names. Cached forever after the first fetch. |
| The error names how many libraries were found and suggests near matches. If none were found, set |
| Delete |
What you get, and what to check
The plugin produces a .kicad_pcb with real footprints and every net wired,
plus a JLCPCB upload zip. Two things are worth checking before you order:
Part geometry comes from EasyEDA. Symbols carry the real pin names and
numbers, and footprints the real pad positions, sizes and drills — EasyEDA,
LCSC and JLCPCB share a parent company, so this is the same data JLCPCB
assembles against. When EasyEDA has no geometry for a part, a placeholder is
written instead and fetch_part_library says so in warnings. A
placeholder footprint will not match the real part — replace it from
KiCad's standard libraries before ordering.
CPL rotations are passed through, not corrected. JLCPCB's expected orientation differs from KiCad's for some packages. Footprints generated from EasyEDA already share JLCPCB's convention; footprints you take from KiCad's standard libraries may not. The plugin says so rather than applying a guess that silently rotates parts — check JLCPCB's assembly preview after upload and fix anything that looks wrong there.
Design rationale: why the handoff
Earlier releases tried to route the board headlessly with Freerouting and produce a JLCPCB Gerber zip directly. That didn't work for real boards — Freerouting 2.1.0 has CLI bugs, can't route RF matching networks, and won't save partial results.
So the plugin takes the pragmatic win: it wires everything up, EasyEDA routes and orders. The tradeoff is opening a browser tab and clicking two buttons; in exchange you get reliability the open-source tooling can't match and a one-click path to a JLCPCB order.
Roadmap
Next — auto-placement that respects functional groupings (power domain, RF block, analog front-end), DRC integration, differential-pair awareness, and a per-package CPL rotation table so JLCPCB orientations need no manual correction.
Later — vision-based schematic extraction: drop in a photo of a hand-drawn schematic, out comes a wired
.kicad_pcb.
Contributing
See CONTRIBUTING.md for dev setup, test running, and PR conventions. All contributors follow the Code of Conduct. Bug reports: open an issue.
License
MIT — see LICENSE.
Available Tools
14 toolscreate_projectA
Scaffold a new KiCad project at <parent_dir>// with a .kicad_pro carrying JLCPCB-tuned design rules, an empty .kicad_sch, and libs/ + manufacturing/ subdirectories. Sets the new project as the active session workspace.
Inputs: name (required), parent_dir (required).
detect_kicadA
Detect the local KiCad install. Returns version, path, and whether it meets the minimum required version. On a missing or outdated install, returns an install_hint with platform-specific guidance. Never runs installs itself.
Inputs: no named parameters.
easyeda_handoffA
Produce the final handoff message for the user: the path to the generated .kicad_pcb and step-by-step instructions for importing it into easyeda.com for routing and ordering. This is the recommended terminal tool of the plugin — EasyEDA handles the final routing + JLCPCB ordering step far more reliably than any headless auto-router we could ship.
Inputs: pcb_path.
fetch_part_libraryA
Download symbol + footprint (and 3D model when available) for a single LCSC C-number and install them into the active project's libs/ directory. Geometry comes from EasyEDA: real pin names and numbers for the symbol, real pad positions, sizes and drills for the footprint. If EasyEDA is unreachable or has no geometry for the part, a placeholder is written instead and the response says so in warnings — read them, because a placeholder footprint will NOT match the real part and must be replaced before ordering.
Inputs: lcsc (required), libs_dir.
lcsc_resolve_bomA
Resolve a list of BOM rows to concrete LCSC parts. Each row may specify an LCSC C-number directly or a free-text query with an optional package. Hard-prefers basic-tier parts; for any row that resolves to an extended part, attaches a cost-impact warning and tallies the JLCPCB assembly setup fee.
Inputs: rows (required).
lcsc_searchA
Search the LCSC / JLCPCB catalog for parts matching a free-text query. Defaults to basic-tier parts only (no JLCPCB assembly setup fee). Set basic_only=false to include extended parts. Results are sorted basic-first then by descending stock.
Inputs: query (required), limit, package, stock_min, +1 more.
load_projectA
Load an existing KiCad project (path to a .kicad_pro file or its containing directory). Validates the manifest, ensures libs/ and manufacturing/ subdirectories exist, and sets the project as the active session workspace. Returns a manifest of the project's current state.
Inputs: project_path (required).
package_for_jlcpcbA
Run all kicad-cli manufacturing exports on the active project's .kicad_pcb (gerbers, drill, position, BOM), rename gerbers to Protel extensions, drill to .XLN, and zip everything into a JLCPCB-ready manufacturing/jlcpcb--.zip. Requires that placement and routing are already done in KiCad — this is the terminal tool in the workflow.
Inputs: pcb_path, output_zip.
part_pin_mapA
Fetch the pin-name → pad-number map for an LCSC C-number from EasyEDA's component endpoint. Used internally by pcb_generate; exposed as a standalone tool so Claude can inspect a part's pinout before constructing a nets spec. Rate-limited (~12s between unique fetches); cached indefinitely in SQLite after first fetch.
Inputs: lcsc (required), force_refresh.
pcb_generateA
Generate a fully-wired .kicad_pcb from a declarative spec using KiCad's pcbnew Python API. Each component in the spec needs an LCSC C-number — the plugin auto-fetches pin maps from EasyEDA so your nets can reference pin NAMES (like 'GPIO10' or 'VCC') instead of numbers. First run may pause ~12 seconds per unique IC for EasyEDA's rate limit; results are cached in SQLite so subsequent runs are instant. The tool then auto-places footprints in three bands (connectors on top, ICs in middle, passives below), wires every net pad-to-pad, and draws a board outline. Result: a .kicad_pcb ready to open in KiCad or EasyEDA for routing. REQUIRES KiCad 8+ installed (pcbnew is KiCad-side Python).
Inputs: spec (required), lib_dir, output_path, force_refresh, +1 more.
sch_generateA
Generate a .kicad_sch from a declarative netlist spec. The spec lists components (with LCSC C-numbers and footprints) and named nets connecting their pins. The generated schematic passes basic ERC and is ready to open in KiCad for human review and PCB layout.
Inputs: netlist_spec (required), name, sch_path.
sch_run_ercA
Run KiCad's Electrical Rules Check (ERC) on a schematic via kicad-cli. Returns counts of errors and warnings plus a path to the full report. Errors > 0 means the schematic has structural problems that should be fixed before layout.
Inputs: sch_path.
session_confirm_bomA
Record that the user has reviewed and approved the BOM. Call this immediately after they confirm at the BOM checkpoint, before pcb_generate. Without it the approval lives only in the conversation: if Claude Code restarts, session_resume reports the BOM as merely 'sourced' and the user is asked to approve the same BOM again. Spending money on a board is the one decision in this workflow worth making durable.
Inputs: notes, project_path.
session_resumeA
Inspect the .kicad_jlcpcb_session.json in a project directory to see where a prior workflow left off. Returns the current stage (created / parts_sourced / bom_confirmed / pcb_generated / handoff_rendered), which checkpoints are complete, and a recommended next step. Use at the start of /pcb-new or /pcb-from-bom on an existing project to offer the user a resume-or-restart choice.
Inputs: project_path.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Each tool has a single, clearly defined role in the workflow—environment detection, project lifecycle, part sourcing, schematic/PCB generation, testing, packaging, and session persistence. Even the LCSC/EasyEDA-related tools are cleanly separated by their inputs and outputs, so there is no practical ambiguity between them.
All names are snake_case and mostly follow a prefix/verb_noun pattern, but a few deviate from verb-first naming ('part_pin_map', 'easyeda_handoff') and prefixes mix abbreviations like lcsc, sch, and pcb. This is a minor consistency issue rather than a confusing naming scheme.
The 14 tools map directly to the stages of a single end-to-end KiCad-to-JLCPCB workflow, from environment detection through manufacturing handoff. Every tool has a distinct responsibility, and none feel redundant or out of scope.
The workflow is comprehensively covered: project setup, part sourcing, schematic generation/ERC, BOM approval, PCB generation, packaging, and handoff, plus session persistence for resuming. Minor gaps exist around post-generation PCB verification (no explicit DRC/DFM check) and editing existing designs, but these can be worked around in KiCad or EasyEDA.
Maintenance
Related MCP Connectors
Design, route, check, review and export manufacturable PCBs from plain language; KiCad import.
Design circuits, simulate and verify embedded firmware, and lay out PCBs with AI agents.
Autonomous 0-DRC PCB Routing, RF/DFM Pre-Flight & KiCad MCP Server (calligraphyeda.com).
AI electronics blueprint generator — BOM, wiring, firmware, renders for Arduino/ESP32/RPi.
Related MCP Servers
- AlicenseCqualityDmaintenanceAI-powered PCB and schematic design with KiCad. Works with Claude, Cursor, VS Code, Claude Code, and any MCP-compatible client.1003MIT
- AlicenseNot gradedqualityDmaintenanceEnables natural language control of KiCad PCB design software through Claude Desktop, automating project creation, design rule checks, component management, export, and cost estimation.5 npmMIT
- AlicenseNot gradedqualityFmaintenanceAI-assisted PCB design for KiCAD 10. Native KiCAD plugin — a single Rust binary exposing 171 schematic, layout, routing, design-review, and manufacturing tools to Claude, or the LLM of your choosing1,462AGPL 3.0
- FlicenseNot gradedqualityBmaintenanceAI copilot for PCB design: search real JLCPCB/LCSC parts, build schematics, run ERC, auto-place and autoroute 2-layer boards with DRC, export Gerbers/BOM/pick-and-place, and generate 3D-printable enclosures. Changes appear live in the CircuitPilot browser editor.4-