Skip to content
Tresca

COMSOL MCP (CAE Agent Hub)

MCP serverCommunity

Opens an existing .mph through MPh, changes parameters, solves, exports plots and tables and saves a copy, with a Java fallback. By Cai-aa.

1.3k starsUpdated 10 days agoGitHub data from 5 Nov 2026

At a glance

Type
MCP server
How it connects
Drives a running copy of the tool
Access
Can modify models
Tool versions
unknown (example config uses COMSOL 6.2 paths)
Operating systems
Windows
Needs a COMSOL Multiphysics licence
Yes
Transport
Local (stdio)
AI clients documented
Codex
Licence
MIT
Language
Python

What it can do

  • Starts a local COMSOL session through MPh without you running mphserver by hand, with an asynchronous start that avoids client timeouts.
  • Opens or creates models, lists and sets parameters, solves, evaluates expressions, exports results and saves.
  • Falls back to a Java bridge and mphserver for remote or isolated sessions.
  • Supports a shared-server mode so you can watch the model in COMSOL Desktop.

Limitations

  • Detecting COMSOL doesn't prove a licence is available; that is only known once a real operation succeeds.
  • The Java bridge must be built with Maven and run with COMSOL's API jars on the classpath.

Install

py -m venv .venv
.\.venv\Scripts\python.exe -m pip install -U pip
.\.venv\Scripts\python.exe -m pip install -e .[dev]

Source: github.com/Cai-aa/CAE-Agent-Hub/tree/main/MCP/COMSOL

MCP servers and skills run code on your computer. Review the source before installing.

Skills that come with it

SkillCommunity

comsol-motor-nvh-evidence (CAE Agent Hub)by Cai-aa

A checkpointed COMSOL skill for permanent-magnet motor noise and vibration, from magnetics to modes, acoustics and Campbell sweeps.

Needs a COMSOL Multiphysics licence1.3k· updated 10 days ago

AI-generated models, drawings and results must be checked by a qualified engineer before use.