1. Conduid
  2. AI
  3. Kicad MCP Server
MCP server · AI

Kicad MCP Server

KiCAD MCP is a Model Context Protocol (MCP) implementation that enables Large Language Models (LLMs) like Claude to directly interact with KiCAD for printed circuit board design.

Unclaimed MIT ai
82Strong

Scored 6 hours ago · breakdown

About Kicad MCP Server

Kicad MCP Server is an MCP server published by mixelpixx in the AI category: kiCAD MCP is a Model Context Protocol (MCP) implementation that enables Large Language Models (LLMs) like Claude to directly interact with KiCAD for printed circuit board design. Conduid read 266 tools from its source: add_board_outline, add_board_text, add_component_3d_model, add_copper_keepout, add_copper_pour, add_footprint_3d_model and 260 more. No package is published for it, so it installs from a source checkout.

The repository has 3.7K stars and 490 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v2.9.0 (12 Nov 2026): Board inspection tools, operating modes, autorouting by layer and by net, and a large batch of fixes, most of them found on real boards. It follows v2.8.3 (26 Oct 2026), and the 5 most recent releases go back to v2.8.0 (24 Sep 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions.

Install

From source
git clone https://github.com/mixelpixx/KiCAD-MCP-Server

Tools (266)

add_board_outlineCreate board edge (rectangle, circle, polygon, rounded rectangle)
ParameterTypeDescription
paramsobjectWidth of rectangle
shape *stringShape of the outline
add_board_textAdd text annotations
ParameterTypeDescription
layer *stringLayer to place the text on
position *objectX coordinate
rotationnumberRotation angle in degrees
size *numberText size
stylestringText style
text *stringText content
thicknessnumberLine thickness
add_component_3d_modelAttach a 3D model to one or more PLACED footprints on the open board, live via the KiCAD IPC API (changes appear instantly, no file conflicts). Use this for components already on the PCB; for a library .kicad_mod use add_footprint_3d_model.
ParameterTypeDescription
modelPath *stringPath to the 3D model, e.g. ${KIPRJMOD}/MyProj.3dshapes/MyPart.step
reference *anyFootprint reference(s), e.g. 'D1', ['D1','D2'], or '*' for all footprints
replacebooleanReplace an existing model with the same filename (default true)
add_copper_keepoutAdd a live KiCad rule area that excludes copper zone fill on the selected enabled copper layers. Tracks, vias, pads and footprints remain allowed. Requires an open PCB editor; save the board separately.
ParameterTypeDescription
boardPath *stringExact .kicad_pcb path open in the PCB editor
layers *arrayExact enabled copper layers, for example F.Cu, In1.Cu, B.Cu
name *stringName shown for the rule area
points *arraySimple polygon vertices in millimetres, without a repeated closing vertex
add_copper_pourCreate copper zones/pours
ParameterTypeDescription
clearancenumberClearance in mm
fillTypestringFill style (default solid)
layer *stringPCB layer
minWidthnumberMinimum fill width in mm (default 0.2)
net *stringNet name
outlinearrayArray of {x, y} points defining the pour boundary. If omitted, the board outline is used.
padConnectionstringHow pads of the zone's net connect: thermal reliefs (default), solid copper (for high-current pads), or not at all
prioritynumberZone priority (default 0). Overlapping zones on one layer need distinct priorities; the higher one fills first.
add_footprint_3d_modelAttach (or replace) a 3D model — .step/.stp/.wrl — to a .kicad_mod footprint file. KiCAD path variables like ${KIPRJMOD} or ${KICAD10_3DMODEL_DIR} are supported. Use this after create_footprint so the part shows up in the 3D viewer (Alt+3).
ParameterTypeDescription
footprintPath *stringFull path to the .kicad_mod file, e.g. C:/MyLib.pretty/MyPart.kicad_mod
modelPath *stringPath to the 3D model file. Prefer ${KIPRJMOD}/MyProj.3dshapes/MyPart.step for portability.
replacebooleanReplace an existing model with the same filename (default true)
add_gnd_stitching_viasStitch a ground plane with vias
ParameterTypeDescription
clearancenumberExtra clearance beyond required between each new via and existing copper, in mm (default 0.2).
densifyRadiusnumberHow many grid cells around each ref to try (default 2 = 5x5 candidate field per ref).
densifyRefsarrayReference designators to densify ground around (used by `around_refs`). Targets: MCUs, switching regulators, RF parts.
dryRunbooleanIf true, return the placements that would be made but don't modify the board (default false).
edgeMarginnumberKeep-out from the board edge in mm (default 0.5).
gndNetstringName of the ground net (default: auto-detect GND / GROUND / VSS / /GND).
maxViasnumberCap on total placements across all strategies (default unlimited).
spacingnumberGrid spacing in mm for `grid` and `around_refs` strategies (default 5.0).
strategiesarrayWhich placement strategies to combine (default: ['grid']). Pass ['grid', 'around_refs', 'in_zones'] for full coverage.
viaDrillnumberVia drill diameter in mm (default 0.3). Must be smaller than viaSize.
viaSizenumberVia pad diameter in mm (default 0.6).
add_hierarchical_sheetInsert a hierarchical-sheet reference block into a parent schematic, pointing at an existing sub-sheet file. Adds the sheet box, name/file fields, a sheet_instances path entry on the next page number, and fixes sub-sheet component instance paths so ERC resolves references.
ParameterTypeDescription
positionobjectTop-left of the sheet box in mm (default 50,50)
schematicPath *stringPath to the parent .kicad_sch
sheetNamestringDisplay name for the sheet
sizeobjectSheet box size in mm (default 80x50)
subsheetPath *stringPath to the existing sub-sheet .kicad_sch to reference
add_layerAdd custom layers to stack
ParameterTypeDescription
name *stringLayer name
numbernumberLayer number (for inner layers)
position *stringLayer position
type *stringLayer type
add_library_symbol_propertyAdd or update a custom property (Manufacturer, MPN, LCSC, etc.) on a symbol definition in the lib_symbols section. This makes the property available to all instances of that symbol in the schematic.
ParameterTypeDescription
hidebooleanHide the property (default false)
libraryName *stringSymbol library nickname (e.g. Device, power)
positionobjectPosition {x, y} in mm (default: 0, 0)
propertyName *stringProperty name (e.g. Manufacturer, MPN)
propertyValue *stringProperty value
schematicPath *stringPath to the .kicad_sch file
symbolName *stringSymbol name (e.g. R, C, GND)
add_mounting_holePlace mounting holes
ParameterTypeDescription
diameter *numberDiameter of the hole
padDiameternumberOptional diameter of the pad around the hole
position *objectX coordinate
add_netCreate electrical net
ParameterTypeDescription
name *stringNet name
netClassstringNet class name
add_no_connectMark a pin as deliberately unconnected
ParameterTypeDescription
componentRefstringComponent reference to snap to (e.g. U1, R1). Use with pinNumber.
pinNumberanyPin number or name on componentRef (e.g. '1', 'GND'). Use with componentRef.
positionarrayPosition [x, y] in mm. Required when componentRef/pinNumber are not given.
schematicPath *stringPath to the schematic file
add_schematic_componentPlace symbols from any KiCad library
ParameterTypeDescription
anglenumberRotation angle in degrees (KiCad CCW). 0=vertical resistor, 90=horizontal. Defaults to 0.
footprintstringKiCAD footprint (e.g. Resistor_SMD:R_0603_1608Metric)
mirrorYbooleanMirror the symbol horizontally (flip left-right). Useful for transistors facing opposite direction.
positionobjectPosition on schematic
referencestringComponent reference (e.g., R1, U1). Required except for power symbols: for power:GND, … omit it or pass "#PWR?" to use the next free #PWRnn in the project (power:PWR_FLAG gets the next free #FLGnn). A non-power symbol placed without a reference is an error.
schematicPath *stringPath to the schematic file
symbol *stringSymbol library:name reference (e.g., Device:R, EDA-MCP:ESP32-C3)
unitnumberUnit number for multi-unit symbols (1=A, 2=B, 3=C, …). Defaults to 1.
valuestringComponent value
add_schematic_hierarchical_labelAdd a hierarchical label (sheet interface port) to a sub-sheet schematic. Hierarchical labels are the connection points that link a sub-sheet to its parent via sheet pins. The label text must exactly match the corresponding sheet pin name.
ParameterTypeDescription
orientationnumberRotation in degrees: 0=label points right, 180=label points left (default: 0)
position *anyPosition in mm, as [x, y] or {x, y}
schematicPath *stringPath to the sub-sheet .kicad_sch file
shape *stringSignal direction from the sub-sheet's perspective
text *stringLabel text (e.g. 'SD_CLK') — must match the sheet pin name
add_schematic_net_labelAdd net labels (VCC, GND, signals)
ParameterTypeDescription
componentRefstringComponent reference to snap label to (e.g. U1, R1). Use with pinNumber.
labelTypestringLabel type (default: label)
netName *stringName of the net (e.g., VCC, GND, SIGNAL_1)
orientationnumberRotation angle 0/90/180/270. Omit it when snapping to a pin: the label is then oriented along the pin's outward direction so the text runs away from the symbol body instead of over it. Defaults to 0 otherwise.
pinNumberanyPin number or name on componentRef to snap label to (e.g. '1', 'GND'). Use with componentRef.
positionanyPosition for the label in mm, as [x, y] or {x, y}. Required when componentRef/pinNumber are not given.
schematicPath *stringPath to the schematic file
add_schematic_textAdd a free-form text annotation to the schematic. Use this to add notes, labels, section headings, or documentation strings directly on the schematic canvas. Unlike net labels, text annotations have no electrical significance.
ParameterTypeDescription
anglenumberRotation angle in degrees (default: 0)
boldbooleanBold text (default: false)
fontSizenumberFont size in mm (default: 1.27)
italicbooleanItalic text (default: false)
justifystringHorizontal text justification (default: left)
position *anyPosition in schematic mm coordinates, as [x, y] or {x, y}
schematicPath *stringPath to the .kicad_sch file
text *stringText content to display
add_schematic_wireCreate wire between points
ParameterTypeDescription
schematicPath *stringPath to the .kicad_sch file
snapToPinsbooleanSnap the first and last waypoints to the nearest pin (default: true)
snapTolerancenumberMaximum snap distance in mm (default: 1.0)
waypoints *arrayOrdered list of [x, y] coordinates. Minimum 2 points.
add_sheet_pinAdd a pin to a sheet symbol block on the parent schematic. Sheet pins are the parent-side connection points that correspond to hierarchical labels in the sub-sheet. The pinName must exactly match a hierarchical_label in the sub-sheet.
ParameterTypeDescription
orientationnumberPin orientation: 0=right edge of sheet box, 180=left edge (default: 0)
pinName *stringPin name — must match a hierarchical_label in the sub-sheet
pinType *stringSignal direction (should match the sub-sheet hierarchical label shape)
position *anyPin position in mm, as [x, y] or {x, y} — must be on the sheet block boundary
schematicPath *stringPath to the PARENT .kicad_sch file
sheetName *stringSheet name as it appears in the Sheetname property (e.g. 'Storage')
add_symbol_propertyAdd or update a field on a library symbol
ParameterTypeDescription
hidebooleanHide the property. Omit to keep an existing property's visibility (new: false)
libraryPath *stringPath to the .kicad_sym file
positionobjectPosition {x, y} in mm. Omit to leave an existing property where it is (new: 0, 0)
propertyName *stringProperty name (e.g. Manufacturer, MPN)
propertyValue *stringProperty value
symbolName *stringSymbol name
add_viaPlace vias for layer transitions
ParameterTypeDescription
net *stringNet name
positionobjectVia position
viaTypestringVia type. Only "through" (the default) is supported; other types are refused
add_zoneAdd copper zone/pour with clearance settings
ParameterTypeDescription
clearancenumberClearance value
layer *stringLayer for the zone
minWidthnumberMinimum width
net *stringNet name for the zone
padConnectionstringPad connection type
points *arrayX coordinate
unit *stringUnit of measurement
align_componentsAlign multiple components
ParameterTypeDescription
alignmentType *stringType of alignment
referenceComponentstringReference component for alignment
references *arrayArray of component references to align
spacingnumberSpacing between components in mm
annotate_schematicAuto-assign reference designators
ParameterTypeDescription
schematicPath *stringPath to the .kicad_sch file
assign_net_to_classAssign a net to an existing net class to apply its specific design rules.
ParameterTypeDescription
net *stringName of the net
netClass *stringName of the net class
audit_via_netsCompare every via's net in the saved board with a reference board (a .kicad_pcb file or a git revision such as HEAD) and list vias whose net changed, plus vias added, removed or moved. KiCad can silently change a via's net on save (e.g. to a surrounding zone's net, or after an autorouter import), and DRC does not flag it because the board stays self-consistent. Run after saving, autorouting or importing a session.
ParameterTypeDescription
boardPathstringBoard file to audit; defaults to the loaded board's file on disk
reference *stringKnown-good version of the board: a .kicad_pcb path, or a git revision of the same file (HEAD, HEAD~1, a sha)
autoplace_schematic_fieldsAutomatically reposition every component's Reference and Value field so they sit horizontally outside the component body AND outside any net labels attached to its pins, avoiding collisions with other components and already-placed fields (rotation-aware for 90°/270° symbols). Like KiCAD's built-in field auto-placement but net-label aware. Optionally limit to specific references.
ParameterTypeDescription
clearancenumberGap in mm between the body/label extent and field text (default one 1.27mm grid unit)
referencesarrayOnly reposition these references (default: all components)
schematicPath *stringPath to the .kicad_sch file
autorouteRun Freerouting autorouter (DSN export, route, SES import)
ParameterTypeDescription
attemptsnumberNumber of Freerouting runs to try (default: 1 — backward-compatible). When > 1, runs best-of-N: scores each attempt by routing completeness and keeps the SES with the highest score. Recommended: 3–5 for dense boards.
boardPathstringPath to .kicad_pcb file (default: current board)
excludeNetsarrayLeave these nets (names or globs) out of the routing job, e.g. high-current nets you will pour by hand.
freeroutingJarstringPath to freerouting.jar (default: ~/.kicad-mcp/freerouting.jar or FREEROUTING_JAR env)
jobTimeoutnumberTime in seconds Freerouting may spend routing before it stops by itself and writes what it has routed (--router.job_timeout). Default: `timeout` minus a tenth of it (at least 60 s, at most 120 s); no default budget with a `timeout` under 120 s, where it would cut off runs that finish in time. Needs Freerouting 2.4 or later: older versions stop at the budget but write no session file. The result has time_budget_reached: true when routing stopped this way; the board then holds a partial routing. 0 passes no time budget.
keepArtifactsbooleanKeep the intermediate .dsn/.ses files next to the board after the run (default: false). Artifacts are staged in a temporary directory and removed on every exit — success, failure, or crash — unless this is set.
kicadRulesbooleanPass the board's .kicad_dru (custom design rules: isolation, per-area clearances) and .kicad_pro (minimum track width) to Freerouting, which a DSN does not carry (default: true; a board without them is unaffected). Freerouting master after 2.5.0 applies them; 2.2 to 2.5.0 log them as unknown and 2.0/2.1 skip them silently, and both route with net-class clearances only. The reply's kicad_rules says which: applied, ignored (logged as unknown), unconfirmed (not mentioned in the log, so not used), and the rules Freerouting could only approximate (warnings, e.g. creepage applied as its clearance). false leaves them out.
layerTraceCostsobjectPer-layer trace cost factor, e.g. {"In1.Cu": 5}: the layer stays usable but a track there costs more (the factor along its preferred direction, twice that against it; Freerouting's defaults are about 1 and 2), so a plane layer carries only the tracks that fit nowhere else. Keys are canonical (In1.Cu) or the board's own layer names; a name the board lacks is refused. Combines with signalLayers; written to the same Freerouting rules file.
maxPassesnumberMaximum routing passes for single-attempt mode (default: 20). Ignored when `attempts` > 1; use `passSchedule` instead.
passSchedulearrayPer-attempt `--max-passes` values to cycle through (default: [50, 60, 65, 70, 75, 80, 85, 90, 55, 95]). The list wraps if `attempts` exceeds its length.
routeNetsarrayRoute only these nets (names or globs such as '/HV PWR/*'). Other nets stay on the board as obstacles but are left out of the routing job, so a board can be routed one isolation domain at a time.
routerSettingsobjectFreerouting router settings for this run, by the names in Freerouting's docs/settings.md under `router`; each is passed as --router.<name>=<value>, a list joined with commas. Examples: {"autorouter.priority_net_classes": ["DIFF", "ANALOG"]} routes those net classes first and keeps other nets from ripping them; {"autorouter.plane_as_priority": true} gives each plane pad a via of its own into its plane (the plane's layer must be of type power); {"autorouter.ignore_net_classes": ["HV"]}. Which settings exist depends on the Freerouting version: priority_net_classes and plane_as_priority are on Freerouting master only (merged 2026-11-07), not in a v2 release. Freerouting skips a setting it does not know and keeps routing; the reply lists those in router_settings_rejected. Use maxPasses and jobTimeout for those two. With attempts above 1 the thread count (max_threads, autorouter.max_threads, optimizer.max_threads) is refused: best-of-N runs single-threaded so the attempts stay comparable.
signalLayersarrayCopper layers tracks may use, e.g. ["F.Cu", "In2.Cu", "B.Cu"] when In1 is a plane; canonical names or the board's own (a renamed F.Cu is found either way), and a name the board lacks is refused. The other copper layers get (active off) in a Freerouting rules file (autoroute_settings layer_rule, passed with -dr): no tracks there, vias still pass through, so a plane is not cut into islands. Nothing else is written to the file, so Freerouting's own per-layer defaults stay in force. The reply lists the restricted layers by the board's names in tracksKeptOffLayers. Default: all layers.
targetNetsarrayOptional list of critical net names. An attempt that routes all of them earns a 50,000-point scoring bonus, breaking ties in favour of designs that include the must-have nets.
timeoutnumberPer-attempt timeout in seconds (default: 300). Freerouting is killed when it is reached and nothing it routed is kept, so the router is given a shorter time budget of its own (see jobTimeout).
backannotate_footprintsCopy footprint choices from the board back to the schematic
ParameterTypeDescription
addMissingbooleanAdd a Footprint field to instances that have none (default true)
boardPath *stringAbsolute path to the .kicad_pcb board file
dryRunbooleanReport the changes without writing them
referencesarrayLimit the update to these reference designators
schematicPathstringSingle sheet to update. Omit to walk the sheet tree from the root schematic named after the board, which is what a hierarchical design needs; local history, backup copies and other projects under the same directory are left alone.
batch_add_and_connectPlace multiple components AND wire their nets in a single call — the fewest-round-trip way to build a subcircuit. Each component is like batch_add_components plus an optional 'nets' map {pin: netName}. Components are placed first, then nets are connected via batch_connect. labelType selects 'label' (sheet-local, default) or 'global_label' (cross-sheet by name) for all the nets wired in this call. Labels can land on Reference/Value text placed earlier; run autoplace_schematic_fields afterwards to move that text clear (connectivity is not touched).
ParameterTypeDescription
componentsarrayReference designator. Optional only for power symbols, which get the next free #PWRnn (PWR_FLAG: #FLGnn); their nets follow the number chosen.
labelTypestringLabel kind used to wire the nets: 'label' = sheet-local (default); 'global_label' = cross-sheet by name
origin_xnumber
origin_ynumber
schematicPath *stringPath to the .kicad_sch file
stubLengthnumberWire stub (mm) between each pin and its label, as in batch_connect (default 0)
batch_add_componentsAdd multiple components to a schematic in one call (far fewer round-trips than add_schematic_component). Each component: {symbol:'Library:Name', reference, value?, footprint?, position:{x,y}, rotation?, includePins?, unit?}. Multi-unit parts are placed one entry per unit, sharing a reference. Reference/Value fields are auto-positioned outside the body (disable with auto_position_fields=false). Returns per-component snapped position, field positions, body_bbox, and an overall placement_bbox.
ParameterTypeDescription
auto_position_fieldsbooleanAuto-place Ref/Value fields outside the body (default true)
componentsarray'Library:SymbolName' (e.g., Device:R)
origin_xnumberX offset added to every component position (mm)
origin_ynumberY offset added to every component position (mm)
schematicPath *stringPath to the .kicad_sch file
batch_add_no_connectsAdd no-connect (X) flags to multiple pins in one call, to mark intentionally unconnected pins and silence ERC. 'pins' is a list of {componentRef, pinName}.
ParameterTypeDescription
pins *arrayPins to mark no-connect
schematicPath *stringPath to the .kicad_sch file
batch_connectPlace net labels on multiple pins in one call to wire nets quickly. 'connections' is a map {reference: {pin: netName}} where pin is a number or name. labelType selects 'label' (sheet-local, the default) or 'global_label' (connects across all sheets by name — use this for power rails and any net that spans sheets). For local labels, if a facing label for the same net is nearby a wire is drawn instead of a duplicate label; global labels are placed one-per-pin since they join their net by name. Set replace=true to clear any existing label at a pin first. Warns about power nets that have no PWR_FLAG, saying what a flag does and that one belongs only where the rail is supplied from off the sheet (a connector or a battery). Labels can land on Reference/Value text placed earlier; run autoplace_schematic_fields afterwards to move that text clear (connectivity is not touched).
ParameterTypeDescription
connections *objectMap of reference -> {pin: netName}
labelTypestringLabel kind: 'label' = sheet-local (default); 'global_label' = connects across all sheets by name
replacebooleanDelete existing labels at each pin before placing (default false)
schematicPath *stringPath to the .kicad_sch file
stubLengthnumberDraw a wire this long (mm) out of each pin and put the label at its end, so the label doesn't sit on the pin number and name. 2.54 is typical; default 0 (label on the pin).
batch_edit_schematic_componentsEdit multiple existing components in one call. 'components' is a map {reference: {value?, footprint?, newReference?, ...}}; each entry is applied via the single-component editor. Returns per-reference updated/errors.
ParameterTypeDescription
components *objectMap of reference -> fields to change
schematicPath *stringPath to the .kicad_sch file
batch_list_symbol_pinsReturn pin names, numbers, types, and symbol-local coordinates for multiple symbols in a single call. Use instead of calling list_symbol_pins repeatedly when placing a subcircuit — saves 5–10 round-trips. Each result includes pins (with x/y/angle in symbol-local coords, Y-up per KiCAD lib convention) and body_bbox (bounding box of pin envelope ±1.27mm, symbol-local coords). IMPORTANT: coordinates are symbol-local (Y-up, pre-rotation); after placement use get_schematic_pin_locations for post-rotation schematic coordinates. Set compact=true for simple 2-pin passives (Device:R/C/L) to get just pin_count, body_bbox, and is_symmetric.
ParameterTypeDescription
compactbooleanIf true, omit per-pin detail for standard 2-pin symmetric passives.
schematicPathstringPath to .kicad_sch — enables project-local sym-lib-table lookup
symbols *arrayArray of symbols in 'Library:SymbolName' format (e.g., ['Device:R', 'Device:C'])
batch_move_componentsMove many components in one transactional call
ParameterTypeDescription
dryRunbooleanValidate the batch without changing the board
movesobjectMap of reference designator to placement spec
savebooleanSave the board after all moves succeed (default true)
batch_set_schematic_property_positionsMove many Reference/Value field labels in a single file read/write — far faster than repeated set_schematic_property_position calls. Pass an 'updates' array; each item is {reference, property:'Reference'|'Value', x, y, angle?, visible?}. Each optional 'angle' is sheet-absolute as drawn (0 = horizontal, 90 = vertical) and converted to the symbol's local frame; omitting 'angle' preserves the existing field angle. Returns per-item applied (with stored_angle, drawn_angle, effective_justify) and failed lists.
ParameterTypeDescription
schematicPath *stringPath to the .kicad_sch file
updatesarrayDesired sheet-absolute text angle in degrees (0 = horizontal, 90 = vertical); omit to preserve existing angle
check_clearanceCheck the actual clearance between two PCB items (track, via, pad, zone or component) and report whether it meets the design rules.
ParameterTypeDescription
item1objectType of the first item
item2objectType of the second item
check_courtyard_overlapsDetect courtyard overlaps between footprints and (optionally) flag courtyards that extend past the board outline. Accepts a `positions` dict of hypothetical placements so an AI can validate a proposed move_component / place_component before committing it. Returns overlap pairs with intersection extents (mm) and per-component boundary violations.
ParameterTypeDescription
board_outlineobjectOptional board outline bbox override. Default: derived from Edge.Cuts.
include_boundarybooleanAlso flag courtyards that extend past the board outline (default true).
marginnumberExtra clearance in mm added around every courtyard (default 0). Useful to enforce a manufacturing keepout wider than the symbol's declared courtyard.
positionsobjectVirtual placements: map of reference designator to [x, y] or [x, y, rotation_degrees] in mm. Each listed ref is checked AS IF it were at the given coordinates. Unspecified refs use their current board position.
refsarrayLimit the check to these refs (default: every footprint on the board).
check_freeroutingVerify Java and Freerouting availability
ParameterTypeDescription
freeroutingJarstringPath to freerouting.jar to check
check_kicad_uiCheck if KiCAD is running
check_placement_clearanceClassify placement conflicts as body overlap, courtyard overlap, keepout violation, silk/text overlap or pad clearance.
ParameterTypeDescription
marginnumberExtra bbox margin in mm for mechanical checks
padClearancenumberExtra pad bbox clearance in mm
refsarrayOptional component reference filter
check_schematic_legibilityChecks whether a person can read a schematic sheet: what ERC and a netlist cannot see. Boxes every symbol body, visible reference/value, label and free text and reports text over text (a symbol's own fields included), text over another symbol's body, a symbol's own field across a drawn line of its body (inside an IC's rectangle or beside a capacitor's plates is fine), body over body, a wire through a text (a label's own wire only touches its edge), items on the title block or outside the frame, and a field stored upside down. Each problem comes with its box in sheet mm; look at it with get_schematic_view_region.
ParameterTypeDescription
maxProblemsnumberMost problems to list (default 200); counts always cover all
schematicPath *stringPath to the .kicad_sch sheet to check (one sheet)
clear_board_outlineDelete all Edge.Cuts graphics from the current PCB board.
close_projectSave (optionally) and drop in-memory state
ParameterTypeDescription
forcebooleanBackward-compatible alias for forceExternalChanges
forceExternalChangesbooleanSave despite external changes to the loaded SWIG board file
savebooleanSave the board to disk before closing (default true). If false and there are unsaved changes, the close proceeds but the response warns they were discarded.
close_toolboxClose one or more toolboxes to remove their tools from your tool list and free context. The core tools stay.
ParameterTypeDescription
toolboxes *arrayToolbox names to close
connect_passthroughWire all matching pins between connectors (FFC/ribbon)
ParameterTypeDescription
netPrefixstringNet name prefix, e.g. 'CSI' → CSI_1, CSI_2 (default: PIN)
pinOffsetnumberAdd to pin number when building net name (default: 0)
schematicPath *stringPath to the schematic file
sourceRef *stringSource connector reference (e.g. J1)
targetRef *stringTarget connector reference (e.g. J2)
connect_to_netConnect pin to named net
ParameterTypeDescription
componentRef *stringComponent reference (e.g., U1, R1)
netName *stringName of the net to connect to
pinName *stringPin name/number to connect
schematicPath *stringPath to the schematic file
copy_routing_patternReplicate routing between component groups
ParameterTypeDescription
includeViasbooleanAlso copy vias (default: true)
sourceRefs *arrayReferences of the source components (e.g. ['U1', 'R1', 'C1'])
targetRefs *arrayReferences of the target components in same order as sourceRefs (e.g. ['U2', 'R2', 'C2'])
traceWidthnumberOverride trace width in mm (default: keep original width)
create_board_from_schematicCreate a board populated from the schematic
ParameterTypeDescription
boardPathstringDestination .kicad_pcb path; defaults next to schematic
overwritebooleanReplace boardPath if it already exists
schematicPath *stringAbsolute path to the .kicad_sch schematic file
create_footprintCreate a new KiCAD footprint (.kicad_mod) inside a .pretty library directory. Supports SMD and THT pads, courtyard, silkscreen, and fab-layer rectangles.
ParameterTypeDescription
descriptionstringHuman-readable description
libraryPath *stringPath to the .pretty library directory (created if missing). E.g. C:/MyProject/MyLib.pretty
name *stringFootprint name, e.g. 'R_0603_Custom'
overwritebooleanReplace existing footprint file (default: false)
padsarrayList of pads to add (can be empty for outlines-only footprints)
refPositionobjectPosition of the REF** text (default: 0, -1.27)
tagsstringSpace-separated tag string, e.g. 'resistor SMD 0603'
valuePositionobjectPosition of the Value text (default: 0, 1.27)
create_hierarchical_subsheetCreate a new sub-sheet .kicad_sch file and link it into a parent schematic in a single call (create_schematic + add_hierarchical_sheet). The fastest way to grow a hierarchical design.
ParameterTypeDescription
metadataobjectOptional metadata for the new sub-sheet (title, etc.)
parentSchematicPath *stringPath to the parent .kicad_sch
positionobject
sheetNamestringDisplay name for the sheet
sizeobject
subsheetPath *stringPath for the new sub-sheet .kicad_sch to create
create_netclassDefine net class with rules
ParameterTypeDescription
clearancenumberClearance in mm
diffPairGapnumberDifferential pair gap in mm
diffPairWidthnumberDifferential pair trace width in mm
name *stringNet class name
netsarrayNet names to assign to this class immediately
traceWidthnumberDefault trace width in mm
uviaDiameternumberMicro via diameter in mm
uviaDrillnumberMicro via drill size in mm
viaDiameternumberVia diameter in mm
viaDrillnumberVia drill size in mm
create_projectInitialize new KiCAD projects
ParameterTypeDescription
name *stringProject name
paperstringSchematic paper size (default A4): A5-A0, A-E, USLetter, USLegal, USLedger
path *stringProject directory path
portraitbooleanPortrait schematic sheet (default: landscape)
create_schematicCreate new schematic file
ParameterTypeDescription
name *stringSchematic name
paperstringPaper size (default A4): A5-A0, A-E, USLetter, USLegal, USLedger
pathstringOptional path
portraitbooleanPortrait orientation (default: landscape)
create_symbolCreate a new schematic symbol in a .kicad_sym library file (created if missing). After creation, use register_symbol_library so KiCAD finds it. Pin positions are where the wire connects; the symbol body is drawn between them. Coordinate tips: - Body rectangle typically spans ±2.54 to ±5.08 mm - Pins on left side: at.x = body_left - length, angle=0 (wire goes right) - Pins on right side: at.x = body_right + length, angle=180 (wire goes left) - Pins on top: at.y = body_top + length, angle=270 (wire goes down) - Pins on bottom: at.y = body_bottom - length, angle=90 (wire goes up) - Standard pin length: 2.54 mm, standard grid: 2.54 mm
ParameterTypeDescription
datasheetstringDatasheet URL or '~'
descriptionstringHuman-readable description
footprintstringDefault footprint, e.g. 'Package_SO:SOIC-8_3.9x4.9mm_P1.27mm'
inBombooleanInclude in BOM (default true)
keywordsstringSpace-separated search keywords
libraryPath *stringPath to the .kicad_sym file (created if missing)
name *stringSymbol name, e.g. 'TMC2209', 'MyOpAmp'
onBoardbooleanInclude in netlist for PCB (default true)
overwritebooleanReplace existing symbol with same name (default false)
pinsarrayList of pins (can be empty for graphical-only symbols)
polylinesarrayPolyline graphics for custom body shapes (op-amp triangles, etc.)
rectanglesarrayBody rectangle(s). Typically one rectangle defining the IC body.
referencePrefixstringSchematic reference prefix: 'U' (IC), 'R' (resistor), 'J' (connector), etc. Default: 'U'
create_variantRegister a named assembly variant in a KiCad project.
ParameterTypeDescription
descriptionstring
name *string
delete_componentRemove component from board
ParameterTypeDescription
reference *stringReference designator of the component to delete (e.g., 'R5')
delete_graphicDelete a PCB graphic/drawing item by UUID.
ParameterTypeDescription
uuid *stringKiCad UUID of the graphic item
delete_schematic_componentRemove component
ParameterTypeDescription
deleteAttachedLabelsbooleanAlso delete net labels sitting on the deleted component's pin positions, unless still attached to a wire or another component's pin (default false)
reference *stringReference designator of the component to remove (e.g. R1, U3)
schematicPath *stringPath to the .kicad_sch file
unitnumberUnit of a multi-unit part (1=A, 2=B, …) to remove. Every unit shares one reference, so without this ALL units of the part are deleted.
delete_schematic_net_labelRemove net label
ParameterTypeDescription
netName *stringName of the net label to remove
positionanyPosition in mm, as [x, y] or {x, y}, to disambiguate if multiple labels share the name
schematicPath *stringPath to the .kicad_sch file
delete_schematic_wireRemove wire segment
ParameterTypeDescription
end *objectWire end position
schematicPath *stringPath to the .kicad_sch file
start *objectWire start position
delete_symbolRemove symbol from library
ParameterTypeDescription
libraryPath *stringPath to the .kicad_sym file
name *stringSymbol name to delete
delete_traceRemove traces (by UUID, position, or net)
ParameterTypeDescription
includeViasbooleanInclude vias in net-based deletion
layerstringFilter by layer when using net-based deletion
netstringDelete all traces on this net (bulk delete)
positionobjectDelete trace nearest to this position
traceUuidstringUUID of a specific trace to delete
digikey_check_library_availabilityLook up every symbol in a .kicad_sym on Digi-Key and report which parts are obsolete, out of stock, unfindable, or missing a part number altogether — the check to run before a board goes to purchasing, and after inheriting a library from an import. Each symbol is searched by its distributor part number first and its manufacturer part number second, because retired Digi-Key numbers are the common failure and the MPN usually still resolves; searchByMpnFirst reverses that. Part numbers are read under any of the property spellings real libraries use (MPN, MP, 'MANUFACTURER PART NUMBER', 'PART NUMBER', 'SUPPLIER PART NUMBER 1'). Budget up to two rate-limited requests per symbol — the fallback costs a second one whenever the first term misses — plus one token request, so raise maxSymbols deliberately.
ParameterTypeDescription
libraryPath *stringAbsolute path to the .kicad_sym library file
maxSymbolsnumberStop after this many symbols (default 25). Each symbol costs one or two rate-limited API requests and the client throttles itself between them, so a larger sweep takes minutes; raising this past a few hundred will exhaust even the extended timeout this tool runs under.
preferPackagingstringPackaging to quote
searchByMpnFirstbooleanSearch by manufacturer part number before the distributor number
symbolsarrayOnly check these symbol names (default: every symbol in the library)
digikey_search_partsSearch Digi-Key by part number, manufacturer part number, or a parametric phrase ('0402 100nF 50V X7R'), returning stock, price, lifecycle status, packaging variations and the parametric table. Two details the raw API makes easy to get wrong are handled here: the Digi-Key part number lives on each packaging variation rather than on the product, so reel and cut tape have different numbers; and lifecycle is read from ProductStatus.Id rather than the status string, which is localized. Use preferPackaging to pick which variation is quoted as the headline part number.
ParameterTypeDescription
keywords *stringPart number, MPN, or a parametric phrase such as '0402 100nF 50V X7R'
limitnumberResults to return, 1-50 (default 10)
offsetnumberResult offset for paging (default 0)
preferPackagingstringWhich packaging variation to quote as the headline part number: TR (tape & reel, production), CT (cut tape, prototypes), DKR (Digi-Reel). Matching handles localized packaging names.
digikey_test_connectionVerify that the server's Digi-Key credentials work: fetch a token and run one search. Use this first when a Digi-Key tool reports an authentication problem, since it distinguishes missing credentials from rejected ones from a locale misconfiguration. Credentials come from DIGIKEY_CLIENT_ID and DIGIKEY_CLIENT_SECRET in the server environment; they are never accepted as arguments and never appear in a response.
discard_or_reloadDiscard the current in-memory PCB state and reload the board from disk.
ParameterTypeDescription
boardPathstringOptional .kicad_pcb path; defaults to current board
download_jlcpcb_databaseDownload 2.5M+ parts catalog (one-time setup)
ParameterTypeDescription
forcebooleanForce re-download even if database exists
sourcestringForce one source. "cdfer" (default) = in-stock subset, no 7z needed. "yaqwsx" = FULL catalog, ~2.9M parts (needs a 7z CLI). "official" = JLCPCB API (needs creds).
download_registry_partDownload its footprint, symbol or 3D model
ParameterTypeDescription
dest_dir *stringExisting destination directory to write the file into (must already exist)
format *stringWhich file to download: footprint | symbol | 3D model
id *stringRegistry part id (from search_parts_registry)
duplicate_componentCopy existing component
ParameterTypeDescription
countnumberNumber of duplicates (default: 1)
newReferencestringNew reference designator
offsetobjectOffset from original position
reference *stringReference of component to duplicate
edit_componentModify component properties
ParameterTypeDescription
footprintstringOptional new footprint
newReferencestringOptional new reference designator
reference *stringReference designator of the component (e.g., 'R5')
valuestringOptional new component value
edit_footprint_padModify pad properties
ParameterTypeDescription
drillanyRound drill diameter in mm
footprintPath *stringFull path to the .kicad_mod file, e.g. C:/MyLib.pretty/R_Custom.kicad_mod
padNumber *anyPad number to edit, e.g. '1' or 2
shapestringNew pad shape
edit_schematic_componentEdit footprint, value, reference, label positions, and arbitrary custom properties (MPN, Manufacturer, DigiKey_PN, LCSC, Voltage, Tolerance, Dielectric, …) in one batched call
ParameterTypeDescription
fieldPositionsobjectText justification: "left", "right", "center", "top", "bottom", or combined "left top" / "right bottom". Array form ["left", "top"] is also accepted. Omit to leave the existing justify unchanged. Pass "center" to reset to the KiCad default (removes the justify directive).
footprintstringNew KiCAD footprint string (e.g. Resistor_SMD:R_0603_1608Metric)
newReferencestringRename the reference designator (e.g. R1 → R10)
propertiesobjectProperty value to write
reference *stringCurrent reference designator of the component (e.g. R1, U3)
removePropertiesarrayList of custom property names to delete from this component. The built-in fields Reference, Value, Footprint, and Datasheet cannot be removed (clear them by setting value to "" instead). Example: ["OldMPN", "Distributor_PN"]
schematicPath *stringPath to the .kicad_sch file
valuestringNew value string (e.g. 10k, 100nF)
enrich_datasheetsAuto-populate datasheet URLs using LCSC part numbers
ParameterTypeDescription
dry_runbooleanIf true, show what would be changed without writing to disk (default: false)
schematic_path *stringPath to the .kicad_sch file to enrich
estimate_airwire_lengthsAlias for get_ratsnest: estimate airwire segments and lengths by net.
ParameterTypeDescription
maxPadsPerNetnumber
netsarray
export_3d3D models (STEP, STL, VRML, OBJ)
ParameterTypeDescription
format *string3D model format
includeComponentsbooleanWhether to include 3D component models
includeCopperbooleanWhether to include copper layers
includeSilkscreenbooleanWhether to include silkscreen
includeSolderMaskbooleanWhether to include solder mask
outputPath *stringPath to save the 3D model file
export_3d_cliExport a 3D model of the PCB via kicad-cli. The `format` param selects the subcommand (step, glb, stl, ply, brep, xao, vrml); only flags valid for that subcommand are forwarded. STEP/glb/stl/ply/brep/xao share the geometry/include flag set (no-board-body, include-tracks/pads/zones/inner-copper/silkscreen/soldermask, fuse-shapes, fill-all-vias, component/net filters, min-distance, etc.; no-optimize-step is STEP-only); vrml uses units + models-dir/models-relative instead. Rich CLI sibling of export_3d and export_vrml. Reads the last SAVED state of the .kicad_pcb.
ParameterTypeDescription
boardOnlybooleanOnly generate a board with no components
boardPathstringPath to the .kicad_pcb (default: current board)
componentFilterstringOnly include component models matching this refdes list (comma, wildcards)
cutViasInBodybooleanCut via holes in board body even if conductor layers not exported
defineVararrayProject variable overrides as 'KEY=VALUE' strings
drillOriginbooleanUse Drill Origin for output origin
fillAllViasbooleanDon't cut via holes in conductor layers
forcebooleanOverwrite output file
format *string3D output format (selects the kicad-cli subcommand)
fuseShapesbooleanFuse overlapping geometry together
gridOriginbooleanUse Grid Origin for output origin
includeInnerCopperbooleanExport elements on inner copper layers
includePadsbooleanExport pads
includeSilkscreenbooleanExport silkscreen graphics as flat faces
includeSoldermaskbooleanExport soldermask layers as flat faces
includeTracksbooleanExport tracks and vias
includeZonesbooleanExport zones
minDistancestringMin distance between points to treat as separate (default '0.01mm')
modelsDirstringFolder to store 3D models in (VRML only; empty = embed in main file)
modelsRelativebooleanUse relative model paths with modelsDir (VRML only)
netFilterstringOnly include copper items belonging to nets matching this wildcard
noBoardBodybooleanExclude board body
noComponentsbooleanExclude 3D models for components
noDnpbooleanExclude 3D models for components with 'Do not populate' attribute
noOptimizeStepbooleanDo not optimize STEP file (enables writing parametric curves; STEP only)
noUnspecifiedbooleanExclude 3D models for components with 'Unspecified' footprint type
outputPath *stringOutput 3D model file path
substModelsbooleanSubstitute STEP/IGS models in place of VRML models
unitsstringOutput units (VRML only; default in)
userOriginstringUser-specified output origin e.g. '1x1in', '25.4x25.4mm' (default unit mm)
export_bomExport a Bill of Materials (BOM) from the PCB in CSV, XML, HTML or JSON format.
ParameterTypeDescription
format *stringBOM file format
groupByValuebooleanWhether to group components by value
includeAttributesarrayOptional array of additional attributes to include
outputPath *stringPath to save the BOM file
export_drillDrill files
ParameterTypeDescription
boardPathstringPath to the .kicad_pcb (default: current board)
drillOriginstringDrill coordinate origin (default absolute)
excellonMinHeaderbooleanUse a minimal Excellon header
excellonMirrorYbooleanMirror the Y axis (Excellon)
excellonOvalFormatstringExcellon oval hole format (default alternate)
excellonSeparateThbooleanGenerate independent files for NPTH and PTH holes
excellonUnitsstringExcellon output units (default mm)
excellonZerosFormatstringExcellon zero-suppression format (default decimal)
formatstringDrill file format (default excellon)
generateMapbooleanGenerate a drill map / summary file
gerberPrecisionnumberGerber coordinate precision (5 or 6) when format=gerber
mapFormatstringDrill map format when generateMap is set (default pdf)
outputDir *stringOutput directory for the drill files
export_dsnExport the current PCB to Specctra DSN format. Useful for manual Freerouting workflow or external autorouters.
ParameterTypeDescription
boardPathstringPath to .kicad_pcb file (default: current board)
outputPathstringOutput DSN file path (default: same dir as board)
export_gencadExport the PCB in GenCAD format via kicad-cli. Assembly/test interchange format. Exposes padstack flip, unique pin/footprint shape generation, drill-file origin, and store-origin-coordinate options. Reads the last SAVED state of the .kicad_pcb.
ParameterTypeDescription
boardPathstringPath to the .kicad_pcb (default: current board)
defineVararrayProject variable overrides as 'KEY=VALUE' strings
flipBottomPadsbooleanFlip bottom footprint padstacks
outputPath *stringOutput .cad file path
storeOriginCoordbooleanSave the origin coordinates in the file
uniqueFootprintsbooleanGenerate a new shape for each footprint instance (do not reuse shapes)
uniquePinsbooleanGenerate unique pin names
useDrillOriginbooleanUse drill/place file origin as origin
export_gerberExport PCB Gerber manufacturing files to a directory. Optionally include drill files, map files and choose layer subset.
ParameterTypeDescription
generateDrillFilesbooleanWhether to generate drill files
generateMapFilebooleanWhether to generate a map file
layersarrayOptional array of layer names to export (default: all)
outputDir *stringDirectory to save Gerber files
useAuxOriginbooleanWhether to use auxiliary axis as origin
useProtelExtensionsbooleanWhether to use Protel filename extensions
export_gerber_singlePlot the given layers to a SINGLE Gerber file via kicad-cli (`pcb export gerber`). Singular sibling of export_gerbers. Exposes the full single-file Plot option set (X2, netlist attributes, DNP fab-layer modes, soldermask subtraction, aperture macros, drill-file origin, precision, Protel extension). Reads the last SAVED state of the .kicad_pcb.
ParameterTypeDescription
boardPathstringPath to the .kicad_pcb (default: current board)
commonLayersarrayLayers to include on every plot (e.g. ['Edge.Cuts'])
crossoutDnpFootprintsOnFabLayersbooleanPlot an 'X' over DNP footprint courtyards and strike out their refdes
defineVararrayProject variable overrides as 'KEY=VALUE' strings
disableApertureMacrosbooleanDisable aperture macros
drawingSheetstringPath to a drawing sheet override
excludeRefdesbooleanExclude reference designator text
excludeValuebooleanExclude value text
hideDnpFootprintsOnFabLayersbooleanDon't plot DNP footprint text/graphics on fab layers
includeBorderTitlebooleanInclude the border and title block
layersarrayLayers to plot, untranslated names e.g. ['F.Cu','B.Cu','Edge.Cuts']
noNetlistbooleanDo not generate netlist attributes
noProtelExtbooleanUse KiCad Gerber file extensions instead of Protel
noX2booleanDo not use the extended X2 Gerber format
outputPath *stringOutput Gerber file path
precisionnumberGerber coordinate precision: 5 or 6 (default 6)
sketchDnpFootprintsOnFabLayersbooleanPlot DNP footprints in sketch mode on fab layers
sketchPadsOnFabLayersbooleanDraw pad outlines and numbers on fab layers
subtractSoldermaskbooleanSubtract soldermask from silkscreen
useDrillFileOriginbooleanUse the drill/place file origin
export_gerbersPlot Gerber files for a PCB via kicad-cli, exposing the full Plot-dialog option set (X2, netlist attributes, DNP handling, soldermask subtraction, precision, drill-file origin, stored board plot settings, etc). Reads the board from disk, so it reflects the last SAVED state of the .kicad_pcb.
ParameterTypeDescription
boardPathstringPath to the .kicad_pcb (default: current board)
boardPlotParamsbooleanUse the Gerber plot settings already stored in the board file
commonLayersarrayLayers to include on every plot (e.g. ['Edge.Cuts'])
crossoutDnpFootprintsOnFabLayersbooleanPlot an 'X' over DNP footprint courtyards and strike out their refdes
defineVararrayProject variable overrides as 'KEY=VALUE' strings
disableApertureMacrosbooleanDisable aperture macros
drawingSheetstringPath to a drawing sheet override
excludeRefdesbooleanExclude reference designator text
excludeValuebooleanExclude value text
hideDnpFootprintsOnFabLayersbooleanDon't plot DNP footprint text/graphics on fab layers
includeBorderTitlebooleanInclude border and title block
layersarrayLayers to plot, untranslated names e.g. ['F.Cu','B.Cu','Edge.Cuts']
noNetlistbooleanDo not generate netlist attributes
noProtelExtbooleanUse KiCad Gerber file extensions instead of Protel
noX2booleanDo not use the extended X2 Gerber format
outputDir *stringOutput directory for the Gerber files
precisionnumberGerber coordinate precision: 5 or 6 (default 6)
sketchDnpFootprintsOnFabLayersbooleanPlot DNP footprints in sketch mode on fab layers
sketchPadsOnFabLayersbooleanDraw pad outlines and numbers on fab layers
subtractSoldermaskbooleanSubtract soldermask from silkscreen
useDrillFileOriginbooleanUse the drill/place file origin
export_ipc2581Export the PCB in IPC-2581 format via kicad-cli. Single-file MES/CAD interchange carrying placement, nets and BOM part data inline. The bomCol* params map schematic fields to the embedded BOM columns (e.g. internal P/N, manufacturer P/N) — useful for assembly/MES imports. Reads the last SAVED state of the .kicad_pcb.
ParameterTypeDescription
boardPathstringPath to the .kicad_pcb (default: current board)
bomColDiststringValue to insert into the BOM Distributor column
bomColDistPnstringSchematic field to use for the BOM Distributor Part Number column
bomColIntIdstringSchematic field to use for the BOM Internal Id column
bomColMfgstringSchematic field to use for the BOM Manufacturer column
bomColMfgPnstringSchematic field to use for the BOM Manufacturer Part Number column
compressbooleanCompress the output
defineVararrayProject variable overrides as 'KEY=VALUE' strings
drawingSheetstringPath to a drawing sheet override
outputPath *stringOutput .xml file path
precisionnumberCoordinate precision (default 6)
unitsstringUnits (default mm)
versionstringIPC-2581 standard version (default 'C')
export_ipcd356Generate an IPC-D-356 bare-board electrical-test netlist via kicad-cli. Consumed by flying-probe and bed-of-nails testers. Reads the last SAVED state of the .kicad_pcb.
ParameterTypeDescription
boardPathstringPath to the .kicad_pcb (default: current board)
outputPath *stringOutput .ipc / netlist file path
export_netlistNetlist (KiCad, Spice, Cadstar, OrcadPCB2)
ParameterTypeDescription
formatstringNetlist format (default: KiCad)
outputPath *stringAbsolute path for the output file (e.g. /tmp/design.spice)
schematicPath *stringAbsolute path to the .kicad_sch schematic file
export_odbExport the PCB in ODB++ format via kicad-cli. Single job archive (copper, drill, placement, components, nets, outline) widely used by CAM/MES/assembly. Reads the last SAVED state of the .kicad_pcb.
ParameterTypeDescription
boardPathstringPath to the .kicad_pcb (default: current board)
compressionstringOutput container/compression mode (default zip)
defineVararrayProject variable overrides as 'KEY=VALUE' strings
drawingSheetstringPath to a drawing sheet override
outputPath *stringOutput file path (archive or directory per compression)
precisionnumberCoordinate precision (default 2)
unitsstringUnits (default mm)
export_pcb_dxfPlot the PCB layout to DXF via kicad-cli, exposing the full layer-plot option set (layer + common-layer lists, refdes/value exclusion, soldermask subtraction, use-contours, use-drill-origin, border+title, output units, DNP fab-layer modes, drill shape, single/multi output modes). Reads the last SAVED state of the .kicad_pcb.
ParameterTypeDescription
boardPathstringPath to the .kicad_pcb (default: current board)
commonLayersarrayLayers to include on every plot (e.g. ['Edge.Cuts'])
crossoutDnpFootprintsOnFabLayersbooleanPlot an 'X' over DNP footprint courtyards and strike out their refdes
defineVararrayProject variable overrides as 'KEY=VALUE' strings
drawingSheetstringPath to a drawing sheet override
drillShapeOptnumberPad/via drill shape option (0 none, 1 small, 2 actual; default 2)
excludeRefdesbooleanExclude reference designator text
excludeValuebooleanExclude value text
hideDnpFootprintsOnFabLayersbooleanDon't plot DNP footprint text/graphics on fab layers
includeBorderTitlebooleanInclude the border and title block
layersarrayLayers to plot, untranslated names e.g. ['F.Cu','B.Cu','Edge.Cuts']
modeMultibooleanMulti output; output path is a directory (GUI-like plotting)
modeSinglebooleanSingle file; output path is full path; LAYER_LIST controls all layers
outputPath *stringOutput DXF file path (or directory in multi mode)
outputUnitsstringOutput units (default in)
sketchDnpFootprintsOnFabLayersbooleanPlot DNP footprints in sketch mode on fab layers
sketchPadsOnFabLayersbooleanDraw pad outlines and numbers on fab layers
subtractSoldermaskbooleanSubtract soldermask from silkscreen
useContoursbooleanPlot graphic items using their contours
useDrillOriginbooleanPlot using the drill/place file origin
export_pcb_pdfPlot the PCB layout to PDF via kicad-cli, exposing the full layer-plot option set (layer + common-layer lists, mirror, refdes/value exclusion, border+title, soldermask subtraction, DNP fab-layer modes, negative, black-and-white, theme, drill shape, and single/separate/multipage output modes). Rich CLI sibling of export_pdf. Reads the last SAVED state of the .kicad_pcb.
ParameterTypeDescription
blackAndWhitebooleanBlack and white only
boardPathstringPath to the .kicad_pcb (default: current board)
commonLayersarrayLayers to include on every plot (e.g. ['Edge.Cuts'])
crossoutDnpFootprintsOnFabLayersbooleanPlot an 'X' over DNP footprint courtyards and strike out their refdes
defineVararrayProject variable overrides as 'KEY=VALUE' strings
drawingSheetstringPath to a drawing sheet override
drillShapeOptnumberPad/via drill shape option (0 none, 1 small, 2 actual; default 2)
excludeRefdesbooleanExclude reference designator text
excludeValuebooleanExclude value text
hideDnpFootprintsOnFabLayersbooleanDon't plot DNP footprint text/graphics on fab layers
includeBorderTitlebooleanInclude the border and title block
layersarrayLayers to plot, untranslated names e.g. ['F.Cu','B.Cu','Edge.Cuts']
mirrorbooleanMirror the board (to show bottom layers)
modeMultipagebooleanPlot the layers to a single multi-page PDF
modeSeparatebooleanPlot the layers to individual PDF files
modeSinglebooleanSingle file; output path is full path; LAYER_LIST controls all layers
negativebooleanPlot as negative
outputPath *stringOutput PDF file path (or directory in separate mode)
sketchDnpFootprintsOnFabLayersbooleanPlot DNP footprints in sketch mode on fab layers
sketchPadsOnFabLayersbooleanDraw pad outlines and numbers on fab layers
subtractSoldermaskbooleanSubtract soldermask from silkscreen
themestringColor theme to use (default: PCB editor settings)
export_pcb_svgPlot the PCB layout to SVG via kicad-cli, exposing the full layer-plot option set (layer + common-layer lists, mirror, soldermask subtraction, negative, black-and-white, theme, DNP fab-layer modes, page-size mode, fit-page-to-board, exclude-drawing-sheet, drill shape, single/multi output modes). Rich CLI sibling of export_svg. Reads the last SAVED state of the .kicad_pcb.
ParameterTypeDescription
blackAndWhitebooleanBlack and white only
boardPathstringPath to the .kicad_pcb (default: current board)
commonLayersarrayLayers to include on every plot (e.g. ['Edge.Cuts'])
crossoutDnpFootprintsOnFabLayersbooleanPlot an 'X' over DNP footprint courtyards and strike out their refdes
defineVararrayProject variable overrides as 'KEY=VALUE' strings
drawingSheetstringPath to a drawing sheet override
drillShapeOptnumberPad/via drill shape option (0 none, 1 small, 2 actual; default 2)
excludeDrawingSheetbooleanNo drawing sheet
fitPageToBoardbooleanFit the page to the board
hideDnpFootprintsOnFabLayersbooleanDon't plot DNP footprint text/graphics on fab layers
layersarrayLayers to plot, untranslated names e.g. ['F.Cu','B.Cu','Edge.Cuts']
mirrorbooleanMirror the board (to show bottom layers)
modeMultibooleanMulti output; output path is a directory (GUI-like plotting)
modeSinglebooleanSingle file; output path is full path; LAYER_LIST controls all layers
negativebooleanPlot as negative
outputPath *stringOutput SVG file path (or directory in multi mode)
pageSizeModenumberPage sizing mode (0 frame+title block, 1 current page size, 2 board area only)
sketchDnpFootprintsOnFabLayersbooleanPlot DNP footprints in sketch mode on fab layers
sketchPadsOnFabLayersbooleanDraw pad outlines and numbers on fab layers
subtractSoldermaskbooleanSubtract soldermask from silkscreen
themestringColor theme to use (default: PCB editor settings)
export_pdfExport the PCB layout as a PDF document, optionally selecting layers, page size and colour mode.
ParameterTypeDescription
blackAndWhitebooleanWhether to export in black and white
frameReferencebooleanWhether to include frame reference
layersarrayOptional array of layer names to include (default: all)
outputPath *stringPath to save the PDF file
pageSizestringPage size
export_posGenerate a component placement (position / pick-and-place) file via kicad-cli, exposing the full CLI option set (side, format, units, bottom-negate-X, drill-file origin, SMD-only, exclude through-hole / DNP, gerber board edge). Rich CLI sibling of export_position_file. Reads the last SAVED state of the .kicad_pcb.
ParameterTypeDescription
boardPathstringPath to the .kicad_pcb (default: current board)
bottomNegateXbooleanUse negative X coordinates for bottom-layer footprints (ascii/csv only)
excludeDnpbooleanExclude all footprints with the Do Not Populate flag set
excludeFpThbooleanExclude all footprints with through-hole pads (ascii/csv only)
formatstringOutput format (default ascii)
gerberBoardEdgebooleanInclude board edge layer (Gerber only)
outputPath *stringOutput position file path
sidestringBoard side (gerber format only supports front or back; default both)
smdOnlybooleanInclude only SMD footprints (ascii/csv only)
unitsstringOutput units; ascii or csv format only (default in)
useDrillFileOriginbooleanUse drill/place file origin (ascii/csv only)
export_position_fileExport a component placement/position file (pick-and-place) for PCB assembly in CSV or ASCII format.
ParameterTypeDescription
formatstringFile format (default: CSV)
outputPath *stringPath to save the position file
sidestringWhich board side to include (default: both)
unitsstringUnits to use (default: mm)
export_sch_bomGenerate a Bill of Materials from a schematic via kicad-cli (`sch export bom`), exposing the full option set (presets, field/label lists, grouping, sorting, filtering, DNP/excluded-from-BOM handling, and field/string/ref delimiters). schematicPath is REQUIRED.
ParameterTypeDescription
excludeDnpbooleanExclude symbols marked Do-Not-Populate
fieldDelimiterstringSeparator between output fields/columns (default ',')
fieldsstringOrdered comma list of fields to export (supports special substitutions)
filterstringFilter string to remove output lines
formatPresetstringNamed BOM format preset from the schematic, e.g. 'CSV'
groupBystringFields to group references by when field values match
includeExcludedFromBombooleanInclude symbols marked 'Exclude from BOM'
keepLineBreaksbooleanKeep line break characters from input fields
keepTabsbooleanKeep tab characters from input fields
labelsstringOrdered comma list of labels to apply to the exported fields
outputPath *stringOutput BOM file path
presetstringNamed BOM preset from the schematic, e.g. 'Grouped By Value'
refDelimiterstringCharacter between individual references (default ',')
refRangeDelimiterstringCharacter for reference ranges; blank disables ranges (default '-')
schematicPath *stringPath to the .kicad_sch (required)
sortAscstringSort ascending ('true') or descending ('false')
sortFieldstringField name to sort by (default Reference)
stringDelimiterstringCharacter to surround fields with (default '"')
export_sch_dxfExport a schematic to DXF via kicad-cli (`sch export dxf`), one DXF per page into a directory. Exposes drawing-sheet override, theme, black-and-white, exclude-drawing-sheet, default-font, and page selection. schematicPath is REQUIRED.
ParameterTypeDescription
blackAndWhitebooleanBlack and white only
defaultFontstringDefault font name
defineVararrayProject variable overrides as 'KEY=VALUE' strings
drawingSheetstringPath to a drawing sheet override
excludeDrawingSheetbooleanNo drawing sheet
outputDir *stringOutput directory for the DXF files
pagesstringComma list of page numbers to print (blank = all pages)
schematicPath *stringPath to the .kicad_sch (required)
themestringColor theme to use (default: schematic settings)
export_sch_hpglExport a schematic to HPGL via kicad-cli (`sch export hpgl`), one plot per page into a directory. Exposes drawing-sheet override, exclude-drawing-sheet, default-font, page selection, pen size, and the origin/scale mode. schematicPath is REQUIRED.
ParameterTypeDescription
defaultFontstringDefault font name
defineVararrayProject variable overrides as 'KEY=VALUE' strings
drawingSheetstringPath to a drawing sheet override
excludeDrawingSheetbooleanNo drawing sheet
originnumberOrigin and scale: 0 bottom left, 1 centered, 2 page fit, 3 content fit
outputDir *stringOutput directory for the HPGL files
pagesstringComma list of page numbers to print (blank = all pages)
penSizenumberPen size in mm (default 0.5)
schematicPath *stringPath to the .kicad_sch (required)
export_sch_pdfExport a schematic to PDF via kicad-cli (`sch export pdf`), exposing the full option set (drawing-sheet override, theme, black-and-white, exclude-drawing-sheet, default-font, the PDF property-popup / hierarchical-link / metadata excludes, no-background-color, and page selection). schematicPath is REQUIRED.
ParameterTypeDescription
blackAndWhitebooleanBlack and white only
defaultFontstringDefault font name
defineVararrayProject variable overrides as 'KEY=VALUE' strings
drawingSheetstringPath to a drawing sheet override
excludeDrawingSheetbooleanNo drawing sheet
excludePdfHierarchicalLinksbooleanDo not generate clickable links for hierarchical elements in PDF
excludePdfMetadatabooleanDo not generate PDF metadata from AUTHOR and SUBJECT variables
excludePdfPropertyPopupsbooleanDo not generate property popups in PDF
noBackgroundColorbooleanAvoid setting a background color (regardless of theme)
outputPath *stringOutput PDF file path
pagesstringComma list of page numbers to print (blank = all pages)
schematicPath *stringPath to the .kicad_sch (required)
themestringColor theme to use (default: schematic settings)
export_sch_psExport a schematic to PostScript via kicad-cli (`sch export ps`), one PS per page into a directory. Exposes drawing-sheet override, theme, black-and-white, exclude-drawing-sheet, default-font, no-background-color, and page selection. schematicPath is REQUIRED.
ParameterTypeDescription
blackAndWhitebooleanBlack and white only
defaultFontstringDefault font name
defineVararrayProject variable overrides as 'KEY=VALUE' strings
drawingSheetstringPath to a drawing sheet override
excludeDrawingSheetbooleanNo drawing sheet
noBackgroundColorbooleanAvoid setting a background color (regardless of theme)
outputDir *stringOutput directory for the PostScript files
pagesstringComma list of page numbers to print (blank = all pages)
schematicPath *stringPath to the .kicad_sch (required)
themestringColor theme to use (default: schematic settings)
export_sch_python_bomExport the legacy Python-BOM intermediate XML from a schematic via kicad-cli (`sch export python-bom`). This is the XML netlist consumed by the schematic editor's Python BOM scripts. Minimal option set (output + input only). schematicPath is REQUIRED.
ParameterTypeDescription
outputPath *stringOutput XML file path
schematicPath *stringPath to the .kicad_sch (required)
export_sch_svgExport a schematic to SVG via kicad-cli (`sch export svg`), one SVG per page into a directory. Exposes drawing-sheet override, theme, black-and-white, exclude-drawing-sheet, default-font, no-background-color, and page selection. schematicPath is REQUIRED.
ParameterTypeDescription
blackAndWhitebooleanBlack and white only
defaultFontstringDefault font name
defineVararrayProject variable overrides as 'KEY=VALUE' strings
drawingSheetstringPath to a drawing sheet override
excludeDrawingSheetbooleanNo drawing sheet
noBackgroundColorbooleanAvoid setting a background color (regardless of theme)
outputDir *stringOutput directory for the SVG files
pagesstringComma list of page numbers to print (blank = all pages)
schematicPath *stringPath to the .kicad_sch (required)
themestringColor theme to use (default: schematic settings)
export_schematic_pdfExport schematic to PDF format using kicad-cli.
ParameterTypeDescription
blackAndWhitebooleanExport in black and white
outputPath *stringOutput PDF file path
schematicPath *stringPath to the .kicad_sch file
export_schematic_svgExport schematic to SVG format using kicad-cli.
ParameterTypeDescription
blackAndWhitebooleanExport in black and white
outputPath *stringOutput SVG file path
schematicPath *stringPath to the .kicad_sch file
export_svgExport the PCB layout as an SVG vector image, optionally selecting layers and colour mode.
ParameterTypeDescription
blackAndWhitebooleanWhether to export in black and white
includeComponentsbooleanWhether to include component outlines
layersarrayOptional array of layer names to include (default: all)
outputPath *stringPath to save the SVG file
export_symbolExtract a single symbol from a .kicad_sym library into a standalone .kicad_sym file.
ParameterTypeDescription
libraryPath *stringPath to the source .kicad_sym file
outputPath *stringPath for the output .kicad_sym file
symbolName *stringSymbol to export
export_variant_bomExport the bill of materials for a named assembly variant.
ParameterTypeDescription
excludeDnpbooleanExclude do-not-populate components from the BOM
outputPath *stringPath for the output CSV file
export_vrmlVRML 3D model
ParameterTypeDescription
includeComponentsbooleanWhether to include 3D component models
outputPath *stringPath to save the VRML file
useRelativePathsbooleanWhether to use relative paths for 3D models
find_componentSearch by reference or value
ParameterTypeDescription
referencestringReference designator to search for
valuestringComponent value to search for
find_duplicate_symbolsFind the same part stored twice under different names
ParameterTypeDescription
ignoreCasebooleanCompare part numbers and values case-insensitively (default true)
libraryNicknamesarrayThe nickname(s) this library is registered under in a lib_id, if the file stem and the sym-lib-table entries beside the scanned sheets do not cover it. A bare 'R' in this library is not Device:R, so placements naming another library are not counted towards it.
libraryPath *stringAbsolute path to the .kicad_sym library file
matchByarrayHow to decide two symbols are the same part (default: mpn, value_footprint). 'graphics' is off by default: every resistor in a library shares one body, so on passives it groups the whole family.
minGroupSizenumberOnly report groups with at least this many symbols (default 2)
schematicPathsarray.kicad_sch files or directories to scan for usage counts (recursive, skipping autosave sheets and backup/history folders). Only placements of this library count, and a sub-sheet instantiated more than once counts once per instantiation.
find_orphaned_wiresFind wire segments with at least one dangling endpoint — not connected to a component pin, net label, or another wire. Orphaned wires cause ERC 'wire end unconnected' errors. Does not require the KiCad UI to be running.
ParameterTypeDescription
schematicPath *stringPath to the .kicad_sch schematic file
find_overlapping_elementsDetect spatially overlapping symbols, wires, and labels in the schematic. Finds duplicate power symbols at the same position, collinear overlapping wires, and labels stacked on top of each other.
ParameterTypeDescription
schematicPath *stringPath to the .kicad_sch schematic file
tolerancenumberDistance threshold in mm for label proximity and wire collinearity checks. Symbol overlap uses bounding-box intersection. (default: 0.5)
find_wires_crossing_symbolsFind all wires that cross over component symbol bodies. Wires passing over symbols are unacceptable in schematics — they indicate routing mistakes where a wire was drawn across a component instead of around it. Also lists, under pinsOnWireInterior (with pinsOnWireInteriorCount), every symbol pin, power pins included, that lies on the middle of a wire without being connected to it: KiCad joins a pin to a wire only where the wire ends or where a junction sits on the pin, so a label there does not connect it to the wire. collisions and count are unchanged.
ParameterTypeDescription
schematicPath *stringPath to the .kicad_sch schematic file
generate_netlistGenerate netlist from schematic
ParameterTypeDescription
schematicPath *stringAbsolute path to the .kicad_sch schematic file
get_backend_stateReport which backend (IPC or SWIG) is in use
get_board_2d_viewGenerate board preview image
ParameterTypeDescription
formatstringOutput format (default: png)
heightnumberOutput image height in pixels (default: 1200)
layersarrayLayer names to include, e.g. ["F.Cu","B.Cu","Edge.Cuts"]. Omit for all layers.
pcbPathstringAbsolute path to the .kicad_pcb file. Falls back to the currently loaded board if omitted.
responseModestring"inline" (default): image returned directly; "file": written to disk, filePath returned
widthnumberOutput image width in pixels (default: 1600)
get_board_extentsGet board bounding box
ParameterTypeDescription
unitstringUnit of measurement for the result
get_board_infoRetrieve board properties
get_board_originRead back the auxiliary (drill/place) origin and grid origin of a .kicad_pcb in mm.
ParameterTypeDescription
boardPath *stringPath to the .kicad_pcb file
get_category_toolsReturn all tools available in a specific category. Use list_tool_categories first to find valid category names.
ParameterTypeDescription
category *stringCategory name from list_tool_categories
get_component_geometryReturn separated footprint geometry bboxes: body, pads, courtyard, keepout, fab, silk and text.
ParameterTypeDescription
referencestringOptional single component reference
refsarrayOptional list of component references
get_component_listList all placed components
ParameterTypeDescription
boundingBoxobjectFilter by bounding box region. The footprint anchor must lie inside
includePadsbooleanAdd each footprint's pads with number, net, and position in millimetres
layerstringFilter by layer (e.g., 'F.Cu', 'B.Cu')
matchPadCenterbooleanWith boundingBox, also include a footprint when any pad centre is inside, even if the anchor is outside
unitstringUnit for coordinates (default: mm)
get_component_padsGet all pad information
ParameterTypeDescription
reference *stringReference designator of the component (e.g., 'U1')
unitstringUnit for coordinates (default: mm)
get_component_propertiesQuery component details
ParameterTypeDescription
reference *stringReference designator of the component (e.g., 'R5')
get_component_variantRead a component's DNP and field overrides for an assembly variant.
get_datasheet_urlGet LCSC datasheet URL for a component
ParameterTypeDescription
lcsc *stringLCSC part number, with or without "C" prefix (e.g. "C179739" or "179739")
get_design_rulesReturn the current PCB design rules (clearance, track width, via sizes, courtyard settings).
get_drc_violationsGet violation list by severity
ParameterTypeDescription
severitystringFilter violations by severity
get_elements_in_regionList all symbols, wires, and labels within a rectangular region of the schematic. Useful for understanding what is in a specific area before modifying it.
ParameterTypeDescription
schematicPath *stringPath to the .kicad_sch schematic file
x1 *numberLeft X coordinate of the region in mm
x2 *numberRight X coordinate of the region in mm
y1 *numberTop Y coordinate of the region in mm
y2 *numberBottom Y coordinate of the region in mm
get_footprint_infoGet detailed information about a specific footprint
ParameterTypeDescription
footprint_name *stringName of the footprint to get information about
library_name *stringName of the library containing the footprint
get_jlcpcb_database_statsDatabase statistics
get_jlcpcb_partDetailed part info with pricing
ParameterTypeDescription
lcsc_number *stringLCSC part number (e.g., 'C25804', 'C2286')
get_layer_listList all board layers
get_net_at_pointReturns the net name at a given (x, y) coordinate in a schematic, or null if no net label or wire endpoint is present at that position. Faster than get_pin_net when you only need the net name at a known coordinate and don't need pin traversal.
ParameterTypeDescription
schematicPath *stringPath to the schematic file (.kicad_sch)
x *numberX coordinate in mm
y *numberY coordinate in mm
get_net_connectionsTrace net connectivity
ParameterTypeDescription
netName *stringName of the net to query
schematicPath *stringPath to the schematic file
get_net_padsReturn every PCB pad attached to a net name or net code.
ParameterTypeDescription
netstringNet name
netCodenumberKiCad net code
unitstringUnit for coordinates (default: mm)
get_nets_listList all nets with statistics
ParameterTypeDescription
includeStatsbooleanAdd per-net stats: track count, total track length and via count
unitstringUnit for track lengths (default: mm)
get_pad_positionGet precise pad position
ParameterTypeDescription
pad *stringPad number or name (e.g., '1', 'A1')
reference *stringComponent reference designator (e.g., 'U1')
unitstringUnit for coordinates (default: mm)
get_padsReturn pads for one PCB component, selected refs, or all components, including XY, layer, size and net.
ParameterTypeDescription
referencestringOptional component reference designator
refsarrayOptional reference filter
unitstringUnit for coordinates (default: mm)
get_project_infoRetrieve project metadata
get_ratsnestEstimate ratsnest/airwire segments and lengths from current pad positions grouped by net.
ParameterTypeDescription
maxPadsPerNetnumberSkip nets above this pad count (default 128)
netsarrayOptional net-name filter
get_registry_partInspect one part in detail
ParameterTypeDescription
id *stringRegistry part id (from search_parts_registry)
get_schematic_componentInspect every field on a component (built-in + custom) including label positions
ParameterTypeDescription
reference *stringComponent reference designator (e.g. R1, U1)
schematicPath *stringPath to the .kicad_sch file
get_schematic_pin_locationsGet pin locations for component
ParameterTypeDescription
reference *stringComponent reference designator (e.g. U1, R1, J2)
schematicPath *stringPath to the schematic file
get_schematic_viewRasterized schematic preview
ParameterTypeDescription
formatstringOutput format (default: png)
heightnumberImage height in pixels (default: 900)
schematicPath *stringPath to the .kicad_sch file
widthnumberImage width in pixels (default: 1200)
get_schematic_view_regionExport a cropped region of the schematic as an image (PNG or SVG). Specify bounding box coordinates in schematic mm. Useful for zooming into a specific area to inspect wiring or layout.
ParameterTypeDescription
formatstringOutput image format (default: png)
heightnumberOutput image height in pixels (default: 600)
schematicPath *stringPath to the .kicad_sch schematic file
widthnumberOutput image width in pixels (default: 800)
x1 *numberLeft X coordinate of the region in mm
x2 *numberRight X coordinate of the region in mm
y1 *numberTop Y coordinate of the region in mm
y2 *numberBottom Y coordinate of the region in mm
get_sheet_propertiesList hierarchical sheets in a schematic with their name, file, uuid, position, and full property map (built-ins plus custom properties set via set_sheet_property). With sheetName or sheetPath, returns just that sheet.
ParameterTypeDescription
schematicPath *stringPath to the parent .kicad_sch
sheetNamestringOnly this sheet (by display name)
sheetPathstringOnly this sheet (by file basename)
get_stackupRead the stackup from the saved board file, not the board open in memory. Returns each copper, dielectric, mask, and silk entry with its thickness in millimetres. A thickness the stackup editor has locked is returned as thicknessMm plus thicknessLocked. Layer names are the names stored on the board, so a renamed layer such as 'Top Side' is returned beside the canonical F.Cu name. If an earlier save was refused, the file can be older than the session. Pass expected to compare those rows with a recipe in the same call; thicknessToleranceMm defaults to 0.001 mm and epsilonTolerance defaults to 0.01.
ParameterTypeDescription
epsilonTolerancenumberAllowed relative-permittivity difference. Default 0.01
expectedarrayRow index from get_stackup
thicknessToleranceMmnumberAllowed thickness difference in millimetres. Default 0.001
get_symbol_infoGet detailed information about a specific symbol (global or project-scope when projectPath is supplied or a project has been opened).
ParameterTypeDescription
projectPathstringOptional: project directory or .kicad_pro/.kicad_pcb/.kicad_sch path so project-scope libraries are searched.
symbol *stringSymbol specification (e.g., 'Device:R' or 'PCM_JLCPCB-MCUs:STM32F103C8T6')
get_wire_connectionsReturns the net name and all wires and component pins connected at a given point. Accepts either a component reference + pin number (e.g. reference='U1', pin='3') or a schematic coordinate (x, y in mm). Returns net=null for unnamed (unlabelled) nets. The query point must be at a wire endpoint or junction — midpoints are not matched. Use get_schematic_pin_locations or list_schematic_wires to obtain exact endpoint coordinates.
ParameterTypeDescription
pinstringPin number or name (e.g. '3', 'SDA'). Pair with reference.
referencestringComponent reference (e.g. U1, R1). Pair with pin.
schematicPath *stringPath to the schematic file
xnumberX coordinate of a wire endpoint in mm. Pair with y.
ynumberY coordinate of a wire endpoint in mm. Pair with x.
group_componentsGroup multiple components
ParameterTypeDescription
groupName *stringName for the component group
references *arrayReference designators of components to group
hierarchical_placeCluster a board's footprints by their schematic-sheet hierarchy (the HierPlace algorithm). After sync_schematic_to_board piles every footprint at the origin, this packs each functional block together as a starting point for manual placement. File-based: reads and rewrites the .kicad_pcb on disk, so save any in-memory board edits first. Locked footprints are left in place.
ParameterTypeDescription
boardPath *stringAbsolute path to the .kicad_pcb file to re-place
import_3d_modelCopy a 3D model file (.step/.stp/.wrl/.x3d/.iges) into the project's *.3dshapes library folder and return a portable ${KIPRJMOD}/... path. Feed the returned 'modelPath' straight into add_footprint_3d_model or add_component_3d_model.
ParameterTypeDescription
libraryDirstringTarget *.3dshapes directory (absolute, or relative to the project). Default: <project>/<project>.3dshapes
modelPath *stringPath to the source 3D model file to import
newNamestringRename the copied file (source extension kept if omitted)
overwritebooleanOverwrite an existing destination file (default false)
projectPath *stringPath to the .kicad_pro file or the project directory (used to locate the .3dshapes folder and compute ${KIPRJMOD})
import_eagle_projectConvert an Eagle project
ParameterTypeDescription
board_file *stringAbsolute path to the Eagle .brd board file
output_dirstringOutput directory for the KiCad project (defaults to a subdirectory next to the .brd file)
project_namestringKiCad project name (defaults to the .brd filename without extension)
schematic_filestringAbsolute path to the Eagle .sch schematic file (auto-detected from .brd path if omitted)
import_pcbLoad an existing `.kicad_pcb` into the session
ParameterTypeDescription
formatstringInput format hint (default 'auto'). Use 'auto' for binary Cadence Allegro .brd files — there is no 'allegro' literal in this enum.
inputFile *stringAbsolute path to the vendor PCB file to import
outputFilestringDestination .kicad_pcb path (defaults beside inputFile, same basename)
reportFormatstringCapture a structured import report from kicad-cli (default 'none')
import_sesImport a Specctra SES (session) file into the current PCB. Use after running Freerouting externally.
ParameterTypeDescription
boardPathstringPath to .kicad_pcb file (default: current board)
sesPath *stringPath to the .ses file to import
import_svg_logoImport SVG file as PCB silkscreen polygons
ParameterTypeDescription
filledbooleanFill polygons with solid colour (default true)
layerstringPCB layer name, e.g. F.SilkS or B.SilkS (default: F.SilkS)
pcbPath *stringPath to the .kicad_pcb file
strokeWidthnumberOutline stroke width in mm (0 = no outline, default 0)
svgPath *stringPath to the SVG logo file
width *numberTarget width of the logo in mm (height is scaled to preserve aspect ratio)
x *numberX position of the logo top-left corner in mm
y *numberY position of the logo top-left corner in mm
import_symbolCopy a symbol from one .kicad_sym library into another, with optional rename and overwrite. The target library is created if missing. A derived symbol (one using (extends ...)) needs its parent imported into the target first.
ParameterTypeDescription
newNamestringRename the symbol on import
overwritebooleanOverwrite if the symbol already exists in the target
sourceLibraryPath *stringPath to the source .kicad_sym file
symbolName *stringSymbol to import
targetLibraryPath *stringPath to the target .kicad_sym (created if missing)
install_gui_driverDeploy the in-KiCad GUI-driver helper plugin into the user's KiCad plugin tree (opt-in). The connect path no longer installs it as a side effect. After install, set KICAD_GUI_DRIVER_ENABLE=1 in KiCad's environment and restart (or Refresh Plugins) to open the token-gated control channel.
is_dirtyReturn whether the MCP knows the loaded board has unsaved memory changes or external disk changes.
kicad_gui_clickActivate a menu item or AUI toolbar tool by name (as shown by kicad_gui_tree). Executes immediately — no gating.
ParameterTypeDescription
idnumberExplicit wx item id (skips name resolution).
kindstringItem kind when passing an explicit id (default menu).
namestringMenu label or toolbar tooltip to activate.
kicad_gui_click_atspiBackend B: activate the first accessible node matching `name` (and optional role) via do_action.
ParameterTypeDescription
appstringAccessible application name filter (default 'kicad').
name *stringAccessible name to activate.
rolestringOptional role substring filter (e.g. 'push button', 'menu item').
kicad_gui_screenshotCapture the driven frame's screen rectangle to a PNG and return its path.
ParameterTypeDescription
pathstringAbsolute path of the .png file to write, in a directory that already exists (a temp file if omitted).
kicad_gui_treeEnumerate the live KiCad GUI via the in-process helper: menus/submenus (name + wx id) and AUI toolbars (id + tooltip). Destructive names carry a '⚠ ' prefix.
kicad_gui_tree_atspiBackend B: dump KiCad's accessible widget tree (role + name) from the Linux a11y bus — zero in-KiCad code.
ParameterTypeDescription
appstringAccessible application name filter (default 'kicad').
maxDepthnumberRecursion depth limit (default 12).
kicad_gui_wait_forPoll until a shown top-level window whose title contains `title` exists (or timeout).
ParameterTypeDescription
timeoutnumberSeconds to wait (default 10).
title *stringSubstring of the window title to wait for.
kicad_pcb_snapshotGUI playbook: trigger Zoom to Fit, wait for the repaint, screenshot the frame.
ParameterTypeDescription
pathstringAbsolute path of the .png file to write, in a directory that already exists (a temp file if omitted).
settlenumberSeconds to wait after zoom (default 0.5).
kicad_reload_and_open_pluginGUI playbook (plugin dev/test loop): trigger Refresh Plugins, then open the named External-Plugins entry.
ParameterTypeDescription
name *stringPlugin menu entry to open after the refresh.
settlenumberSeconds to wait after refresh (default 1).
kicad_run_action_pluginFind the Tools > External Plugins submenu entry with the given name (e.g. 'Open kiHarness') and trigger it.
ParameterTypeDescription
name *stringPlugin menu entry name.
kicad_run_drcGUI playbook: open the Design Rules Checker dialog, click 'Run DRC', then scrape the violations grid into structured results.
ParameterTypeDescription
dialogTitlestringDialog title substring (default 'DRC').
runTimeoutnumberSeconds to wait for results (default 60).
timeoutnumberSeconds to wait for the dialog (default 15).
launch_kicad_uiLaunch KiCAD application
ParameterTypeDescription
autoLaunchbooleanWhether to launch KiCAD if not running (default: true)
projectPathstringOptional path to .kicad_pcb file to open
lint_offgridReport every off-grid connection-relevant coordinate in a schematic — wire/bus endpoints, symbol origins, label/junction/no_connect anchors — and optionally snap them to the nearest grid point (fix: true). KiCad's connection grid is fixed at 50 mil (1.27 mm) and junction placement uses exact matching, so a single off-grid endpoint can poison junction placement for a whole sheet. Unlike snap_to_grid (whole-file rewrite), fixes here are byte-exact text splices that preserve file formatting; (lib_symbols) content and property field positions are never touched. Offenders more than 0.5 mm off-grid are reported as NEEDS HUMAN and never auto-snapped.
ParameterTypeDescription
fixbooleanSnap offenders in place (default false: report only)
gridSizenumberGrid spacing in mm (default: 1.27 mm = 50 mil, the KiCad connection grid)
schematicPath *stringPath to the .kicad_sch schematic file
lint_schematic_cosmeticNetlist-safe cosmetic cleanup of a .kicad_sch, applied as raw-text edits that never move a symbol, pin, wire, junction, or label anchor. Pass hide_pin_names gives every top-level embedded lib_symbol a (pin_names ... (hide yes)) directive — in label-driven schematics the internal pin names duplicate the net label on the same pin. Pass orient_labels sets each net/global/hierarchical label's text angle and justify from the sheet-space outward side of the pin it sits on (rotation/mirror aware), so text reads away from the symbol body; labels not on a pin are left untouched. Complements autoplace_schematic_fields (which handles Reference/Value fields).
ParameterTypeDescription
dryRunbooleanReport change counts without writing (default false)
passesarrayPasses to run, in order (default: both)
schematicPath *stringPath to the .kicad_sch file
list_floating_labelsReturns all net labels in the schematic that are not connected to any component pin. A label is 'floating' when no component pin falls on the wire-network reachable from the label's position. Floating labels indicate misplaced or off-grid labels that cause ERC errors. Does not require the KiCAD UI to be running.
ParameterTypeDescription
schematicPath *stringPath to the .kicad_sch schematic file
list_footprint_librariesList available .pretty footprint libraries and their contents (first 20 footprints per library). Searches KiCAD standard install paths by default.
ParameterTypeDescription
searchPathsarrayOverride default search paths. Each entry should be a directory that contains .pretty subdirs.
list_graphicsList PCB graphic/drawing items such as gr_line, gr_arc, gr_rect, gr_text and dimensions.
ParameterTypeDescription
layerstringOptional layer filter, e.g. Edge.Cuts or F.SilkS
list_librariesList all available KiCAD footprint libraries
ParameterTypeDescription
search_pathsarrayOptional additional search paths for libraries
list_library_footprintsList footprints in a KiCAD library, sorted by name; returns the first 100 unless `limit` is set
ParameterTypeDescription
filterstringKeep names containing this text (case-insensitive, * as a wildcard)
library_name *stringName of the library to list footprints from
limitnumberMaximum number of footprints to list (default 100)
list_library_symbolsList all symbols in a specific KiCAD symbol library (global or project-scope when projectPath is supplied or a project has been opened).
ParameterTypeDescription
library *stringLibrary name (e.g., 'Device', 'PCM_JLCPCB-MCUs')
projectPathstringOptional: project directory or .kicad_pro/.kicad_pcb/.kicad_sch path to resolve project-scope libraries.
list_library_tableRead every registered library and check its URI resolves
list_schematic_componentsList all components
ParameterTypeDescription
filterobjectFilter by library ID (e.g., 'Device:R')
schematicPath *stringPath to the .kicad_sch file
list_schematic_labelsList all net labels, global labels, and power flags in the schematic. Optionally filter by label name (netName) and/or label type (labelType).
ParameterTypeDescription
labelTypestringFilter by label type. 'net' = local label, 'global' = global label, 'power' = power symbol. Omit to return all types.
netNamestringFilter to labels whose name exactly matches this string (case-sensitive). Omit to return all labels.
schematicPath *stringPath to the .kicad_sch file
list_schematic_librariesList available KiCAD symbol libraries
ParameterTypeDescription
searchPathsarrayOptional search paths for libraries
list_schematic_netsList all nets in the schematic with their connections.
ParameterTypeDescription
schematicPath *stringPath to the .kicad_sch file
list_schematic_rectanglesList the rectangles drawn on a schematic sheet (graphic boxes, such as a titled box around a group of parts). Returns each one's uuid, start and end corners in mm, stroke and fill, plus the corner radius and locked flag when KiCad wrote them. Rectangles inside symbol bodies are not included. Use the uuid with set_schematic_rectangle to move, resize, restyle or delete one.
ParameterTypeDescription
schematicPath *stringPath to the .kicad_sch file
list_schematic_textsList all free-form text annotations (notes, headings, documentation strings) in the schematic. Returns position, angle, font size, bold/italic flags, and justification for each text element. Optionally filter by a substring match on the text content.
ParameterTypeDescription
schematicPath *stringPath to the .kicad_sch file
textstringCase-insensitive substring filter — only return texts containing this string
list_schematic_wiresList all wires in the schematic with start/end coordinates.
ParameterTypeDescription
schematicPath *stringPath to the .kicad_sch file
list_symbol_librariesList all available KiCAD symbol libraries from global sym-lib-table, plus the project's sym-lib-table when projectPath (or any related file) is supplied or a project has been opened.
ParameterTypeDescription
projectPathstringOptional: project directory or .kicad_pro/.kicad_pcb/.kicad_sch path. Including this exposes project-scope sym-lib-table libraries.
list_symbol_pinsReturn pin names, numbers, and types for a symbol directly from the library — no schematic required. Use this before add_schematic_component to discover pins for connect_to_net calls. Each pin has 'number' (e.g. '1', 'A5') and 'name' (e.g. 'FB', 'GND') — connect_to_net accepts either. Pass schematicPath to resolve project-local symbols. Returns close-match suggestions if the symbol name is slightly wrong.
ParameterTypeDescription
schematicPathstringPath to .kicad_sch — enables project-local sym-lib-table lookup
symbol *stringSymbol in 'Library:SymbolName' format (e.g., Device:R, Connector:Conn_01x04)
list_symbols_in_libraryList all symbol names in a .kicad_sym library file.
ParameterTypeDescription
libraryPath *stringPath to the .kicad_sym file
list_tool_categoriesList all available KiCAD tool categories with their descriptions and tool counts. Use this to discover which tools exist; every tool can then be called directly by name.
list_toolboxesList the toolboxes: groups of related KiCad tools, each with a description, its tools, and whether it is open. Your tool list holds the core tools plus the tools of open toolboxes; open a toolbox with open_toolbox to add its tools.
list_variantsList the assembly variants registered in a KiCad project.
load_schematicLoad an existing KiCAD schematic
ParameterTypeDescription
filename *stringPath to the schematic file to load
modify_traceChange trace width, layer, or net
ParameterTypeDescription
layerstringNew layer name
netstringNew net name
traceUuid *stringUUID of the trace to modify
widthnumberNew trace width in mm
move_componentReposition existing component
ParameterTypeDescription
layerstringOptional target layer (e.g., 'F.Cu', 'B.Cu') - flips component if needed
position *objectX coordinate
reference *stringReference designator of the component (e.g., 'R5')
rotationnumberOptional new rotation in degrees
move_footprint_textMove or update a footprint Reference/Value/user text field without moving the footprint.
ParameterTypeDescription
field *stringText field to move, e.g. reference or value
layerstringOptional destination layer
reference *stringComponent reference designator
rotationnumberOptional text rotation in degrees
unitstringCoordinate unit
visiblebooleanOptional visibility
xnumberNew X coordinate
ynumberNew Y coordinate
move_schematic_componentReposition component
ParameterTypeDescription
position *objectNew position in schematic mm coordinates
preserveWiresbooleanStretch connected wire endpoints to follow the move, carrying the attached net labels, no-connect flags and wire bends along so the routing stays orthogonal (default true)
reference *stringReference designator (e.g., R1, U1)
schematicPath *stringPath to the .kicad_sch file
straightenWiresbooleanSquare up wire bends that the stretch turned diagonal, by carrying the neighbouring corner along with the pin (default true). Set false to leave stretched segments exactly as the drag left them.
unitnumberUnit of a multi-unit part (1=A, 2=B, …). Every unit of a part shares one reference, so without this the tool acts on whichever placement comes first in the file. Omit for single-unit parts.
move_schematic_net_labelMove a net label (local, global, or hierarchical) to a new position in the schematic. Use currentPosition to disambiguate when multiple labels share the same name.
ParameterTypeDescription
currentPositionobjectCurrent position to disambiguate when multiple labels share the same name
labelTypestringRestrict search to a specific label type
netName *stringName of the net label to move
newPosition *objectTarget position in mm
schematicPath *stringPath to the .kicad_sch file
namedescription

The first 200 of 266 tools, in name order.

Security checks

Static checks derived from the repository 6 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 973 words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
  • !No dynamic code executionScanned 169 source files and found 3 calls to eval or shell execution, in src/server.ts:210 and src/server.ts:449 among others. Review how tool inputs reach them before granting credentials.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
stdiosrc/kicad-server.ts:3
Starts other programs
51 callspython/commands/board/view.py:47, python/commands/board/view.py:67, python/commands/board/view.py:230
Outbound network calls
11 callssrc/tools/parts-registry.ts:73, src/tools/parts-registry.ts:445, python/commands/digikey.py:37
Writes or deletes files
121 callsgui_driver_plugin/plugins/listener.py:469, python/commands/add_library_symbol_property.py:132, python/commands/board/view.py:289
Lockfile
package-lock.json

Pattern matches on the source text of 169 files: places to read, not proof of what the code does at run time.

Releases

v2.9.0v2.9.0 · 12 Nov 2026Board inspection tools, operating modes, autorouting by layer and by net, and a large batch of fixes, most of them found on real boards. Thanks to @dp-web4, @karu2003, @rmskkn, @YORROY123, @0anes0, @vim4all, @AlexanderSaydakov, @TimChild,…
v2.8.3v2.8.3 · 26 Oct 2026Toolboxes to keep the tool list small, a Linux setup script, and a batch of fixes. Thanks to @cornellana, @YORROY123, @reinauer and @ToThePointTechDev. Toolboxes Set `KICAD_MCP_TOOLBOXES=core` and a client starts with 37 tools instead of…
v2.8.2v2.8.2 · 25 Sep 2026A patch release with three fixes. KiCad 10's stock libraries are found on installs where the global library table refers to them through a variable. New sheets are written the way KiCad writes them. A line break in a value no longer makes…
v2.8.1v2.8.1 · 24 Sep 2026A patch release with three fixes for hierarchical schematics and KiCad 10-only machines. They came out of reviewing the fixes that went into v2.8.0. Parts on reused sheets get a reference per use A sheet placed more than once gets an…
v2.8.0v2.8.0 · 24 Sep 2026A crashed or stuck worker comes back on its own One bad request could end the Python worker, and a command that hung inside pcbnew blocked every call queued behind it. Either way, every later tool call failed until the MCP server was…

README

The repository's README runs to about 973 words, fetched 6 days ago. The original in the repository is authoritative.

Read full README
Questions

About Kicad MCP Server

How do I install Kicad MCP Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Kicad MCP Server safe to use with an AI agent?

Its trust score is 82 out of 100 (strong). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Conduid's scan of 169 source files found that it serves MCP over stdio, starts other programs (51 calls), makes outbound network calls (11 calls) and writes or deletes files (121 calls). Its dependencies are pinned by package-lock.json. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Kicad MCP Server still maintained?

Yes — the latest release is v2.9.0 (12 Nov 2026), and the last commit was 18 hours ago. The repository has 3.7K stars and 18 open issues.

What tools does Kicad MCP Server provide?

Conduid read 266 tools from the source: add_board_outline, add_board_text, add_component_3d_model, add_copper_keepout, add_copper_pour, add_footprint_3d_model, add_gnd_stitching_vias, add_hierarchical_sheet and 258 more. 182 of them publish their parameters, listed under Tools above.

What license is Kicad MCP Server released under?

The repository declares the MIT license. That applies to the latest release, v2.9.0, as well.