Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Codex Kicad

FreeNot checked

A safe, read-first MCP server for KiCad workflows in Codex.

GitHubEmbed

About

A safe, read-first MCP server for KiCad workflows in Codex.

README

Validate License: MIT Python PyPI

A read-first Model Context Protocol server that lets Codex inspect KiCad projects, run review heuristics and ERC/DRC checks through kicad-cli, and — only when explicitly enabled — perform audited, snapshot-backed design edits.

Architecture

Why

Hardware engineers using Codex need a safe bridge between AI assistance and KiCad. This server discovers projects, parses schematics and PCBs into structured data, reviews them for power/decoupling/parity/SI/manufacturing risks, and runs ERC/DRC without modifying design files. Writes require an explicit opt-in flag and a preview/confirm cycle with snapshots and rollback. KiCad remains the source of truth; the MCP provides assistive reporting.

Quick start

Requirements: Python 3.10+, uv, KiCad 8+ with kicad-cli on PATH, and a Codex build with stdio MCP support.

cd mcp
uv venv
uv pip install -e ".[dev]"
$env:KICAD_WORKSPACE = "C:/path/to/your/eda-workspace"
uv run codex-kicad-mcp

Register the server in Codex (see catalog/registration.example.toml for Codex, Claude Desktop, VS Code, and Cursor blocks):

[mcp_servers.kicad]
command = "uv"
args = ["run", "--directory", "C:/path/to/Codex-KiCad/mcp", "codex-kicad-mcp"]
env = { KICAD_WORKSPACE = "C:/path/to/eda-workspace" }

Restart Codex, run codex mcp list, then ask it to list projects and inspect a .kicad_pro file. The complete tool contract is in docs/tool-reference.md. Answers to common setup questions (workspace layout, which tools need KiCad, locale notes, enabling writes) are in docs/faq.md.

Tools

28 registered tools in four groups — the full contract with schemas and boundaries lives in the tool reference:

Group Tools KiCad required
Discovery list_kicad_projects, inspect_project, project_summary No
Read/parse read_schematic, read_pcb, read_hierarchy, read_buses, read_board_metrics, read_layer_stackup, read_zones, read_vias No
CLI exports & checks read_netlist, read_bom, run_kicad_cli_check, kicad_cli_version Yes
Review & writes analyze_power_rails, check_decoupling, cross_probe, compare_schematic_pcb, run_design_review, analyze_signal_integrity, analyze_board_density, check_fabrication_readiness, plus 5 write-API tools netlist reviews: Yes; SI/density: No

All paths are resolved below KICAD_WORKSPACE. Attempts to escape fail before any command starts. See docs/security-model.md for the full trust boundaries.

Repository layout

Path Content
mcp/ Python MCP server source, tests, and skill
catalog/ MCP and skill registry with schema and registration examples
docs/ Tool reference, quick start, FAQ, roadmap, compatibility, security model, and development workflow
scripts/ Workspace and catalog validation

Development

cd mcp
uv pip install -e ".[dev]"
uv run pytest -q            # fixture suite; skips real-project scans without KiCad
uv run pytest --cov         # with coverage
uv run ruff check src tests scripts
uv run mypy src

The real-project scan tests (mcp/tests/test_real_projects.py) copy KiCad's installed demos into a temporary workspace and exercise the whole tool surface with the actual kicad-cli; they skip cleanly when KiCad is absent. Run workspace-level validation from the repository root:

python scripts/validate_workspace.py
python scripts/validate_catalog.py
python scripts/check_links.py

See CONTRIBUTING.md and docs/development-workflow.md for the staged delivery process, docs/roadmap.md for the version plan, and docs/maintenance.md for the component log.

License

MIT

from github.com/w23x0/codex-kicad-mcp

Installing Codex Kicad

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/w23x0/codex-kicad-mcp

FAQ

Is Codex Kicad MCP free?

Yes, Codex Kicad MCP is free — one-click install via Unyly at no cost.

Does Codex Kicad need an API key?

No, Codex Kicad runs without API keys or environment variables.

Is Codex Kicad hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Codex Kicad in Claude Desktop, Claude Code or Cursor?

Open Codex Kicad on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Codex Kicad with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs