FDTD Lumerical MCP
Provides tools for controlling Ansys Lumerical FDTD, enabling AI agents to run simulations, execute scripts, and manage project files within a restricted workspace.
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., "@FDTD Lumerical MCP run simulation waveguide.fsp"
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.
FDTD Lumerical MCP
Local MCP server for controlling Ansys Lumerical FDTD from Codex.
The server uses the Lumerical Python Automation API (lumapi) from an existing
Ansys/Lumerical installation. lumapi is not installed from pip.
Setup
cd "C:\path\to\FDTD-Lumerical-mcp"
python -m pip install -e ".[dev]"Set LUMERICAL_API_PATH if automatic discovery cannot find lumapi.py:
$env:LUMERICAL_API_PATH = "C:\Program Files\Ansys Inc\vXXX\Lumerical\api\python\lumapi.py"Optional workspace override:
$env:FDTD_WORKSPACE = "C:\path\to\FDTD-Lumerical-mcp\workspace"Run the server:
python -m fdtd_mcp.serverRelated MCP server: mcp-kicad
Verification
Run unit tests without opening FDTD:
python -m pytest -qRun the real MCP/FDTD smoke test:
$env:FDTD_INTEGRATION = "1"
python -m pytest -q -m integrationCodex MCP Config
See .codex/config.toml.example.
Safety Model
Project and export file paths are restricted to FDTD_WORKSPACE, which defaults
to the repository workspace/ directory when the MCP server is launched from
the project root.
Tools that execute user script or run simulations should stay in prompt approval mode in Codex configuration.
Available Tools
15 toolsdata_exportC
Export data to FDTD_WORKSPACE, optionally using a Lumerical script.
Inputs: path (required), script. Returns: object
fdtd_closeA
Close the active FDTD session.
Inputs: no named parameters. Returns: object
fdtd_runB
Run the active FDTD simulation.
Inputs: no named parameters. Returns: object
fdtd_startC
Start a local Ansys Lumerical FDTD GUI session.
Inputs: hide, project_path. Returns: object
fdtd_statusA
Return FDTD MCP session status.
Inputs: no named parameters. Returns: object
object_addC
Create an FDTD object with a Lumerical add* command.
Inputs: command (required), properties. Returns: object
object_deleteC
Delete a named FDTD object.
Inputs: name (required). Returns: object
object_getC
Read selected properties from a named FDTD object.
Inputs: name (required), properties. Returns: object
object_setC
Set properties on a named FDTD object.
Inputs: name (required), properties (required). Returns: object
project_loadA
Load an .fsp project from FDTD_WORKSPACE.
Inputs: path (required). Returns: object
project_newA
Create a new blank FDTD project in the active session.
Inputs: no named parameters. Returns: object
project_saveC
Save the active FDTD project under FDTD_WORKSPACE.
Inputs: path. Returns: object
result_getC
Read a result dataset from a named FDTD object.
Inputs: object_name (required), result_name (required). Returns: object
script_evalC
Evaluate Lumerical script code in the active FDTD session.
Inputs: code (required), return_vars. Returns: object
script_run_fileC
Run a Lumerical script file from FDTD_WORKSPACE.
Inputs: path (required), return_vars. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool targets a distinct operation: session management (fdtd_*), project CRUD (project_*), object CRUD (object_*), simulation running, result retrieval, script execution, and data export. No two tools have overlapping purposes.
All tools follow a consistent <resource>_<verb> pattern in snake_case (e.g., object_add, project_load, fdtd_close). No mixing of conventions.
15 tools is well-scoped for an FDTD simulation server, covering session, project, object, simulation, results, scripting, and data export without bloat.
Covers CRUD for projects and objects, simulation lifecycle, results, scripting, and export. Missing is a tool to list all objects in a project, which is a minor gap.
Maintenance
Related MCP Connectors
MCP server for lightfield documentation, generated by doc2mcp.
MCP server to assist with JxBrowser development.
QuLab MCP remote server (Streamable HTTP) for computational science and lab tools.
MCP server for the Seline Analytics API
Related MCP Servers
- FlicenseAqualityDmaintenanceLocal MCP server that wraps the codex CLI asynchronously, returning a job_id immediately to avoid MCP protocol timeouts, and providing tools to start, poll, list, and cancel codex jobs.4-
- AlicenseBqualityDmaintenanceMCP server exposing KiCad PCB Editor functionality via IPC API.4147 PyPI1MIT
- AlicenseBqualityDmaintenanceMCP Server for COMSOL Multiphysics simulation automation via AI agents.782MIT
- FlicenseNot gradedqualityDmaintenanceLocal MCP server enabling Codex to inspect and edit HWPX documents, Excel spreadsheets, and QGIS QGS/QGZ projects on Windows with safety and fidelity.1-