Skip to main content
Glama

KiCad AI — локальная среда Cursor → MCP → KiCad

1. What is this?

Рабочая среда для AI-assisted engineering в KiCad: LLM через MCP создаёт и правит настоящие .kicad_sch / .kicad_pro, проверяет связность, гоняет ERC/DRC и BOM через официальный kicad-cli. SKiDL — опциональный Python-слой; KiCad остаётся источником истины.

Это не генератор картинок и не mock. Схему можно открыть в KiCad 10.

Related MCP server: KiCAD MCP Server

2. Architecture

Cursor Agent  --stdio MCP-->  kicad-ai (whitelist + backup + logs)
                                |                         |
                                v                         v
                         kicad-sch-api 0.5.6          kicad-cli 10.0.6
                                |                     ERC / DRC / netlist
                                +-----> projects/**  (source of truth)

                         SKiDL 2.3.0  --> skidl_lab/  (blocks, tests, generated netlists)
                                          never overwrites projects/*.kicad_sch
  • Schematic engine: пакет kicad-sch-api (реальный S-expression parser/writer).

  • ERC / DRC / BOM / netlist / sch upgrade: C:\Program Files\KiCad\10.0\bin\kicad-cli.exe.

  • SKiDL 2.3.0 (KICAD10): блоки и Python ERC в skidl_lab/ (не пакетный каталог skidl/, чтобы не перекрыть PyPI).

  • Stock kicad-sch-mcp не подключён напрямую: у него нет whitelist путей.

Отклонённые альтернативы и будущие слои: docs/architecture.md.

3. Requirements

Проверено на этой машине:

  • Windows 10 x64

  • KiCad 10.0.6 (C:\Program Files\KiCad\10.0\)

  • Python 3.12 через uv (системный 3.14 не используется)

  • uv 0.12.x

  • Git

4. Installation

В PowerShell из корня репозитория:

cd C:\Cursor_Projects\MCP_KiCad
.\scripts\setup.ps1

Эквивалент вручную:

uv sync --group dev
uv run doctor

5. Configuration

Скопируйте .env.example в .env только если автоопределение KiCad не сработало.

Переменные:

  • KICAD_AI_WORKSPACE — корень workspace (Cursor задаёт сам)

  • KICAD_EXE, KICAD_CLI, KICAD_SYMBOL_DIR, KICAD_FOOTPRINT_DIR — ручные пути

  • KICAD_AI_BACKUP_KEEP — сколько backup хранить (по умолчанию 10)

  • KICAD_AI_LOG_LEVEL — INFO / DEBUG

6. Cursor MCP setup

Файл .cursor/mcp.json запускает .venv/Scripts/python.exe -m kicad_ai.mcp.server (быстрее и совместимо с Cursor; MCP 1.x).

  1. Откройте этот folder как workspace Cursor.

  2. Cursor Settings → MCP → включите сервер kicad.

  3. Подтвердите tools.

  4. Проверка: uv run doctor должен показать [OK] MCP configuration.

Ручной запуск (обычно не нужен):

uv run start-mcp
.\scripts\start-mcp.ps1

7. Creating first project

Скажите агенту:

Создай проект контроллера насоса в projects/user/pump-controller

Агент должен вызвать create_project, затем добавлять символы из библиотек KiCad, соединять пины, сохранить, прогнать ERC.

Пример из репозитория:

uv run kicad-ai example

создаёт projects/examples/mcp-test/ (12V → предохранитель → R-78E5.0-0.5 → 5V + LED). Рядом лежит тестовая плата mcp-test.kicad_pcb (не для производства). kicad-ai example с overwrite перезапишет каталог, после этого плату нужно собрать снова скриптом из §11.

8. Working with existing projects

  1. list_projects / load_schematic

  2. get_schematic_info + inspect_connectivity

  3. Предложить изменение

  4. save_schematic (backup создаётся автоматически)

  5. validate_project (ERC + DRC; нет PCB → DRC SKIPPED)

  6. Показать summary

Проекты пользователя кладите в projects/user/. Каталог projects/ в .gitignore — схемы и платы не попадают в git, только локально. Не пишите вне workspace: MCP это запретит.

9. Backup and rollback

Перед перезаписью существующей схемы MCP копирует проект в backups/<name>/YYYY-MM-DD_HHMMSS/. Старые копии чистятся (последние 10).

.\scripts\backup-project.ps1 projects\examples\mcp-test
uv run kicad-ai backup projects\examples\mcp-test

Откат: tool restore_backup или копирование папки backup обратно в project dir.

10. Validation

uv run doctor
uv run kicad-ai validate projects\examples\mcp-test
uv run pytest -v
.\scripts\open-kicad.ps1

Doctor проверяет KiCad, Python 3.12, uv, Git, kicad-sch-api, SKiDL, .cursor/mcp.json, workspace.

validate гоняет настоящий kicad-cli sch erc и kicad-cli pcb drc. Если .kicad_pcb нет, DRC = SKIPPED (не PASS).

Python-тесты: tests/test_electrical.py (KiCad ERC/DRC/netlist) и skidl_lab/tests/ (SKiDL ERC). SKiDL не пишет схему проекта.

11. PCB

MCP не создаёт .kicad_pcb: ни автоматически после схемы, ни по запросу из Cursor. create_project пишет только .kicad_pro + .kicad_sch. Tool run_drc / validate_project при отсутствии платы возвращают SKIPPED (это не PASS и не проверка разводки).

У примеров уже есть тестовые платы (smoke для DRC и 2D/3D render, не Gerber). Пересборка только через pcbnew KiCad 10:

& "C:\Program Files\KiCad\10.0\bin\python.exe" scripts\build_mcp_test_pcb.py
uv run kicad-ai validate projects\examples\mcp-test

& "C:\Program Files\KiCad\10.0\bin\python.exe" scripts\build_oxy_pcb.py
uv run kicad-ai validate projects\oxy\oxy
uv run kicad-ai render-pcb projects\oxy\oxy
uv run kicad-ai render-3d projects\oxy\oxy

mcp-test: F1, U1, R1, D1, 40×26 мм. oxy: F1, J1/J2 (XH2.54), R1, D1, 55×30 мм, GND/GNDA разведены.

Готовую к производству плату MCP не соберёт. Нормальный путь для своих проектов — KiCad GUI:

uv run kicad-ai open projects\examples\mcp-test\mcp-test.kicad_pro
  1. PCB Editor (если файла платы нет, KiCad создаст пустой *.kicad_pcb).

  2. Update PCB from Schematic (F8) — футпринты и нетлист со схемы, не разводка.

  3. Контур, расстановка, дорожки, полигоны, крепёж — руками в pcbnew.

  4. DRC в PCB Editor, затем снова uv run kicad-ai validate … (DRC уже не SKIPPED).

Update PCB from Schematic — не «плата на печать». Gerber / drill / Pick & Place в этой среде не реализованы. Не просите агента имитировать их.

12. skidl_lab

skidl_lab/ — опциональный Python-слой на SKiDL 2.3.0 (KICAD10). Каталог назван skidl_lab, а не skidl: имя skidl занято пакетом PyPI (import skidl vs import skidl_lab).

KiCad-файлы в projects/ остаются источником истины. SKiDL не перезаписывает .kicad_sch / .kicad_pcb / .kicad_pro. Нетлисты только в skidl_lab/generated/.

Путь

Назначение

skidl_lab/blocks/

Переиспользуемые блоки (led_indicator, rail_12v_5v)

skidl_lab/circuits/

Сборки из блоков; mcp_test_equivalent повторяет архитектуру примера, но не заменяет projects/examples/mcp-test

skidl_lab/tests/

SKiDL ERC в pytest

skidl_lab/generated/

Артефакты (gitignore), не схема проекта

MCP: list_skidl_blocks, run_skidl_erc, export_skidl_netlist (отказ, если путь в projects/ или расширение .kicad_sch).

uv run kicad-ai skidl-erc led_indicator
uv run kicad-ai skidl-erc rail_12v_5v

13. Visualization

Картинки строятся из .kicad_sch / .kicad_pcb через kicad-cli, не через AI/Blender/скриншот.

uv run python scripts/render_project.py projects\examples\mcp-test
uv run kicad-ai render-schematic projects\examples\mcp-test
uv run kicad-ai render-pcb projects\examples\mcp-test
uv run kicad-ai render-3d projects\examples\mcp-test

Выход (gitignore): renders/<project>/schematic|pcb|3d/ и renders/render_report.json.

Запрос

Tool

Движок

Покажи схему

render_schematic

kicad-cli sch export svg/pdf → PNG

Покажи плату

render_pcb

kicad-cli pcb export svg

Плата в 3D

render_pcb_3d

kicad-cli pcb render

Весь проект

render_project

всё доступное; нет PCB → SKIPPED

Темы light / dark (dark — presentation invert чёрной туши, геометрия та же). Виды схемы: full и имена из render.yaml (power, indicator, …) — SKIPPED, если на листе нет указанных reference. DPI: preview 150 / docs 300 / large 600. Кадрирование SVG по bounding box + render.margin в миллиметрах (по умолчанию 15, чтобы не резать labels и не оставлять пустой лист).

Авторендер после validation выключен (automation.render_after_validation: false). Устаревший PNG не показывается: *.meta.json хранит source_hash, при изменении схемы рендер пересобирается.

Нет .kicad_pcb — PCB/3D не симулируются. 3D-модели отсутствуют → WARNING, пайплайн продолжается.

14. Troubleshooting

См. docs/troubleshooting.md. Логи: logs/kicad-ai-YYYYMMDD.log (каждая строка начинается с времени). Traceback не скрывается.

15. Example prompts for LLM

  1. Создай проект projects/user/pump-controller с входом 12V, предохранителем и DC-DC 5V.

  2. Прочитай projects/examples/mcp-test и перечисли компоненты и цепи.

  3. Добавь в mcp-test конденсатор 100nF на выход 5V, сохрани backup и покажи connectivity.

  4. Найди в библиотеках KiCad символ предохранителя, не создавай новый.

  5. Соедини выход U1 с net VOUT_5V через label, не считая пересечение проводов соединением.

  6. Прогони validate_project по текущей схеме, объясни ERC и статус DRC (PASS/FAIL/SKIPPED).

  7. Сгенерируй BOM CSV для mcp-test.

  8. Добавь защиту от обратной полярности (диод) на вход 12V, не меняя существующие reference.

  9. Покажи dangling pins и неподключённые power pins.

  10. Сделай backup mcp-test, затем откати последнее изменение.

  11. Прогони SKiDL ERC для блока led_indicator; не пиши из SKiDL в projects/.

  12. Плату проекта не генерируй через MCP. Для mcp-test тестовый .kicad_pcb уже есть; для своих плат — KiCad GUI и Update PCB from Schematic.

  13. Покажи схему mcp-test (render_schematic), не генерируй картинку нейросетью.

  14. Покажи плату mcp-test в 2D и 3D (render_pcb, render_pcb_3d). Если у проекта нет .kicad_pcb — SKIPPED, без фейковой картинки.

Команды Windows:

uv sync
uv run doctor
uv run start-mcp
uv run pytest -v
uv run kicad-ai example
uv run kicad-ai validate projects\examples\mcp-test
uv run kicad-ai skidl-erc led_indicator
uv run python scripts/render_project.py projects\examples\mcp-test
uv run kicad-ai open projects\examples\mcp-test\mcp-test.kicad_pro

Available Tools

28 tools
add_bus_entryA

Add a bus entry to the schematic.

Bus entries connect individual wires to bus wires. They are typically placed at a 45-degree angle and show where a single signal branches off from a multi-bit bus.

Args: position: Entry point as (x, y) tuple in mm rotation: Rotation angle in degrees (0, 90, 180, 270), defaults to 0 ctx: MCP context for progress reporting (optional)

Returns: Dictionary with success status and bus entry information

Examples: >>> # Add bus entry at position with 270 degree rotation >>> result = await add_bus_entry( ... position=(60.0, 50.0), ... rotation=270 ... )

Inputs: position (required), rotation. Returns: object

add_bus_labelB

Add a bus label to the schematic.

Bus labels identify multi-bit signals using range notation. Examples: "DATA[0..7]", "ADDR[0..15]", "RGB[R,G,B]"

Args: text: Label text with bus notation (e.g., "DATA[0..7]") position: Label position as (x, y) tuple in mm rotation: Label rotation in degrees (0, 90, 180, 270), defaults to 0 size: Text size in mm, defaults to 1.27 (KiCAD standard) ctx: MCP context for progress reporting (optional)

Returns: Dictionary with success status and bus label information

Examples: >>> # Add 8-bit data bus label >>> result = await add_bus_label( ... text="DATA[0..7]", ... position=(75.0, 48.0) ... )

>>> # Add RGB bus label
>>> result = await add_bus_label(
...     text="RGB[R,G,B]",
...     position=(100.0, 50.0)
... )

Inputs: text (required), position (required), size, rotation. Returns: object

add_bus_wireA

Add a bus wire between two points.

Bus wires represent multi-bit signal connections (e.g., data buses, address buses). They are visually thicker than regular wires and use different styling in KiCAD.

Args: start: Start point as (x, y) tuple in mm end: End point as (x, y) tuple in mm ctx: MCP context for progress reporting (optional)

Returns: Dictionary with success status and bus wire information

Examples: >>> # Create 8-bit data bus >>> result = await add_bus_wire( ... start=(50.0, 50.0), ... end=(100.0, 50.0) ... )

Inputs: end (required), start (required). Returns: object

add_componentA

Add a component to the current schematic.

Creates a new component with the specified library ID, value, and optional parameters. If no reference is provided, one will be auto-generated based on the component type (e.g., R1, C1, U1). If no position is provided, the component will be auto-placed.

Args: lib_id: Library identifier (e.g., "Device:R", "Amplifier_Operational:TL072") value: Component value or part description (e.g., "10k", "100nF", "TL072") reference: Component reference designator (e.g., "R1", "U2") - auto-generated if None position: Component position as (x, y) tuple in mm - auto-placed if None rotation: Component rotation in degrees (0, 90, 180, or 270), defaults to 0 footprint: PCB footprint identifier (e.g., "Resistor_SMD:R_0603_1608Metric") ctx: MCP context for progress reporting (optional)

Returns: ComponentInfoOutput with component information, or ErrorOutput on failure

Examples: >>> # Add a resistor with auto-generated reference >>> result = await add_component( ... lib_id="Device:R", ... value="10k", ... position=(100.0, 100.0) ... ) >>> print(f"Added {result.reference}")

>>> # Add a capacitor with specific reference and footprint
>>> result = await add_component(
...     lib_id="Device:C",
...     value="100nF",
...     reference="C1",
...     position=(120.0, 100.0),
...     footprint="Capacitor_SMD:C_0603_1608Metric"
... )

Inputs: value (required), lib_id (required), position, rotation, +2 more. Returns: Generic wrapper for non-object return types.

add_junctionA

Add a wire junction at the specified position.

Junctions indicate T-connections where three or more wires meet. They are required in KiCAD when a wire branches into multiple paths.

Args: position: Junction position as (x, y) tuple in mm diameter: Junction diameter in mm (0 = use KiCAD default) ctx: MCP context for progress reporting (optional)

Returns: Dictionary with success status and junction information

Examples: >>> # Add junction at T-connection >>> result = await add_junction( ... position=(100.0, 100.0) ... )

>>> # Add junction with custom diameter
>>> result = await add_junction(
...     position=(150.0, 100.0),
...     diameter=0.8
... )

Inputs: position (required), diameter. Returns: object

add_labelA

Add a net label to the schematic.

Net labels are used to name electrical nets and establish connections between non-physically connected wires with the same label name.

Args: text: Label text (net name) position: Label position as (x, y) tuple in mm rotation: Label rotation in degrees (0, 90, 180, 270), defaults to 0 size: Text size in mm, defaults to 1.27 (KiCAD standard) ctx: MCP context for progress reporting (optional)

Returns: Dictionary with success status and label information

Examples: >>> # Add VCC label >>> result = await add_label( ... text="VCC", ... position=(100.0, 100.0) ... )

>>> # Add label with rotation
>>> result = await add_label(
...     text="GND",
...     position=(150.0, 100.0),
...     rotation=90.0
... )

Inputs: text (required), position (required), size, rotation. Returns: object

add_wireB

Add a wire between two points.

Creates a wire connection between start and end points. Wires are used to connect component pins and establish electrical nets.

Args: start: Start point as (x, y) tuple in mm end: End point as (x, y) tuple in mm ctx: MCP context for progress reporting (optional)

Returns: Dictionary with success status and wire information

Examples: >>> # Connect two points horizontally >>> result = await add_wire( ... start=(100.0, 100.0), ... end=(150.0, 100.0) ... )

>>> # Vertical wire
>>> result = await add_wire(
...     start=(100.0, 100.0),
...     end=(100.0, 150.0)
... )

Inputs: end (required), start (required). Returns: object

connect_componentsB

Connect two component pins with automatic orthogonal routing.

Uses Manhattan-style (orthogonal) routing to create L-shaped or direct wire paths between component pins. Automatically calculates pin positions and generates appropriate wire segments with optional junctions and labels.

Args: from_component: Source component reference (e.g., "R1") from_pin: Source pin number (e.g., "2") to_component: Destination component reference (e.g., "R2") to_pin: Destination pin number (e.g., "1") corner_direction: Routing direction preference: - "auto": Smart heuristic (horizontal if dx >= dy, else vertical) - "horizontal_first": Route horizontally then vertically - "vertical_first": Route vertically then horizontally add_label: Optional net label text to add at start of routing add_junction: Whether to add junction at L-shaped corners (default: True) ctx: MCP context for progress reporting (optional)

Returns: Dictionary with success status and connection information including: - from/to component and pin details with positions - routing type (direct or L-shaped) - segments list with start/end positions - wire_uuids list - junction_uuid (if junction was added) - label_uuid (if label was added)

Examples: >>> # Simple connection with auto routing >>> result = await connect_components("R1", "2", "R2", "1")

>>> # With label and horizontal-first routing
>>> result = await connect_components(
...     "R1", "2", "R2", "1",
...     corner_direction="horizontal_first",
...     add_label="VCC"
... )

>>> # Vertical-first without junction
>>> result = await connect_components(
...     "R1", "1", "C1", "1",
...     corner_direction="vertical_first",
...     add_junction=False
... )

Inputs: to_pin (required), from_pin (required), to_component (required), from_component (required), +3 more. Returns: object

create_schematicC

Create a new blank KiCAD schematic.

Args: name: Project name for the schematic

Returns: Dictionary with success status and schematic information

Examples: >>> result = await create_schematic("MyProject") >>> print(result['message']) Created new schematic: MyProject

Inputs: name (required). Returns: object

filter_componentsA

Filter components by various criteria.

Returns components matching the specified filter criteria. All provided criteria must match (AND logic).

Args: lib_id: Filter by library ID (exact match, e.g., "Device:R") value: Filter by value (exact match, e.g., "10k") value_pattern: Filter by value pattern (substring match, e.g., "10") footprint: Filter by footprint (exact match) ctx: MCP context for progress reporting (optional)

Returns: Dictionary with success status and list of matching components

Examples: >>> # Find all resistors >>> result = await filter_components(lib_id="Device:R") >>> print(f"Found {result['count']} resistors")

>>> # Find all 10k resistors
>>> result = await filter_components(lib_id="Device:R", value="10k")

>>> # Find all components with "100" in value
>>> result = await filter_components(value_pattern="100")

Inputs: value, lib_id, footprint, value_pattern. Returns: object

find_pins_by_nameA

Find pin numbers matching a name pattern.

Supports wildcard patterns (e.g., "CLK*", "IN") for semantic pin lookup. By default, matching is case-insensitive for maximum flexibility.

Args: reference: Component reference designator (e.g., "R1", "U2") name_pattern: Name pattern to search for (e.g., "VCC", "CLK*", "IN") case_sensitive: If True, matching is case-sensitive (default: False) ctx: MCP context for progress reporting (optional)

Returns: Dictionary with pin_numbers list and metadata, or error information

Examples: >>> # Find all clock pins >>> result = await find_pins_by_name("U1", "CLK*") >>> print(f"Clock pins: {result['pin_numbers']}")

>>> # Find power pins (case-insensitive)
>>> result = await find_pins_by_name("U1", "vcc")
>>> print(f"VCC pins: {result['pin_numbers']}")

Inputs: reference (required), name_pattern (required), case_sensitive. Returns: object

find_pins_by_typeA

Find pin numbers by electrical type.

Returns all pins of a specific electrical type (e.g., all inputs, all power pins).

Args: reference: Component reference designator (e.g., "R1", "U2") pin_type: Electrical type filter. Must be one of: "input", "output", "bidirectional", "passive", "power_in", "power_out", "open_collector", "open_emitter", "tri_state", "unspecified", "free", "no_connect" ctx: MCP context for progress reporting (optional)

Returns: Dictionary with pin_numbers list and metadata, or error information

Examples: >>> # Find all input pins >>> result = await find_pins_by_type("U1", "input") >>> print(f"Input pins: {result['pin_numbers']}")

>>> # Find all power input pins
>>> result = await find_pins_by_type("U1", "power_in")
>>> print(f"Power pins: {result['pin_numbers']}")

Inputs: pin_type (required), reference (required). Returns: object

get_component_pinsA

Get comprehensive pin information for a component.

Returns all pins for the specified component with complete metadata including positions, electrical types, and pin names. Positions are in absolute schematic coordinates accounting for component rotation.

Args: reference: Component reference designator (e.g., "R1", "U2", "IC1") ctx: MCP context for progress reporting (optional)

Returns: ComponentPinsOutput with all pin information, or ErrorOutput on failure

Examples: >>> # Get all pins for a resistor >>> result = await get_component_pins("R1") >>> print(f"Found {result.pin_count} pins")

>>> # Get pins for an IC
>>> result = await get_component_pins("U1")
>>> for pin in result.pins:
...     print(f"Pin {pin.number}: {pin.name} @ ({pin.position.x}, {pin.position.y})")

Inputs: reference (required). Returns: Generic wrapper for non-object return types.

get_schematic_infoB

Get information about the currently loaded schematic.

Returns: Dictionary with schematic metadata

Examples: >>> result = await get_schematic_info() >>> print(f"Components: {result['component_count']}")

Inputs: no named parameters. Returns: object

list_componentsB

List all components in the current schematic.

Returns all components with their complete metadata including position, rotation, footprint, and properties.

Args: ctx: MCP context for progress reporting (optional)

Returns: Dictionary with success status and list of components, or error information

Examples: >>> result = await list_components() >>> print(f"Found {result['count']} components") >>> for comp in result['components']: ... print(f"{comp['reference']}: {comp['value']}")

Inputs: no named parameters. Returns: object

load_schematicB

Load an existing KiCAD schematic file.

Args: file_path: Absolute path to .kicad_sch file

Returns: Dictionary with success status and schematic information

Examples: >>> result = await load_schematic("/path/to/project.kicad_sch") >>> print(f"Loaded: {result['project_name']}")

Inputs: file_path (required). Returns: object

manage_componentsB

Manage components (add, list, get_pins, update, remove).

Args: action: Operation ("add", "list", "get_pins", "update", "remove") lib_id: Library ID (required for "add") value: Component value (required for "add") reference: Reference designator (optional for "add", required for others) position: Position tuple (for "add"/"update") rotation: Rotation in degrees (for "add"/"update") footprint: Footprint string (for "add"/"update") ctx: MCP context (optional)

Returns: Dictionary with component data or error

Inputs: action (required), value, lib_id, position, +3 more. Returns: object

manage_global_labelsC

Manage global labels (add, remove).

Args: action: Operation ("add", "remove") text: Label text (required for "add") position: Position (required for "add") shape: Label shape (optional) rotation: Rotation in degrees (optional) label_uuid: Label UUID (required for "remove") ctx: MCP context (optional)

Returns: Dictionary with label data or error

Inputs: action (required), text, shape, position, +2 more. Returns: object

manage_hierarchical_labelsB

Manage hierarchical labels (add, remove).

Hierarchical labels connect child schematics to parent sheet pins. They enable signal routing through hierarchical sheet boundaries.

Args: action: Operation ("add", "remove") text: Label text (required for "add") position: Position (required for "add") shape: Label shape - "input", "output", "bidirectional", "tri_state", "passive" (optional) rotation: Rotation in degrees (optional) size: Text size in mm (optional, default: 1.27) label_uuid: Label UUID (required for "remove") ctx: MCP context (optional)

Returns: Dictionary with label data or error

Inputs: action (required), size, text, shape, +3 more. Returns: object

manage_labelsB

Manage labels (add, remove).

Args: action: Operation ("add", "remove") text: Label text (required for "add") position: Position (required for "add") rotation: Rotation in degrees (optional) label_uuid: Label UUID (required for "remove") ctx: MCP context (optional)

Returns: Dictionary with label data or error

Inputs: action (required), text, position, rotation, +1 more. Returns: object

manage_powerB

Manage power symbols (add, list, remove).

Args: action: Operation ("add", "list", "remove") power_net: Power net name (required for "add") position: Position (required for "add") symbol_variant: Symbol variant (optional) power_symbol_uuid: Power symbol UUID (required for "remove") ctx: MCP context (optional)

Returns: Dictionary with power data or error

Inputs: action (required), position, power_net, symbol_variant, +1 more. Returns: object

manage_schematicC

Manage schematic project (create, read, save, load).

Args: action: Operation to perform ("create", "read", "save", "load") name: Project name (required for "create") file_path: File path (required for "load"/"save", optional for others) ctx: MCP context for progress reporting (optional)

Returns: Dictionary with success status and operation results

Inputs: action (required), name, file_path. Returns: object

manage_sheetsB

Manage hierarchical sheets (add, set_context, list, remove, add_pin, remove_pin).

Args: action: Operation ("add", "set_context", "list", "remove", "add_pin", "remove_pin") name: Sheet name (required for "add") filename: Filename (required for "add") position: Position (required for "add") size: Size (required for "add") project_name: Project name (optional for "add") parent_uuid: Parent UUID (required for "set_context") sheet_uuid: Sheet UUID (required for "set_context"/"remove"/"add_pin"/"remove_pin") pin_name: Pin name (required for "add_pin") pin_type: Pin electrical type (required for "add_pin") edge: Pin edge placement (required for "add_pin") position_along_edge: Distance along edge in mm (required for "add_pin") pin_uuid: Pin UUID (required for "remove_pin") ctx: MCP context (optional)

Returns: Dictionary with sheet data or error

Inputs: action (required), edge, name, size, +9 more. Returns: object

manage_text_boxesB

Manage text boxes (add, update, remove).

Args: action: Operation ("add", "update", "remove") text: Text content (required for "add", optional for "update") position: Position (required for "add") size: Size tuple (required for "add") rotation: Rotation in degrees (optional) font_size: Font size (optional) text_box_uuid: TextBox UUID (required for "update"/"remove") ctx: MCP context (optional)

Returns: Dictionary with text box data or error

Inputs: action (required), size, text, position, +3 more. Returns: object

manage_wiresC

Manage wires (add, remove).

Args: action: Operation ("add", "remove") start: Start point (required for "add") end: End point (required for "add") wire_uuid: Wire UUID (required for "remove") ctx: MCP context (optional)

Returns: Dictionary with wire data or error

Inputs: action (required), end, start, wire_uuid. Returns: object

remove_componentA

Remove a component from the schematic.

Removes the component with the specified reference designator. This also removes all associated wires and connections.

Args: reference: Component reference designator to remove (e.g., "R1") ctx: MCP context for progress reporting (optional)

Returns: Dictionary with success status

Examples: >>> result = await remove_component("R1") >>> if result['success']: ... print(f"Removed component {result['reference']}")

Inputs: reference (required). Returns: object

save_schematicA

Save the current schematic to disk.

Args: file_path: Optional path to save to. If not provided, saves to original location.

Returns: Dictionary with success status

Examples: >>> # Save to original location >>> result = await save_schematic()

>>> # Save to new location
>>> result = await save_schematic("/path/to/new_location.kicad_sch")

Inputs: file_path. Returns: object

update_componentA

Update component properties.

Updates one or more properties of an existing component. Only provided parameters will be updated.

Args: reference: Component reference designator to update (e.g., "R1") value: New component value (if provided) position: New position as (x, y) tuple in mm (if provided) rotation: New rotation in degrees (0, 90, 180, or 270) (if provided) footprint: New footprint identifier (if provided) ctx: MCP context for progress reporting (optional)

Returns: ComponentInfoOutput with updated component information, or ErrorOutput on failure

Examples: >>> # Update value only >>> result = await update_component("R1", value="20k")

>>> # Update multiple properties
>>> result = await update_component(
...     "R1",
...     value="20k",
...     footprint="Resistor_SMD:R_0805_2012Metric",
...     rotation=90.0
... )

Inputs: reference (required), value, position, rotation, +1 more. Returns: Generic wrapper for non-object return types.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 28 tools

    Disambiguation2/5

    Several specific tools are duplicated by generic manage_* dispatchers (e.g., add_component vs manage_components action=add, add_wire vs manage_wires action=add, create_schematic vs manage_schematic action=create), creating overlapping boundaries. While the standalone tools are mostly distinct from each other, the presence of both sets makes tool selection ambiguous for an agent.

    Naming Consistency5/5

    All 28 tools use snake_case and follow a consistent verb_noun pattern (create_schematic, add_component, remove_component, manage_schematic, etc.). The manage_* tools are a slight structural variation but still fit the same naming convention.

    Tool Count2/5

    28 tools is excessive for this domain, especially since many are redundant duplicates of each other. The surface could be significantly reduced by merging the specific and manage_* families.

    Completeness3/5

    The surface covers core schematic editing: schematic lifecycle, component CRUD, pins, wires, labels, buses, sheets, and power symbols. However, it lacks list/remove for wires, labels, and junctions, and no update operations for wires or labels, leaving notable gaps for an agent inspecting or modifying existing connections.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      Enables AI assistants to interact with KiCAD for PCB design automation, including schematic editing, component placement, routing, DRC/ERC, and export.
      100
      38 npm
      2
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables creating and editing KiCad projects through natural language, including scaffolding projects, placing schematic symbols, wires and labels, and adding PCB footprints, tracks and nets. It also runs ERC/DRC checks and exports to PDF, SVG, netlist, BOM, STEP, DXF, gerbers and drill files via kicad-cli.
      14
      1
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables coding agents to query KiCad project data (components, nets, measurements, DRC/ERC, BOM, renders) and edit open boards live via KiCad's IPC API.
      33
      MIT