PhotonForge AI

FlexAgent MCP is an AI assistant that understands photonic simulation concepts, the PhotonForge and Tidy3D APIs, and can interact with your design environment to provide context-aware support - from learning concepts to building simulations from scratch.

Install FlexAgent MCP

FlexAgent is available as a plugin for Claude Code and Codex, as a Cursor/VS Code extension, or as a standalone MCP server. Choose the option that matches your environment.

Claude Code

Install the Tidy3D plugin from the Flexcompute marketplace. Reload plugins after installation.

# In Claude Code terminal /plugin marketplace add flexcompute/plugin-marketplace /plugin install tidy3d@flexcompute /reload-plugins
Full installation guide ↗

Codex

Add the Flexcompute marketplace, then open Codex, run /plugins, choose the Flexcompute marketplace, and install Tidy3D.

# Add marketplace codex plugin marketplace add flexcompute/plugin-marketplace # Then configure via uvx uvx tidy3d configure
Full installation guide ↗

Cursor / VS Code

Install the Tidy3D extension for Cursor or VS Code. FlexAgent MCP is configured automatically - including API key, MCP server, and 3D Viewer integration.

Extension setup guide ↗

Standalone MCP Client

For any MCP-compatible client, launch the server with uvx. Requires a Tidy3D API key configured via uvx tidy3d configure.

# Launch MCP server uvx tidy3d mcp
{ "mcpServers": { "tidy3d": { "command": "uvx", "args": ["tidy3d", "mcp"] } } }

What FlexAgent can do

📚

Learn

Understand Tidy3D and PhotonForge concepts and workflows.

"Explain how Tidy3D FDTD updates the fields"

🔍

Troubleshoot

Diagnose and resolve simulation validation errors and issues.

"Fix the structure-related validation error"

Customize

Modify existing simulations - swap monitors, update parameters, change materials.

"Replace the FluxMonitor with a ModeMonitor"

🛠

Build from Scratch

Create new simulation setups from natural-language descriptions.

"Create a y-junction waveguide simulation"

📊

Analyze Results

Interpret and visualize simulation output - fields, modes, S-parameters.

"Plot all the electric field components"

AI Design Examples

Explore what agentic photonic design looks like in practice - from chip layout automation to multi-physics modulator optimization.

Video Demonstrations

Video walkthroughs of AI-assisted workflows are coming soon.

Coming soon
Coming soon
Coming soon