https://github.com/flexcompute/tidy3d-docs
Documentation for Tidy3D
https://github.com/flexcompute/tidy3d-docs
Last synced: 11 days ago
JSON representation
Documentation for Tidy3D
- Host: GitHub
- URL: https://github.com/flexcompute/tidy3d-docs
- Owner: flexcompute
- License: lgpl-2.1
- Created: 2022-01-27T18:45:49.000Z (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2026-02-19T18:30:07.000Z (4 months ago)
- Last Synced: 2026-05-02T16:38:13.947Z (about 2 months ago)
- Language: Python
- Homepage: https://docs.simulation.cloud/projects/tidy3d/
- Size: 827 MB
- Stars: 10
- Watchers: 1
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Copyright: COPYRIGHT
- Agents: AGENTS.md
Awesome Lists containing this project
README
# Tidy3D
[](https://pypi.python.org/pypi/tidy3d)
[](https://pypi.python.org/pypi/tidy3d/)
[](https://flexcompute-tidy3ddocumentation.readthedocs-hosted.com/?badge=latest)
[](https://github.com/flexcompute/tidy3d/actions/workflows/tidy3d-python-client-tests.yml)
[](LICENSE)
[](https://github.com/astral-sh/ruff)

[](https://github.com/flexcompute/tidy3d-notebooks)

Tidy3D is a software package for solving extremely large electrodynamics problems using the finite-difference time-domain (FDTD) method. It can be controlled through either an [open source python package](https://github.com/flexcompute/tidy3d) or a [web-based graphical user interface](https://tidy3d.simulation.cloud).
This repository contains the python API to allow you to:
* Programmatically define FDTD simulations.
* Submit and manage simulations running on Flexcompute's servers.
* Download and postprocess the results from the simulations.

## Installation
### Signing up for tidy3d
Note that while this front end package is open source, to run simulations on Flexcompute servers requires an account with credits.
You can sign up for an account [here](https://tidy3d.simulation.cloud/signup).
After that, you can install the front end with the instructions below, or visit [this page](https://docs.flexcompute.com/projects/tidy3d/en/latest/install.html) in our documentation for more details.
### Quickstart Installation
To install the Tidy3D Python API locally, the following instructions should work for most users.
```
pip install --user tidy3d
tidy3d configure --apikey=XXX
```
Where `XXX` is your API key, which can be copied from your [account page](https://tidy3d.simulation.cloud/account) in the web interface.
In a hosted jupyter notebook environment (eg google colab), it may be more convenient to install and configure via the following lines at the top of the notebook.
```
!pip install tidy3d
import tidy3d.web as web
web.configure("XXX")
```
**Advanced installation instructions for all platforms is available in the [documentation installation guides](https://docs.flexcompute.com/projects/tidy3d/en/latest/install.html).**
### Authentication Verification
To test the authentication, you may try importing the web interface via.
```
python -c "import tidy3d; tidy3d.web.test()"
```
It should pass without any errors if the API key is set up correctly.
To get started, our documentation has a lot of [examples](https://docs.flexcompute.com/projects/tidy3d/en/latest/notebooks/docs/index.html) for inspiration.
## Common Documentation References
| API Resource | URL |
|--------------------|----------------------------------------------------------------------------------|
| Installation Guide | https://docs.flexcompute.com/projects/tidy3d/en/latest/install.html |
| Documentation | https://docs.flexcompute.com/projects/tidy3d/en/latest/index.html |
| Example Library | https://docs.flexcompute.com/projects/tidy3d/en/latest/notebooks/docs/index.html |
| FAQ | https://docs.flexcompute.com/projects/tidy3d/en/latest/faq/docs/index.html |
## FlexAgent MCP
FlexAgent adds an AI-assisted layer on top of Tidy3D via the Model Context Protocol (MCP); read more about [AI-assisted simulation in Tidy3D](https://hs.flexcompute.com/news/ai-assisted-simulation-in-tidy3d-ushering-in-a-new-era-of-photonic-design). Install the `tidy3d-mcp` server when you want that experience inside an MCP client without the Tidy3D extension for [Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-python.python) and [Cursor](https://open-vsx.org/extension/Flexcompute/tidy3d).
These commands assume [uv](https://docs.astral.sh/uv/getting-started/installation/) is installed on your machine.
**Register the server with your MCP client** - use the block below that matches your CLI.
Codex CLI / IDE
```bash
codex mcp add tidy3d -- uvx tidy3d-mcp --api-key "YOUR_TIDY3D_API_KEY"
```
Claude CLI / Desktop / Code
```bash
claude mcp add tidy3d -- uvx tidy3d-mcp --api-key "YOUR_TIDY3D_API_KEY"
```
Gemini CLI
Create or edit `.gemini/settings.json` (project) or `~/.gemini/settings.json` (global):
```json
{
"mcpServers": {
"tidy3d": {
"command": "uvx",
"args": ["tidy3d-mcp", "--api-key", "YOUR_TIDY3D_API_KEY"]
}
}
}
```
Cursor CLI / IDE
Cursor reuses the same schema across the editor and `cursor-agent`. Configure `.cursor/mcp.json` (per-project) or `~/.cursor/mcp.json` (global) and then run `cursor-agent mcp list` to verify:
```json
{
"mcpServers": {
"tidy3d": {
"command": "uvx",
"args": ["tidy3d-mcp", "--api-key", "YOUR_TIDY3D_API_KEY"]
}
}
}
```
## Related Source Repositories
| Name | Repository |
|-------------------|-------------------------------------------------|
| Source Code | https://github.com/flexcompute/tidy3d |
| Notebooks Source | https://github.com/flexcompute/tidy3d-notebooks |
| FAQ Source Code | https://github.com/flexcompute/tidy3d-faq |
## Issues / Feedback / Bug Reporting
Your feedback helps us immensely!
If you find bugs, file an [Issue](https://github.com/flexcompute/tidy3d/issues).
For more general discussions, questions, comments, anything else, open a topic in the [Discussions Tab](https://github.com/flexcompute/tidy3d/discussions).
## License
[GNU LGPL](https://github.com/flexcompute/tidy3d/blob/main/LICENSE)