KiCad Studio¶
KiCad Studio lives in this monorepo under apps/vscode-extension. It should
discover and launch this server through the public CLI and MCP surfaces instead
of importing Python modules from packages/mcp-server.
CLI Contract¶
uvx kicad-mcp-pro --help
uvx kicad-mcp-pro health --json
uvx kicad-mcp-pro doctor --json
uvx kicad-mcp-pro doctor --json --bundle ./mcp-debug.zip
uvx kicad-mcp-pro serve
health --json must succeed when the package is installed, even if KiCad is not
running. doctor --json may report degraded KiCad IPC status but should not
crash for normal diagnosable conditions. KiCad Studio may call the doctor
command directly for setup diagnostics; it does not start the MCP server.
Stable fields for extension consumption:
okschemaVersionstatuspackage.namepackage.versionpython.versionmcp.transport_defaultmcp.profilemcp.hostmcp.portmcp.mount_pathmcp.stateful_httpkicad.cli_pathkicad.cli_foundkicad.versionkicad.ipc_reachableconfig.workspace_rootconfig.project_dirconfig.project_fileconfig.pcb_fileconfig.sch_fileconfig.timeout_msconfig.retriestools.tool_counttools.category_counttools.capability_summarylive_context.availablerecent_errors[]checks[].namechecks[].statuschecks[].messagechecks[].hint
Compatibility¶
| KiCad Studio | kicad-mcp-pro | Notes |
|---|---|---|
| 2.8.x | >=3.5.2,<4.0.0 | Recommended HTTP bridge contract: local port 27185, Streamable HTTP endpoint /mcp, optional legacy /sse only when explicitly enabled |
Recommended HTTP Bridge Environment¶
KICAD_MCP_TRANSPORT=http
KICAD_MCP_HOST=127.0.0.1
KICAD_MCP_PORT=27185
KICAD_MCP_CORS_ORIGINS=vscode-webview://kicad-studio
KICAD_MCP_AUTH_TOKEN=replace-with-local-token
KICAD_MCP_STUDIO_WATCH_DIR=/absolute/path/to/projects
KICAD_MCP_WORKSPACE_ROOT=/absolute/path/to/projects
KICAD_MCP_PROFILE=full
27185 is the recommended Studio bridge port for local setups. The server still defaults to 3334, so set the port explicitly if you want this convention.
Run the bridge directly with the same flags emitted by KiCad Studio:
kicad-mcp-pro --transport http --port 27185
This starts the primary MCP endpoint at http://127.0.0.1:27185/mcp.
/.well-known/mcp-server reports the same endpoint for discovery. Legacy SSE
is intentionally disabled by default; clients that still require
http://127.0.0.1:27185/sse must start the server with
KICAD_MCP_LEGACY_SSE=true and enable their own legacy fallback setting.
Integration Points¶
studio_push_context()pushes active file, DRC errors, selected net/reference, and cursor state into the server.kicad://studio/contextis the resource that agents can read directly.KICAD_MCP_STUDIO_WATCH_DIRwatches for.kicad_proupdates and auto-selects the active project.KICAD_MCP_WORKSPACE_ROOTconstrains project artifact reads and writes for safe extension-driven operation.- The manufacturing release help link used by KiCad Studio is
https://oaslananka.github.io/kicad-mcp/mcp/workflows/manufacturing-export/; the canonical repository publishes that path through the docs workflow.