kicad-eda-mcp

v0.1.0
kicad-eda-mcp Checked 2 days ago Published 3 months ago

MCP server for controlling KiCad EDA software — IPC API + CLI + SWIG, with auto-launch.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

kicad_calculator

Pure-math PCB calculators (no KiCad instance needed). Operations: - `board_class`: Get IPC board class information. Params: class (1|2|3). - `color_code`: Convert resistor color bands to value. Params: bands (list of color names). - `e_series`: Find closest E-series standard resistor value. Params: target_ohm, series (3|6|12|24|48). - `electrical_spacing`: Get minimum clearance for a voltage (IPC-2221). Params: voltage. - `regulator`: Calculate voltage regulator resistor values. Params: vref, r1, r2, vout, iadj. - `rf_attenuator`: Calculate RF attenuator resistor values. Params: a…

ParameterTypeDescription
operation *string
attenuation_dbstring
attenuator_typestring
bandsstring
clsstring
copper_thickness_umnumber
current_astring
diameter_mmstring
height_mmstring
iadjnumber
impedance_ohmnumber
inner_diameter_mmstring
layerstring
length_mmstring
line_typestring
outer_diameter_mmstring
plating_thickness_umnumber
r1string
r2string
seriesinteger
substrate_ernumber
target_ohmstring
temp_rise_cstring
voltagestring
voutstring
vrefstring
width_mmstring

kicad_system

KiCad system operations: connection, version, documents, capabilities, multi-instance management. Operations: - `connect_instance`: Connect to a specific running KiCad instance by PID or socket path. Params: pid or socket_path. - `get_active_instance`: Get info about the currently connected KiCad instance (socket path, connection status). No params. - `get_capabilities`: Report which control layers (CLI/IPC/SWIG) are available on this system. No params. - `get_kicad_binary_path`: Get the full path to a KiCad binary. Params: binary_name. - `get_open_documents`: List documents open in…

ParameterTypeDescription
operation *string
actionstring
binary_namestring
doc_typestring
identifierstring
pidstring
project_filestring
socket_pathstring

kicad_project

KiCad project management: text variables, net classes. Operations: - `expand_text_variables`: Expand text variables in a string. Params: text. - `get_info`: Get project name, path, and text variables. No params. - `get_net_classes`: Get project net classes. No params. - `get_text_variables`: Get project text variables. No params. - `set_text_variables`: Set project text variables. Params: variables (dict). Requires mutations.

ParameterTypeDescription
operation *string
dry_runboolean
textstring
variablesstring

kicad_board

PCB editing via IPC API (requires running KiCad with a board open). All mutations support dry_run. Operations: - `add_board_text`: Add text to board. Params: text, x_mm, y_mm, layer, size_mm, rotation_deg. Requires mutations. - `add_mounting_hole`: Add a mounting hole (M2.5/M3/etc). Params: x_mm, y_mm, size_mm (drill diameter), reference. Requires mutations. - `add_to_selection`: Add items to selection. Params: item_ids. - `add_track`: Add a copper track. Params: start_x_mm, start_y_mm, end_x_mm, end_y_mm, width_mm, layer, net_name. Requires mutations. - `add_via`: Add a via. Params…

ParameterTypeDescription
operation *string
blockboolean
boundarystring
commit_idstring
companystring
date_strstring
drill_mmstring
dry_runboolean
end_x_mmstring
end_y_mmstring
filenamestring
fill_modestring
forceboolean
item_idstring
item_idsstring
itemsstring
layerstring
layersstring
lib_idstring
limitinteger
line_width_mmnumber
messagestring
net_namestring
netclass_filterstring
netlist_pathstring
origin_typestring
referencestring
revstring
rotation_degnumber
shapestring
size_mmstring
start_x_mmstring
start_y_mmstring
textstring
via_typestring
width_mmstring
x_mmstring
y_mmstring

kicad_board_export

Export PCB to all manufacturing/output formats via kicad-cli (headless, no GUI needed). Operations: - `3dpdf`: Export 3D PDF. Params: input_file, output_file. - `brep`: Export BREP (OCCT) 3D model. Params: input_file, output_file. - `drill`: Export Excellon drill files. Params: input_file, output_dir, generate_map, map_format. - `dxf`: Export DXF. Params: input_file, output_dir, layers. - `gencad`: Export GenCAD format. Params: input_file, output_dir. - `gerbers`: Export Gerber files. Params: input_file, output_dir, layers, exclude_refdes, exclude_value. - `glb`: Export GLB (bin…

ParameterTypeDescription
operation *string
black_and_whiteboolean
compressboolean
dpistring
exclude_refdesboolean
exclude_valueboolean
forceboolean
formatstring
generate_mapboolean
heightinteger
input_filestring
layersstring
map_formatstring
mirrorboolean
negativeboolean
output_dirstring
output_filestring
qualitystring
sidestring
smd_onlyboolean
themestring
unitsstring
widthinteger

kicad_board_check

Run KiCad Design Rule Check (DRC) on a PCB via kicad-cli (headless). Operations: - `drc`: Run Design Rule Check on a PCB. Params: input_file, output_file, units, severity filters, exit_code_violations, refill_zones, save_board, schematic_parity.

ParameterTypeDescription
operation *string
all_track_errorsboolean
exit_code_violationsboolean
fmtstring
input_filestring
output_filestring
refill_zonesboolean
save_boardboolean
schematic_parityboolean
severity_allboolean
severity_errorboolean
severity_exclusionsboolean
severity_warningboolean
unitsstring

kicad_schematic

Schematic ERC, exports (PDF/SVG/PNG/BOM/netlist), and upgrade via kicad-cli. Operations: - `erc`: Run Electrical Rules Check on a schematic. Params: input_file, output_file, severity filters. - `export_bom`: Export Bill of Materials. Params: input_file, output_file, fields, group_by, exclude_dnp. - `export_dxf`: Export schematic to DXF. Params: input_file, output_dir, black_and_white, pages. - `export_hpgl`: Export schematic to HPGL (pen plotter format). NOTE: Non-functional in KiCad 10+ (deprecated). Works on KiCad 9. Params: input_file, output_dir, pages, pen_size. - `export_netli…

ParameterTypeDescription
operation *string
black_and_whiteboolean
dpistring
exclude_dnpboolean
exit_code_violationsboolean
field_delimiterstring
fieldsstring
fmtstring
forceboolean
formatstring
group_bystring
input_filestring
labelsstring
output_dirstring
output_filestring
pagesstring
severity_allboolean
severity_errorboolean
severity_exclusionsboolean
severity_warningboolean
themestring
unitsstring

kicad_schematic_edit

Schematic creation and editing via kicad-sch-api (pure Python, no KiCad needed). Operations: - `add_bus_entry`: Add a bus entry element. Params: x_mm, y_mm, dx_mm, dy_mm. - `add_component`: Add a component to the schematic. Params: lib_id, reference, value, x_mm, y_mm, footprint. - `add_component_property`: Add a new custom property to a component. Params: reference, property_name, property_value, hidden. - `add_global_label`: Add a global label for cross-sheet nets. Params: text, x_mm, y_mm, rotation_deg. - `add_hierarchical_label`: Add a hierarchical label for sheet connections. P…

ParameterTypeDescription
operation *string
comp1_refstring
comp2_refstring
companystring
date_strstring
dx_mmnumber
dy_mmnumber
end_x_mmstring
end_y_mmstring
filenamestring
footprintstring
height_mmnumber
hiddenboolean
lib_idstring
namestring
output_pathstring
paperstring
pin1string
pin2string
pin_numberstring
property_namestring
property_valuestring
referencestring
revstring
rotation_degnumber
schematic_pathstring
size_mmnumber
start_x_mmstring
start_y_mmstring
textstring
titlestring
uuidstring
valuestring
width_mmnumber
x_mmstring
y_mmstring

kicad_footprint

Footprint SVG export, library upgrade, parametric footprint generation, and IPC-7351 pad calculations. Operations: - `calc_ipc_pad`: Calculate IPC-7351 compliant pad dimensions. Params: package_type, body_length, body_width, lead_width, lead_height, density_level. - `dry_run_generation`: Preview what would be generated without writing files. Params: generator, part. - `export_svg`: Export footprint(s) to SVG. Params: input_file_or_dir, output_dir, layers, black_and_white. - `generate_batch`: Batch generate footprints. Params: generator_glob, output_dir, jobs, exclude_glob. - `genera…

ParameterTypeDescription
operation *string
black_and_whiteboolean
body_lengthnumber
body_widthnumber
density_levelstring
exclude_globstring
footprint_libstring
forceboolean
generatorstring
generator_globstring
global_configstring
input_file_or_dirstring
ipc_densitystring
ipc_rulesstring
jobsinteger
layersstring
lead_heightnumber
lead_widthnumber
operation_typestring
output_dirstring
output_filestring
package_typestring
partstring
shape1string
shape2string

kicad_symbol

Symbol SVG export, library upgrade, and specialized symbol generation (STM32, AVR, connectors, etc.). Operations: - `export_svg`: Export symbol(s) to SVG. Params: input_file, output_dir, symbol, black_and_white. - `generate_avr`: Generate AVR DA/DB symbols from IO mux CSV. Params: output_file. - `generate_connector`: Generate connector symbols. Params: output_file, config. - `generate_dip_switch`: Generate DIP switch symbols. Params: output_file, count. - `generate_resistor_network`: Generate resistor network symbols. Params: output_file, count. - `generate_stm32`: Generate STM32…

ParameterTypeDescription
operation *string
black_and_whiteboolean
configstring
countinteger
cubemx_db_dirstring
forceboolean
input_filestring
output_dirstring
output_filestring
symbolstring

kicad_gerber

Gerber file conversion, diff, and inspection via kicad-cli. Operations: - `convert_png`: Convert a Gerber/Excellon file to PNG. Params: input_file, output_file, dpi. - `diff`: Generate a visual diff between two Gerber files. Params: file1, file2, output_file. - `info`: Get information about a Gerber file. Params: input_file, format, units.

ParameterTypeDescription
operation *string
dpiinteger
file1string
file2string
fmtstring
input_filestring
output_filestring
unitsstring

kicad_jobset

Execute KiCad jobsets (.kicad_jobset) via kicad-cli. Operations: - `run`: Run a KiCad jobset. Params: input_file, output, stop_on_error.

ParameterTypeDescription
operation *string
input_filestring
outputstring
stop_on_errorboolean

kicad_library

Symbol/footprint library search, KLC compliance checks, file format editing, and symbol generation. Operations: - `add_step_license`: Add license metadata to STEP files. Params: step_dir, license_text. - `audit_3d_models`: Audit generated 3D models against reference STEP files (requires cadquery). Params: new_dir, ref_dir. - `check_3d_coverage`: Check 3D model coverage for a footprint library. Params: footprint_lib, models_dir. - `check_3d_models`: Validate 3D model files. Params: models_dir. - `check_connector_consistency`: Cross-validate symbol pins vs footprint pads. Params: sym_…

ParameterTypeDescription
operation *string
base_pathstring
check_klcboolean
componentstring
config_jsonstring
csv_pathstring
drawingsstring
excluded_rulesstring
file1string
file2string
file_pathstring
footprint_dirstring
footprint_libstring
footprint_pathstring
footprint_pathsstring
fp_lib_pathstring
input_dirstring
lib_typestring
library_pathstring
license_textstring
max_radiusnumber
max_rrationumber
models_dirstring
modificationsstring
namestring
new_dirstring
new_libstring
new_pathstring
new_refstring
new_stepstring
old_libstring
old_refstring
old_stepstring
output_pathstring
output_stepstring
padsstring
querystring
ref_dirstring
regex_jsonstring
selected_rulesstring
step_dirstring
sym_lib_pathstring
symbol_datastring
symbol_namestring
table_pathstring
verboseinteger

kicad_swig

Legacy pcbnew operations via SWIG bindings (KiCad <=10 only). Deprecated — removed in KiCad 11. Operations: - `autoroute`: Auto-route via Specctra DSN/SES + FreeRouting. Params: pcb_file, output_file. (KiCad <=10) - `check_available`: Check if SWIG pcbnew bindings are available. No params. - `create_model_board`: Create a board with 4 footprint copies for 3D model comparison (VRML/STEP/transparent). Params: footprint_path, wrl_path, step_path, board_path. - `create_test_board`: Create a .kicad_pcb board with a single footprint for testing/rendering. Params: footprint_path, board_pat…

ParameterTypeDescription
operation *string
board_pathstring
colsinteger
dry_runboolean
footprint_pathstring
output_filestring
paramsstring
pcb_filestring
rowsinteger
scriptstring
step_pathstring
wrl_pathstring

kicad_analysis

Design analysis: signal/power integrity, pin analysis, routing quality, SPICE simulation. Operations: - `pin_analysis`: Analyze pin functions and detect conflicts. Params: sch_file. - `power_integrity`: Analyze power integrity: GND coverage, power zones. Params: pcb_file. - `routing_quality`: Analyze routing: width/via distribution, net length ranking. Params: pcb_file. - `signal_integrity`: Analyze signal integrity: diff-pair matching, RF traces, longest nets. Params: pcb_file. - `simulate`: Run SPICE simulation (export netlist + ngspice). Params: sch_file, analysis_type. (experime…

ParameterTypeDescription
operation *string
analysis_typestring
pcb_filestring
sch_filestring

kicad_codegen

Generate device tree and test code from KiCad designs (currently disabled — stubs). Operations:

ParameterTypeDescription
operation *string
frameworkstring
mcu_familystring
sch_filestring

kicad_workflow

High-level workflow composers that chain multiple operations into single calls. Operations: - `create_project`: Create a new KiCad project from template. Params: path, name. - `export_manufacturing_package`: Export Gerbers + drill + position + BOM in one call. Params: pcb_file, sch_file, output_dir. - `full_design_check`: Run ERC + DRC and return a combined report. Params: sch_file, pcb_file. - `get_board_summary`: Get a read-only digest: footprint count, net count, layers, DRC status. Params: pcb_file. - `list_available_exports`: List export formats available for a board/schematic.…

ParameterTypeDescription
operation *string
namestring
output_dirstring
pathstring
pcb_filestring
sch_filestring

kicad_worksheet

Parse and create KiCad worksheet (.kicad_wks) page layout files. Worksheet files define custom borders and title blocks for schematics and PCBs. Operations: - `create`: Create a new .kicad_wks file from a JSON specification. Params: output_file, setup, objects. - `create_title_block`: Create a standard title block worksheet (A4/A3/A2/A1/A0 or custom). Params: output_file, paper_size, title, company, revision, date, sheet. - `info`: Get summary info about a worksheet file (version, margins, object counts). Params: input_file. - `parse`: Parse a .kicad_wks file and return all objects as…

ParameterTypeDescription
operation *string
companystring
custom_heightstring
custom_widthstring
datestring
input_filestring
objectsstring
output_filestring
paper_sizestring
revisionstring
setupstring
sheetstring
titlestring

kicad_routing

Algorithmic PCB routing via Freerouting + analysis tools. Pipeline: export_dsn → run_freerouting → import_ses. Analysis: get_unconnected_nets, get_net_length, detect_dense_footprints. Cleanup: remove_dangling_tracks, thermal_via_grid. Operations: - `analyze_routing_difficulty`: Board-level routing statistics: pad count, net count, unconnected count, dense packages, difficulty estimate. No params. - `detect_dense_footprints`: Classify footprints by package type using lib_id (BGA/QFN/connector). Identifies fanout candidates. Params: min_pads. - `download_java_for_routing`: Auto-downlo…

ParameterTypeDescription
operation *string
allowed_via_typesstring
areastring
authenticationboolean
auto_applyboolean
automatic_neckdownstring
drc_output_pathstring
dry_runboolean
dsn_pathstring
fanout_enabledstring
fanout_max_passesstring
file_pathstring
formatstring
grid_spacing_mmnumber
hoststring
hybrid_ratiostring
ignore_net_classesstring
improvement_thresholdstring
item_selectionstring
job_idstring
job_namestring
languagestring
layers_preferred_direction_horizontalstring
layers_routablestring
max_passesinteger
min_padsinteger
modestring
net_namestring
output_pathstring
pcb_filestring
pin_numberstring
plane_via_costsstring
poll_intervalnumber
portinteger
preferred_direction_trace_coststring
referencestring
remove_existingboolean
ses_pathstring
session_idstring
settingsstring
start_ripup_costsstring
timeout_secinteger
trace_pull_tight_accuracystring
undesired_direction_trace_coststring
update_strategystring
use_dockerboolean
via_costsstring
via_drill_mmnumber
via_size_mmnumber

kicad_quality_gates

Cascading quality gates, design review snapshots, DRC progress tracking, project checkpoints, and bus syntax help. Operations: - `bus_syntax_help`: Return KiCad bus syntax reference. No params. - `design_review_snapshot`: One-call review: bundles board info, nets, DRC, footprints, stats into a single response. Params: pcb_file, sch_file (optional). - `drc_progress`: Show DRC violation count over time. Params: pcb_file. - `manufacturing_quality_gate`: Check manufacturing readiness (drill sizes, annular rings). Params: pcb_file. - `pcb_placement_quality_gate`: Check placement geometry…

ParameterTypeDescription
operation *string
checkpoint_idstring
labelstring
pcb_filestring
project_dirstring
sch_filestring

kicad_analysis_tools

Signal integrity, power integrity, EMC compliance, design lint, SPICE simulation, and board analysis tools. All use standard physics formulas — no hardcoded manufacturer values. Operations: - `board_size_estimate`: Estimate minimum board size from component data. Params: pcb_file, routing_factor. - `design_lint`: Run heuristic design quality checks on board/schematic. Params: pcb_file, sch_file (optional). - `emc_check_decoupling_proximity`: Check decoupling capacitor proximity to ICs. Params: pcb_file, max_distance_mm. - `emc_check_return_paths`: Check for signal traces that may cr…

ParameterTypeDescription
operation *string
analysis_typestring
component_refstring
conductivity_s_mnumber
copper_thickness_umnumber
current_anumber
formatstring
gap_mmnumber
height_mmnumber
input_filestring
length_mmnumber
line_typestring
max_distance_mmnumber
max_skew_mmnumber
max_temp_rise_cnumber
net1string
net2string
net_namesstring
output_filestring
paramsstring
pcb_filestring
power_wnumber
routing_factornumber
sch_filestring
signal_netstring
stub_length_mmnumber
substrate_ernumber
target_z0number
temp_rise_cnumber
thermal_conductivity_w_mm_knumber
tolerance_mmnumber
via_inner_diameter_mmnumber
via_length_mmnumber
width_mmnumber

kicad_placement

Force-directed PCB placement and topology-aware schematic auto-placement. Pure physics algorithms — no hardcoded circuit-specific rules. Operations: - `pcb_auto_place`: Force-directed auto-placement of all footprints based on netlist connectivity. Params: pcb_file, board_width_mm, board_height_mm, margin_mm, iterations, dry_run. - `pcb_auto_place_grouped`: Place footprints grouped by functional prefix (U=ICs center, J=connectors edge, passive near ICs). Params: pcb_file, board_width_mm, board_height_mm, dry_run. - `sch_auto_layout`: Full schematic auto-layout: place symbols + route wi…

ParameterTypeDescription
operation *string
board_height_mmnumber
board_width_mmnumber
dry_runboolean
iterationsinteger
margin_mmnumber
pcb_filestring
sch_filestring

kicad_discover

Discover available KiCad toolsets. Returns all categories with descriptions and load status. Call this first to see what's available, then use kicad_load_toolset to load the ones you need.

kicad_load_toolset

Load a toolset by name to make its tools visible. Use kicad_discover first to see available toolsets. Params: name (the toolset name like 'board', 'exports', 'schematic').

ParameterTypeDescription
name *string

kicad_unload_toolset

Unload a toolset to free context space. Cannot unload always-loaded toolsets (system, calculators). Params: name.

ParameterTypeDescription
name *string

kicad_set_profile

Switch to a pre-defined profile to load a group of toolsets at once. Profiles: read-only (analysis only), build (full design), manufacturing (exports), expert (everything). Params: name.

ParameterTypeDescription
name *string

kicad_get_capabilities

Get a capability report: total routers, total operations, operations per router, dependency status, and available profiles. No params.

kicad_search_tools

Search for operations by keyword across all routers. Returns matching operations with their router name and description. Params: query (search term).

ParameterTypeDescription
query *string