1. Conduid
  2. Blockchain
  3. Comsol MCP
MCP server · Blockchain

Comsol MCP

COMSOL Multiphysics MCP server with live GUI control

Unclaimed blockchain
39Low

Scored 11 days ago · breakdown

About Comsol MCP

Comsol MCP is an MCP server in the Blockchain category: cOMSOL Multiphysics MCP server with live GUI control.

The repository has 14 stars and 0 forks.

Install

From source
git clone https://github.com/777gegewu/comsol-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Comsol MCP

Powered by Claude · Grounded in docs

I know everything about Comsol MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

COMSOL MCP

中文说明

This repository contains an MCP server for controlling an already-open COMSOL Desktop GUI through the COMSOL Java Shell.

This is an unofficial educational project. It is intended for learning, tutorials, and local automation experiments, not as a COMSOL-supported integration.

The server is designed for GUI-visible edits: Codex pastes COMSOL Java API commands into the Java Shell of the currently open COMSOL Desktop model, then executes them with Ctrl+Enter.

Scope

This repository currently publishes only the GUI Java Shell MCP implementation.

COMSOL can also be controlled through the Python mph package in a background workflow, but that implementation is not included here. If you need the background route, keep it as a separate project with its own source ownership and license review.

Requirements

  • Windows
  • COMSOL Desktop 6.3 or newer
  • COMSOL Desktop and the target model already open
  • Java Shell visible

Automatic ribbon clicking is disabled by default because localized COMSOL ribbon automation can trigger COMSOL UI errors.

Setup

.\setup_venv.ps1

Optional local settings:

Copy-Item .\env.local.example .\env.local

Run

.\start_server.ps1

Codex global config should point mcp_servers.comsol_gui to:

  • E:\AgentCOMSOL\AgentCOMSOL-main\comsol-gui-mcp\.venv\Scripts\python.exe
  • E:\AgentCOMSOL\AgentCOMSOL-main\comsol-gui-mcp\server.py

MCP Tools

  • gui_status() lists COMSOL GUI processes/windows and whether Java Shell is visible.
  • ensure_java_shell() finds Java Shell and returns a manual action if it is not visible.
  • execute_java_shell(code, allow_non_model_code=false, timeout_sec=30) pastes commands and executes them with Ctrl+Enter.
  • set_global_parameter(name, value, description=null) sets a global parameter through Java Shell.
  • get_java_shell_output() tries to read visible Java Shell text through UI Automation.

Safe Command Policy

By default, execute_java_shell only accepts non-empty executable lines that start with model.. Use allow_non_model_code=true only when you intentionally need broader Java Shell commands.

First Validation

  1. Open COMSOL Desktop and a test model.
  2. Open Home > Windows > Java Shell.
  3. Call gui_status().
  4. Call set_global_parameter("codex_gui_mcp_probe", "1").
  5. Confirm the parameter appears in the GUI.
  6. Clean up with execute_java_shell("model.param().remove(\"codex_gui_mcp_probe\");").

Notice

This is not an official COMSOL project and is not affiliated with, endorsed by, or supported by COMSOL AB. COMSOL product names and trademarks belong to their respective owner.

The code is provided for learning and tutorial use under the MIT License. Use it with local test models first, and review generated Java API commands before applying them to important COMSOL models.

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Comsol MCP

How do I install Comsol MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Comsol MCP safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Comsol MCP still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.