← Back to COMSOL Multiphysics

Install COMSOL Multiphysics

Pick your client, copy the command, done.

1

Add it to Claude Code

claude mcp add comsol-multiphysics -- python -m src.server

Environment Variables

Set these before running COMSOL Multiphysics.

VariableDescriptionRequired
HF_ENDPOINTHugging Face mirror endpoint for model downloadsNo

Available Tools (14)

Once configured, COMSOL Multiphysics gives your AI agent access to:

comsol_startStart local COMSOL client
comsol_connectConnect to remote server
comsol_disconnectClear session
comsol_statusGet session info
model_loadLoad .mph file
file_path
model_createCreate empty model
model_saveSave to file
file_path
model_save_versionSave with timestamp
model_listList loaded models
model_set_currentSet active model
model_id
model_cloneClone model
model_id
model_removeRemove from memory
model_id
model_inspectGet model structure
model_id
param_getGet parameter value
parameter_name

Try It Out

After setup, try these prompts with your AI agent:

Start a new COMSOL session and create an empty model.
Load the chip_tsv_thermal model and inspect its current structure.
Create a block geometry with dimensions 10mm x 10mm x 2mm.
Run a stationary study on the current model and export the results.
Search the knowledge base for troubleshooting steps regarding heat transfer physics.
Prerequisites & system requirements
  • An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
  • Python 3.8+ with pip installed

Keep this setup from going cold

Save the docs, env vars, and workflow around COMSOL Multiphysics in Conare so Claude Code, Codex, and Cursor remember it next time.

Remember this setup