mcp-openems
Enables AI-assisted design of antennas and electromagnetic structures using openEMS FDTD simulation, with analytical dimension calculators and full-wave script generation.
README
<div align="center">
<img src="assets/logo-banner.svg" alt="mcp-openems — 3D FDTD electromagnetic simulation" width="100%"/>
<br/>
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
</div>
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 |
|---|---|
| lineforge | 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. |
| mcp-nec2-antenna | 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. |
| mcp-pcb-emcopilot | 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.
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 - design tools calculate dimensions analytically
# For full FDTD simulation, install OpenEMS:
pip install CSXCAD openEMS
3. Add to your MCP client
Claude Code:
claude mcp add openems -- uv run --directory /path/to/mcp-openems mcp-openems
Config 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 dimensions - Return 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 gain
The 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 simulation
The 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 MHz
The 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.
Author
Adam Engelbrecht - @RFingAdam
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。