mcp-server-kicad-tools
Provides KiCad automation tools for parsing and round-tripping KiCad S-expression files, classifying DRC/ERC JSON reports, and generating pin-header footprint S-expressions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-server-kicad-toolsgenerate a 4-pin through-hole header footprint"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
kicad-mcp-tools
Standalone KiCad automation toolkit extracted from the MycoMIDI project.
What is this?
kicad-mcp-tools is a small, stdlib-only Python toolkit for automating common
KiCad-adjacent tasks without depending on a running KiCad instance. It packages
reusable helpers that started life inside MycoMIDI and proved useful enough to
stand alone.
It currently includes:
kicad_mcp_tools.sexpr_cst— lossless KiCad S-expression CST parser and serializerkicad_mcp_tools.atomic_write— same-directory atomic file replacement helperkicad_mcp_tools.drc_classify— DRC/ERC JSON classifier for clean/findings/malformed stateskicad_mcp_tools.pin_header_footprint_gen— simple through-hole pin-header footprint generatorscripts/kicad-cli.sh— pinned Docker wrapper forkicad-clidemo/— tiny sample schematic and PCB inputs for CLI experiments
Related MCP server: mcp-kicad-cli
Why does it exist?
This repository was split out from the hardware-design automation work behind MycoMIDI, a bioelectric-signal-to-MIDI project that needed lightweight, scriptable KiCad tooling during schematic, PCB, and validation workflows.
The extraction keeps that tooling reusable for other projects while preserving credit to the open-source KiCad MCP server work that informed the approach:
Origin and attribution
These files were extracted from MycoMIDI without removing MycoMIDI's own copy. The implementation and attribution headers were preserved from that origin.
The toolkit also preserves attribution to the upstream MIT-licensed projects whose patterns were adapted in MycoMIDI:
See THIRD_PARTY_LICENSES.md for the preserved third-party license text and
provenance notes.
Installation
Once the package is published:
pip install kicad-mcp-toolsFrom source today:
git clone https://github.com/rjmendez/kicad-mcp-tools.git
cd kicad-mcp-tools
pip install -e .Using as an MCP server
Run the stdio server directly from the published package with uvx:
uvx --from kicad-mcp-tools mcp-server-kicad-toolsExample MCP client configuration:
{
"mcpServers": {
"kicad-tools": {
"command": "uvx",
"args": ["--from", "kicad-mcp-tools", "mcp-server-kicad-tools"]
}
}
}Exposed tools:
parse_kicad_sexpr— parse KiCad S-expression text into a structured CST-like tree.roundtrip_kicad_sexpr— re-serialize parsed KiCad S-expression text and report whether it round-trips exactly.classify_drc_report— classify KiCad DRC/ERC JSON asclean,findings,malformed, orunavailable.generate_pin_header_footprint— generate a KiCad.kicad_modpin-header footprint S-expression.
Run tests
python3 -m unittest discover testsQuickstart
from kicad_mcp_tools import generate_electrode_connector_footprint, parse
footprint = generate_electrode_connector_footprint(4)
tree = parse(footprint.encode("utf-8"))
print(tree.lists[0].head) # footprint
print(len(tree.lists[0].find_all("pad"))) # 4This server cannot be deployed
Maintenance
Related MCP Connectors
Search and review real KiCad and Altium PCB designs: schematics, BOMs, netlists, DRC/ERC.
Verified KiCad footprints, symbols & 3D models for AI agents. No signup, CC-BY-4.0, quality-gated.
Electronic component sourcing, BOM management, and PCB design workflows.
Geometry and CAD file metadata extraction for STL, OBJ, PLY, PCD, LAS/LAZ, glTF/GLB.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI tools to create, edit, and inspect KiCAD schematic files, including components, wires, labels, and sheets.MIT
- AlicenseBqualityCmaintenanceEnables KiCad CLI automation via MCP, providing tools for ERC, DRC, BOM export, netlist export, Gerbers, drill files, STEP, IPC-2581, and GLB output.10Apache 2.0
- AlicenseBqualityBmaintenanceEnables AI assistants to interact with KiCAD for PCB design automation, including schematic editing, component placement, routing, DRC/ERC, and export.10025 npm1MIT
- AlicenseBqualityCmaintenanceProvides schematic/PCB analysis, authoring, and SPICE simulation through MCP, enabling direct KiCad file manipulation and verification without requiring KiCad for reading.18MIT