Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
COMSOL_PATHYesPath to the COMSOL installation directory, e.g., C:\Program Files\COMSOL\COMSOL62\Multiphysics

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
launch_guiA

Launch the COMSOL desktop GUI with the live bridge loaded.

Operations issued afterwards drive the visible GUI in real time.

connect_guiB

Connect to an already-running COMSOL GUI bridge.

gui_statusA

Report the current GUI/bridge session state.

shutdown_guiA

Stop the COMSOL GUI bridge session.

load_modelC

Load a .mph model from disk.

save_modelB

Save the current model to a .mph file.

new_modelB

Create a new empty model.

model_infoA

Return the structure of the current model.

add_blockC

Add a block (box) to a geometry sequence.

add_cylinderC

Add a cylinder to a geometry sequence.

add_sphereC

Add a sphere to a geometry sequence.

boolean_opC

Boolean combine geometry features (union|intersect|difference).

import_geometryC

Import a geometry from a CAD/file format.

add_physicsB

Add a physics interface (ht, spf, tds, es, solid, ...).

add_materialC

Add a material to the model.

build_meshD

Build the mesh.

add_studyB

Add a study (Stationary|TimeDependent|Parametric|Eigenfrequency).

run_solverC

Run the solver for a study.

solver_statusB

Report whether a study has been solved.

evaluateC

Evaluate an expression (or global evaluation) and return data.

export_resultsC

Export results (plot/data) to a file.

exec_model_apiA

Run arbitrary COMSOL Java API code.

Provide either a full class with public static String run(Model model), or a Java snippet body; it will be wrapped automatically and executed in the COMSOL JVM (best-effort in live mode, always via compile+run in batch mode).

generate_model_javaA

Generate a standalone, compilable COMSOL Java model source file.

Works WITHOUT COMSOL installed. Use it on a COMSOL-less machine to prepare a Java model, then move the file to a COMSOL machine and compile it: comsolcompile .java comsolbatch -java spec may carry geometries/physics/materials/studies/save to shape the code. The produced file still needs COMSOL to actually compile into a .mph.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Twofruitsgrape/comsol-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server