mcp-openems
This MCP server lets you design RF/electromagnetic structures (antennas and PCB interconnects), get analytical dimensions/impedances, and generate ready-to-run openEMS FDTD simulation scripts.
Antenna design: patch, dipole, monopole, pyramidal horn, and axial-mode helix antennas (dimensions, gain/directivity estimates).
Transmission-line/PCB design: microstrip trace (Z₀, εeff), edge-coupled lines (even/odd mode, diff/common impedance), and via transitions (parasitics).
Simulation scripting: generate complete OpenEMS Python scripts for full-wave FDTD simulation of any created design.
Design management: list, retrieve, export (JSON/SVG/ASCII), compare designs, and get optimization hints.
Environment check: verify whether OpenEMS is installed and available.
Reference: list available antenna types with typical gain and applications.
Works without OpenEMS for analytical design and geometry export; full-wave simulation requires OpenEMS installed.
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., "@mcp-openems Design a 2.4 GHz patch antenna on FR-4"
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.
AI-assisted antenna and RF-structure design via openEMS FDTD, driven over MCP. Patch / dipole / monopole / horn / helix antennas, microstrip and coupled-line transmission lines, via transitions: geometry, analytical Z₀/εeff, and ready-to-run openEMS Python scripts.
Quick start · Tools · Examples · Suite catalog
An MCP server for designing antennas and electromagnetic structures using openEMS FDTD simulation. Provides analytical design calculators that work immediately, plus openEMS script generation for full-wave simulation.
Part of the engineering toolkit
This repo is part of eng-mcp-suite, an MCP-driven engineering toolkit for RF / EMC / PCB / signal-integrity / lab-test workflows.
Related tools in the toolkit:
Tool | When to reach for it |
2D quasi-TEM closed-form for transmission lines (microstrip, stripline, CPWG, differential, three-conductor). Use this when you need impedance fast and the geometry is 2D. | |
Wire-antenna method-of-moments (dipole / Yagi / vertical / loop / inverted-V). Use this when you have a wire-antenna geometry and don't need the 3D-field detail of FDTD. | |
PCB layout review (decoupling, return paths, plane resonances, DDR/PCIe/USB SI). Often pairs with mcp-openems for full-wave validation of a flagged region. |
When to use mcp-openems specifically: full-wave 3D FDTD validation, broadband S-parameters, near/far-field characterization, antenna geometries with 3D features (horns, helices), or when closed-form is running out of accuracy.
Related MCP server: cst-mcp
Features
Antenna Design Tools
openems_create_patch - Microstrip patch antenna (WiFi, GPS, satellite)
openems_create_dipole - Half-wave dipole antenna
openems_create_monopole - Quarter-wave monopole over ground plane
openems_create_horn - Pyramidal horn antenna for specified gain
openems_create_helix - Axial-mode helix for circular polarization
Simulation & Export
openems_generate_script - Generate complete OpenEMS Python simulation script
openems_check_installation - Check if OpenEMS is available
Design Management
openems_list_designs - List all designs in session
openems_get_design - Get full design details with geometry
openems_list_antenna_types - Reference for antenna types and applications
Installation
1. Clone and install
git clone https://github.com/RFingAdam/mcp-openems.git
cd mcp-openems
uv pip install -e .2. (Optional) Install OpenEMS for simulation
The MCP works without OpenEMS: the design tools calculate dimensions analytically. Full FDTD simulation needs the CSXCAD and openEMS Python bindings.
These are not on PyPI. pip install CSXCAD openEMS does not work. They are
compiled extensions built from source against the openEMS C++ install:
git clone --recursive https://github.com/thliebig/openEMS-Project.git
cd openEMS-Project
./update_openEMS.sh ~/opt/openEMS # builds the C++ libraries
source .venv/bin/activate # the venv you installed this MCP into
./scripts/build_python.sh --cpp-install-dir ~/opt/openEMSTwo things that will bite you, both of which broke this repo in 2026-08:
The bindings are ABI-pinned to one Python minor version. A
cpython-314extension is invisible to a 3.12 interpreter, and vice versa. If you recreate the venv on a different Python, rebuild the bindings too.They link against system HDF5, VTK and boost. A distro upgrade that bumps those sonames breaks every
.sohere withlibhdf5_serial.so.NNN: cannot open shared object file. Rebuild against the new libraries;build_python.sh --cpp-install-dirrebuilds only the Python layer, which is enough when the C++ install is already current.
Run openems_check_installation to see which of these you are hitting: it
reports the real import error and the interpreter in use.
3. Add to your MCP client
Claude Code:
claude mcp add openems -- uv run --directory /path/to/mcp-openems mcp-openemsConfig file format:
{
"command": "uv",
"args": ["run", "--directory", "/path/to/mcp-openems", "mcp-openems"]
}Usage Examples
Design a WiFi patch antenna
Design a 2.4 GHz patch antenna on FR-4 substrate (er=4.4, 1.6mm thick)The AI will:
Use
openems_create_patchto calculate dimensionsReturn patch length, width, feed position
Provide estimated directivity and impedance
Design a satellite uplink antenna
I need a circularly polarized antenna for 5.8 GHz with about 12 dBi gainThe AI will use openems_create_helix for CP requirements.
Generate simulation script
Generate an OpenEMS script for this antenna so I can run a full simulationThe AI will use openems_generate_script to create a complete Python script.
Compare antenna types
What antenna types are available? I need something for a handheld radio at 440 MHzThe AI will use openems_list_antenna_types and recommend appropriate options.
Tool Reference
Design Output Format
Each design tool returns:
design_id: UUID for referencing the design
dimensions: Calculated physical dimensions in mm
calculated: Derived parameters (impedance, gain estimates)
geometry: OpenEMS-compatible geometry specification
Example Output
{
"success": true,
"design_id": "550e8400-e29b-41d4-a716-446655440000",
"design": {
"name": "2.4 GHz Patch",
"type": "patch",
"frequency_ghz": 2.4,
"dimensions": {
"patch_length_mm": 28.85,
"patch_width_mm": 37.24,
"feed_inset_mm": 8.92,
"ground_plane_mm": 94.48
},
"calculated": {
"effective_er": 3.33,
"estimated_directivity_dbi": 7.2
}
}
}Generated Script
The openems_generate_script tool creates a complete Python script that:
Sets up the FDTD simulation
Creates geometry from the design
Adds mesh with appropriate resolution
Runs the simulation
Extracts S-parameters and plots results
Antenna Design Formulas
Antenna | Method | Key Formula |
Patch | Transmission Line Model | L = c/(2f√εeff) - 2ΔL |
Dipole | Classical | L = 0.95 × λ/2 |
Monopole | Image Theory | H = 0.95 × λ/4 |
Horn | Aperture Theory | G = 4πAe/λ² |
Helix | Kraus Model | C ≈ λ, S = C tan(α) |
Without OpenEMS
Even without OpenEMS installed, this MCP provides:
Analytical dimension calculations
Geometry specifications for manual modeling
Reference impedance and gain estimates
OpenEMS script generation for later use
With OpenEMS
With OpenEMS installed, you can run the generated scripts to:
Perform full-wave FDTD simulation
Get accurate S-parameters and input impedance
Calculate radiation patterns and gain
Visualize fields in ParaView
Supported Frequencies
The design tools work across the RF spectrum:
HF (3-30 MHz): Dipole, monopole
VHF (30-300 MHz): All types
UHF (300 MHz-3 GHz): All types
Microwave (3-30 GHz): Patch, horn, helix
mmWave (30-300 GHz): Patch, horn (with appropriate substrate)
License
AGPL-3.0-or-later. Relicensed from Apache-2.0 in v0.2.0 to align with the eng-mcp-suite toolkit-wide AGPL move. The underlying openEMS engine remains GPL-3.0; this wrapper is AGPL-3.0-or-later and invokes the engine at runtime without redistribution.
Trademarks and brand assets
This project is not affiliated with, endorsed by, or sponsored by the openEMS project. "openEMS" is used here only to identify the software this project interoperates with.
The project name and the logo files in this repository are not part of the licensed work. The licence above grants no permission to use them, except as needed to describe the origin of the work.
Author
Adam Engelbrecht - @RFingAdam
Available Tools
16 toolsopenems_check_installationA
Check if OpenEMS is installed and available for running simulations.
Inputs: no named parameters.
openems_compare_designsA
Compare multiple antenna designs side-by-side with metrics and recommendations.
Inputs: design_ids (required).
openems_create_coupled_linesA
Design edge-coupled microstrip lines. Calculates even/odd mode impedances, differential/common-mode impedances, and coupling coefficient. 4-port geometry for NEXT/FEXT analysis.
Inputs: spacing_mm (required), frequency_ghz (required), trace_width_mm (required), trace_length_mm (required), +3 more.
openems_create_dipoleB
Design a half-wave dipole antenna. Classic resonant antenna with well-known characteristics.
Inputs: frequency_ghz (required), name, wire_radius_mm.
openems_create_helixB
Design an axial-mode helical antenna for circular polarization.
Inputs: frequency_ghz (required), name, turns.
openems_create_hornA
Design a pyramidal horn antenna for specified gain. Calculates aperture dimensions and length.
Inputs: frequency_ghz (required), name, gain_dbi.
openems_create_microstripA
Design a microstrip trace and calculate characteristic impedance using Hammerstad formula. Generates 2-port geometry for S-parameter extraction.
Inputs: frequency_ghz (required), trace_width_mm (required), trace_length_mm (required), dielectric_height_mm (required), +2 more.
openems_create_monopoleB
Design a quarter-wave monopole antenna over a ground plane.
Inputs: frequency_ghz (required), name, wire_radius_mm, ground_plane_mm.
openems_create_patchB
Design a rectangular microstrip patch antenna. Calculates dimensions using transmission line model for specified frequency and substrate.
Inputs: frequency_ghz (required), name, substrate_er, substrate_height_mm.
openems_create_viaA
Design a via transition between two PCB layers. Models via barrel, pads, and feed traces. Estimates parasitic inductance and capacitance. 2-port geometry for reflection/transmission analysis.
Inputs: pad_mm (required), drill_mm (required), frequency_ghz (required), dielectric_height_mm (required), +2 more.
openems_export_designA
Export antenna design for visualization. Formats: json (full data), svg (vector graphic), ascii (terminal art).
Inputs: design_id (required), format.
openems_generate_scriptB
Generate a complete OpenEMS Python simulation script for a design. The script can be run independently.
Inputs: design_id (required).
openems_get_designB
Get full details of a specific antenna design including dimensions and geometry.
Inputs: design_id (required).
openems_list_antenna_typesA
List available antenna types with descriptions, typical gain, and applications.
Inputs: no named parameters.
openems_list_designsA
List all antenna designs created in this session.
Inputs: no named parameters.
openems_optimize_hintsA
Get optimization suggestions for an antenna design including parameter sensitivities and improvement strategies.
Inputs: design_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Each antenna and PCB creation tool targets a distinct geometry (patch, dipole, monopole, horn, helix, microstrip, coupled lines, via). Minor potential confusion exists between patch antenna and microstrip line, and between script generation and design export, but overall purposes are clear.
All tools share the 'openems_' prefix and follow a consistent verb_noun pattern (create_, list_, get_, generate_, export_, check_, optimize_, compare_). Naming is uniform and predictable, with no mixed conventions.
With 16 tools, the server is slightly above the ideal 3-15 range but still well-scoped. It covers antenna design, PCB analysis, design management, and utility functions without feeling bloated or redundant.
The set covers design creation, listing, retrieval, export, optimization hints, and comparison. However, there are no update/delete tools for designs, and simulation execution (running OpenEMS) is not directly supported—only script generation is provided. These gaps prevent a full end-to-end workflow.
Maintenance
Related MCP Connectors
Design circuits, simulate and verify embedded firmware, and lay out PCBs with AI agents.
Structural FEM for AI agents: frames, plates, buckling, seismic and Eurocode checks, solved locally.
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
AI-callable calculators and engineering models with real formulas. No hallucinated math.
Related MCP Servers
- AlicenseCqualityCmaintenanceEnables engineers to convert antenna papers/diagrams and natural language specs into auditable, versionable HFSS Python modeling code, with optional simulation and parametric optimization.22MIT
- AlicenseNot gradedqualityBmaintenanceTurns CST Studio Suite into an AI-controllable electromagnetic design lab, enabling conversational THz metamaterial absorber design, unit-cell automation, Floquet port control, batch solve with checkpoint-resume, and surrogate-model predictions.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables natural-language-driven modeling, simulation, and optimization of antennas in CST Studio Suite, covering geometry, materials, ports, solvers, S-parameters, far-field analysis, parameter sweeps, and optimization via 73 MCP tools.3MIT
- AlicenseNot gradedqualityBmaintenanceEnables an AI agent to drive the openEMS FDTD electromagnetic simulator in two teaching modes: executor, where the agent designs, simulates and tunes antennas, and tutor, where the student designs while the agent may only run, inspect and explain results because the model-editing tools are removed at the server level. It also provides project/workspace management, background simulation execution, post-processing of S11, impedance, bandwidth, directivity and gain, plus session logging and design-review tools.MIT