Board Analysis
The analysis tools let you extract information from schematics, validate projects, analyze PCB layouts, and get real-time board data from a running KiCad instance via the IPC API.
Quick reference
Section titled “Quick reference”| Task | Example prompt |
|---|---|
| Get schematic info | What components are in my schematic at /path/to/project.kicad_sch? |
| Validate project | Validate my KiCad project at /path/to/project.kicad_pro |
| Analyze PCB layout | Analyze the PCB layout at /path/to/project.kicad_pcb |
| Live board stats | Get real-time board statistics for my project |
| Component details | Show me details for U1 on my board |
Schematic information
Section titled “Schematic information”What components are in my schematic at /path/to/project.kicad_sch?Returns a list of all components with their values, footprints, connection information, and basic schematic structure.
You can also ask targeted questions:
What are all the resistor values in my schematic?Show me all the power connections in my schematicProject validation
Section titled “Project validation”Validate my KiCad project at /path/to/project.kicad_proThe validate_project tool accepts either a .kicad_pro file or a directory containing one. It checks for:
- Missing project files
- Required components (schematic, PCB)
- Valid file formats
- Common structural issues
For schematic-level validation including ERC:
Validate my schematic at /path/to/project.kicad_schThe validate_schematic tool runs a comprehensive health check including ERC, connectivity analysis, and optionally compares against a baseline.
PCB layout analysis
Section titled “PCB layout analysis”Analyze the PCB layout at /path/to/project.kicad_pcbProvides information about board dimensions, layer structure, component placement, trace characteristics, and via usage.
Live board analysis (IPC)
Section titled “Live board analysis (IPC)”These tools require a running KiCad instance with the IPC API enabled.
Real-time statistics
Section titled “Real-time statistics”Get real-time board statistics for my projectThe analyze_board_real_time tool connects to KiCad via IPC and pulls footprint, net, track, and connectivity data to build a comprehensive snapshot of the current board state.
Component details
Section titled “Component details”Show me the details for U1 on my boardThe get_component_details tool retrieves live component information including position, rotation, pad assignments, and net connections.
Connectivity check
Section titled “Connectivity check”Check the routing connectivity of my PCBThe check_connectivity tool reports total nets, routed vs unrouted counts, routing completion percentage, and names of routed nets.
Board statistics
Section titled “Board statistics”What are the statistics for my board?The get_board_statistics tool returns counts of footprints, nets, tracks, and vias, plus a breakdown of component types by reference-designator prefix.
Schematic analysis tools
Section titled “Schematic analysis tools”Connectivity analysis
Section titled “Connectivity analysis”Analyze the net connectivity of my schematicThe analyze_connectivity tool walks every net and reports the pins connected to each one. Useful for understanding how components are wired together.
Pin connection check
Section titled “Pin connection check”Is pin 5 of U1 connected in my schematic?The check_pin_connection tool checks whether a specific pin is connected to a net and what other pins share that net.
Pin verification
Section titled “Pin verification”Verify that U1 pin 5 is connected to R3 pin 1The verify_pins_connected tool confirms whether two specific pins share the same net.
Wiring audit
Section titled “Wiring audit”Audit the wiring for U1 in my schematicThe audit_wiring tool performs a detailed inspection of all connections to a component, checking for missing connections, unexpected connections, and wiring issues.
MCP resources
Section titled “MCP resources”The server provides resources for accessing design information:
kicad://schematic/{schematic_path}— information from a schematic filekicad://pcb/{pcb_path}— information from a PCB file
Combining analysis with other features
Section titled “Combining analysis with other features”- Analyze a schematic to understand component selection
- Check the BOM for component availability and cost
- Run DRC checks to find design rule violations
- Use the export tools for visual overview
Troubleshooting
Section titled “Troubleshooting”Schematic reading errors
Section titled “Schematic reading errors”- Verify the file exists with the
.kicad_schextension - Check that it is a valid KiCad schematic
- Ensure read permissions
- Try analysis on a simpler schematic to isolate the issue
PCB analysis issues
Section titled “PCB analysis issues”- Check the file exists with the
.kicad_pcbextension - Ensure the file is not corrupted
- Check for complex features that might cause parsing issues
IPC connection failures
Section titled “IPC connection failures”- Ensure KiCad is running with the project open
- Verify the IPC API is enabled in KiCad’s settings
- Check that kipy is installed (
uv add kipy) - The tool will report a clear error if the IPC connection fails
Limitations
Section titled “Limitations”- Large designs may not be fully analyzed in a single pass
- KiCad version compatibility — best results with the same KiCad version the server targets
- Structural analysis — the tools analyze structure rather than simulating electrical behavior
- No SPICE — no electrical simulation capability