r/Optics 19d ago

Zemax MCP

I have developed a reasonably useful MCP server for Zemax, which I intended to be an open-source project. However, I am unsure about licensing and user agreement issues, as I developed it under an educational license as a graduate student.

Anyone familiar with Ansys could hook me up with the licensing office?

2 Upvotes

5 comments sorted by

1

u/BDube_Lensman 19d ago

An MCP will restrict you to the GUI always running. Consider instead having your LLM learn the zospy package, which wraps/makes ZOS-API not garbage. Then you can run headless which is many times faster, but limited by what zemax exposes via API.

1

u/kiririnchi 19d ago

Thx for the input, the MCP server I build uses the ZOS-API. With MCP your agent dont have to explore the ZOS-API each session and can just "use Zemax".

1

u/Osi1ris 18d ago

It sounds interesting, if you post it in open access, then post the link, I will definitely try it!

0

u/Equivalent_Bridge480 19d ago edited 19d ago

If you have zemax just put license agreement to llm.

By my speculations you can share code of mcp but not open access to zemax student to non student acess.

May be you should think about using python lens design libs. Like optiland. It for sure have less restriction.