Seeed-Studio/kicad-mcp-server
🔌 MCP server for KiCad EDA - Analyze schematics & PCBs, trace pin-level connections, automate design editing. Works with any MCP-compatible AI tool
0b445be8668ckicad-mcp-server0.1.0 in pyproject.tomlPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 50 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
Top risks in plain words
- HIGHTools
add_component_from_library,add_global_label,add_hierarchical_label,add_labeland 10 more read or write any file path by design: an agent steered by prompt injection can use them that way.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it only the folder it needs
add_component_from_library,add_global_label,add_hierarchical_label,add_labeland 10 more can read or write any file path. Mount a single project folder, read-only where you can. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
add_component_from_library,add_global_label,add_hierarchical_labeland 11 more, switch them off. - Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 47 tools, 1 resource. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
add_component_from_library, add_global_label, add_hierarchical_label, add_label, add_wire, analyze_hierarchical_nets and 19 moreadd_component_from_library, add_global_label, add_hierarchical_label, analyze_hierarchical_nets, analyze_pin_functions, create_kicad_project and 17 morecreate_kicad_project, download_registry_partNo tool was seen to: start other programs on the machine; read passwords, tokens or keys; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files25 tools · add_component_from_library, add_global_label, add_hierarchical_label +22
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (48: 47 tools, 1 resource)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
add_component_from_librarytool Add a component from KiCad's built-in library to the schematic.FilesNetworkoutside textReads/writes files
Add a component from KiCad's built-in library to the schematic.
add_global_labeltool Add a global label on a component pin (project-wide connection).FilesNetworkoutside textReads/writes files
Add a global label on a component pin (project-wide connection).
Global labels connect same-named signals anywhere in the whole
hierarchy regardless of sheets — useful for power-style rails and
cross-cutting signals where a hierarchical parent/child chain would
be awkward.
Args:
file_path: Path to the .kicad_sch file.
reference: Component reference (e.g. 'U1').
pin: Pin number.
label_name: Global net name (required — globals are named nets).
shape: Electrical direction: input, output, bidirectional,
tri_state or passive.
x/y: Explicit anchor coordinates (overrides reference/pin).
Returns:
Confirmation with the exact anchor position.add_hierarchical_labeltool Add a hierarchical label on a component pin (cross-sheet connection).FilesNetworkoutside textReads/writes files
Add a hierarchical label on a component pin (cross-sheet connection).
Hierarchical labels are how signals cross sheet boundaries in KiCad: a
label placed in a sub-sheet appears as a same-named pin on the parent
sheet's sheet symbol, connecting the two. Placing them by hand for
every cross-sheet signal is the classic tedium this automates.
The label anchors EXACTLY on the pin (computed from the embedded
symbol geometry incl. rotation and the library-vs-sheet Y flip), so
the connection is electrically valid — verify with generate_netlist.
Args:
file_path: Path to the .kicad_sch file (the SUB-sheet for signals
going up to its parent).
reference: Component reference (e.g. 'U1').
pin: Pin number.
label_name: Label text; defaults to the reference+pin when empty.
shape: Electrical direction: input, output, bidirectional,
tri_state or passive (ERC uses this).
x/y: Explicit anchor coordinates (overrides reference/pin).
Returns:
Confirmation with the exact anchor position.add_labeltool Add a local label (text label) to the schematic.Filesoutside textReads/writes files
Add a local label (text label) to the schematic.
add_wiretool Add a wire (connection line) to the schematic.Filesoutside textReads/writes files
Add a wire (connection line) to the schematic.
analyze_hierarchical_netstool Analyze all nets in hierarchical schematic design.FilesNetworkoutside textReads/writes files
Analyze all nets in hierarchical schematic design.
This tool analyzes network connections across the entire hierarchy,
showing how signals flow between main schematic and sub-sheets.
Args:
file_path: Path to main .kicad_sch file
filter_pattern: Optional regex pattern to filter net names
show_hierarchy: Whether to show hierarchical structure (default: True)
Returns:
Complete hierarchical net analysiscreate_kicad_projecttool Create a new KiCad project.FilesNetworkEnv varsoutside textReads/writes files
Create a new KiCad project.
By default the project is empty: a blank board, schematic and project
file written by the installed KiCad itself, so they are in its native
file format.
Args:
project_path: Directory path for the project
project_name: Name of the project (without extension)
title: Optional project title (defaults to project_name)
company: Optional company name
template: "empty" (default) for a blank project, or a KiCad template
to start from, by name (e.g. "Arduino_Uno", "RaspberryPi-HAT") or
as a path to a template directory. Templates come with their own
board outline, footprints and schematic.
Returns:
Confirmation message with created filesexport_erc_reporttool Export ERC report to file.FilesNetworkoutside textReads/writes files
Export ERC report to file.
The report is the kicad-cli ERC JSON report.
Args:
schematic_path: Path to .kicad_sch file
output_path: Optional output file path (default: schematic_name_erc_report.json)
Returns:
Confirmation with output file locationgenerate_device_treetool Generate device tree source (.dts) file from schematic.FilesNetworkoutside textReads/writes files
Generate device tree source (.dts) file from schematic.
This function analyzes a KiCad schematic and generates a device tree
source file compatible with the specified SOC family.
Args:
schematic_path: Path to .kicad_sch file
target_soc: Target SOC family (stm32f4, esp32, nrf52)
output_path: Optional output file path
Returns:
Generated device tree source code or error messageget_erc_violationstool Get filtered ERC violations from schematic.FilesNetworkoutside textReads/writes files
Get filtered ERC violations from schematic.
Args:
schematic_path: Path to .kicad_sch file
severity: Filter by severity ('error', 'warning', '') for all
Returns:
Filtered list of ERC violationsrun_erctool Run Electrical Rules Check (ERC) on schematic.FilesNetworkoutside textReads/writes files
Run Electrical Rules Check (ERC) on schematic.
Checks for:
- Unconnected pins
- Power conflicts
- Multiple outputs on same net
- Pin type mismatches
Args:
schematic_path: Path to .kicad_sch file
Returns:
ERC report with violations and recommendationssearch_components_by_typetool Search for components by type (OLED, sensor, display, etc.).FilesNetworkoutside textReads/writes files
Search for components by type (OLED, sensor, display, etc.).
This tool intelligently searches for components by their type, value,
footprint, or network connections to identify specific component categories.
Args:
file_path: Path to .kicad_sch file
component_type: Type of component to search for (e.g., 'OLED', 'sensor', 'display', 'SPI', 'I2C')
search_in_subsheets: Whether to search in hierarchical subsheets (default: True)
Returns:
Formatted list of matching components with their connections and detailssetup_pcb_layouttool Initialize an empty PCB with the specified board outline dimensions.FilesNetworkoutside textReads/writes files
Initialize an empty PCB with the specified board outline dimensions.
Writes a .kicad_pcb next to the schematic containing only the board
outline (Edge.Cuts), a standard 2-layer stack and default design rules —
no footprints, tracks or nets. KiCad stores .kicad_pcb coordinates in
millimetres (plain decimals), so dimensions are emitted directly in mm.
Args:
schematic_path: Path to the .kicad_sch the board is based on (used to
derive the .kicad_pcb path and board title).
width: Board width in the given unit.
height: Board height in the given unit.
unit: "mm" (default) or "mil".
Returns:
Confirmation reporting the actual outline size, layer count and
element counts read back from the written file.trace_hierarchical_connectiontool Trace component connections across hierarchical schematics.FilesNetworkoutside textReads/writes files
Trace component connections across hierarchical schematics.
This tool traces connections through the entire schematic hierarchy,
including sub-sheets, to show complete signal paths.
Args:
file_path: Path to main .kicad_sch file
reference: Component reference designator (e.g., 'U1', 'R5')
pin_number: Optional pin number to trace (if empty, trace all pins)
Returns:
Complete connection trace through hierarchyget_configresource Get current server configuration.
Get current server configuration.
analyze_pcb_netstool Analyze nets in a KiCad PCB file.
Analyze nets in a KiCad PCB file.
Provides track width distribution, via distribution, per-net track
length ranking, layer coverage, and design rule comparison.
Args:
file_path: Path to .kicad_pcb file
Returns:
Net information and routing analysis from PCBanalyze_pcb_power_integritytool Analyze power integrity: copper zones, power net routing, GND coverage.
Analyze power integrity: copper zones, power net routing, GND coverage.
Args:
file_path: Path to .kicad_pcb file
Returns:
Power integrity analysis reportanalyze_pcb_signal_integritytool Analyze signal integrity: diff pair matching, RF traces, critical nets.
Analyze signal integrity: diff pair matching, RF traces, critical nets.
Auto-detects differential pairs (e.g., USB_N/USB_P, DP/DN) and checks
length matching. Reports RF trace dimensions and longest signal nets.
Args:
file_path: Path to .kicad_pcb file
net_name: Optional specific net to analyze in detail
Returns:
Signal integrity analysis reportanalyze_pin_functionstool Analyze pin functions and detect conflicts.FilesNetworkoutside text
Analyze pin functions and detect conflicts.
This function analyzes schematic to determine pin functions by:
- Examining net names to infer functionality
- Identifying MCU components and their pin mappings
- Detecting potential pin conflicts
Args:
schematic_path: Path to .kicad_sch file
reference: Optional component reference (e.g., 'U1') to analyze specific component
Returns:
Detailed pin function analysis reportdetect_pin_conflictstool Detect pins with conflicting electrical connections.
Detect pins with conflicting electrical connections.
This function checks for:
- Multiple outputs on same net
- Power-to-power connections
- Unconnected input pins
- Pin type mismatches
Args:
schematic_path: Path to .kicad_sch file
Returns:
Detailed conflict detection reportdownload_registry_parttool Download a registry part's files into a local directory.Env vars
Download a registry part's files into a local directory.
Downloads are HTTPS-only, restricted to the registry's own hosts,
capped at 50 MB per file, and saved with extension-checked filenames.
Args:
part_id: Registry part id (from search_parts_registry)
save_dir: Existing local directory (e.g. the project library folder)
formats: Which files — any of "footprint", "symbol", "step",
"preview" (default: footprint + symbol)
Returns:
Saved file paths, or an errorexport_drc_reporttool Export DRC report to file.FilesNetworkoutside text
Export DRC report to file.
The report is the kicad-cli DRC JSON report.
Args:
pcb_path: Path to .kicad_pcb file
output_path: Optional output file path (default: pcb_name_drc_report.json)
Returns:
Confirmation with output file locationexport_gerbertool Export a PCB to Gerber + drill files for fabrication via kicad-cli.
Export a PCB to Gerber + drill files for fabrication via kicad-cli.
Runs KiCad's command-line exporter against the .kicad_pcb and reports the
files actually produced. Requires KiCad 7+ installed with kicad-cli on PATH.
Args:
pcb_path: Path to the .kicad_pcb file.
output_dir: Directory for output (default: a "gerber" folder next to
the PCB).
Returns:
Confirmation listing the generated files, or an actionable error.export_pcb_3dtool Export the PCB as a STEP 3D model for mechanical CAD handoff.
Export the PCB as a STEP 3D model for mechanical CAD handoff.
Includes board body, footprints and their assigned 3D models.
Args:
pcb_path: Path to the .kicad_pcb file.
output_path: Output .step file (default: <pcb>.step next to the PCB).
board_only: Export only the board body, without component models.
Returns:
Confirmation with the output path and file size.export_schematic_svgtool Export schematic pages to SVG images.
Export schematic pages to SVG images.
Renders every page of the (hierarchical) schematic as an SVG file via
kicad-cli. SVGs are vector graphics — clients and humans can zoom into
any detail without quality loss.
Args:
schematic_path: Path to the root .kicad_sch file.
output_dir: Output directory (default: <schematic>_svg/ next to it).
Returns:
Confirmation listing the generated SVG files.extract_gpio_configtool Extract GPIO pin configurations from schematic.
Extract GPIO pin configurations from schematic.
Args:
schematic_path: Path to .kicad_sch file
soc_family: Optional SOC family filter
Returns:
GPIO configuration reportextract_i2c_devicestool Extract I2C bus and device configurations.FilesNetworkoutside text
Extract I2C bus and device configurations.
Args:
schematic_path: Path to .kicad_sch file
Returns:
I2C device configuration reportextract_pinmux_configtool Extract pin multiplexing configuration for MCUs.FilesNetworkoutside text
Extract pin multiplexing configuration for MCUs.
This function extracts pin multiplexing (pinmux) configuration
for MCU components, showing which peripherals are assigned to which pins.
Args:
schematic_path: Path to .kicad_sch file
component_type: Optional MCU type filter (e.g., 'stm32', 'esp32', 'nrf52')
Returns:
Detailed pinmux configuration reportextract_power_domainstool Extract power domain and regulator configurations.
Extract power domain and regulator configurations.
Args:
schematic_path: Path to .kicad_sch file
Returns:
Power domain configuration reportextract_spi_devicestool Extract SPI bus and device configurations.
Extract SPI bus and device configurations.
Args:
schematic_path: Path to .kicad_sch file
Returns:
SPI device configuration reportfind_tracks_by_nettool Find track segments belonging to a specific net.
Find track segments belonging to a specific net.
Args:
file_path: Path to .kicad_pcb file
net_name: Name of the net to search for
Returns:
Track information for the specified net with length analysisgenerate_netlisttool Generate KiCad netlist from schematic file.
Generate KiCad netlist from schematic file.
Args:
schematic_path: Path to .kicad_sch file
Returns:
Path to generated .xml netlist fileget_drc_violationstool Get filtered DRC violations from PCB.FilesNetworkoutside text
Get filtered DRC violations from PCB.
Args:
pcb_path: Path to .kicad_pcb file
violation_type: Filter by type (e.g., 'clearance', 'spacing', '') for all
Returns:
Filtered list of DRC violationsget_netlist_componentstool Get all components from netlist with their network connections.
Get all components from netlist with their network connections.
Args:
netlist_path: Path to .xml netlist file
filter_ref: Optional reference filter (e.g., 'R', 'U', 'C')
Returns:
List of components with their net connectionsget_netlist_netstool Get all nets from netlist file.FilesNetworkoutside text
Get all nets from netlist file.
Args:
netlist_path: Path to .xml netlist file
filter_pattern: Optional regex pattern to filter net names
Returns:
List of all nets with their connectionsget_pcb_statisticstool Get statistics about a KiCad PCB design.FilesNetworkoutside text
Get statistics about a KiCad PCB design.
Args:
file_path: Path to .kicad_pcb file
Returns:
PCB statistics and metricsget_registry_parttool Get the full registry record for one part.
Get the full registry record for one part.
Includes download URLs (footprint/symbol/3D), datasheet link, dimension
provenance and field reports from real builds.
Args:
part_id: Registry part id (from search_parts_registry)
Returns:
JSON part recordget_schematic_infotool Get general information about a schematic file.FilesNetworkoutside text
Get general information about a schematic file.
Args:
file_path: Path to .kicad_sch file
Returns:
Schematic metadata and statisticsget_symbol_detailstool Get detailed information about a specific symbol/component.FilesNetworkoutside text
Get detailed information about a specific symbol/component.
Args:
file_path: Path to .kicad_sch file
reference: Component reference designator (e.g., 'R1', 'U1')
Returns:
Detailed component information including pins and propertieslist_pcb_footprintstool List all footprints in a KiCad PCB file.
List all footprints in a KiCad PCB file.
Args:
file_path: Path to .kicad_pcb file
filter_layer: Optional filter by layer (e.g., 'F.Cu', 'B.Cu')
Returns:
Formatted list of footprintslist_schematic_componentstool List all components in a KiCad schematic file.
List all components in a KiCad schematic file.
Args:
file_path: Path to .kicad_sch file
filter_type: Optional filter by component type prefix (e.g., 'R', 'C', 'U', 'IC')
filter_value: Optional filter by component value (partial match)
filter_dnp: Optional filter by DNP flag (True=only DNP, False=only non-DNP)
Returns:
Formatted list of components with their propertieslist_schematic_netstool List all nets in a KiCad schematic.
List all nets in a KiCad schematic.
Args:
file_path: Path to .kicad_sch file
filter_power: If True, only show power nets (VCC, GND, etc.)
Returns:
Formatted list of netsrender_pcbtool Render a 3D view of the PCB to a PNG image.
Render a 3D view of the PCB to a PNG image.
Produces a photorealistic render of the assembled board via kicad-cli
(footprints must have 3D models assigned; otherwise plain board geometry
is rendered). Returns the image itself, so multimodal clients show it
directly — useful for AI-assisted layout review.
Args:
pcb_path: Path to the .kicad_pcb file.
side: Camera side: top, bottom, left, right, front, back.
output_path: Output PNG (default: <pcb>_render_<side>.png next to
the PCB).
width: Image width in pixels.
height: Image height in pixels.
quality: Render quality: basic (fast) or high (slower, raytraced).
rotate: Optional board rotation 'X,Y,Z' in degrees for isometric
views, e.g. '-30,0,25'.
Returns:
The rendered image, or an error message string.run_drctool Run Design Rules Check (DRC) on PCB.FilesNetworkoutside text
Run Design Rules Check (DRC) on PCB.
Checks for:
- Clearance violations
- Track spacing violations
- Missing connections
- Pad/footprint overlaps
- Board edge constraints
Args:
pcb_path: Path to .kicad_pcb file
Returns:
DRC report with violations and locationssearch_parts_registrytool Search an open registry of 21,000+ verified KiCad parts (no login).
Search an open registry of 21,000+ verified KiCad parts (no login).
Matches part id, name, family, category, manufacturer and keywords.
Example queries: "usb c connector", "0402 capacitor", "nrf9151".
Args:
query: Search terms (all terms must match; '*' wildcards allowed)
limit: Maximum number of results (default 20)
Returns:
JSON list of matches (id, name, family, page URL)search_symbolstool Search for symbols/components matching a pattern.FilesNetworkoutside text
Search for symbols/components matching a pattern.
Args:
file_path: Path to .kicad_sch file
pattern: Search pattern (supports regex)
search_fields: Fields to search: 'all', 'reference', 'value', 'library'
Returns:
List of matching componentstrace_netlist_connectiontool Trace component connections using netlist file (most accurate).
Trace component connections using netlist file (most accurate).
Args:
netlist_path: Path to .xml netlist file
reference: Component reference (e.g., 'R16')
pin_number: Optional pin number (e.g., '1'). If empty, trace all pins.
Returns:
Detailed connection information from netlistvalidate_pin_configurationtool Validate pin configuration conflicts for device tree generation.
Validate pin configuration conflicts for device tree generation.
This function validates that the pin configuration is suitable for
device tree generation and reports any conflicts or issues.
Args:
schematic_path: Path to .kicad_sch file
Returns:
Validation report with conflicts and recommendationsText the model reads (48)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
generate_device_tree tool
Generate device tree source (.dts) file from schematic.
This function analyzes a KiCad schematic and generates a device tree
source file compatible with the specified SOC family.
Args:
schematic_path: Path to .kicad_sch file
target_soc: Target SOC family (stm32f4, esp32, nrf52)
output_path: Optional output file path
Returns:
Generated device tree source code or error messageextract_gpio_config tool
Extract GPIO pin configurations from schematic.
Args:
schematic_path: Path to .kicad_sch file
soc_family: Optional SOC family filter
Returns:
GPIO configuration reportextract_i2c_devices tool
Extract I2C bus and device configurations.
Args:
schematic_path: Path to .kicad_sch file
Returns:
I2C device configuration reportextract_spi_devices tool
Extract SPI bus and device configurations.
Args:
schematic_path: Path to .kicad_sch file
Returns:
SPI device configuration reportextract_power_domains tool
Extract power domain and regulator configurations.
Args:
schematic_path: Path to .kicad_sch file
Returns:
Power domain configuration reportvalidate_pin_configuration tool
Validate pin configuration conflicts for device tree generation.
This function validates that the pin configuration is suitable for
device tree generation and reports any conflicts or issues.
Args:
schematic_path: Path to .kicad_sch file
Returns:
Validation report with conflicts and recommendationstrace_hierarchical_connection tool
Trace component connections across hierarchical schematics.
This tool traces connections through the entire schematic hierarchy,
including sub-sheets, to show complete signal paths.
Args:
file_path: Path to main .kicad_sch file
reference: Component reference designator (e.g., 'U1', 'R5')
pin_number: Optional pin number to trace (if empty, trace all pins)
Returns:
Complete connection trace through hierarchyanalyze_hierarchical_nets tool
Analyze all nets in hierarchical schematic design.
This tool analyzes network connections across the entire hierarchy,
showing how signals flow between main schematic and sub-sheets.
Args:
file_path: Path to main .kicad_sch file
filter_pattern: Optional regex pattern to filter net names
show_hierarchy: Whether to show hierarchical structure (default: True)
Returns:
Complete hierarchical net analysisgenerate_netlist tool
Generate KiCad netlist from schematic file.
Args:
schematic_path: Path to .kicad_sch file
Returns:
Path to generated .xml netlist filetrace_netlist_connection tool
Trace component connections using netlist file (most accurate).
Args:
netlist_path: Path to .xml netlist file
reference: Component reference (e.g., 'R16')
pin_number: Optional pin number (e.g., '1'). If empty, trace all pins.
Returns:
Detailed connection information from netlistget_netlist_nets tool
Get all nets from netlist file.
Args:
netlist_path: Path to .xml netlist file
filter_pattern: Optional regex pattern to filter net names
Returns:
List of all nets with their connectionsget_netlist_components tool
Get all components from netlist with their network connections.
Args:
netlist_path: Path to .xml netlist file
filter_ref: Optional reference filter (e.g., 'R', 'U', 'C')
Returns:
List of components with their net connectionssearch_parts_registry tool
Search an open registry of 21,000+ verified KiCad parts (no login).
Matches part id, name, family, category, manufacturer and keywords.
Example queries: "usb c connector", "0402 capacitor", "nrf9151".
Args:
query: Search terms (all terms must match; '*' wildcards allowed)
limit: Maximum number of results (default 20)
Returns:
JSON list of matches (id, name, family, page URL)get_registry_part tool
Get the full registry record for one part.
Includes download URLs (footprint/symbol/3D), datasheet link, dimension
provenance and field reports from real builds.
Args:
part_id: Registry part id (from search_parts_registry)
Returns:
JSON part recorddownload_registry_part tool
Download a registry part's files into a local directory.
Downloads are HTTPS-only, restricted to the registry's own hosts,
capped at 50 MB per file, and saved with extension-checked filenames.
Args:
part_id: Registry part id (from search_parts_registry)
save_dir: Existing local directory (e.g. the project library folder)
formats: Which files — any of "footprint", "symbol", "step",
"preview" (default: footprint + symbol)
Returns:
Saved file paths, or an errorlist_pcb_footprints tool
List all footprints in a KiCad PCB file.
Args:
file_path: Path to .kicad_pcb file
filter_layer: Optional filter by layer (e.g., 'F.Cu', 'B.Cu')
Returns:
Formatted list of footprintsget_pcb_statistics tool
Get statistics about a KiCad PCB design.
Args:
file_path: Path to .kicad_pcb file
Returns:
PCB statistics and metricsanalyze_pcb_nets tool
Analyze nets in a KiCad PCB file.
Provides track width distribution, via distribution, per-net track
length ranking, layer coverage, and design rule comparison.
Args:
file_path: Path to .kicad_pcb file
Returns:
Net information and routing analysis from PCBfind_tracks_by_net tool
Find track segments belonging to a specific net.
Args:
file_path: Path to .kicad_pcb file
net_name: Name of the net to search for
Returns:
Track information for the specified net with length analysisanalyze_pcb_signal_integrity tool
Analyze signal integrity: diff pair matching, RF traces, critical nets.
Auto-detects differential pairs (e.g., USB_N/USB_P, DP/DN) and checks
length matching. Reports RF trace dimensions and longest signal nets.
Args:
file_path: Path to .kicad_pcb file
net_name: Optional specific net to analyze in detail
Returns:
Signal integrity analysis reportanalyze_pcb_power_integrity tool
Analyze power integrity: copper zones, power net routing, GND coverage.
Args:
file_path: Path to .kicad_pcb file
Returns:
Power integrity analysis reportsetup_pcb_layout tool
Initialize an empty PCB with the specified board outline dimensions.
Writes a .kicad_pcb next to the schematic containing only the board
outline (Edge.Cuts), a standard 2-layer stack and default design rules —
no footprints, tracks or nets. KiCad stores .kicad_pcb coordinates in
millimetres (plain decimals), so dimensions are emitted directly in mm.
Args:
schematic_path: Path to the .kicad_sch the board is based on (used to
derive the .kicad_pcb path and board title).
width: Board width in the given unit.
height: Board height in the given unit.
unit: "mm" (default) or "mil".
Returns:
Confirmation reporting the actual outline size, layer count and
element counts read back from the written file.export_gerber tool
Export a PCB to Gerber + drill files for fabrication via kicad-cli.
Runs KiCad's command-line exporter against the .kicad_pcb and reports the
files actually produced. Requires KiCad 7+ installed with kicad-cli on PATH.
Args:
pcb_path: Path to the .kicad_pcb file.
output_dir: Directory for output (default: a "gerber" folder next to
the PCB).
Returns:
Confirmation listing the generated files, or an actionable error.analyze_pin_functions tool
Analyze pin functions and detect conflicts.
This function analyzes schematic to determine pin functions by:
- Examining net names to infer functionality
- Identifying MCU components and their pin mappings
- Detecting potential pin conflicts
Args:
schematic_path: Path to .kicad_sch file
reference: Optional component reference (e.g., 'U1') to analyze specific component
Returns:
Detailed pin function analysis reportdetect_pin_conflicts tool
Detect pins with conflicting electrical connections.
This function checks for:
- Multiple outputs on same net
- Power-to-power connections
- Unconnected input pins
- Pin type mismatches
Args:
schematic_path: Path to .kicad_sch file
Returns:
Detailed conflict detection reportextract_pinmux_config tool
Extract pin multiplexing configuration for MCUs.
This function extracts pin multiplexing (pinmux) configuration
for MCU components, showing which peripherals are assigned to which pins.
Args:
schematic_path: Path to .kicad_sch file
component_type: Optional MCU type filter (e.g., 'stm32', 'esp32', 'nrf52')
Returns:
Detailed pinmux configuration reportcreate_kicad_project tool
Create a new KiCad project.
By default the project is empty: a blank board, schematic and project
file written by the installed KiCad itself, so they are in its native
file format.
Args:
project_path: Directory path for the project
project_name: Name of the project (without extension)
title: Optional project title (defaults to project_name)
company: Optional company name
template: "empty" (default) for a blank project, or a KiCad template
to start from, by name (e.g. "Arduino_Uno", "RaspberryPi-HAT") or
as a path to a template directory. Templates come with their own
board outline, footprints and schematic.
Returns:
Confirmation message with created fileslist_schematic_components tool
List all components in a KiCad schematic file.
Args:
file_path: Path to .kicad_sch file
filter_type: Optional filter by component type prefix (e.g., 'R', 'C', 'U', 'IC')
filter_value: Optional filter by component value (partial match)
filter_dnp: Optional filter by DNP flag (True=only DNP, False=only non-DNP)
Returns:
Formatted list of components with their propertiesget_symbol_details tool
Get detailed information about a specific symbol/component.
Args:
file_path: Path to .kicad_sch file
reference: Component reference designator (e.g., 'R1', 'U1')
Returns:
Detailed component information including pins and propertiessearch_symbols tool
Search for symbols/components matching a pattern.
Args:
file_path: Path to .kicad_sch file
pattern: Search pattern (supports regex)
search_fields: Fields to search: 'all', 'reference', 'value', 'library'
Returns:
List of matching componentslist_schematic_nets tool
List all nets in a KiCad schematic.
Args:
file_path: Path to .kicad_sch file
filter_power: If True, only show power nets (VCC, GND, etc.)
Returns:
Formatted list of netsget_schematic_info tool
Get general information about a schematic file.
Args:
file_path: Path to .kicad_sch file
Returns:
Schematic metadata and statisticsadd_hierarchical_label tool
Add a hierarchical label on a component pin (cross-sheet connection).
Hierarchical labels are how signals cross sheet boundaries in KiCad: a
label placed in a sub-sheet appears as a same-named pin on the parent
sheet's sheet symbol, connecting the two. Placing them by hand for
every cross-sheet signal is the classic tedium this automates.
The label anchors EXACTLY on the pin (computed from the embedded
symbol geometry incl. rotation and the library-vs-sheet Y flip), so
the connection is electrically valid — verify with generate_netlist.
Args:
file_path: Path to the .kicad_sch file (the SUB-sheet for signals
going up to its parent).
reference: Component reference (e.g. 'U1').
pin: Pin number.
label_name: Label text; defaults to the reference+pin when empty.
shape: Electrical direction: input, output, bidirectional,
tri_state or passive (ERC uses this).
x/y: Explicit anchor coordinates (overrides reference/pin).
Returns:
Confirmation with the exact anchor position.add_global_label tool
Add a global label on a component pin (project-wide connection).
Global labels connect same-named signals anywhere in the whole
hierarchy regardless of sheets — useful for power-style rails and
cross-cutting signals where a hierarchical parent/child chain would
be awkward.
Args:
file_path: Path to the .kicad_sch file.
reference: Component reference (e.g. 'U1').
pin: Pin number.
label_name: Global net name (required — globals are named nets).
shape: Electrical direction: input, output, bidirectional,
tri_state or passive.
x/y: Explicit anchor coordinates (overrides reference/pin).
Returns:
Confirmation with the exact anchor position.add_component_from_library tool
Add a component from KiCad's built-in library to the schematic.
add_wire tool
Add a wire (connection line) to the schematic.
add_label tool
Add a local label (text label) to the schematic.
search_components_by_type tool
Search for components by type (OLED, sensor, display, etc.).
This tool intelligently searches for components by their type, value,
footprint, or network connections to identify specific component categories.
Args:
file_path: Path to .kicad_sch file
component_type: Type of component to search for (e.g., 'OLED', 'sensor', 'display', 'SPI', 'I2C')
search_in_subsheets: Whether to search in hierarchical subsheets (default: True)
Returns:
Formatted list of matching components with their connections and detailsrun_erc tool
Run Electrical Rules Check (ERC) on schematic.
Checks for:
- Unconnected pins
- Power conflicts
- Multiple outputs on same net
- Pin type mismatches
Args:
schematic_path: Path to .kicad_sch file
Returns:
ERC report with violations and recommendationsrun_drc tool
Run Design Rules Check (DRC) on PCB.
Checks for:
- Clearance violations
- Track spacing violations
- Missing connections
- Pad/footprint overlaps
- Board edge constraints
Args:
pcb_path: Path to .kicad_pcb file
Returns:
DRC report with violations and locationsget_erc_violations tool
Get filtered ERC violations from schematic.
Args:
schematic_path: Path to .kicad_sch file
severity: Filter by severity ('error', 'warning', '') for all
Returns:
Filtered list of ERC violationsget_drc_violations tool
Get filtered DRC violations from PCB.
Args:
pcb_path: Path to .kicad_pcb file
violation_type: Filter by type (e.g., 'clearance', 'spacing', '') for all
Returns:
Filtered list of DRC violationsexport_erc_report tool
Export ERC report to file.
The report is the kicad-cli ERC JSON report.
Args:
schematic_path: Path to .kicad_sch file
output_path: Optional output file path (default: schematic_name_erc_report.json)
Returns:
Confirmation with output file locationexport_drc_report tool
Export DRC report to file.
The report is the kicad-cli DRC JSON report.
Args:
pcb_path: Path to .kicad_pcb file
output_path: Optional output file path (default: pcb_name_drc_report.json)
Returns:
Confirmation with output file locationrender_pcb tool
Render a 3D view of the PCB to a PNG image.
Produces a photorealistic render of the assembled board via kicad-cli
(footprints must have 3D models assigned; otherwise plain board geometry
is rendered). Returns the image itself, so multimodal clients show it
directly — useful for AI-assisted layout review.
Args:
pcb_path: Path to the .kicad_pcb file.
side: Camera side: top, bottom, left, right, front, back.
output_path: Output PNG (default: <pcb>_render_<side>.png next to
the PCB).
width: Image width in pixels.
height: Image height in pixels.
quality: Render quality: basic (fast) or high (slower, raytraced).
rotate: Optional board rotation 'X,Y,Z' in degrees for isometric
views, e.g. '-30,0,25'.
Returns:
The rendered image, or an error message string.export_pcb_3d tool
Export the PCB as a STEP 3D model for mechanical CAD handoff.
Includes board body, footprints and their assigned 3D models.
Args:
pcb_path: Path to the .kicad_pcb file.
output_path: Output .step file (default: <pcb>.step next to the PCB).
board_only: Export only the board body, without component models.
Returns:
Confirmation with the output path and file size.export_schematic_svg tool
Export schematic pages to SVG images.
Renders every page of the (hierarchical) schematic as an SVG file via
kicad-cli. SVGs are vector graphics — clients and humans can zoom into
any detail without quality loss.
Args:
schematic_path: Path to the root .kicad_sch file.
output_dir: Output directory (default: <schematic>_svg/ next to it).
Returns:
Confirmation listing the generated SVG files.get_config resource
Get current server configuration.
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 48 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 48 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file path HIGH9 findings in add_global_label, add_hierarchical_label, analyze_hierarchical_nets, create_kicad_project and more; 8 more to review
- Requests any addressNo tool sends a request to an address the caller supplies — 48 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 48 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 48 capabilities; 47 more call code the scanner could not follow, where it may happen
- Tools that touch files25 of 48 capabilities touch files; 22 more call code the scanner could not follow, where it may happen
- Tools that call the network23 of 48 capabilities call the network; 24 more call code the scanner could not follow, where it may happen
Where the code is: 48 handlers in 14 files at commit 0b445be8668c
src/kicad_mcp_server/server.pyget_configsrc/kicad_mcp_server/tools/device_tree.pygenerate_device_tree, extract_gpio_config, extract_i2c_devices, extract_spi_devices, extract_power_domains, validate_pin_configurationsrc/kicad_mcp_server/tools/hierarchical_analysis.pytrace_hierarchical_connection, analyze_hierarchical_netssrc/kicad_mcp_server/tools/netlist.pygenerate_netlist, trace_netlist_connection, get_netlist_nets, get_netlist_componentssrc/kicad_mcp_server/tools/parts_registry.pysearch_parts_registry, get_registry_part, download_registry_partsrc/kicad_mcp_server/tools/pcb.pylist_pcb_footprints, get_pcb_statistics, analyze_pcb_nets, find_tracks_by_net, analyze_pcb_signal_integrity, analyze_pcb_power_integritysrc/kicad_mcp_server/tools/pcb_layout.pysetup_pcb_layout, export_gerbersrc/kicad_mcp_server/tools/pin_analysis.pyanalyze_pin_functions, detect_pin_conflicts, extract_pinmux_configsrc/kicad_mcp_server/tools/project.pycreate_kicad_projectsrc/kicad_mcp_server/tools/schematic.pylist_schematic_components, get_symbol_details, search_symbols, list_schematic_nets, get_schematic_infosrc/kicad_mcp_server/tools/schematic_editor.pyadd_hierarchical_label, add_global_label, add_component_from_library, add_wire, add_labelsrc/kicad_mcp_server/tools/schematic_search.pysearch_components_by_typesrc/kicad_mcp_server/tools/validation.pyrun_erc, run_drc, get_erc_violations, get_drc_violations, export_erc_report, export_drc_reportsrc/kicad_mcp_server/tools/visualization.pyrender_pcb, export_pcb_3d, export_schematic_svg
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests2 manifests: pyproject.toml, requirements.txt
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 2 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked; requirements.txt: 6 dependency lines carry no exact version, so the installed version was not checked; pin them or add a lockfile
- Known vulnerabilities in production dependenciesNo production dependency with a known advisory
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionfastmcp >=3.2,<4, mcp >=1.27,<2
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 48 capabilities; 47 more call code the scanner could not follow, where it may happen
- Environment variables2 capabilities read environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (0 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
No known vulnerabilities in the production dependencies that could be checked.
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | fastmcp >=3.2,<4, mcp >=1.27,<2 |
| Servers in the code | 1 (kicad-mcp-server) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-10-22 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 3 catalogs (github_search, glama, mcp_toplist) |
|---|---|
| License | not stated |
| Created | 2026-01-25 |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.