Build, align & render a real optical bench in Blender; drivable by an AI agent over MCP.
An optical bench you lay out in Blender, trace with real optics, and can hand to an AI agent.
Place lasers, mirrors, lenses, waveplates, gratings, crystals and detectors in 3-D. A live engine traces the beam through them — rays, Gaussian beams, polarization, dispersion — mounts everything on real opto-mechanics, and renders it in Cycles. The whole optical state is readable and writable over a localhost MCP bridge, so an agent works from measured geometry instead of guesses.
Requires Blender 4.2 LTS or newer (4.2+ / 5.x).
One-click, keeps itself updated. Open the install page and drag the “⤓ Drag this into Blender to install” button onto an open Blender window. That installs the add-on and subscribes you to updates in one gesture. Turn on Edit ▸ Preferences ▸ System ▸ Network ▸ Allow Online Access first.
From a zip. Download optical_alignment_sim-<version>.zip from
Releases and use Edit ▸ Preferences
▸ Add-ons ▸ Install from Disk…. Updates then come from the add-on's own Updates panel.
Open the Optics tab in the 3-D viewport sidebar (press N).
Headless, the same thing from Python:
import optics_api # inside Blender: blender -b --python your.py
optics_api.build_example("michelson") # a full bench in one call
optics_api.set_mount("MI_M_fixed", "KM100") # put a mirror on a kinematic mount
optics_api.set_dof("MI_M_fixed", "TIP", steps=40) # turn a knob: the beam walks off
optics_api.align_element("MI_M_fixed") # and back: 2.51 -> 0.0012 mrad
print(optics_api.inspect_beam("MI_D")) # power, w(z), polarization, coherence
examples/ holds runnable scripts: michelson.py,
mach_zehnder.py, agent_align.py,
bell_entanglement.py,
hong_ou_mandel.py.
The add-on exposes its full state as JSON over a localhost bridge and ships an MCP server, so an agent can read the bench and act on it:
get_state() → every element's pose, ports, mount limits, beam path, detector readings
↓ decide
set_param() · place_relative() · set_dof() · align_element() · ao_close_loop() · render()
↓ the beam re-traces
get_state() → read the result, not a guess
Start it from Present ▸ Tools & Integration ▸ Start MCP Bridge. → agent guide · MCP server · tool list
Every push runs the physics: 341 textbook checks (Malus, Fresnel, Snell, the grating equation, Gaussian ABCD, Zernike orthonormality, energy conservation) plus a 618-check regression suite on both Blender 4.2 and 5.x. The core formulas were also verified against an external symbolic and numerical oracle; where that has not been done, the code and the docs say so. Every run builds the same benches in millimetre and metre scenes and requires the readouts to agree.
What is not claimed matters as much: this is a chief-ray engine with wave-optics overlays, not a full-wave solver. Thin elements carry no thickness, a grating has no blaze-efficiency model, and anything phenomenological says so where you read it. Model limits are written next to each feature.
→ scope and limits · element-by-element provenance · where the data comes from
| Features, examples, release history | The long version of this page |
| Capabilities | Every panel, API call and MCP tool |
| Optical elements | Per-element model, parameters and provenance |
| Scope | What the engine does and does not simulate |
| Dispersion, cylindrical lenses, spectra | Gratings, white light, group delay, spectrometers |
| Realistic hardware | Mounts, cages, rails and render detail |
| Beam rendering | How baked beams are drawn, and what that is not |
| Data sources | Catalog and material provenance |
| Agent guide · MCP server | Driving the bench from outside |
| CHANGELOG | What changed in each release |
A machine-readable CITATION.cff is included, so GitHub shows a Cite this
repository button with ready-to-paste APA / BibTeX.
@software{cobanoglu_blender_optics_simulator,
author = {Çobanoğlu, Muhammet Emir},
title = {Blender Optics Simulator},
year = {2026},
version = {0.31.0},
doi = {10.5281/zenodo.20778997},
license = {GPL-3.0-or-later},
url = {https://github.com/emircbngl/blender-optics-simulator}
}
The DOI above is the concept DOI and always resolves to the latest version; each release also mints
its own version DOI (listed in CITATION.cff).
GPL-3.0-or-later — see LICENSE. Vendor CAD and meshes are not included and remain the
property of their owners; this project ships original metadata, procedural geometry and tooling.
Contributors
Built in the spirit of Bigweld's maxim from Robots (2005) — "See a need, fill a need."
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
uvx blender-optics-mcpMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-emircbngl-blender-optics-simulator": {
"command": "uvx",
"args": [
"blender-optics-mcp"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referenceblender-optics-mcppypiio.github.emircbngl/blender-optics-simulator works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.