---
title: "KiCad MCP Server: AI-Assisted PCB Design"
url: "https://mcpshelf.co/servers/kicad"
description: "KiCad MCP lets an AI assistant place parts, route traces and run checks in KiCad. Install from source: the npm \"kicad-mcp\" package is another project."
updated: "2026-10-27"
site: "MCP Shelf"
---

# KiCad MCP

> Create boards, place footprints and route traces in KiCad from an assistant.

Source: https://mcpshelf.co/servers/kicad  
Markdown: https://mcpshelf.co/servers/kicad.md  
Generated: 2026-11-25T02:05:34.698Z

## Facts

- **Name:** KiCad MCP
- **Tagline:** Create boards, place footprints and route traces in KiCad from an assistant.
- **Description:** The KiCad MCP Server is an open source MCP server that lets AI assistants create schematics and PCB layouts in KiCad, place footprints, route traces, run checks and export manufacturing files.
- **Repository:** https://github.com/mixelpixx/KiCAD-MCP-Server
- **Install:** `claude mcp add --scope user kicad --env PYTHONPATH=/usr/lib/kicad/lib/python3/dist-packages --env LOG_LEVEL=info -- node /path/to/KiCAD-MCP-Server/dist/index.js`
- **Transport:** stdio (local)
- **Auth:** Needs `PYTHONPATH`
- **Tools exposed:** 244: `list_tool_categories`, `get_category_tools`, `search_tools`, `create_project`, `open_project`, `open_board`, `reload_board`, `close_project`, `save_project`, `save_board`, `save_as`, `is_dirty`, `discard_or_reload`, `get_project_info`, `snapshot_project`, `set_board_size`, `set_board_origin`, `get_board_origin`, `add_layer`, `set_active_layer`, `get_board_info`, `get_layer_list`, `add_board_outline`, `clear_board_outline`, `replace_board_outline`, `list_graphics`, `delete_graphic`, `update_graphic`, `add_mounting_hole`, `add_board_text`, `add_zone`, `get_board_extents`, `get_board_2d_view`, `import_svg_logo`, `place_component`, `move_component`, `batch_move_components`, `rotate_component`, `delete_component`, `edit_component`, `set_footprint_type`, `find_component`, `get_component_properties`, `add_component_annotation`, `group_components`, `replace_component`, `get_component_pads`, `get_pads`, `get_net_pads`, `get_component_geometry`, `get_component_list`, `get_pad_position`, `get_ratsnest`, `estimate_airwire_lengths`, `check_placement_clearance`, `move_footprint_text`, `place_component_array`, `align_components`, `check_courtyard_overlaps`, `suggest_placement`, `duplicate_component`, `hierarchical_place`, `add_net`, `route_trace`, `route_arc_trace`, `add_via`, `add_copper_pour`, `delete_trace`, `query_traces`, `query_zones`, `add_gnd_stitching_vias`, `get_nets_list`, `modify_trace`, `create_netclass`, `set_net_color`, `route_differential_pair`, `refill_zones`, `route_pad_to_pad`, `copy_routing_pattern`, `set_design_rules`, `get_design_rules`, `run_drc`, `assign_net_to_class`, `set_layer_constraints`, `check_clearance`, `get_drc_violations`, `export_gerber`, `export_pdf`, `export_svg`, `export_3d`, `export_bom`, `export_netlist`, `export_position_file`, `export_vrml`, `export_gerbers`, `export_drill`, `export_ipc2581`, `export_odb`, `export_ipcd356`, `export_gencad`, `export_pos`, `export_pcb_pdf`, `export_pcb_svg`, `export_pcb_dxf`, `export_gerber_single`, `export_3d_cli`, `export_sch_bom`, `export_sch_pdf`, `export_sch_svg`, `export_sch_dxf`, `export_sch_hpgl`, `export_sch_ps`, `export_sch_python_bom`, `create_schematic`, `add_schematic_component`, `delete_schematic_component`, `edit_schematic_component`, `set_schematic_component_property`, `remove_schematic_component_property`, `get_schematic_component`, `add_schematic_wire`, `add_schematic_net_label`, `add_no_connect`, `connect_to_net`, `get_net_connections`, `get_wire_connections`, `get_schematic_pin_locations`, `connect_passthrough`, `list_schematic_components`, `list_schematic_nets`, `list_schematic_wires`, `list_schematic_labels`, `move_schematic_component`, `rotate_schematic_component`, `annotate_schematic`, `delete_schematic_wire`, `delete_schematic_net_label`, `move_schematic_net_label`, `export_schematic_svg`, `export_schematic_pdf`, `get_schematic_view`, `run_erc`, `generate_netlist`, `sync_schematic_to_board`, `backannotate_footprints`, `create_board_from_schematic`, `get_schematic_view_region`, `find_overlapping_elements`, `get_elements_in_region`, `find_wires_crossing_symbols`, `list_floating_labels`, `find_orphaned_wires`, `snap_to_grid`, `lint_offgrid`, `get_net_at_point`, `add_schematic_hierarchical_label`, `list_schematic_texts`, `add_schematic_text`, `add_sheet_pin`, `list_libraries`, `search_footprints`, `list_library_footprints`, `get_footprint_info`, `list_library_table`, `remove_library_table_entry`, `set_library_table_uri`, `list_symbol_libraries`, `repair_flat_symbols`, `search_symbols`, `list_library_symbols`, `get_symbol_info`, `list_symbol_pins`, `batch_list_symbol_pins`, `set_symbol_pin_type`, `find_duplicate_symbols`, `add_hierarchical_sheet`, `remove_hierarchical_sheet`, `set_sheet_property`, `get_sheet_properties`, `create_hierarchical_subsheet`, `set_schematic_property_position`, `batch_set_schematic_property_positions`, `autoplace_schematic_fields`, `lint_schematic_cosmetic`, `suggest_schematic_declutter`, `batch_add_components`, `batch_edit_schematic_components`, `update_symbol_from_library`, `add_library_symbol_property`, `replace_instance_lib_ids`, `replace_schematic_component`, `batch_add_no_connects`, `batch_connect`, `batch_add_and_connect`, `download_jlcpcb_database`, `search_jlcpcb_parts`, `get_jlcpcb_part`, `get_jlcpcb_database_stats`, `suggest_jlcpcb_alternatives`, `digikey_test_connection`, `digikey_search_parts`, `digikey_check_library_availability`, `search_parts_registry`, `get_registry_part`, `download_registry_part`, `enrich_datasheets`, `get_datasheet_url`, `create_footprint`, `add_footprint_3d_model`, `import_3d_model`, `add_component_3d_model`, `edit_footprint_pad`, `register_footprint_library`, `list_footprint_libraries`, `create_symbol`, `delete_symbol`, `list_symbols_in_library`, `register_symbol_library`, `add_symbol_property`, `import_symbol`, `export_symbol`, `rename_symbol`, `get_backend_state`, `check_kicad_ui`, `launch_kicad_ui`, `kicad_gui_tree`, `kicad_gui_click`, `kicad_run_action_plugin`, `kicad_gui_wait_for`, `kicad_gui_screenshot`, `kicad_pcb_snapshot`, `kicad_reload_and_open_plugin`, `kicad_run_drc`, `kicad_gui_tree_atspi`, `kicad_gui_click_atspi`, `install_gui_driver`, `autoroute`, `export_dsn`, `import_ses`, `check_freerouting`, `import_eagle_project`, `import_pcb`, `validate_schematic`, `validate_symbol_library`
- **Category:** Design, 3D and games (https://mcpshelf.co/categories/design-and-3d)
- **Stats:** 3K GitHub stars, last commit 26 Oct 2026, 0 upvotes on MCP Shelf
- **Install check:** Started in our test
- **Listed:** 2026-10-26
- **Page updated:** 2026-10-27

## Full description

### What is KiCad MCP?

**The KiCad MCP Server is an open source MCP server that lets AI assistants create schematics and PCB layouts in KiCad, place footprints, route traces, run checks and export manufacturing files.**

This server drives KiCad's Python API so an assistant can work on a PCB: create a project, set the board outline, place and move footprints, add tracks and vias, and run design-rule checks.

It runs from a clone of the GitHub repository rather than a published package, and it needs the Python that ships with KiCad.

|  |  |
| --- | --- |
| Made by | mixelpixx and community contributors |
| GitHub | https://github.com/mixelpixx/KiCAD-MCP-Server |
| Licence | MIT |
| GitHub stars | 3K |
| Last commit | 26 Oct 2026 |
| Tools | 247 |
| Runs on | Your computer |
| Install check | Started in our test |
| Category | [Design, 3D and games](https://mcpshelf.co/categories/design-and-3d) |
| Works with | Claude Code, Cursor, Claude Desktop, VS Code, Codex, Windsurf |
| Setup checked | 27 Oct 2026 |
| Page updated | 27 Oct 2026 |

**Our check:** We ran this exact config on 26 Oct 2026: it started and answered with 244 tools. The npm package called "kicad-mcp" comes from a different repository (iengphogit/kicad-mcp). This project runs from its own source.

#### Try asking KiCad MCP

- "Create a new KiCad project for a small LED board."
- "Place the footprints from the schematic on the board and route the power traces."
- "Open my board and tell me what is on it."

#### MCP Shelf take

> We started KiCad on our own test machine on 26 Oct 2026 and it answered with 244 tools. 70 of the 244 only read; the other 174 can change things. Every tool comes with a useful description, none says whether they change things, and the tool list costs about 22,800 tokens of context before you ask a thing. Other directories point at a package with the same name that belongs to someone else; the config on this page installs the real one. It sits 10th of 15 in its category on our shelf by GitHub stars (3K).

— MCP Shelf tests (numbers from our own runs), tested on 26 Oct 2026

### What tools does KiCad MCP have?

We listed 244 tools on 26 Oct 2026. 70 only read; the rest can change things or run commands.

| Tool | Kind | What it is for |
| --- | --- | --- |
| `list_tool_categories` | reads |  |
| `get_category_tools` | reads |  |
| `search_tools` | reads |  |
| `create_project` | changes |  |
| `open_project` | changes |  |
| `open_board` | changes |  |
| `reload_board` | changes |  |
| `close_project` | changes |  |
| `save_project` | changes |  |
| `save_board` | changes |  |
| `save_as` | changes |  |
| `is_dirty` | changes |  |
| `discard_or_reload` | changes |  |
| `get_project_info` | reads |  |
| `snapshot_project` | reads |  |
| `set_board_size` | changes |  |
| `set_board_origin` | changes |  |
| `get_board_origin` | reads |  |
| `add_layer` | changes |  |
| `set_active_layer` | changes |  |
| `get_board_info` | reads |  |
| `get_layer_list` | reads |  |
| `add_board_outline` | changes |  |
| `clear_board_outline` | changes |  |
| `replace_board_outline` | changes |  |
| `list_graphics` | reads |  |
| `delete_graphic` | changes |  |
| `update_graphic` | changes |  |
| `add_mounting_hole` | changes |  |
| `add_board_text` | changes |  |
| `add_zone` | changes |  |
| `get_board_extents` | reads |  |
| `get_board_2d_view` | reads |  |
| `import_svg_logo` | changes |  |
| `place_component` | changes |  |
| `move_component` | changes |  |
| `batch_move_components` | changes |  |
| `rotate_component` | changes |  |
| `delete_component` | changes |  |
| `edit_component` | changes |  |
| `set_footprint_type` | changes |  |
| `find_component` | reads |  |
| `get_component_properties` | reads |  |
| `add_component_annotation` | changes |  |
| `group_components` | changes |  |
| `replace_component` | changes |  |
| `get_component_pads` | reads |  |
| `get_pads` | reads |  |
| `get_net_pads` | reads |  |
| `get_component_geometry` | reads |  |
| `get_component_list` | reads |  |
| `get_pad_position` | reads |  |
| `get_ratsnest` | reads |  |
| `estimate_airwire_lengths` | changes |  |
| `check_placement_clearance` | reads |  |
| `move_footprint_text` | changes |  |
| `place_component_array` | changes |  |
| `align_components` | changes |  |
| `check_courtyard_overlaps` | reads |  |
| `suggest_placement` | changes |  |
| `duplicate_component` | changes |  |
| `hierarchical_place` | changes |  |
| `add_net` | changes |  |
| `route_trace` | changes |  |
| `route_arc_trace` | changes |  |
| `add_via` | changes |  |
| `add_copper_pour` | changes |  |
| `delete_trace` | changes |  |
| `query_traces` | reads |  |
| `query_zones` | reads |  |
| `add_gnd_stitching_vias` | changes |  |
| `get_nets_list` | reads |  |
| `modify_trace` | changes |  |
| `create_netclass` | changes |  |
| `set_net_color` | changes |  |
| `route_differential_pair` | changes |  |
| `refill_zones` | changes |  |
| `route_pad_to_pad` | changes |  |
| `copy_routing_pattern` | changes |  |
| `set_design_rules` | changes |  |
| `get_design_rules` | reads |  |
| `run_drc` | runs |  |
| `assign_net_to_class` | changes |  |
| `set_layer_constraints` | changes |  |
| `check_clearance` | reads |  |
| `get_drc_violations` | reads |  |
| `export_gerber` | changes |  |
| `export_pdf` | changes |  |
| `export_svg` | changes |  |
| `export_3d` | changes |  |
| `export_bom` | changes |  |
| `export_netlist` | changes |  |
| `export_position_file` | changes |  |
| `export_vrml` | changes |  |
| `export_gerbers` | changes |  |
| `export_drill` | changes |  |
| `export_ipc2581` | changes |  |
| `export_odb` | changes |  |
| `export_ipcd356` | changes |  |
| `export_gencad` | changes |  |
| `export_pos` | changes |  |
| `export_pcb_pdf` | changes |  |
| `export_pcb_svg` | changes |  |
| `export_pcb_dxf` | changes |  |
| `export_gerber_single` | changes |  |
| `export_3d_cli` | changes |  |
| `export_sch_bom` | changes |  |
| `export_sch_pdf` | changes |  |
| `export_sch_svg` | changes |  |
| `export_sch_dxf` | changes |  |
| `export_sch_hpgl` | changes |  |
| `export_sch_ps` | changes |  |
| `export_sch_python_bom` | changes |  |
| `create_schematic` | changes |  |
| `add_schematic_component` | changes |  |
| `delete_schematic_component` | changes |  |
| `edit_schematic_component` | changes |  |
| `set_schematic_component_property` | changes |  |
| `remove_schematic_component_property` | changes |  |
| `get_schematic_component` | reads |  |
| `add_schematic_wire` | changes |  |
| `add_schematic_net_label` | changes |  |
| `add_no_connect` | changes |  |
| `connect_to_net` | changes |  |
| `get_net_connections` | reads |  |
| `get_wire_connections` | reads |  |
| `get_schematic_pin_locations` | reads |  |
| `connect_passthrough` | changes |  |
| `list_schematic_components` | reads |  |
| `list_schematic_nets` | reads |  |
| `list_schematic_wires` | reads |  |
| `list_schematic_labels` | reads |  |
| `move_schematic_component` | changes |  |
| `rotate_schematic_component` | changes |  |
| `annotate_schematic` | changes |  |
| `delete_schematic_wire` | changes |  |
| `delete_schematic_net_label` | changes |  |
| `move_schematic_net_label` | changes |  |
| `export_schematic_svg` | changes |  |
| `export_schematic_pdf` | changes |  |
| `get_schematic_view` | reads |  |
| `run_erc` | runs |  |
| `generate_netlist` | changes |  |
| `sync_schematic_to_board` | changes |  |
| `backannotate_footprints` | changes |  |
| `create_board_from_schematic` | changes |  |
| `get_schematic_view_region` | reads |  |
| `find_overlapping_elements` | reads |  |
| `get_elements_in_region` | reads |  |
| `find_wires_crossing_symbols` | reads |  |
| `list_floating_labels` | reads |  |
| `find_orphaned_wires` | reads |  |
| `snap_to_grid` | changes |  |
| `lint_offgrid` | changes |  |
| `get_net_at_point` | reads |  |
| `add_schematic_hierarchical_label` | changes |  |
| `list_schematic_texts` | reads |  |
| `add_schematic_text` | changes |  |
| `add_sheet_pin` | changes |  |
| `list_libraries` | reads |  |
| `search_footprints` | reads |  |
| `list_library_footprints` | reads |  |
| `get_footprint_info` | reads |  |
| `list_library_table` | reads |  |
| `remove_library_table_entry` | changes |  |
| `set_library_table_uri` | changes |  |
| `list_symbol_libraries` | reads |  |
| `repair_flat_symbols` | changes |  |
| `search_symbols` | reads |  |
| `list_library_symbols` | reads |  |
| `get_symbol_info` | reads |  |
| `list_symbol_pins` | reads |  |
| `batch_list_symbol_pins` | changes |  |
| `set_symbol_pin_type` | changes |  |
| `find_duplicate_symbols` | reads |  |
| `add_hierarchical_sheet` | changes |  |
| `remove_hierarchical_sheet` | changes |  |
| `set_sheet_property` | changes |  |
| `get_sheet_properties` | reads |  |
| `create_hierarchical_subsheet` | changes |  |
| `set_schematic_property_position` | changes |  |
| `batch_set_schematic_property_positions` | changes |  |
| `autoplace_schematic_fields` | changes |  |
| `lint_schematic_cosmetic` | changes |  |
| `suggest_schematic_declutter` | changes |  |
| `batch_add_components` | changes |  |
| `batch_edit_schematic_components` | changes |  |
| `update_symbol_from_library` | changes |  |
| `add_library_symbol_property` | changes |  |
| `replace_instance_lib_ids` | changes |  |
| `replace_schematic_component` | changes |  |
| `batch_add_no_connects` | changes |  |
| `batch_connect` | changes |  |
| `batch_add_and_connect` | changes |  |
| `download_jlcpcb_database` | reads |  |
| `search_jlcpcb_parts` | reads |  |
| `get_jlcpcb_part` | reads |  |
| `get_jlcpcb_database_stats` | reads |  |
| `suggest_jlcpcb_alternatives` | changes |  |
| `digikey_test_connection` | changes |  |
| `digikey_search_parts` | changes |  |
| `digikey_check_library_availability` | changes |  |
| `search_parts_registry` | reads |  |
| `get_registry_part` | reads |  |
| `download_registry_part` | reads |  |
| `enrich_datasheets` | changes |  |
| `get_datasheet_url` | reads |  |
| `create_footprint` | changes |  |
| `add_footprint_3d_model` | changes |  |
| `import_3d_model` | changes |  |
| `add_component_3d_model` | changes |  |
| `edit_footprint_pad` | changes |  |
| `register_footprint_library` | changes |  |
| `list_footprint_libraries` | reads |  |
| `create_symbol` | changes |  |
| `delete_symbol` | changes |  |
| `list_symbols_in_library` | reads |  |
| `register_symbol_library` | changes |  |
| `add_symbol_property` | changes |  |
| `import_symbol` | changes |  |
| `export_symbol` | changes |  |
| `rename_symbol` | changes |  |
| `get_backend_state` | reads |  |
| `check_kicad_ui` | reads |  |
| `launch_kicad_ui` | changes |  |
| `kicad_gui_tree` | changes |  |
| `kicad_gui_click` | changes |  |
| `kicad_run_action_plugin` | runs |  |
| `kicad_gui_wait_for` | changes |  |
| `kicad_gui_screenshot` | changes |  |
| `kicad_pcb_snapshot` | changes |  |
| `kicad_reload_and_open_plugin` | changes |  |
| `kicad_run_drc` | runs |  |
| `kicad_gui_tree_atspi` | changes |  |
| `kicad_gui_click_atspi` | changes |  |
| `install_gui_driver` | changes |  |
| `autoroute` | changes |  |
| `export_dsn` | changes |  |
| `import_ses` | changes |  |
| `check_freerouting` | reads |  |
| `import_eagle_project` | changes |  |
| `import_pcb` | changes |  |
| `validate_schematic` | changes |  |
| `validate_symbol_library` | changes |  |

#### How clearly it describes its tools

244 of 244 tools have a description and 0 of 244 say whether they change things. The tool list takes at least ~22,800 tokens of context. No tool says whether it only reads or can change things, so your client treats them all alike: keep approvals on. The tool list is large: switch off the tools you do not use if your client allows it.

#### Tool groups

| Group | Covers |
| --- | --- |
| `Schematic` | Place symbols from about 10,000 in the libraries, wire them up, label nets, build hierarchical sheets and check connections. |
| `Board and components` | Set the board outline and layers, place and move footprints, and lay out zones. |
| `Routing` | Draw tracks and vias by hand, or hand the board to the Freerouting autorouter. |
| `Design rules and checks` | Set clearances and run DRC so problems surface before you order. |
| `Export` | Gerbers, drill files, bill of materials, pick and place, PDFs, SVGs and 3D models for manufacture. |
| `Parts` | Search JLCPCB's catalogue of over 2.5 million parts with price and stock, and pull datasheets from LCSC. |
| `Library creation` | Make custom footprints and symbols when a part is missing. |
| `Discovery` | search_tools and the toolbox commands let the agent find and open tool groups as it needs them. |

### How do I install KiCad MCP?

#### Install steps from the KiCad MCP README

Copied from the project's [README on GitHub](https://github.com/mixelpixx/KiCAD-MCP-Server#readme) on 16 Nov 2026 under its MIT licence.

##### Linux (Ubuntu/Debian)

```
# Install KiCAD 9.0 or higher
sudo add-apt-repository --yes ppa:kicad/kicad-9.0-releases
sudo apt-get update
sudo apt-get install -y kicad kicad-libraries

# Install Node.js
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs

# Clone and build
git clone --branch stable https://github.com/mixelpixx/KiCAD-MCP-Server.git
cd KiCAD-MCP-Server
npm install
pip3 install -r requirements.txt
npm run build

# Verify
python3 -c "import pcbnew; print(pcbnew.GetBuildVersion())"
```

##### Automated Claude Desktop configuration

[`scripts/install-linux.sh`](https://github.com/mixelpixx/KiCAD-MCP-Server/blob/HEAD/scripts/install-linux.sh) installs KiCad, Node.js,
and dependencies; [`setup-linux.sh`](https://github.com/mixelpixx/KiCAD-MCP-Server/blob/HEAD/setup-linux.sh) then configures the MCP client.

After installing the dependencies and building the project, use the Linux setup
script to detect KiCad's Python bindings and safely merge the MCP entry into
Claude Desktop's configuration. It preserves virtual-environment package
precedence and checks Python dependencies using the generated environment:

```
./setup-linux.sh --verify
./setup-linux.sh --dry-run
./setup-linux.sh --apply
```

`--verify` fails if a dependency is missing or cannot be imported and prints an
installation command for the selected Python interpreter. `--dry-run` previews
the configuration and reports dependency problems; `--apply` requires those
problems to be fixed before writing the configuration.

The default configuration path is
`${XDG_CONFIG_HOME:-~/.config}/Claude/claude_desktop_config.json`. Use
`--claude-config PATH` for a client using the same JSON format or a nonstandard location, and set
`KICAD_PYTHON=/path/to/python3` if KiCad's Python cannot be detected automatically.

##### Windows 10/11

**Automated Setup (Recommended):**

```
git clone --branch stable https://github.com/mixelpixx/KiCAD-MCP-Server.git
cd KiCAD-MCP-Server
.\setup-windows.ps1
```

The script will:

- Detect KiCAD installations, including both machine-wide installs under `C:\Program Files\KiCad` and per-user installs under `%LOCALAPPDATA%\Programs\KiCad`
- Verify prerequisites
- Install dependencies
- Build project
- Generate configuration
- Run diagnostics

**Manual Setup:**
See [Platform Guide](https://github.com/mixelpixx/KiCAD-MCP-Server/blob/HEAD/docs/PLATFORM_GUIDE.md) for detailed instructions, and
[Windows Troubleshooting](https://github.com/mixelpixx/KiCAD-MCP-Server/blob/HEAD/docs/WINDOWS_TROUBLESHOOTING.md) if setup fails.

##### macOS

**Important:** On macOS, use KiCAD's bundled Python to ensure proper access to the `pcbnew` module.

##### Manual Setup

```
# Install KiCAD 9.0 from kicad.org/download/macos

# Install Node.js
brew install node@20

# Clone repository
git clone --branch stable https://github.com/mixelpixx/KiCAD-MCP-Server.git
cd KiCAD-MCP-Server

# Create virtual environment using KiCAD's bundled Python
/Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/bin/python3 -m venv venv --system-site-packages

# Activate virtual environment
source venv/bin/activate

# Install dependencies
npm install
pip install -r requirements.txt
npm run build
```

**Note:** The `--system-site-packages` flag is required to access KiCAD's `pcbnew` module from the virtual environment.

**Note:** If you skip the virtual environment, install the requirements with KiCAD's bundled interpreter — a plain `pip3 install -r requirements.txt` goes to system Python, which the server never uses, and the server then fails to start (the MCP client times out after 30s with no visible error):

```
/Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/bin/python3 \
  -m pip install --user -r requirements.txt
```

##### Automated Setup

To simplify configuration with Claude Desktop, this repository provides a macOS setup script:

```
./setup-macos.sh
```

In case of error `zsh: permission denied: ./setup-macos.sh` you can either:

- always allow the script to be executed by running: `chmod +x setup-macos.sh`.
- alternatively explicitly run it with bash: `bash setup-macos.sh` so no chmod change needed.

This script does **not replace the manual setup above** — it assumes dependencies are already installed and the project is built. Instead, it automates:

- detection of your environment (Node.js, KiCad Python, `pcbnew`)
- resolving the correct macOS `PYTHONPATH`
- generating the correct Claude Desktop MCP configuration
- safely merging the configuration into your existing Claude config
- optionally writing the configuration with backup support

##### Basic Usage

##### Verify setup (no changes)

```
./setup-macos.sh --verify
```

##### Preview configuration (dry run)

```
./setup-macos.sh --dry-run
```

##### Apply configuration

```
./setup-macos.sh --apply
```

After applying, restart Claude Desktop.

##### Parameters

##### Required parameters

None. The script works out-of-the-box using sensible defaults.

##### Optional parameters

##### `--name NAME`

Specify the MCP server name in Claude Desktop.

Default:

```
kicad
```

Example:

```
./setup-macos.sh --apply --name kicad-dev
```

Use this when:

- running multiple MCP configurations
- testing forks or development versions
- avoiding overwriting an existing setup

##### `--claude-config PATH`

Specify a custom Claude Desktop configuration file.

Default:

```
~/Library/Application Support/Claude/claude_desktop_config.json
```

Example:

```
./setup-macos.sh --dry-run --claude-config ~/tmp/claude_config.json
```

Use this when:

- testing configurations safely
- using non-standard config locations
- debugging without modifying your main setup

##### `--yes`

Skip confirmation prompt when applying changes.

Example:

```
./setup-macos.sh --apply --yes
```

##### After Setup

1. Fully quit Claude Desktop
2. Reopen Claude Desktop
3. Open a new chat
4. Click **+ → Connectors**
5. Verify the server appears (e.g. `kicad` or your custom name)

Test with prompt in Claude Desktop:

```
Use the kicad MCP server to run check_kicad_ui.
```

##### Notes

- The script only modifies the `mcpServers` section and leaves all other configuration untouched
- Existing configurations are automatically backed up before changes
- macOS support relies on KiCad’s bundled Python; system Python will not work correctly
- If KiCad is updated or moved, re-run the script to refresh paths

---

##### Claude Desktop

Edit configuration file:

- **Linux:** `~/.config/Claude/claude_desktop_config.json`
- **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
- **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`

**Configuration:**

```
{
  "mcpServers": {
    "kicad": {
      "command": "node",
      "args": ["/path/to/KiCAD-MCP-Server/dist/index.js"],
      "env": {
        "PYTHONPATH": "/path/to/kicad/python",
        "LOG_LEVEL": "info"
      }
    }
  }
}
```

**Platform-specific PYTHONPATH:**

- **Linux:** `/usr/lib/kicad/lib/python3/dist-packages`
- **Windows:** `C:\Program Files\KiCad\10.0\lib\python3\dist-packages` or `%LOCALAPPDATA%\Programs\KiCad\10.0\lib\python3\dist-packages`
- **macOS:** `/Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages`

##### Linux Python Detection

The server automatically detects Python on Linux in this priority order:

1. **Virtual environment** - `venv/bin/python` or `.venv/bin/python` (highest priority)
2. **KICAD_PYTHON env var** - User override for non-standard installations
3. **KiCad bundled Python** - `/usr/lib/kicad/bin/python3`, `/usr/local/lib/kicad/bin/python3`, `/opt/kicad/bin/python3`
4. **System Python via which** - Resolves `which python3` to absolute path (e.g., `/usr/bin/python3`)
5. **Common system paths** - `/usr/bin/python3`, `/bin/python3`

**For most standard Linux installations (Ubuntu, Debian, Fedora, Arch), no KICAD_PYTHON configuration is needed** - the server will automatically find your Python installation.

**Troubleshooting:**

If you see "Python executable not found: python3", you can manually specify the Python path:

```
{
  "mcpServers": {
    "kicad": {
      "command": "node",
      "args": ["/path/to/KiCAD-MCP-Server/dist/index.js"],
      "env": {
        "KICAD_PYTHON": "/usr/bin/python3",
        "PYTHONPATH": "/usr/lib/kicad/lib/python3/dist-packages"
      }
    }
  }
}
```

To find your Python path:

```
which python3  # Example output: /usr/bin/python3
python3 -c "import pcbnew; print(pcbnew.GetBuildVersion())"  # Verify pcbnew access
```

##### GitHub Copilot (VS Code)

Copy the template to your workspace:

```
cp config/vscode-mcp.example.json .vscode/mcp.json
```

VS Code will auto-detect `.vscode/mcp.json` and register the server. The template uses `${workspaceFolder}` so no path editing is needed.

> **Note:** `.vscode/mcp.json` is listed in `.gitignore` — your local configuration won't be committed.

##### Claude Code

Claude Code does **not** read the Claude Desktop configuration file, and it only auto-detects servers listed in a project's `.mcp.json` (this repository does not ship one). Register the server explicitly with `claude mcp add`:

```
# macOS example — adjust KICAD_PYTHON/PYTHONPATH per platform (see table above)
claude mcp add --scope user kicad \
  --env KICAD_PYTHON=/Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/bin/python3 \
  --env PYTHONPATH=/Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages \
  --env LOG_LEVEL=info \
  -- node /path/to/KiCAD-MCP-Server/dist/index.js
```

With `--scope user` the server is available in every project; use `--scope project` to write a shareable `.mcp.json` instead. On macOS, `setup-macos.sh` prints this command with the detected paths filled in.

Verify with `claude mcp list` — the server should report ✔ Connected.

#### What you need first

- KiCad 9 or newer, with its bundled Python
- Node.js 18 or newer
- git

1. git clone --branch stable https://github.com/mixelpixx/KiCAD-MCP-Server.git and cd into it. The stable branch holds the latest release.
2. Run npm install, pip install -r requirements.txt (with KiCad's Python; on macOS make a venv from it with --system-site-packages), then npm run build.
3. Or let the project's script do it: setup-windows.ps1 on Windows, setup-macos.sh on macOS, setup-linux.sh --apply on Linux. They find KiCad's Python and write the Claude Desktop entry for you.
4. Otherwise point your app at dist/index.js as below, with PYTHONPATH set to KiCad's Python packages, then fully restart it.

#### Claude Code

Where: Your terminal, in the project folder

```bash
claude mcp add --scope user kicad \
  --env PYTHONPATH=/usr/lib/kicad/lib/python3/dist-packages \
  --env LOG_LEVEL=info \
  -- node /path/to/KiCAD-MCP-Server/dist/index.js
```

Claude Code does not read Claude Desktop's config, so register it here. On macOS also set KICAD_PYTHON to KiCad's bundled python3; setup-macos.sh prints the full command with your paths. Check with claude mcp list.

#### Cursor

Where: ~/.cursor/mcp.json, or .cursor/mcp.json in a project

```json
{
  "mcpServers": {
    "kicad": {
      "command": "node",
      "args": [
        "/path/to/KiCAD-MCP-Server/dist/index.js"
      ],
      "env": {
        "PYTHONPATH": "/usr/lib/kicad/lib/python3/dist-packages"
      }
    }
  }
}
```

#### Claude Desktop

Where: claude_desktop_config.json (Settings → Developer → Edit Config)

```json
{
  "mcpServers": {
    "kicad": {
      "command": "node",
      "args": [
        "/path/to/KiCAD-MCP-Server/dist/index.js"
      ],
      "env": {
        "PYTHONPATH": "/usr/lib/kicad/lib/python3/dist-packages"
      }
    }
  }
}
```

#### VS Code

Where: .vscode/mcp.json in your project

```json
{
  "servers": {
    "kicad": {
      "type": "stdio",
      "command": "node",
      "args": [
        "/path/to/KiCAD-MCP-Server/dist/index.js"
      ],
      "env": {
        "PYTHONPATH": "/usr/lib/kicad/lib/python3/dist-packages"
      }
    }
  }
}
```

VS Code with Copilot stops at 128 tools, and this server has 247. Add "KICAD_MCP_TOOLBOXES": "core" to env to start with 37 tools and load more when needed.

#### Codex

Where: ~/.codex/config.toml, shared by the Codex CLI, IDE extension and ChatGPT desktop app

```
[mcp_servers.kicad]
command = "node"
args = ["/path/to/KiCAD-MCP-Server/dist/index.js"]

[mcp_servers.kicad.env]
PYTHONPATH = "/usr/lib/kicad/lib/python3/dist-packages"
```

Or run: `codex mcp add kicad --env PYTHONPATH=/usr/lib/kicad/lib/python3/dist-packages -- node /path/to/KiCAD-MCP-Server/dist/index.js`

#### Windsurf

Where: ~/.codeium/windsurf/mcp_config.json

```json
{
  "mcpServers": {
    "kicad": {
      "command": "node",
      "args": [
        "/path/to/KiCAD-MCP-Server/dist/index.js"
      ],
      "env": {
        "PYTHONPATH": "/usr/lib/kicad/lib/python3/dist-packages"
      }
    }
  }
}
```

#### ChatGPT

Where: Not supported

ChatGPT on the web only connects to servers by URL. This one runs on your computer: the ChatGPT desktop app can start it from its MCP servers settings, with the same config as the Codex tab.

PYTHONPATH shown is for Linux. On Windows use C:\Program Files\KiCad\10.0\lib\python3\dist-packages; on macOS use the site-packages folder inside KiCad.app (the setup script prints it).

Checked against the project's own install docs on 27 Oct 2026: https://github.com/mixelpixx/KiCAD-MCP-Server#readme

### How do I configure KiCad MCP?

| Setting | Kind | Required | What it does |
| --- | --- | --- | --- |
| `PYTHONPATH` | env | yes | Where KiCad's Python module lives, so the server can load pcbnew. The path differs by platform. Example: `/usr/lib/kicad/lib/python3/dist-packages` |
| `KICAD_MCP_TOOLBOXES` | env | no | Set to core to start with 37 tools instead of about 250, or name groups such as schematic,drc to open them from the start. Example: `core` |
| `LOG_LEVEL` | env | no | How much the server logs. Example: `info` |
| `Enable IPC API Server` | config | no | KiCad setting under Preferences, Plugins. Switch it on and edits show up in the open KiCad window straight away. |

### What can KiCad MCP read and change?

**It can read**

- KiCad projects, schematics and boards on your computer
- JLCPCB and LCSC part data online, if you use those tools

**It can change**

- Edits schematic and board files
- Writes manufacturing exports and new library parts
- Can download a local copy of the JLCPCB catalogue

**Safer setup:** Keep the project in git and commit before each session, so a bad edit is one checkout away from undone.

### Good for

- Quick board outlines and part placement
- Repetitive layout edits
- Learning PCB design with a guide that can make changes

### KiCad MCP not working? Common fixes

**No module named 'pcbnew'**
PYTHONPATH does not point at KiCad's Python folder. Check KiCad 9 or later is installed with Python support and copy the path for your platform.

**The server does not show up in the client**
It runs from a cloned and built copy. Check dist/index.js exists, use absolute paths in the config, and restart the client fully.

**Too many tools for the client**
Set KICAD_MCP_TOOLBOXES=core. Claude Desktop only reads the tool list at start-up, so name any groups you need there.

**Board tools fail with vague errors**
Open a project first and use absolute paths. Logs are in ~/.kicad-mcp/logs.

### What are the alternatives to KiCad MCP?

| Server | What it does | Tools | Runs on | Licence | Stars |
| --- | --- | --- | --- | --- | --- |
| [KiCad MCP](https://mcpshelf.co/servers/kicad) | Create boards, place footprints and route traces in KiCad from an assistant. | 247 | Your computer | MIT | 3K |
| [Blender MCP](https://mcpshelf.co/servers/blender) | Prompt-driven modelling in a running copy of Blender. | 9 | Your computer | MIT | 32.6K |
| [MCP for Unity](https://mcpshelf.co/servers/unity-mcp) | Build scenes, edit C# scripts and run tests in the Unity Editor from a chat. | 48 | Your computer | MIT | 15.5K |
| [MCP Unity](https://mcpshelf.co/servers/mcp-unity) | Lets an assistant build scenes, edit objects and run tests inside the Unity Editor. | 34 | Your computer | MIT | 2K |
| [Godot MCP](https://mcpshelf.co/servers/godot) | Launch, run and debug Godot projects, and read the output. | 14 | Your computer | MIT | 6.4K |
| [FreeCAD MCP](https://mcpshelf.co/servers/freecad) | Lets an assistant build and edit parts in FreeCAD, and run stress analyses on them. | 17 | Your computer | MIT | 3.1K |

### KiCad MCP FAQ

#### How do I install the KiCad MCP Server?

Clone the stable branch of mixelpixx/KiCAD-MCP-Server, run npm install, install the Python requirements with KiCad's Python, then npm run build. On Windows, setup-windows.ps1 does all of it and writes the Claude Desktop config.

#### How do I add the KiCad MCP Server to Claude Code?

Run claude mcp add --scope user kicad with --env PYTHONPATH pointing at KiCad's Python packages, then -- node and the path to dist/index.js in your clone. Claude Code does not pick up the Claude Desktop config.

#### Which KiCad version does the KiCad MCP Server need?

KiCad 9.0 or later, including KiCad 10, installed with its Python module pcbnew. You also need Node.js 18 or newer. Linux is the main tested platform, Windows has a setup script and macOS is experimental.

#### Can the KiCad MCP Server route a PCB automatically?

Yes, through Freerouting. The autoroute tool exports a DSN file, runs Freerouting and imports the result, and check_freerouting confirms Java and Freerouting are available first.

#### Can the KiCad MCP Server order boards from JLCPCB?

No. It exports Gerbers, a bill of materials and placement files and can search JLCPCB's parts library, but placing the order stays with you.

#### Is the KiCad MCP Server free?

Yes. It is MIT licensed and runs from source on your own machine. The same author is building a separate Rust plugin for KiCad 10 called Konnect under AGPL-3.0.

#### Why do I get No module named pcbnew?

The server is using a Python that cannot see KiCad's bindings. Set PYTHONPATH to KiCad's dist-packages or site-packages folder, or on macOS build the venv from KiCad's bundled Python with --system-site-packages.

#### My app says the KiCad MCP Server has too many tools. What do I do?

Set KICAD_MCP_TOOLBOXES=core. The assistant starts with 37 tools, finds the rest with search_tools and loads a toolbox when it needs one, which also suits clients that cap the tool count.

#### How do I add KiCad MCP to Cursor?

In ~/.cursor/mcp.json, or .cursor/mcp.json for one project, add an entry named kicad that runs node /path/to/KiCAD-MCP-Server/dist/index.js, with PYTHONPATH set under env. Save, and the tools show up in Agent chat.

#### Can I use KiCad MCP in VS Code?

Yes, through GitHub Copilot. In .vscode/mcp.json, add a server named kicad with type stdio that runs node /path/to/KiCAD-MCP-Server/dist/index.js, with PYTHONPATH set under env. VS Code with Copilot stops at 128 tools, and this server has 247. Add "KICAD_MCP_TOOLBOXES": "core" to env to start with 37 tools and load more when needed.

#### Does KiCad MCP work with Codex?

Yes. Run codex mcp add kicad --env PYTHONPATH=/usr/lib/kicad/lib/python3/dist-packages -- node /path/to/KiCAD-MCP-Server/dist/index.js in a terminal, or add an [mcp_servers.kicad] table to ~/.codex/config.toml, which the Codex CLI and IDE extension share.

Full docs on GitHub: https://github.com/mixelpixx/KiCAD-MCP-Server

## Notes for agents

Fetch these instead of parsing the HTML page:

- llms.txt: https://mcpshelf.co/llms.txt
- llms-full.txt: https://mcpshelf.co/llms-full.txt
- ai.txt: https://mcpshelf.co/ai.txt
- Full catalog (.md): https://mcpshelf.co/catalog.md
- API spec: https://mcpshelf.co/openapi.json
- MCP server: https://mcpshelf.co/mcp
- MCP manifest: https://mcpshelf.co/.well-known/mcp.json
- Developer docs: https://mcpshelf.co/developers

MCP endpoint (Streamable HTTP, no key): https://mcpshelf.co/mcp. REST API: https://mcpshelf.co/api/v1.

