Skip to main content
Glama
Ching-Chiang

comsol-mcp

by Ching-Chiang

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
COMSOL_ROOTYesPath to COMSOL installation directory, e.g., C:\Program Files\COMSOL\COMSOL63\Multiphysics
COMSOL_SERVER_MCP_HOMEYesPath to the server home directory for MCP, e.g., $PWD\comsol-server-home

Capabilities

Features and capabilities supported by this server

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

Tools

Functions exposed to the LLM to take actions

NameDescription
server_infoA

Return COMSOL Server MCP status, configured paths, and current runtime state.

server_startB

Start a local COMSOL Multiphysics Server and connect the MCP client to it.

This is an advanced entrypoint. The recommended visible workflow is to start COMSOL Multiphysics Server manually, connect Desktop to it, and then use server_connect() from MCP.

server_connectC

Connect the MCP client to an existing COMSOL Multiphysics Server.

server_disconnectA

Disconnect the MCP client. Optionally shut down the local server if MCP started it.

model_createB

Create a new in-memory model on the connected COMSOL server and select it as current.

model_loadB

Load an MPH file on the connected COMSOL server and select it as current.

model_treeA

Return tags and structure for the current server-side model.

get_parametersB

Return current global parameters from the selected server-side model.

set_parametersC

Set multiple global parameters on the selected server-side model.

ensure_componentC

Ensure a component exists in the selected server-side model.

ensure_geometryC

Ensure a geometry sequence exists in the selected server-side model.

ensure_meshC

Ensure a mesh sequence exists in the selected server-side model.

create_featureC

Create a geometry feature and optionally apply initial properties.

update_featureC

Update geometry feature properties on the selected server-side model.

delete_featureC

Delete a geometry feature from the selected server-side model.

run_featureC

Run a geometry or mesh sequence on the selected server-side model.

run_studyC

Run the current model study, optionally restricting execution to a study tag.

save_modelC

Save the current server-side model to disk.

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/Ching-Chiang/comsol-mcp'

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