Comsol Codex Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Comsol Codex Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
An MCP server and agent toolkit for reproducible COMSOL Multiphysics batch workflows.
This project is intentionally generic. It does not encode one specific COMSOL model. Instead, it gives AI agents a safe, auditable way to:
comsolcompile;comsolbatch;.mph, raw dumps, logs, and generated classes;Several COMSOL MCP projects focus on GUI automation or Python MPh/mphserver workflows. This project focuses on the engineering loop that coding agents often need:
write Java API model -> compile -> batch run -> inspect log -> parse output -> package resultsThat loop is useful for long-running, reproducible simulation jobs where opening COMSOL Desktop is undesirable or impossible.
python -m pip install -e .To run as an MCP server:
python -m pip install -e ".[mcp]"
comsol-mcp-serverTo use the standalone CLI:
comsol-tool find-install
comsol-tool search-feature ThermalContact
comsol-tool inspect-log path/to/batch.logThe server exposes:
| Tool | Purpose |
|---|---|
comsol_find_install | Locate comsolcompile, comsolbatch, and comsol |
comsol_compile | Compile a COMSOL Java API model |
comsol_batch | Run a compiled class with comsolbatch |
comsol_tail_file | Read the tail of a log/output file |
comsol_inspect_log | Detect common COMSOL errors and progress markers |
comsol_search_feature | Search physics.xml/common.xml for Java API hints |
comsol_collect_outputs | Zip lightweight scripts/summaries/CSV outputs |
comsol_clean_generated | List or remove generated class/status/recovery files |
comsol_list_recipes | List built-in workflow recipes |
comsol_get_recipe | Read a built-in workflow recipe |
comsol_find_install.comsol_compile.comsol_search_feature.comsol_batch with a bounded timeout.comsol_inspect_log.comsol_collect_outputs to create an uploadable result bundle.The install finder checks:
COMSOL_HOMECOMSOL_ROOTPATHC:\Program Files\COMSOL and E:\Program Files\COMSOL/usr/local/comsol and /opt/comsolIf discovery fails, set:
COMSOL_HOME=/path/to/COMSOL63On Windows PowerShell:
$env:COMSOL_HOME = "E:\Program Files\COMSOL\COMSOL63"This toolkit is deliberately conservative:
subprocess.run([...], shell=False);You should still run it only on trusted COMSOL Java scripts. A COMSOL Java class can create, solve, and save models on your machine.
Existing public projects include GUI-driven COMSOL MCP servers, MPh/mphserver-based MCP servers, and Pythonic COMSOL scripting interfaces. This project aims to complement them with a batch-first, Codex-friendly, reproducible Java API workflow.
COMSOL and COMSOL Multiphysics are trademarks or registered trademarks of COMSOL AB. This project is independent and unofficial. See NOTICE.md.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.