gds2palace
OfficialEnables running Palace electromagnetic simulations on Linux and WSL/Linux targets, including remote simulation servers over SSH. It can list and check targets, submit simulations, monitor run status, and fetch results back to the local machine.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@gds2palaceCheck my model script for missing settings"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
gds2palace_mcp

An MCP server for gds2palace. It lets an AI assistant (Claude Code, Claude Desktop, or any other MCP client) inspect GDSII layouts and stackup files, check model scripts, and generate AWS Palace models on your computer.
The MCP server runs locally, in the same Python environment as gds2palace, and works with the files on your disk.
Palace itself runs on Linux: on the simulation servers (ssh) or the WSL/Linux machine that you list in a targets
file, the MCP server starts it, watches it and copies the results back (Running Palace).
Without that file, you run run_sim on Linux as before.
Documentation
Start with the user guide (docs/README.md). This page is a short reference; the guide is written for RFIC designers and has the detailed instructions:
What MCP is, and where your data goes (what the assistant receives from each tool, how to keep layouts local)
Setup step by step, with a virtual environment and a check that the MCP server is connected
What you can do with it (example requests and the tools they use) and what it can't do
Running Palace: the targets file, login to a simulation server without a password, what happens during a run
docs/example_session.md shows a full session with an inductor, from the layout to a meshed Palace model, with real output.
Related MCP server: Lumerical MCP Server
Installation
pip install gds2palace_mcpThis also installs gds2palace and its requirements (gdspy, gmsh, shapely, numpy), gds_prepare_for_EM, gds_viewer, plot_snp and scikit-rf. It needs gds2palace 0.9.2 or newer, which ships the IHP stackup files and the result tools.
Add the MCP server to Claude Code, using the Python environment where it is installed:
claude mcp add gds2palace -- python -m gds2palace_mcp.serverOr, without installing anything first (needs uv):
claude mcp add gds2palace -- uvx gds2palace_mcpFor Claude Desktop and other clients, add the same command to the client's MCP server configuration. The user guide's setup section goes through this step by step; to let the MCP server run Palace for you, see Running Palace.
What it offers
Tool | What it does |
| The IHP stackup files that ship with gds2palace (SG13G2, SG13G2 with conformal passivation, SG13CMOS5L), and the installed versions of the MCP server, gds2palace and the packages its tools use. The MCP server's instructions also name its own and the gds2palace version |
| Variables, materials, dielectrics, layers with GDS numbers and z positions, derived layers, free port layer numbers. Accepts variable overrides such as |
| Per layer: number of shapes, extent, smallest shape and smallest gap (for choosing the mesh size and via merging). With a stackup, the role of each layer, and which layers gds2palace ignores |
| Before meshing: polygon count per layer (only layers the stackup uses, without flattening the layout, so it is fast for dense fill and via arrays), layout size, polygon density, the layers that dominate, and simplification hints. A report, no pass/fail limit |
| Before ground plane openings are filled: per metal layer the repeated opening sizes in ground planes (cheesing, tiled meshes; holes inside tiles and gaps between tiles alike, measured on the merged layer) and the other openings, which stay |
| Writes a simplified copy of the layout, like setupEM's Tools > Simplify GDS: remove floating dummy fill, fill the repeated openings of ground planes (measured in the layout, no size threshold), merge via arrays, merge each layer. Layers come from the stackup; returns polygon counts before and after |
| Before the mesh settings are discussed: traces and coupled lines on the top 2 conductor layers with shapes, and the |
| For a layout without port shapes: port candidates from pins, labels (integer labels give the port numbers) or open trace ends, each with a reference ground (closest solid ground metal below, else SUBGND) |
| Writes a copy of the layout with the confirmed port lines on layers 201 and up, plus the |
| Checks the ports against the layout before meshing: via port lines on metal of both layers, in-plane ports touching metal at both ends, layer collisions, several shapes on one port layer |
| Before meshing: repeated shapes found from the cell hierarchy without flattening (via fields, fill, tiles with holes placed as arrays), with how often each repeats, whether tiles touch, and which |
| Checks a model script without running it: settings that gds2palace doesn't read (typos such as |
| Runs the model script without gmsh windows and checks the output: |
| Keeps waiting for a model generation that is still running |
| Opens the mesh, or the unmeshed geometry, in the gmsh GUI on the user's screen |
| The layout as an image (via gds_viewer) with the ports labelled, for the assistant to look at. IHP SG13G2 colors and patterns; for other technologies, colors from the stackup materials, with a legend |
| The computers where Palace may run, from the user's |
| Starts Palace for a generated model on a target: copies mesh and config to a simulation server (into a private folder of its own per run), starts the target's |
| Running, finished, failed or stopped; port, frequency step and AMR iteration from the log, the run's own RAM, 'did NOT converge' lines, last log lines. Works after a restart (job record in the model folder) |
| Copies the results back (without paraview field dumps unless asked), makes the Touchstone files (combine_snp) and returns the run summary. Deletes the run folder on the simulation server only when asked |
| Summary of finished Palace runs (gds2palace's palace_summary): unknowns, mesh elements, run time, peak RAM, AMR convergence (Max |ΔS| per iteration, optional plot), Touchstone files found, "did NOT converge" in saved logs |
| Numbers from Touchstone files: ports, frequency range, passivity and reciprocity, dB minimum/maximum, dB/phase at chosen frequencies |
| dB/phase plots and Smith charts as images for the assistant (via plot_snp), several files in one plot |
| Opens the interactive plot_snp windows on the user's screen |
| SPICE equivalent circuit (Ngspice/VACASK) from a Touchstone file with snp2le in command-line mode: inductor, MIM capacitor, line, Wilkinson, balun, branch-line structures or a universal vector fit. Needs |
| Writes a new Touchstone file (the input stays unchanged) and returns how its ports relate to the input's: |
| Figures of merit by device, at chosen frequencies and worst case in a band, optional plot. Transformer: L1, L2, k, Q1, Q2, minimum insertion loss (maximum available gain), optimum source/load impedance, self-resonance. Balun: insertion loss, amplitude/phase imbalance, CMRR, return losses. Coupler: coupling, isolation, directivity, phase difference. Power divider: split, balance, isolation. Line (known length): Z0, eps_eff, loss in dB/mm. Differential transformers and lines on 4 ports via port pairs |
| L or C, R and Q of an inductor or capacitor (differential, single-ended or series), peak Q, self-resonance frequency, optional L/Q plot |
Resources: gds2palace://agents-guide (gds2palace's AGENTS.md:
workflow, script template, settings, pitfalls) and gds2palace://stackups/<file> (the bundled stackup files and their
README).
Prompt: new_model starts a new model: it inspects the layout and asks you for the design decisions (frequency
range, ports, stackup, accuracy) before writing the script.
You don't call these tools yourself: you ask in plain language, and the assistant picks them. The user guide has example requests for each, and says what each tool sends to the assistant.
Tests
pip install -e ".[test]"
pytest # fast: all tools on small layouts generated in the tests (about 6 s; 30 s with the example tests)
pytest -m slow # gmsh meshing and the stdio MCP protocol (about 10 s)The layouts, stackup and Touchstone files of the tests are generated in the tests, with known answers (a line over
a ground plane, coupled lines, a tiled ground plane with openings, series R-L-C networks). Tests marked examples
check the values found on the real example layouts of the gds2palace, gds_prepare_for_EM and lumpedmodel
repositories; they run when those repositories are next to this one and are skipped otherwise. The snp2le tests
are skipped when snp2le is not installed. The Palace run tests use a fake run_palace and a fake ssh and run on
Linux only. GitHub runs the tests on every pull request (Windows, Linux and macOS,
Python 3.10 and 3.13).
Notes
All paths are paths on the computer where the MCP server runs.
generate_modelruns the script with the Python of the MCP server's environment. If the script adds a localgds2palacefolder tosys.path, that copy is used; the result shows which gds2palace version and file were used.With the stdio transport, gds2palace's printed output is captured and returned in the tool results.
The Palace run tools never stop or delete a run on their own. ssh runs use passwordless login (
BatchMode); the scripts on the target go throughbash -l(PATH from~/.profile, as the gds2palace installers set it up).Windows (gmsh, plots, the live log) open on the computer where the MCP server runs: Windows, macOS (Terminal for the log), or Linux with a display (the log uses the first working terminal of x-terminal-emulator, gnome-terminal, konsole, xfce4-terminal, xterm). Without a display, the tools say so and work without the window.
License
GPL-3.0-or-later, like gds2palace.
This server cannot be deployed
Maintenance
Related MCP Connectors
Turn datasheets into source-backed JSON contracts, pinout matrices, and KiCad CAD for AI agents.
Design, route, check, review and export manufacturable PCBs from plain language; KiCad import.
Structural FEM for AI agents: frames, plates, buckling, seismic and Eurocode checks, solved locally.
- OwlCADOAuthcom.owlcad
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI assistants to create, edit, and view GDS layout files using KLayout, with tools for basic shapes and scripting.182MIT
- AlicenseNot gradedqualityDmaintenanceEnables natural-language-driven automation of Ansys Lumerical photonic simulations (FDTD, MODE, DEVICE, INTERCONNECT) with 40+ tools for geometry, materials, sources, monitors, solvers, results, optimization, and documentation.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with ANSYS Icepak through natural language commands, supporting geometry import, material assignment, thermal loads, meshing, solving, and result retrieval.-
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to drive RF/microwave design and simulation workflows, including geometry synthesis, multi-solver execution, quality checks, and optimization, with sandboxed draft-and-validate edits.2GPL 3.0