Photonics Simulation MCP

Photonics Simulation MCP

Knowledge-based MCP server for photonics simulation engineering, providing rules, bugs, checklists, and tool recommendations for Lumerical FDTD/MODE/FDE, HFSS, COMSOL, and PyAEDT.

Category
Visit Server

README

Photonics Simulation MCP

Knowledge-based MCP server for photonics simulation engineering.

Supported software: Lumerical FDTD/MODE/FDE, HFSS, COMSOL, PyAEDT.

Knowledge Base

All knowledge is stored in the knowledge/ directory as structured YAML files:

  • lumerical_bugs.yaml — Lumerical FDTD/MODE known bugs and workarounds
  • lumerical_api_rules.yaml — API function names, parameters, and encoding rules
  • hfss_bugs.yaml — HFSS BatchSolve and boundary issues
  • hfss_rules.yaml — .aedt file format, port naming, and setup syntax
  • comsol_rules.yaml — COMSOL MPh API and mode analysis rules
  • pyaedt_rules.yaml — PyAEDT import paths and compatibility
  • physics_rules.yaml — Anisotropy, conductivity, unit conversion, 2D/3D differences
  • simulation_checklists.yaml — Pre-run checklists and general engineering principles
  • workflows.yaml — Tool selection guide and step-by-step workflows

Installation

Clone repository and install dependencies:

git clone https://github.com/LLLDYYY/Photonics-Simulation-MCP.git
cd Photonics-Simulation-MCP
python -m pip install -r requirements.txt

Start the MCP server:

python server.py

Available Tools

Query and Search

  • hello() — Health check
  • get_rule(rule_id) — Retrieve a specific rule by ID (e.g., LUM001, HFSS004, PHY008)
  • search_knowledge(keyword) — Full-text search across all knowledge files
  • list_knowledge_files() — List all available YAML knowledge files
  • get_all_knowledge() — Load and return the entire knowledge base

Software-Specific

  • get_lumerical_bugs() — Lumerical bug database
  • get_lumerical_api_rules() — Lumerical API naming and syntax rules
  • get_hfss_bugs() — HFSS bug database
  • get_comsol_rules() — COMSOL rules and API guidelines
  • get_pyaedt_rules() — PyAEDT compatibility and import rules
  • get_physics_rules() — Physics rules (anisotropy, conductivity, unit conversion)

Guard and Checklists

  • simulation_guard(software) — Return all known warnings for a given software (lumerical, hfss, or comsol)
  • get_checklist(name) — Return pre-run checklists (e.g., lumerical_before_run, hfss_before_solve, general_principles)
  • get_workflow(name) — Return workflow steps (e.g., fdtd, hfss, tool_selection)
  • get_tool_recommendation(task) — Recommend simulation tool for a task

Tool Recommendation Examples

Task: mode_analysis -> Tool: Lumerical FDE (Fast, high accuracy, good anisotropy support)

Task: directional_coupler -> Tool: FDE Supermode + CMT (Much faster than FDTD, sufficient accuracy)

Task: microwave_cpw -> Tool: COMSOL 2D FEM (2D cross-section sufficient, literature standard)

Task: fullwave_3d -> Tool: HFSS (Mature, high accuracy, but .aedt format has many pitfalls)

Task: electro_optic_modulator -> Tool: FDE + overlap integral (No full-wave simulation needed)

Cursor MCP Configuration

Add to your Cursor MCP settings:

{
  "mcpServers": {
    "photonics": {
      "command": "python",
      "args": [
        "/absolute/path/to/Photonics-Simulation-MCP/server.py"
      ]
    }
  }
}

Note: Use the absolute path to server.py to ensure the knowledge directory is resolved correctly.

Repository

https://github.com/LLLDYYY/Photonics-Simulation-MCP

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured