Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

MCP for OpenFilters

by BBrunoEstevesversion 0.2.2i★ 0iRuns on your computerRepository ↗
Registry nameio.github.BBrunoEsteves/mcp-for-openfilters

How to install

What it does

Design, simulate and optimize optical thin-film coatings with the OpenFilters engine.

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Games, sports, food & learning

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity23/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score35/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install MCP for OpenFilters. Follow https://mcp.popnx.com/i/bbrunoesteves-mcp-for-openfilters.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 13, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server MCP for OpenFilters for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "for-openfilters": { "command": "uvx", "args": [ "mcp-for-openfilters" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the MCP for OpenFilters tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "for-openfilters": {
          "command": "uvx",
          "args": [
            "mcp-for-openfilters"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use MCP for OpenFilters and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using MCP for OpenFilters or shows a MCP for OpenFilters tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect MCP for OpenFilters yet

MCP for OpenFilters runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect MCP for OpenFilters

  • Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)

B · Others in Games, sports, food & learning that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server MCP for OpenFilters for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user for-openfilters -- uvx mcp-for-openfilters 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the MCP for OpenFilters tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user for-openfilters -- uvx mcp-for-openfilters
  4. Type /mcp in Claude Code

    You should see MCP for OpenFilters listed as connected

  5. Try it

    Use MCP for OpenFilters and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using MCP for OpenFilters or shows a MCP for OpenFilters tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server MCP for OpenFilters for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "for-openfilters": { "command": "uvx", "args": [ "mcp-for-openfilters" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the MCP for OpenFilters tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use MCP for OpenFilters and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using MCP for OpenFilters or shows a MCP for OpenFilters tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server MCP for OpenFilters for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "for-openfilters": { "type": "stdio", "command": "uvx", "args": [ "mcp-for-openfilters" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the MCP for OpenFilters tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use MCP for OpenFilters and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using MCP for OpenFilters or shows a MCP for OpenFilters tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use MCP for OpenFilters💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user for-openfilters -- uvx mcp-for-openfilters

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "for-openfilters": {
      "command": "uvx",
      "args": [
        "mcp-for-openfilters"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "for-openfilters": {
      "command": "uvx",
      "args": [
        "mcp-for-openfilters"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "for-openfilters": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-for-openfilters"
      ]
    }
  }
}

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
1,187/wk
Licencei
GPL-2.0
Connection
Runs on your computer
Latest versioni
0.2.2
Published to registryi
Nov 7, 2026
Code last changedi
Nov 7, 2026
Maker
BBrunoEsteves
Packages
pypi: mcp-for-openfilters
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account BBrunoEsteves, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 12 days ago

  • ✓ Pass

    Has a licence

    Uses GPL-2.0

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for mcp-for-openfilters@0.2.2

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/bbrunoesteves-mcp-for-openfilters.svg)](https://mcp.popnx.com/en/servers/bbrunoesteves-mcp-for-openfilters)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Games, sports, food & learningi

  • More stars than 0% of the other 1614 servers in this category
  • Published to the registry more recently than 69% of the other 1614 servers in this category
  • Basic checks equal to or better than 99% of the other 1614 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is MCP for OpenFilters safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 12 days ago, and the latest version (0.2.2) reached the registry 12 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: Anime Garden, WilmAI, Lumify Sports Intelligence, Savecraft, GoodWatch

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

WilmAI

Finland's Wilma school system for parents and students: schedule, homework, exams and messages.

by aikarjalGrowing↓ 1.4K/wk★ 89 Stars for the whole repoUpdated 10 days ago

Runs on your computer✓ service owner · wilm.ai

Savecraft

Savecraft serves real save game data and expert game knowledge to AI assistants.

by joshsymondsEarly★ 13Updated 7 months ago

Runs in the cloudRepo archived✓ service owner · savecraft.gg

GoodWatch

Find movies and TV shows, track watches, and get suggestions based on your taste.

by alp82Early★ 50 Stars for the whole repoUpdated 30 days ago

Runs in the cloud✓ service owner · goodwatch.app
Compared with similar ones
This one
MCP for OpenFilters
Anime GardenWilmAILumify Sports IntelligenceSavecraftGoodWatch
Runs whereInstalls on your computerRuns in the cloud, nothing to installInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoYesNoNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks3/34/43/34/43/44/4
LicenseGPL-2.0AGPL-3.0MITMITApache-2.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

MCP for OpenFilters

*An unofficial connector built on OpenFilters: not affiliated with or endorsed by the OpenFilters authors or Polytechnique Montréal.*

Design, simulate and optimize optical thin-film coatings by talking to Claude.

This project is an MCP server around the calculation core of [OpenFilters](https://www.polymtl.ca/larfis/en/links) (Stéphane Larouche and Ludvik Martinu, Polytechnique Montréal), ported to Python 3 and run without its GUI. Claude plans the work and reads compact summaries; the server does the computing — in parallel on all CPU cores — and writes full results to disk, including .ofp project files that open in the OpenFilters GUI.

Claude orchestrates; the server computes. One tool call can launch a whole campaign.

Quick start

Pick the one that matches how you use Claude (details under Installation):

You useDo this
Claude DesktopDownload mcp-for-openfilters- .mcpb from the latest release and open it: Claude Desktop installs the extension.
Claude Codeclaude mcp add --scope user mcp-for-openfilters -- uvx mcp-for-openfilters (needs uv), or the plugin: /plugin marketplace add BBrunoEsteves/mcp-for-openfilters, then /plugin install mcp-for-openfilters@mcp-for-openfilters
Any MCP client, or no uvRun uvx mcp-for-openfilters, pip install mcp-for-openfilters (PyPI), or the installer from the release page, which also registers it in Claude Desktop and Claude Code.

Then, in a new chat: *"Run the MCP for OpenFilters server_info tool"*, and try *"Design an antireflection coating for BK7 from 430 to 670 nm with TiO2 and SiO2."* It is also listed in the official MCP Registry as io.github.BBrunoEsteves/mcp-for-openfilters.

Built and tested with Claude. The server follows the open MCP standard, but it has so far been

developed and tested only with Claude (Claude Desktop and Claude Code). Other MCP clients may work,

but they are untested: tool descriptions, plots and long-running jobs may behave differently there.

What it can do

AreaTools
Materialslist_materials, get_material_index, add_material (constant, Cauchy, Sellmeier, n,k tables from files), search_refractiveindex + import_refractiveindex_material (any of the ~3,500 entries of the refractiveindex.info database, downloaded on demand)
Single designdescribe_design, compute_spectrum (R/T/A, phase, GD, GDD; s/p/unpolarized or any polarization angle; any angle of incidence; reverse side), compute_angle_scan, compute_color, compute_electric_field, compute_monitoring_curves (chosen wavelengths or spectroscopic; reverse side)
Targets & meritevaluate_design, layer_sensitivity
Optimizationoptimize_design — OpenFilters' refinement, needle and step methods
Temperaturethermal_sensitivity (how a peak moves per index and thickness change of each material; dλ/dT, kelvin per FWHM, athermal dn/dT), thermal_sweep (peak versus temperature) — tunable and athermal filters
Campaignsrun_batch (parameter sweeps), run_optimization_campaign (many starts → ranked → optional yield stage), tolerance_analysis (Monte Carlo yield with thickness and index errors), simulate_random_errors (OpenFilters' Preproduction: mean, standard deviation and worst case of the curves)
Jobsjob_status, get_results, list_jobs, cancel_job — results survive a server restart
Filesload_project, save_project (native .ofp)

Example requests to Claude:

  • *"Design a dichroic on BK7 with R > 99 % at 532 and 1064 nm and T > 90 % at 633 nm for 0–20°, at most 40 layers of TiO2/SiO2. Run 100 needle optimizations from random starts and rank the best 10 by yield at ±1 % thickness error."*
  • *"Add my ALD Al2O3 from this ellipsometry file and sweep the AR coating thickness ±10 %."*
  • *"Find thin-film HfO2 data on refractiveindex.info, import it and redo the mirror with it."*
  • *"Where is the electric-field peak of this mirror at 1064 nm, and what monitoring signal should I expect at 633 nm at the end of each layer?"*

Ready-made workflows (prompts) appear as / commands in Claude Code and in the attachment menu of Claude Desktop: design an antireflection coating, a mirror, an edge filter or dichroic, a narrow band-pass filter, and review a design for manufacturing. The design-format guide, the material list and the OpenFilters example projects are available as resources (openfilters://guide, openfilters://materials, openfilters://examples/ ). Long optimizations and yield analyses report progress to apps that show it.

Installation

Requires Python ≥ 3.10. OpenFilters itself does not need to be installed: its calculation engine is built in (the OpenFilters GUI is only useful to open the .ofp files).

Claude Desktop extension (one click)

From the latest release, download mcp-for-openfilters- .mcpb and open it (or drag it onto Claude Desktop's Settings → Extensions). Claude Desktop runs it with uv, which fetches the server from PyPI.

Claude Code plugin

In Claude Code:

/plugin marketplace add BBrunoEsteves/mcp-for-openfilters

/plugin install mcp-for-openfilters@mcp-for-openfilters

The plugin runs the server with uvx (see claude-plugin/README.md for what it runs and downloads).

With uv (one command)

With uv installed, the server runs straight from PyPI, with the right package for your computer chosen automatically:

claude mcp add --scope user mcp-for-openfilters -- uvx mcp-for-openfilters

For Claude Desktop, add to claude_desktop_config.json (Settings → Developer → Edit config), then fully quit and reopen Claude Desktop:

{"mcpServers": {"mcp-for-openfilters": {"command": "uvx", "args": ["mcp-for-openfilters"]}}}

uvx keeps its own cached environment; uvx mcp-for-openfilters@latest picks up a new version.

With the installer

From the release page, download install_mcp_for_openfilters.py and the package for your computer (or all .whl files) into one folder, then:

python install_mcp_for_openfilters.py

It creates a private environment in ~/.mcp-for-openfilters, installs the package, registers the server in Claude Desktop (backing up its settings) and Claude Code, and runs a self-test. Then fully quit and reopen Claude Desktop. --uninstall removes it; --from-github downloads the packages with the GitHub CLI.

Packages are built for Windows (64-bit), Linux (x86-64) and macOS (Apple Silicon), Python 3.10–3.14, with the compiled fast core included: no compiler needed.

Manually
pip install mcp_for_openfilters-<version>-<python>-<platform>.whl

claude mcp add --scope user mcp-for-openfilters -- mcp-for-openfilters

For Claude Desktop, add to claude_desktop_config.json (Settings → Developer → Edit config):

{"mcpServers": {"mcp-for-openfilters": {"command": "<full path to mcp-for-openfilters>"}}}
Upgrading from openfilters-mcp (before 0.2.0)

The project was called *openfilters-mcp* until version 0.2.0. Fully quit Claude Desktop and Claude Code, then run the new installer: it removes the old openfilters registration and the old private environment (~/.openfilters-mcp) and registers mcp-for-openfilters. Your data folder ~/OpenFilters-MCP is kept and still used, and the old OPENFILTERS_MCP_* environment variables are still read. After a manual install, pip uninstall openfilters-mcp and replace the openfilters entry in your Claude settings.

From source (development)
git clone https://github.com/BBrunoEsteves/mcp-for-openfilters

cd mcp-for-openfilters python -m venv .venv .venv/Scripts/pip install -e ".[dev]" # .venv/bin/pip on macOS/Linux python dev/fetch_compiled.py # fast C++ core compiled by GitHub Actions (or build it locally)

Configuration
Environment variableDefaultMeaning
MCP_FOR_OPENFILTERS_HOME~/MCP-for-OpenFiltersdata folder: materials/, jobs/, projects/, outputs/
MCP_FOR_OPENFILTERS_WORKERSCPU count − 1parallel worker processes for jobs

The names used before 0.2.0 (OPENFILTERS_MCP_HOME, OPENFILTERS_MCP_WORKERS) still work, and an existing ~/OpenFilters-MCP folder is used when ~/MCP-for-OpenFilters does not exist.

Conventions

  • wavelengths and thicknesses in nm, angles in degrees, R/T/A as fractions (0–1);
  • complex index N = n − ik (k ≥ 0 absorbs), as in OpenFilters and Macleod;
  • layers are listed from the substrate outward;
  • the merit function is OpenFilters' χ² = Σ ((target − value)/tolerance)², with satisfied inequality targets contributing zero.

A design:

{"substrate": "FusedSilica", "incident_medium": "void", "center_wavelength": 550,

"layers": [{"material": "TiO2", "thickness": 58.6}, {"material": "SiO2", "qwot": 1}]}

or with a stack formula: {"formula": {"formula": "(HL)^8 H", "materials": {"H": "TiO2", "L": "SiO2"}}}.

Materials given as n,k tables have no data outside their wavelength range. There the design field "table_extrapolation" decides: "hold" (default: n,k stay at the value at the nearest end of the data), "openfilters" (OpenFilters' own extrapolation, identical to its GUI) or "refuse". Every result computed outside the data says so, with the n,k used and what the other choice would give; optimizations, campaigns and yield analyses do not start until the choice is made (Claude asks you).

A target:

{"kind": "R", "from": 1000, "to": 1100, "step": 5, "value": 0.99, "tolerance": 0.005,

"inequality": ">=", "angle": 0, "polarization": "unpolarized"}

Validation

The test suite (pytest) checks the ported core against analytic results (quarter-wave stacks) and an independent transfer-matrix implementation (dispersive dielectrics, absorbing metals, 0–60°, s/p/unpolarized; agreement < 1e-9) and textbook closed forms (quarter-wave antireflection and absentee layers, V-coat zero, Brewster angle, quarter-wave stack peak reflectance and stop-band width), round-trips every example project through .ofp files, and runs the refinement and needle optimizations of the OpenFilters examples.

How the port was made

src/openfilters_core is generated from the original OpenFilters 1.1.1 sources by tools/port_from_py2.py, an auditable script (mechanical Python 2 → 3 conversions, a short list of targeted fixes, package-relative imports). The _abeles C++ extension uses the Python 3 C-API port by Emil Kleijn; _moremath is ported by the same script. See src/openfilters_core/PROVENANCE.md.

Privacy

Everything runs on your computer: no data is sent anywhere and there is no telemetry. The only network access is downloading public refractiveindex.info data when you ask for it. See PRIVACY.md.

Citing

If you use this in published work, please cite OpenFilters:

S. Larouche and L. Martinu, "OpenFilters: open-source software for the design, optimization, and

synthesis of optical filters," *Applied Optics* 47, C219–C230 (2008).

Contact

  • Bug reports and feature requests: GitHub Issues (please include the ou

Only the beginning is shown; read the rest in the repo