How mixelpixx/kicad-mcp-server works
KiCAD MCP Server lets an AI assistant use MCP tools and resources to work with KiCAD projects. The main workflow is client request → TypeScript MCP server and tool handlers → Python command interface → KiCAD APIs or project files → result returned to the client. The product also exposes project/board/library resources, design prompts, symbol and footprint creation, manufacturing integrations, routing, validation, and export. The map follows README capabilities and indexed imports; unsampled command implementations and some wiring are represented at subsystem level.
Main entry points: kicad_interface.py Python command interface · server.ts MCP server · tools Tool handlers · schematic_handlers.py Schematic editing
Components 18
MCP interface
- MCP server
src/server.ts - Tool handlers
src/tools - Project resources
src/resources - Design prompts
src/prompts
Design workflows
- Project management
python/commands/project.py - Schematic editing
python/commands/schematic_handlers.py - Wire connectivity
python/commands/wire_manager.py - Library management
python/commands/library.py - Components and footprints
python/commands/component.py - Board editing
python/commands/board - PCB routing
python/commands/routing.py - Design validation
python/commands/design_rules.py - Manufacturing export
python/commands/export.py
KiCAD command runtime
- Python command interface
python/kicad_interface.py - KiCAD APIs
python/kicad_api
External services
- JLCPCB parts
src/tools/jlcpcb-api.ts - Freerouting
src/tools/freerouting.ts
Other components
- AI assistant
Connections 18
- AI assistant → MCP server: sends requests
- MCP server → Tool handlers: registers tools
src/server.ts - MCP server → Project resources: registers resources
src/resources/index.ts - MCP server → Design prompts: registers prompts
src/prompts/index.ts - MCP server → Python command interface: starts worker
src/server.ts - Tool handlers → Python command interface: dispatches commands
- Python command interface → Project management: routes commands
python/kicad_interface.py - Python command interface → Schematic editing: routes commands
python/kicad_interface.py - Schematic editing → Wire connectivity: delegates wire edits
python/commands/schematic_handlers.py - Python command interface → Library management: routes commands
python/kicad_interface.py - Python command interface → Components and footprints: routes commands
python/kicad_interface.py - Python command interface → Board editing: routes commands
python/kicad_interface.py - Python command interface → PCB routing: routes commands
python/kicad_interface.py - Python command interface → Design validation: routes commands
python/kicad_interface.py - Python command interface → Manufacturing export: routes commands
python/kicad_interface.py - Python command interface → KiCAD APIs: uses backend
python/kicad_interface.py - Tool handlers → JLCPCB parts: offers parts lookup
- Tool handlers → Freerouting: offers autorouting