Skip to main content
Glama

eda-mcp

MCP server for EDA (Electronic Design Automation) tools. Currently supports KiCad 9.x with 39 tools covering the full PCB design workflow.

Requirements

Related MCP server: KiCad MCP Server

Installation

git clone https://github.com/SaeronLab/eda-mcp.git
cd eda-mcp
uv sync

Claude Code Configuration

Add to your .mcp.json:

{
  "mcpServers": {
    "eda-mcp": {
      "type": "stdio",
      "command": "uv",
      "args": ["--directory", "/path/to/eda-mcp", "run", "eda-mcp"]
    }
  }
}

Tools

Core (6)

Tool

Description

kicad.get_session_state

Current session state and capabilities

kicad.create_project

Create a new KiCad project

kicad.open_project

Open an existing project

kicad.list_projects

Find projects in a directory

kicad.save_project

Save all project files

kicad.help

Workflow and tool documentation

Schematic (13)

Tool

Description

kicad.add_component

Add a symbol to the schematic

kicad.add_power_symbol

Add VCC, GND, +3V3, etc.

kicad.set_value

Set component value (10k, 100nF)

kicad.set_reference

Change reference designator

kicad.set_component_field

Set custom fields (MPN, supplier)

kicad.delete_component

Remove a component

kicad.move_component

Reposition a component

kicad.add_wire

Connect two points with a wire

kicad.add_net_label

Add a named net label

kicad.add_global_label

Add a cross-sheet label

kicad.add_no_connect

Mark unused pins

kicad.annotate_schematic

Auto-assign reference designators

kicad.list_components

List all components with details

PCB (10)

Tool

Description

kicad.create_board_outline

Draw the PCB boundary

kicad.set_design_rules

Set min trace/clearance/drill

kicad.create_net_class

Create net class with specific rules

kicad.route_trace

Route a copper trace

kicad.place_via

Place a via

kicad.fill_zones

Fill copper zones

kicad.add_text

Add silkscreen text

kicad.add_line

Add lines/shapes to layers

kicad.design_summary

Board statistics and sanity check

kicad.list_footprints

List all footprints on the PCB

Export (7)

Tool

Description

kicad.export_netlist

Export netlist from schematic

kicad.export_gerbers

Export Gerber manufacturing files (DRC-gated)

kicad.export_bom

Export Bill of Materials

kicad.export_pdf

Export schematic/PCB to PDF

kicad.export_svg

Export schematic/PCB to SVG

kicad.run_drc

Design Rules Check

kicad.run_erc

Electrical Rules Check

Library (3)

Tool

Description

kicad.search_symbols

Search component symbols

kicad.search_footprints

Search PCB footprints

kicad.get_symbol_info

Get symbol pins and properties

Architecture

src/eda_mcp/
├── server.py              # FastMCP server, tool registration
├── session.py             # Session state management
├── common/
│   ├── types.py           # ToolResponse, Position
│   └── errors.py          # Error hierarchy
└── plugins/
    └── kicad/
        ├── discovery.py   # KiCad path detection
        ├── guardrails.py  # Pre-export safety checks
        ├── worker.py      # Async pcbnew worker manager
        ├── worker_process.py  # Persistent pcbnew subprocess
        ├── sexp/
        │   ├── parser.py  # S-expression parser
        │   └── writer.py  # S-expression writer
        └── tools/
            ├── schematic.py  # Schematic manipulation via sexp
            ├── cli.py        # kicad-cli exports (Gerber, PDF, DRC)
            └── library.py    # Symbol/footprint search

Three integration paths:

  • S-expression parser/writer — Direct manipulation of .kicad_sch files with round-trip fidelity

  • Persistent pcbnew worker — JSON-RPC subprocess using KiCad's Python API for PCB operations

  • kicad-cli — Subprocess calls for exports, DRC, and ERC

Development

uv run pytest tests/ -v          # Run all tests
uv run ruff check src/ tests/    # Lint
uv run pyright src/              # Type check

License

MIT

Available Tools

39 tools
kicad.add_componentA

Add a symbol to the schematic. Use search_symbols first to find the symbol ID. Example: add_component(symbol='Device:R', ref='R1', value='10k', x=100, y=50)

Inputs: symbol (required), ref (required), value (required), x (required), +2 more. Returns: result

kicad.add_global_labelB

Add a global label (connects across hierarchical sheets).

Inputs: name (required), x (required), y (required), angle, +1 more. Returns: result

kicad.add_lineB

[Requires open project] Add a line or shape to a PCB layer.

Inputs: x1 (required), y1 (required), x2 (required), y2 (required), +2 more. Returns: result

kicad.add_net_labelB

Add a net label at a position. Primary wiring mechanism for named nets. Example: add_net_label(name='SDA', x=120, y=50)

Inputs: name (required), x (required), y (required), angle. Returns: result

kicad.add_no_connectB

Mark an unused pin with a no-connect flag. Required to pass ERC.

Inputs: x (required), y (required). Returns: result

kicad.add_power_symbolA

Add a power symbol (VCC, GND, +3V3, etc). Creates global net connection. Example: add_power_symbol(name='+3V3', x=100, y=30)

Inputs: name (required), x (required), y (required), rotation. Returns: result

kicad.add_textA

[Requires open project] Add text to PCB silkscreen or other layer. Example: add_text(text='REV A', x=110, y=105, layer='F.SilkS')

Inputs: text (required), x (required), y (required), layer. Returns: result

kicad.add_wireB

Add a wire between two points. Coordinates must be exact. Example: add_wire(x1=100, y1=50, x2=150, y2=50)

Inputs: x1 (required), y1 (required), x2 (required), y2 (required). Returns: result

kicad.annotate_schematicB

Auto-assign reference designators to all unannotated components.

Inputs: no named parameters. Returns: result

kicad.create_board_outlineA

[Requires open project] Draw the PCB board outline. Every PCB must have this. Example: create_board_outline(width=50, height=30)

Inputs: width (required), height (required), x, y. Returns: result

kicad.create_net_classA

[Requires open project] Create a net class with specific trace width and clearance. Example: create_net_class(name='Power', trace_width=0.5, clearance=0.3)

Inputs: name (required), trace_width, clearance. Returns: result

kicad.create_projectA

Create a new KiCad project with .kicad_pro, .kicad_sch, and .kicad_pcb files. Example: create_project(name='my_board', directory='/path/to/dir')

Inputs: name (required), directory (required). Returns: result

kicad.delete_componentC

Delete a component from the schematic by reference.

Inputs: ref (required). Returns: result

kicad.design_summaryA

[Requires open project] Board summary: dimensions, component count, net count, via count, min trace/space. Use before export as a sanity check.

Inputs: no named parameters. Returns: result

kicad.export_bomB

[Requires open project] Export Bill of Materials from the schematic.

Inputs: output_path (required). Returns: result

kicad.export_gerbersA

[Requires open project] Export Gerber manufacturing files. Blocked if DRC has unresolved errors — run kicad.run_drc first.

Inputs: output_dir (required). Returns: result

kicad.export_netlistA

[Requires open project] Export a netlist from the schematic. Use before syncing PCB with schematic.

Inputs: output_path (required). Returns: result

kicad.export_pdfA

[Requires open project] Export schematic or PCB to PDF. Example: export_pdf(output_path='/tmp/sch.pdf', target='schematic')

Inputs: output_path (required), target. Returns: result

kicad.export_svgB

[Requires open project] Export schematic or PCB to SVG. Example: export_svg(output_path='/tmp/sch.svg', target='schematic')

Inputs: output_path (required), target. Returns: result

kicad.fill_zonesA

[Requires open project] Fill all zones. Must be done before DRC or Gerber export.

Inputs: no named parameters. Returns: result

kicad.get_session_stateA

Return current session state: open project, available capabilities. Use this to orient yourself before calling other tools.

Inputs: no named parameters. Returns: result

kicad.get_symbol_infoB

Get detailed info for a specific symbol: pins, properties, datasheet. Example: get_symbol_info(library='Device', symbol='R')

Inputs: library (required), symbol (required). Returns: result

kicad.helpA

Get detailed documentation for a tool or topic. Use when unsure about parameters or workflow. Example: help(topic='workflow')

Inputs: topic (required). Returns: result

kicad.list_componentsA

List all components in the schematic with references, values, and positions.

Inputs: no named parameters. Returns: result

kicad.list_footprintsA

[Requires open project] List all footprints on the PCB with positions and layers.

Inputs: no named parameters. Returns: result

kicad.list_projectsB

List KiCad projects (.kicad_pro files) in a directory. Example: list_projects(directory='/home/user/projects')

Inputs: directory (required). Returns: result

kicad.move_componentC

Move a component to a new position.

Inputs: ref (required), x (required), y (required). Returns: result

kicad.open_projectA

Open an existing KiCad project. Sets session context for all subsequent tools. Example: open_project(path='/path/to/project.kicad_pro')

Inputs: path (required). Returns: result

kicad.place_viaA

[Requires open project] Place a via at a position. Example: place_via(x=105, y=100, drill=0.3, diameter=0.6)

Inputs: x (required), y (required), drill, diameter, +1 more. Returns: result

kicad.route_traceA

[Requires open project] Route a trace between two points. Straight segments only. Example: route_trace(x1=100, y1=100, x2=110, y2=100, width=0.25, layer='F.Cu')

Inputs: x1 (required), y1 (required), x2 (required), y2 (required), +3 more. Returns: result

kicad.run_drcA

[Requires open project] Run Design Rules Check on the PCB. Must pass before exporting Gerbers.

Inputs: output_path (required). Returns: result

kicad.run_ercA

[Requires open project] Run Electrical Rules Check on the schematic. Finds unconnected pins, missing power, etc.

Inputs: output_path (required). Returns: result

kicad.save_projectA

[Requires open project] Save all open project files (schematic + PCB).

Inputs: no named parameters. Returns: result

kicad.search_footprintsC

Search for footprints in KiCad libraries. Example: search_footprints(query='QFP-48', limit=10)

Inputs: query (required), library, limit. Returns: result

kicad.search_symbolsC

Search for symbols (components) in KiCad libraries. Example: search_symbols(query='STM32', limit=10)

Inputs: query (required), library, limit. Returns: result

kicad.set_component_fieldA

Set a custom field on a component (MPN, supplier, tolerance, voltage rating).

Inputs: ref (required), field_name (required), field_value (required). Returns: result

kicad.set_design_rulesB

[Requires open project] Set global design rules: min trace width, clearance, drill size.

Inputs: min_track_width, min_clearance, min_via_drill. Returns: result

kicad.set_referenceC

Set the reference designator of a component.

Inputs: old_ref (required), new_ref (required). Returns: result

kicad.set_valueB

Set the value property of a component. Example: set_value(ref='R1', value='4.7k')

Inputs: ref (required), value (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 39 tools

    Disambiguation4/5

    Most tools have distinct purposes, but some overlap exists: add_line and route_trace both handle drawing on PCB layers, and add_net_label and add_global_label both create net connections, which could cause confusion. However, descriptions clarify their specific contexts (schematic vs. PCB) and use cases, helping agents differentiate them.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with the 'kicad.' prefix, such as add_component, create_project, export_gerbers, and run_drc. This predictability makes it easy for agents to understand and navigate the toolset without naming confusion.

    Tool Count3/5

    With 39 tools, the count is high and may feel heavy for an EDA server, potentially overwhelming agents. While it covers many KiCad operations, it could benefit from consolidation or scoping down to a more manageable set, as some tools are highly specific (e.g., add_no_connect, fill_zones).

    Completeness5/5

    The toolset provides comprehensive coverage for KiCad EDA workflows, including project management, schematic design, PCB layout, validation (ERC/DRC), and export functions. It supports full CRUD operations on components and projects, with no obvious gaps that would hinder agent tasks in this domain.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      A
      maintenance
      MCP servers for KiCad schematic, PCB, symbol, footprint, and project automation, enabling AI-assisted electronic design via tools for read/write, analysis, and exports.
      109
      521 PyPI
      16
      GPL 3.0
    • A
      license
      B
      quality
      B
      maintenance
      An MCP server that enables AI assistants to analyze schematics, inspect PCBs, trace connections, validate designs, and generate embedded code for KiCad projects.
      39
      188
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      An MCP server providing full control over KiCad 10, enabling PCB editing, schematic editing, design data, and production output via natural language.
      102
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      KiCad 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.
      12,892 PyPI
      233
      AGPL 3.0