Design PCBs from Claude Code, Claude Desktop and claude.ai
One command in Claude Code, or one connector in the Claude apps. After that, ask Claude for a board and it comes back placed, autorouted and checked, with Gerber and KiCad files on request.
New to this? What Claude can and cannot do for PCB design, and what engineers report from Claude Code.
Claude Code with sign-in (recommended)
Add the server:
claude mcp add --transport http pcbeditor https://mcp.pcbeditor.com/mcpStart Claude Code, run /mcp, pick pcbeditor and follow the browser to the PCBEditor consent page. Sign in, approve, and the tools appear. From a shell, claude mcp login pcbeditor does the same.
Make it available in every project
The default scope is local: this project, only you. Add --scope user to use PCBEditor from any directory.
claude mcp add --transport http --scope user pcbeditor https://mcp.pcbeditor.com/mcpClaude Code with a personal access token
For machines where a browser sign-in is awkward, such as a remote box over SSH or a CI job, create a token at pcbeditor.com/profile/ai-tools and put it in an environment variable.
export PCBEDITOR_TOKEN="pcbe_..."
claude mcp add --transport http pcbeditor https://mcp.pcbeditor.com/mcp \
--header "Authorization: Bearer ${PCBEDITOR_TOKEN}"$env:PCBEDITOR_TOKEN = "pcbe_..."
claude mcp add --transport http pcbeditor https://mcp.pcbeditor.com/mcp --header "Authorization: Bearer $env:PCBEDITOR_TOKEN".mcp.json that refers to the variable.Project .mcp.json (shared with your team, no token inside)
Claude Code expands ${VAR} in the headers of .mcp.json when it starts, so each person keeps their own token in their own environment.
{
"mcpServers": {
"pcbeditor": {
"type": "http",
"url": "https://mcp.pcbeditor.com/mcp",
"headers": {
"Authorization": "Bearer ${PCBEDITOR_TOKEN}"
}
}
}
}Check the connection with claude mcp list, or /mcp inside a session.
Claude Desktop and claude.ai
Remote servers are added as custom connectors. The steps are the same in Claude Desktop and on claude.ai.
- Open Customize → Connectors.
- Click + Add, then Add custom connector.
- Name it PCBEditor and paste the server URL:
https://mcp.pcbeditor.com/mcp. Click Continue. - Review the authentication Claude detected and click Continue.
- Under Authentication, choose Sign in now. Under OAuth client, keep the recommended option or choose Register automatically: PCBEditor supports both client metadata documents and dynamic client registration.
- Click Add. A PCBEditor consent page opens; sign in and approve.
If your organization does not allow OAuth sign-in, choose No sign in instead and add a request header Authorization with the value Bearer pcbe_… from pcbeditor.com/profile/ai-tools.
First prompts to try
- Design a 4-layer ESP32-S3 board with USB-C and a LiPo charger.
- Show me the parts and nets of that board, then run the design-rule check.
- Review the board and fix anything the review says must be fixed.
- Export Gerbers, drill, BOM and CPL, and give me the editor link.
A design runs as a job, so Claude starts it with design_board and follows it with get_job. If the design pauses on a question, Claude asks you and passes your reply back with answer_question.
Check before you order
In claude.ai and Claude Desktop, every tool call asks first: Allow once, Always allow or Deny. Allow once is the safe answer for tools that change a board, and you can set each tool to Always allow, Needs approval or Blocked in the connector’s settings. Then make the last step of every design a check you can read:
- Read the board back with get_board and check every pin of every IC against its datasheet. List anything that is not what I asked for.
- Run the design-rule check and tell me if any rule was not checked.
In our own test in claude.ai on a small USB-C sensor board, Claude did exactly this before calling the board ready: it read the nets with get_board, looked up the sensor’s and the regulator’s pinouts with get_part, and reported each pin with its net. A board that passes the design-rule check can still be wired differently from what you meant, so the pin-by-pin read is the step that tells you.
Claude Skills and the MCP connector
People now search for a “Claude KiCad skill”. Anthropic draws the line simply: MCP connectors give Claude access to a tool or data source, and Skills teach it how to do a task. A Skill is a folder with a SKILL.md file (a name, a description, then instructions) plus any scripts it needs. Claude reads only the name and description until a request matches, then loads the rest.
What each one can do for PCB work
- The PCBEditor connector is the tool: design, import, read, edit, route, check and export a board, from any Claude app.
- A Skill is your procedure: which checks to run, in what order, and what must be true before you call a board ready. On claude.ai it needs code execution turned on, and it runs in Claude’s own sandbox, not on your computer, so it cannot open your local KiCad. In Claude Code it runs like any program on your machine, so it can call kicad-cli.
A Skill that pairs with the connector
This is the whole of a small Skill. Save it as SKILL.md in a folder named pcb-release-check, under ~/.claude/skills/ for Claude Code or uploaded in claude.ai’s settings. It turns the check above into a rule Claude follows every time:
---
name: pcb-release-check
description: Use before calling a PCBEditor board ready or exporting fab files. Reads the board back, checks every IC pin against its datasheet, runs DRC and refuses to export with open problems.
---
1. Call get_board with detail full. For every IC, call get_part and compare each pin's net with its datasheet function.
2. List every pin that is unconnected, on an unexpected net, or above its rated voltage.
3. Call run_drc. Report errors, warnings and any rule that was not checked.
4. Only if steps 2 and 3 are clean, call export_board. Otherwise stop and list what needs fixing.The same pattern works for KiCad itself: in Claude Code, a Skill can tell Claude to finish every edit with kicad-cli sch erc and kicad-cli pcb drc --schematic-parity. The KiCad AI guide explains what those checks catch.
Troubleshooting
- 401 Unauthorized. The token is missing, mistyped or revoked, or the OAuth sign-in expired. Run
/mcpand sign in again, or create a new token at pcbeditor.com/profile/ai-tools. - Empty header value. Check that PCBEDITOR_TOKEN is set in the shell that starts Claude Code. Claude Code reads some credential variable names as empty in remote headers (Anthropic and cloud-provider keys, for example); PCBEDITOR_TOKEN is not one of them.
- Too many requests. Calls are rate-limited per user. Let a design job finish with get_job before starting the next one.
Common questions
- What can Claude do once PCBEditor is connected?
- Design a whole board: Claude calls design_board with your description and gets back a complete board with parts, schematic, placement, routing and a design-rule check. PCBEditor designs, routes and checks the board; Claude handles the conversation and follow-up edits. Ask Claude to read the netlist back and check it pin by pin before you order.
- Is there a Claude skill for KiCad?
- KiCad publishes none, and a Skill alone cannot open a KiCad file: it is a folder of instructions and scripts that teaches Claude a procedure. Paired with a tool it is useful. In Claude Code a Skill can run kicad-cli on your machine; with PCBEditor's connector, a Skill can tell Claude which checks to run before it calls a board ready.
- What is the difference between a Claude Skill and an MCP connector?
- In Anthropic's words, MCP connectors give Claude access to a tool or data source, and Skills teach it how to do a task. PCBEditor's MCP server is the tool: it designs, imports, checks and exports boards. A Skill is the procedure: which of those tools to call, in what order, and what counts as done.
- Does Claude ask before it runs a PCBEditor tool?
- Yes, in Claude Desktop and claude.ai. Each tool call shows Allow once, Always allow and Deny, and in the connector's settings you can set each tool to Always allow, Needs approval or Blocked. Allow once is the safe choice for tools that change a board.
- Which Claude apps work?
- Claude Code (terminal, IDE extensions), Claude Desktop and claude.ai. Claude Code adds the server with one command. Claude Desktop and claude.ai add it as a custom connector.
- Do I need a paid Claude plan?
- Anthropic's documentation lists custom connectors on Free, Pro, Max, Ultra, Team and Enterprise plans, with Free limited to one custom connector. On Team and Enterprise, an owner adds the connector for the organization first.
- Where does Claude Code store the token?
- If you pass the token with --header, your shell expands the variable when you run the command and Claude Code saves the resulting header in its configuration. To keep the token out of every file, use the OAuth sign-in instead, or a project .mcp.json that refers to the variable, which Claude Code expands each time it starts.
- Can Claude Code import my KiCad board?
- Yes. Ask it to import your .kicad_pcb file; it uses the import_kicad tool. You can then autoroute it with PCBEditor's own router, run the design-rule check, edit it by instruction and export it again as KiCad files or Gerbers.
The server needs a free PCBEditor account. Clients that support MCP sign-in open a consent page in your browser; for the rest, create a personal access token.