kicad-eda-mcp
v0.1.0MCP 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…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
attenuation_db | string | |
attenuator_type | string | |
bands | string | |
cls | string | |
copper_thickness_um | number | |
current_a | string | |
diameter_mm | string | |
height_mm | string | |
iadj | number | |
impedance_ohm | number | |
inner_diameter_mm | string | |
layer | string | |
length_mm | string | |
line_type | string | |
outer_diameter_mm | string | |
plating_thickness_um | number | |
r1 | string | |
r2 | string | |
series | integer | |
substrate_er | number | |
target_ohm | string | |
temp_rise_c | string | |
voltage | string | |
vout | string | |
vref | string | |
width_mm | string |
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…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
action | string | |
binary_name | string | |
doc_type | string | |
identifier | string | |
pid | string | |
project_file | string | |
socket_path | string |
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.
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
dry_run | boolean | |
text | string | |
variables | string |
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…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
block | boolean | |
boundary | string | |
commit_id | string | |
company | string | |
date_str | string | |
drill_mm | string | |
dry_run | boolean | |
end_x_mm | string | |
end_y_mm | string | |
filename | string | |
fill_mode | string | |
force | boolean | |
item_id | string | |
item_ids | string | |
items | string | |
layer | string | |
layers | string | |
lib_id | string | |
limit | integer | |
line_width_mm | number | |
message | string | |
net_name | string | |
netclass_filter | string | |
netlist_path | string | |
origin_type | string | |
reference | string | |
rev | string | |
rotation_deg | number | |
shape | string | |
size_mm | string | |
start_x_mm | string | |
start_y_mm | string | |
text | string | |
via_type | string | |
width_mm | string | |
x_mm | string | |
y_mm | string |
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…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
black_and_white | boolean | |
compress | boolean | |
dpi | string | |
exclude_refdes | boolean | |
exclude_value | boolean | |
force | boolean | |
format | string | |
generate_map | boolean | |
height | integer | |
input_file | string | |
layers | string | |
map_format | string | |
mirror | boolean | |
negative | boolean | |
output_dir | string | |
output_file | string | |
quality | string | |
side | string | |
smd_only | boolean | |
theme | string | |
units | string | |
width | integer |
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.
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
all_track_errors | boolean | |
exit_code_violations | boolean | |
fmt | string | |
input_file | string | |
output_file | string | |
refill_zones | boolean | |
save_board | boolean | |
schematic_parity | boolean | |
severity_all | boolean | |
severity_error | boolean | |
severity_exclusions | boolean | |
severity_warning | boolean | |
units | string |
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…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
black_and_white | boolean | |
dpi | string | |
exclude_dnp | boolean | |
exit_code_violations | boolean | |
field_delimiter | string | |
fields | string | |
fmt | string | |
force | boolean | |
format | string | |
group_by | string | |
input_file | string | |
labels | string | |
output_dir | string | |
output_file | string | |
pages | string | |
severity_all | boolean | |
severity_error | boolean | |
severity_exclusions | boolean | |
severity_warning | boolean | |
theme | string | |
units | string |
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…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
comp1_ref | string | |
comp2_ref | string | |
company | string | |
date_str | string | |
dx_mm | number | |
dy_mm | number | |
end_x_mm | string | |
end_y_mm | string | |
filename | string | |
footprint | string | |
height_mm | number | |
hidden | boolean | |
lib_id | string | |
name | string | |
output_path | string | |
paper | string | |
pin1 | string | |
pin2 | string | |
pin_number | string | |
property_name | string | |
property_value | string | |
reference | string | |
rev | string | |
rotation_deg | number | |
schematic_path | string | |
size_mm | number | |
start_x_mm | string | |
start_y_mm | string | |
text | string | |
title | string | |
uuid | string | |
value | string | |
width_mm | number | |
x_mm | string | |
y_mm | string |
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…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
black_and_white | boolean | |
body_length | number | |
body_width | number | |
density_level | string | |
exclude_glob | string | |
footprint_lib | string | |
force | boolean | |
generator | string | |
generator_glob | string | |
global_config | string | |
input_file_or_dir | string | |
ipc_density | string | |
ipc_rules | string | |
jobs | integer | |
layers | string | |
lead_height | number | |
lead_width | number | |
operation_type | string | |
output_dir | string | |
output_file | string | |
package_type | string | |
part | string | |
shape1 | string | |
shape2 | string |
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…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
black_and_white | boolean | |
config | string | |
count | integer | |
cubemx_db_dir | string | |
force | boolean | |
input_file | string | |
output_dir | string | |
output_file | string | |
symbol | string |
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.
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
dpi | integer | |
file1 | string | |
file2 | string | |
fmt | string | |
input_file | string | |
output_file | string | |
units | string |
kicad_jobset
Execute KiCad jobsets (.kicad_jobset) via kicad-cli. Operations: - `run`: Run a KiCad jobset. Params: input_file, output, stop_on_error.
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
input_file | string | |
output | string | |
stop_on_error | boolean |
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_…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
base_path | string | |
check_klc | boolean | |
component | string | |
config_json | string | |
csv_path | string | |
drawings | string | |
excluded_rules | string | |
file1 | string | |
file2 | string | |
file_path | string | |
footprint_dir | string | |
footprint_lib | string | |
footprint_path | string | |
footprint_paths | string | |
fp_lib_path | string | |
input_dir | string | |
lib_type | string | |
library_path | string | |
license_text | string | |
max_radius | number | |
max_rratio | number | |
models_dir | string | |
modifications | string | |
name | string | |
new_dir | string | |
new_lib | string | |
new_path | string | |
new_ref | string | |
new_step | string | |
old_lib | string | |
old_ref | string | |
old_step | string | |
output_path | string | |
output_step | string | |
pads | string | |
query | string | |
ref_dir | string | |
regex_json | string | |
selected_rules | string | |
step_dir | string | |
sym_lib_path | string | |
symbol_data | string | |
symbol_name | string | |
table_path | string | |
verbose | integer |
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…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
board_path | string | |
cols | integer | |
dry_run | boolean | |
footprint_path | string | |
output_file | string | |
params | string | |
pcb_file | string | |
rows | integer | |
script | string | |
step_path | string | |
wrl_path | string |
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…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
analysis_type | string | |
pcb_file | string | |
sch_file | string |
kicad_codegen
Generate device tree and test code from KiCad designs (currently disabled — stubs). Operations:
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
framework | string | |
mcu_family | string | |
sch_file | string |
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.…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
name | string | |
output_dir | string | |
path | string | |
pcb_file | string | |
sch_file | string |
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…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
company | string | |
custom_height | string | |
custom_width | string | |
date | string | |
input_file | string | |
objects | string | |
output_file | string | |
paper_size | string | |
revision | string | |
setup | string | |
sheet | string | |
title | string |
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…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
allowed_via_types | string | |
area | string | |
authentication | boolean | |
auto_apply | boolean | |
automatic_neckdown | string | |
drc_output_path | string | |
dry_run | boolean | |
dsn_path | string | |
fanout_enabled | string | |
fanout_max_passes | string | |
file_path | string | |
format | string | |
grid_spacing_mm | number | |
host | string | |
hybrid_ratio | string | |
ignore_net_classes | string | |
improvement_threshold | string | |
item_selection | string | |
job_id | string | |
job_name | string | |
language | string | |
layers_preferred_direction_horizontal | string | |
layers_routable | string | |
max_passes | integer | |
min_pads | integer | |
mode | string | |
net_name | string | |
output_path | string | |
pcb_file | string | |
pin_number | string | |
plane_via_costs | string | |
poll_interval | number | |
port | integer | |
preferred_direction_trace_cost | string | |
reference | string | |
remove_existing | boolean | |
ses_path | string | |
session_id | string | |
settings | string | |
start_ripup_costs | string | |
timeout_sec | integer | |
trace_pull_tight_accuracy | string | |
undesired_direction_trace_cost | string | |
update_strategy | string | |
use_docker | boolean | |
via_costs | string | |
via_drill_mm | number | |
via_size_mm | number |
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…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
checkpoint_id | string | |
label | string | |
pcb_file | string | |
project_dir | string | |
sch_file | string |
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…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
analysis_type | string | |
component_ref | string | |
conductivity_s_m | number | |
copper_thickness_um | number | |
current_a | number | |
format | string | |
gap_mm | number | |
height_mm | number | |
input_file | string | |
length_mm | number | |
line_type | string | |
max_distance_mm | number | |
max_skew_mm | number | |
max_temp_rise_c | number | |
net1 | string | |
net2 | string | |
net_names | string | |
output_file | string | |
params | string | |
pcb_file | string | |
power_w | number | |
routing_factor | number | |
sch_file | string | |
signal_net | string | |
stub_length_mm | number | |
substrate_er | number | |
target_z0 | number | |
temp_rise_c | number | |
thermal_conductivity_w_mm_k | number | |
tolerance_mm | number | |
via_inner_diameter_mm | number | |
via_length_mm | number | |
width_mm | number |
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…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
board_height_mm | number | |
board_width_mm | number | |
dry_run | boolean | |
iterations | integer | |
margin_mm | number | |
pcb_file | string | |
sch_file | string |
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').
| Parameter | Type | Description |
|---|---|---|
name * | string |
kicad_unload_toolset
Unload a toolset to free context space. Cannot unload always-loaded toolsets (system, calculators). Params: name.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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).
| Parameter | Type | Description |
|---|---|---|
query * | string |