About Comsol Optic MCP
Comsol Optic MCP is an MCP server in the Blockchain category: mCP bridge connecting Claude Code to COMSOL Multiphysics 6.x — inspect models, run studies, build/extract results, and sweep parameters, with optics-flavoured helpers (material identifiers, parametric sweeps, R(ω) extraction).
Install
git clone https://github.com/helalove0812-source/comsol-optic-mcpThis 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.
Tools (12)
build_model(java_source, save_path, base_model, run_study)Build/modify a model from Java; **java_warnings** + **compile_diagnostics**
Parameters not published.
dump_model(path)Per-component geometry/physics/materials/mesh + study sweeps
Parameters not published.
eval_aggregate(path, expr, domains, aggregate)Sweep-aware max/min/avg/integral; one curve per distinct swept value
Parameters not published.
export_image(path, output_path, solnum, expr, ...)**Native 2D image export** (Surface plot of `expr` at solution `solnum` → PNG). Zoom + z-stretch via `xmin..ymax` + `viewscaletype="manual"` + `xscale/yscale`; structure coloring via `expr="dom"`. Runs `-3drend sw` (see [Native image export](#native-image-export-zoom--z-stretch)).
Parameters not published.
get_reflection(path, ...)1D out-of-plane ewfd: R(ω) + ∫\
Parameters not published.
get_result(path, exprs, units)Evaluate global expressions on solved model; `<expr>_real/_imag` columns
Parameters not published.
get_volume(path, exprs, domains)Volume-integrate expressions over given domains, per sweep point
Parameters not published.
inspect_model(path)Parameters, components, physics, materials, studies, datasets, **file_info**, **params_units**
Parameters not published.
physics_feature(path, physics, action, ...)Raw pass-through to set any feature property
Parameters not published.
probe_feature(type, props, kind, dim)Discover valid property names for a geometry feature or physics interface
Parameters not published.
run_study(path, study, params, output_path)Set params + run study + save solved model; returns **solve_ms / dofs / exit_code**
Parameters not published.
set_param(path, params, output)Light-weight param edit + save (no re-solve)
Parameters not published.
Ask AI
Ask AI about Comsol Optic MCP
Powered by Claude · Grounded in docs
Security checks
6 checks have not been run yet.