Skip to main content

Local stdio FastMCP server for Tidy3D

Project description

Tidy3D MCP

A small local MCP server that lets your IDE or AI assistant validate Tidy3D simulations and control the in-editor 3D viewer (rotate, toggle structures, take screenshots).

What You Need

Typical Use

  • In VS Code or Cursor, install the Tidy3D extension. It automatically registers and runs this MCP server. When prompted, enter your API key. You can then ask your assistant to "validate my Tidy3D simulation" or "capture a screenshot," and the viewer responds inside the editor.

Manual Use (Advanced Hosts)

  • If your MCP host expects an stdio command, run:
tidy3d-mcp --api-key YOUR_TIDY3D_API_KEY
  • Add --enable-viewer to expose viewer controls (rotate, visibility, capture).
  • Add --product photonforge when launching the docs MCP surface for PhotonForge branding. This exposes PhotonForge-specific documentation and feedback tools while fixing their package filter to PhotonForge. PhotonForge branding cannot be combined with --enable-viewer or --viewer-bridge because viewer controls are tied to the Tidy3D VS Code/Cursor extension.

Available Tools

  • validate_simulation(file?, symbol?, index?, viewer_id?) — Validate or refresh a simulation; returns status, warnings, and a reusable viewer_id.
  • rotate_viewer(viewer_id, direction) — Align to TOP|BOTTOM|LEFT|RIGHT|FRONT|BACK.
  • show_structures(viewer_id, visibility[]) — Show/hide structures by boolean flags.
  • capture(viewer_id) — Return a screenshot image.

Troubleshooting

  • Assistant can’t control the viewer: install/enable the Tidy3D extension and verify your API key.
  • Viewer tools missing when running manually: include --enable-viewer.
  • Still stuck: re-run the extension’s setup command in your IDE and confirm network access.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tidy3d_mcp-0.16.4.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tidy3d_mcp-0.16.4-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file tidy3d_mcp-0.16.4.tar.gz.

File metadata

  • Download URL: tidy3d_mcp-0.16.4.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tidy3d_mcp-0.16.4.tar.gz
Algorithm Hash digest
SHA256 53a9bd01ad01a72294c3003f718f8ecc96c6c4cd34aae71af81bfc63a34f08d7
MD5 379a309973734ec135f4b12dd4bd62dc
BLAKE2b-256 a07a255569b2218f2d693be8d0998bd736dc270e6c7e8b70f90cb33ef2e63f14

See more details on using hashes here.

File details

Details for the file tidy3d_mcp-0.16.4-py3-none-any.whl.

File metadata

  • Download URL: tidy3d_mcp-0.16.4-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tidy3d_mcp-0.16.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9bedcd348ac6d622508c002631ff534d0b06c339a554a0a5548e2eaffa0c07c9
MD5 e128e58b617b27cfc0571835235e7f86
BLAKE2b-256 a5f8fe9f68bdc86d0dc452eb9b217d422d184e1eae44458726abc1abfbb1efa5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page