What is MCP? Co-design with AI
Hertzon's vision is co-design: every design is made by an engineer and an AI agent together. Hertzon provides its methods (modelling, adaptive solving, sweeps, optimizers, tuning, circuits, PCB import) as tools that an AI agent can call through MCP. The AI picks and combines them, and the engineer sets the goal, watches every step in the open window and makes the decisions.
What MCP is
MCP, the Model Context Protocol, is an open standard for connecting AI assistants to software. A program that speaks MCP (an MCP server) describes what it can do as a list of tools: each tool has a name, a short explanation and its parameters, for example "create a box with these dimensions" or "run this analysis and return S11". An AI assistant that speaks MCP (an MCP client, such as Claude Code, the Claude desktop app, Codex or VS Code in agent mode) reads this list and can then call the tools on its own while it works on your request.
You can think of MCP as the USB port for AI assistants: one plug, and any assistant can use any program that offers it, without custom code on either side.
What MCP does in Hertzon
Hertzon ships an MCP server. Once it is registered with your assistant (set it up once), you can write a request in plain language, for example "build a 2.45 GHz patch antenna on FR4 with a lumped port, solve it and give me S11 and the gain", and the assistant does the steps itself:
- it creates the project, the variables and the geometry,
- assigns materials, boundaries and ports,
- defines the analysis setup with adaptive meshing and the frequency sweep,
- runs the solver and follows the adaptive passes,
- reads S-parameters, fields, gain or RCS, and decides what to try next.
With the live link (Tools > AI Assistants (MCP)... > Let AI assistants work in this window) every step appears in the open Hertzon window at once. You see what the AI does, you can change things yourself in between, and Ctrl+Z undoes any of its changes. The full list of tools is in the tutorial.
The Claude plugin: how to use the tools
The MCP server gives an assistant the tools; for Claude Code, Hertzon also ships a plugin that tells it how to use them: what Hertzon offers, how to read its results and what to check before it trusts them; the approach stays the assistant's own. It is installed together with the MCP server (Register next to Claude Code), loads from your Hertzon folder and is updated with Hertzon (details, tutorial 5.4).
🧪 Experimental. The plugin and its skills are still experimental: how well a design turns out depends on the assistant, its model and the task, and an assistant can still miss a goal or stop early. Research into better results is ongoing, and the skills change with it.
| Part | What it adds |
|---|---|
Skill hf-design-loop |
what Hertzon offers for a design: design assistants and tuning for simple structures, broad batched search for demanding ones, systems of many parts assembled on the board (board) with a serial and parallel cloud estimate (cloud), coarse setups, convergence reported to the user |
Skill circuit-first |
multi-fidelity for planar circuits: design and optimize in the circuit, then check and correct in full wave with a few 3D solves; systems of several parts assembled on the board |
Skill antenna-design |
open region, feeds, adaptive frequencies for several bands, far-field efficiency instead of S11 alone, how to extend a design that meets one band but not the other |
Skill results-check |
mesh convergence, ports, power balance, efficiency split, counter tests, confirmed cause versus hypothesis |
| Commands | /hertzon:design <specification> runs the workflow, /hertzon:verify checks the open design without changing it |
| Hertzon pane | every picture Hertzon draws for the assistant (reports, field plots, the 3D view, convergence), as it looks in Hertzon; the line above the prompt shows the adaptive pass of a running analysis |
The skills also set rules that keep the engineer informed: an adaptive mesh that did not converge is always
reported, the cost of cloud runs is estimated before they start, and a missing or failing tool becomes a prefilled
issue for the Hertzon developers (report_issue) that the user reads and posts, or not.
Large projects and computing resources: keep an eye on them
With these tools an assistant can, in principle, set up and run large projects on its own and use the computing resources efficiently, for example by solving several variants or the parts of a system side by side. Hertzon warns before an analysis starts when its last run needed more memory than is free, and the memory guard of the adaptive meshing stops a pass before it runs out of memory.
The MCP tool cloud can also choose where the analyses of a window run, including cloud servers (Hetzner
Cloud or another provider) when such an account is set up in Hertzon (REMOTE.md). Servers cost money
while they run. The skills tell the assistant to estimate time and cost first and to start servers only when you
agree, but an assistant can still start them anyway. Watch the servers, their cost and their running time
whenever an assistant works with a cloud account: the status bar shows the costs so far, Check Account lists
every server, and cloud/events.log in the work folder records who created and deleted which server. Without a
cloud account set up, everything runs on your own computer.
Python scripts: off by default
Many edits at once go through apply_history: a list of tool steps (objects, operations, copies, assignments)
that Hertzon checks and applies in one call, all or nothing. duplicate makes arrays and mirrored copies. Neither
runs code.
The tool run_python runs any Python code the assistant writes, with your rights on your computer: it can read and
change files and start programs. A text in a project or an issue from someone else could talk an assistant into
misusing it. It is therefore off and not offered to the assistant until you turn on Allow Python scripts under
Tools > AI Assistants (or set HERTZON_MCP_PYTHON=1 for the server). The assistant sees the change after it
restarts the Hertzon server, for example in a new session. Claude Code can run programs through its own shell
anyway (with its own permission prompts), so there it adds little.
Methods as tools: why this matters
An AI agent is good at understanding a goal, planning and combining steps. It is not a field solver. In Hertzon the AI does not guess physics: it uses the same validated methods an engineer uses, and the numbers come from the FEM solver. The more powerful the methods Hertzon offers, the less the AI has to iterate by hand, and the fewer tokens and the smaller the models it needs:
- Solving: 3D full-wave FEM with adaptive meshing, fast and interpolating sweeps, solving on remote and cloud machines.
- Design assistants: the patch antenna, hairpin filter and hairpin diplexer assistants turn a specification into a model.
- Optimizers: three optimizers for design variables, among them a derivative trust region on the adaptive mesh, so the AI states the goal and Hertzon does the iterations in one call.
- Derivative tuning: sensitivities from mesh morphing tell how S-parameters change with each variable without solving again.
- Circuits and PCBs: schematics with lumped parts and lines, their 3D layout, 3D designs as blocks, the
board with Auto Place, Connect and Match Phase (
board), and boards imported from Gerber files with their stackup. - Post-processing: S-parameters, port modes, gain and RCS (
get_results), Fields Calculator values such as the Poynting flux through a face (evaluate_fields), the power budget per port and the losses per object (get_power_budget), Edit Sources (set_sources: power and phase per port, so fields and far fields of an array are superposed without a new solve), and pictures drawn by Hertzon itself (show_result). - Next: topology optimization. From the author's research on pixelated antennas (Mair & Baumgarten, Sci. Rep. 14, 26664, 2024): instead of tuning a few dimensions, the shape of the metal itself is optimized. As an MCP tool it lets an AI agent explore designs that no parametric model contains.
Engineer and AI together
Co-design does not mean handing the design over. The engineer brings the goal, the judgement and the responsibility; the AI brings speed, patience and the ability to run and compare many variants. Hertzon keeps the engineer in control:
- everything the AI does happens in the open project and can be inspected, changed and undone,
- results are the solver's results, shown with the same plots and reports as for any manual run,
- every model the AI builds is an ordinary Hertzon project that you can open, edit and share.
Real runs are on the website, for example a dual-band antenna for AI glasses designed by an AI agent through Hertzon's MCP server in 2 h 25 min (examples/meta_glasses_ex1).