About Klayout Draw MCP
Klayout Draw MCP is an MCP server in the Developer Tools category: an MCP server for drawing GDS layouts with KLayout.
Install
git clone https://github.com/geniuskey/klayout-draw-mcpThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (16)
add_box(layer, x1, y1, x2, y2, datatype)Add a rectangle
Parameters not published.
add_label(layer, x, y, text, datatype)Add a text label
Parameters not published.
add_path(layer, points, width, datatype)Add a path with width
Parameters not published.
add_polygon(layer, points, datatype)Add a polygon from `[x, y]` vertices
Parameters not published.
add_via(x, y, bottom_layer, top_layer, cut_layer, …)Via: cut array + enclosing metal
Parameters not published.
add_wire(layer, points, width)Manhattan wire (auto L-corners)
Parameters not published.
drc_check(rules, path?)Simple DRC: spacing / width / overlap / separation / enclosure
Parameters not published.
inspect_gds(path?)Per-layer shape count, area and bbox of a file or the session
Parameters not published.
layout_info()Inspect current layout (layers, bbox, shape count)
Parameters not published.
load_gds(path, top_cell?)Load an existing GDS/OASIS into the session for editing
Parameters not published.
Show all 16 tools
new_layout(top_cell, dbu)Start a new in-memory layout (coordinates in micrometers)
Parameters not published.
open_editor(file_path?)Open KLayout in editor mode, or a blank layout
Parameters not published.
open_layout(file_path)Open a file in KLayout (viewer)
Parameters not published.
place_cell(cell, x, y, orient, nx, ny, dx, dy)Place an instance or array of a cell
Parameters not published.
run_script(code)Run arbitrary Python with `klayout.db` (cell hierarchy, arrays, booleans, DRC, ...)
Parameters not published.
save_gds(path, open_after)Write GDS/OASIS; optionally open in the editor
Parameters not published.
Ask AI
Ask AI about Klayout Draw MCP
Powered by Claude · Grounded in docs
Security checks
6 checks have not been run yet.