LAB SKILLZ

Optics MCP · v0.1.0

Thin-film optics, inside Claude

Optics MCP gives Claude the Thin Film Lab engine. Describe the coating you need, Claude designs the layer stack, and the engine computes reflectance and checks the physics before you see the answer.

Example session in Claude

YouI need a mirror for 550 nm on glass. TiO₂ and SiO₂ only.
→ design_quarter_wave_mirror { center_nm: 550, pairs: 5 }
ClaudeAn (HL)⁵H stack of 11 layers: TiO₂ 58.51 nm and SiO₂ 94.18 nm. Reflectance at 550 nm is 99.06 %, and it matches the closed-form solution (check: PASS).

Tools

Three tools Claude can call

Every result carries its own physics check, so Claude never has to guess whether a number is right.

SIMULATE

simulate_stack

Reflectance and transmittance of any lossless multilayer over a wavelength range, at any angle, for s, p or averaged polarization. Each run reports its energy-conservation error.

DESIGN

design_quarter_wave_mirror

A quarter-wave dielectric mirror for a target wavelength, with layer thicknesses and a check against the closed-form reflectance.

VERIFY

verify_engine

Runs the engine self-checks on demand: energy conservation, closed-form quarter-wave stacks and bare-glass Fresnel reflection.

Install

One file, no dependencies

Optics MCP is a single file that runs locally with Node.js 18+ or Bun. Your designs never leave your machine.

Claude Code

$ curl -O https://optics.labskillz.com/optics-mcp.mjs
$ claude mcp add optics -- node "$(pwd)/optics-mcp.mjs"

Claude Desktop

Add this to claude_desktop_config.json and restart Claude.

{
  "mcpServers": {
    "optics": { "command": "node", "args": ["/path/to/optics-mcp.mjs"] }
  }
}

Verification

Checked against exact physics

The same transfer-matrix engine as thinfilmlab.org. These are the values verify_engine returns.

CheckMax errorResult
Energy conservation, |R+T−1|, 0–70°, s and p, 400–800 nm3.0×10⁻¹⁵PASS
Quarter-wave stacks vs closed form, N = 1, 3, 5, 101.1×10⁻¹⁶PASS
Bare glass vs Fresnel equation0PASS