starccm-mcp
The starccm-mcp server lets an AI assistant inspect STAR-CCM+ simulations, logs, local documentation/API, and running sessions, and run checked Java macros.
Read
.simfiles directly from disk without STAR-CCM+ or a licence: overview, parameters, boundaries, monitors/history, object search/details.Summarize/tail solver logs with licence data masked.
Search and read the local STAR-CCM+ user guide and look up Java API classes/method signatures.
On Windows, list running STAR-CCM+ servers and get read-only info about an open simulation.
Run Java macros on a running simulation through a batch client, with pre-run pattern checks, optional risky-operation gating, expected-simulation check, and output/return limits.
Provides tools for working with Siemens Simcenter STAR-CCM+ simulations: inspecting .sim files without STAR-CCM+ or a license, parsing solver logs, searching local STAR-CCM+ documentation and Java API references, listing running sessions, and running checked Java macros against an open simulation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@starccm-mcp inspect case.sim and summarize its physics models and boundaries"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
starccm-mcp
An unofficial MCP server for Simcenter STAR-CCM+. It lets an AI assistant such as Claude Code, Claude Desktop or any other MCP client:
read a
.simfile without STAR-CCM+ and without a licence: version, mesh size, regions, boundary conditions with their values, global parameters, physics models, reports, stopping criteria and the full history of every monitor;read solver logs: the iteration table, AMG divergences, reversed flow, limited cells and stopping criteria, with licence keys masked;
search the documentation of your own installation, including the user guide and the Java API reference, so macros are written against methods that exist;
run Java macros on a simulation you already have open, through a batch client, with guard rails.
It was written by a student who needed to understand someone else's .sim at midnight without a licence
seat free. If you have ever had to guess why a case diverged or what a teammate set on a boundary, this is
for you.
Not affiliated with, endorsed by or supported by Siemens. Simcenter and STAR-CCM+ are trademarks of Siemens Digital Industries Software. This repository contains no Siemens code or documentation: the documentation tools read the files of your local installation.
Tools
Tool | What it does | Needs STAR-CCM+ installed |
| Version, iteration, mesh size, regions, continua and models, parameters, reports, monitors, stopping criteria and save history | no |
| Global parameters with definition, value and units | no |
| Boundary types, options and active values (for example Mach | no¹ |
| List of monitors, or the stored history of one (residuals, CD, CL…) | no |
| Find any object and show all its settings with references resolved | no |
| Iteration table, grouped solver events, filtered tail | no |
| Full-text search of the local user guide | yes |
| Classes, inheritance and exact method signatures from the local Java API reference | yes |
| Running servers: port, clients and open simulation (Windows) | no |
| Read-only snapshot of a running simulation | yes |
| Run a checked Java macro on a running simulation | yes |
¹ Option names, such as Components instead of index 1, are looked up in the local Java API reference when it is installed.
Related MCP server: COMSOL MCP
Install
You need Python 3.10 or newer. The .sim and log tools are plain Python and run anywhere. The session tools
are Windows-only for now.
git clone https://github.com/RHerAle/starccm-mcp
cd starccm-mcp
python -m venv .venv
.venv\Scripts\pip install -e .Add it to Claude Code:
claude mcp add starccm -- C:\path\to\starccm-mcp\.venv\Scripts\starccm-mcp.exeOr to Claude Desktop, in claude_desktop_config.json:
{
"mcpServers": {
"starccm": { "command": "C:\\path\\to\\starccm-mcp\\.venv\\Scripts\\starccm-mcp.exe" }
}
}The installation is found under C:\Program Files\Siemens\*\STAR-CCM+*. If yours is somewhere else, set
STARCCM_HOME to the folder that contains star\ and doc\.
Safety
.simfiles are only opened for reading.Licence data is masked. STAR-CCM+ puts the Power-on-Demand key and the licence server on the command line of every server process, and logs can repeat them. Log text and macro output are masked by
masking.pyas a whole, before any filtering or truncation; process command lines are never returned. The masking works by patterns, so treat it as a strong safeguard, not a guarantee.The log tools read any text file you point them at. They are meant for STAR-CCM+ logs; the path is not restricted.
Macros are checked before they run, but the check is not a sandbox. It reads the source with patterns to catch an assistant's mistakes before they reach your live session. A macro that runs has your full rights and the server's: it can write files, open connections or check out licences. Never run a macro you do not trust. The rules come from a real accident: a "read-only" macro that called getters by reflection reached unloaded 3D-CAD sketches on a parallel server. The server died with
Non-recoverable ... isSerialCriticaland took the open simulation with it.Refused: Java reflection, class loading,
System.exitandSystem.getenv,Runtimeand processes, network classes and script engines.Refused unless
allow_risky=True: 3D-CAD access,saveState, deleting or clearing objects and data, closing the simulation, running the solver, meshing and writing files. The assistant should only set it after you agree to that specific action.Known limits: the patterns look at names, not types, so they can be evaded (for example by storing the simulation or a
Classobject in another variable first), file writes through STAR-CCM+'s own APIs are only partly recognised, and Java has more ways to reach the outside than any list can name.expected_simrefuses to run if the window on that port shows a different simulation.On a timeout, only the batch client is killed. The server and your GUI keep running.
The MCP server itself never starts a STAR-CCM+ server, never checks out a licence and makes no network connections. What a macro does once it runs is up to the macro.
How the .sim reader works
Siemens does not document the format. This is what was observed on files saved by STAR-CCM+ 2502 (20.02):
The first line is a dict with
'StatePosition': N.From byte N to the end of the file, each line is one object written as a Python-like dict, and object
rsits on liner + 2.Integers with an
Lsuffix are Java longs: references to other objects, and also some counts and offsets (CellCount,dataKey,ObjectId). Integers without the suffix (NumberSamples,MaxCycles,Selected) are plain values, even when they equal a record number, and the reader never follows them. Checked on files from 2021.1.1, 2210, 2502 and 2510.The boundary type sits under
StageableConditionType.BoundaryTypein files from 2310, 2502 and 2510, and directly on the Boundary record in files from 2020.2.1, 2021.1.1 and 2210. The reader handles both layouts.Monitor histories are
MasterArray<Float8>records. TheirdataKeyis the absolute byte offset of a one-line header followed by little-endian doubles.
Only the object state is parsed, never the mesh or the solution arrays. On the author's machine, a 253 MB
.sim with 1.6 MB of object state opens in about 0.6 s, and a 14 MB one with 2.5 MB of state in about 1.4 s.
Status and limitations
Tested with STAR-CCM+ 2502 (20.02.008) on Windows 11. The
.simreader has also been run on files saved with 2021.1.1, 2210 and 2510. Other versions are untested; reports are welcome.Solution fields stored in the
.sim, such as density on a boundary, are not exposed yet.An expression's stored value is the last one STAR-CCM+ evaluated; the definition is always current.
The session list reads the open simulation from the GUI window title. Without a GUI, use
starccm_session_info.
Development
.venv\Scripts\pip install -e ".[test]"
.venv\Scripts\python -m pytestThe tests build a tiny synthetic .sim and a synthetic log, so they need neither STAR-CCM+ nor real files.
En español
Servidor MCP no oficial para STAR-CCM+. Lee un .sim sin abrir STAR-CCM+ ni gastar licencia: contornos con
sus valores, parámetros, modelos, criterios de parada e historial de los monitores. También lee el log, busca
en el manual y el javadoc de tu propia instalación y lanza macros contra una sesión abierta, con
comprobaciones para evitar errores que la tumben (no son un sandbox). Instalación y uso, arriba. Licencia
GPL-3.0-only: si lo redistribuyes, modificado o no, tu versión debe seguir siendo GPL, conservar la atribución
a este proyecto en sus avisos legales y, si está modificada, indicarlo (detalles en NOTICE).
Licence
© 2026 RHerAle. Code under GPL-3.0-only (LICENSE), with additional terms under section 7 of the
GPL (NOTICE): every copy and every modified version must keep the author attribution in its
legal notices, and a modified version must be marked as different from the original and must not be
presented as the original.
Forks and variants
If you publish a variant, please make it a GitHub fork and add it to VARIANTS.md with a pull
request, so other users can find it. This is a request, not a licence condition.
Contributing
Pull requests are welcome, with no agreement to sign: contributions are licensed under the same terms as
the project, and each commit carries a Signed-off-by line (git commit -s). See
CONTRIBUTING.md.
Available Tools
14 toolsstarccm_api_lookupARead-onlyIdempotent
Checks a class or method against the local Java API reference before writing a macro: package, inheritance, exact signatures (following inherited methods to the class that declares them), or a list of similar class names when the name is wrong.
Inputs: name (required), limit, contains. Returns: result
starccm_docs_pageBRead-onlyIdempotent
Plain text of one page of the local user guide, paginated with offset/max_chars.
Inputs: page_id (required), start, offset, max_chars. Returns: result
starccm_docs_searchARead-onlyIdempotent
Searches the HTML user guide installed with STAR-CCM+ (built into a local index on first use, a few seconds). Returns page ids, titles and a snippet; read a page with starccm_docs_page.
Inputs: query (required), limit, regex. Returns: result
starccm_log_summaryARead-onlyIdempotent
Parses a STAR-CCM+ output log: iteration table and solver events.
Returns the column names, the first and last iteration rows, grouped events with counts and the first and last iteration where they happened (AMG divergence, reversed flow, limited cells, errors, warnings, stopping criteria, saves) and the last lines of text. Licence keys and servers are masked.
Inputs: path, last_rows. Returns: result
starccm_log_tailARead-onlyIdempotent
Last lines of a STAR-CCM+ log, optionally filtered. Licence keys and servers are masked.
Inputs: grep, path, lines. Returns: result
starccm_run_macroADestructive
Runs a Java macro on the STAR-CCM+ server at localhost: through a batch client. The server, its GUI and the open simulation stay running; on timeout only the batch client is killed.
Before running, the source is checked against patterns. Refused: Java reflection, class loading, System.exit/getenv, Runtime and processes, network and script engines (a reflective read-only macro once crashed a parallel server when it reached unloaded 3D-CAD sketches). Refused unless allow_risky=True: 3D-CAD access, saveState, deleting or clearing objects and data, closing the simulation, running the solver, meshing, and writing files. These checks catch mistakes; they are not a sandbox, and a macro that runs has the user's full rights.
Good practice: call starccm_session_info first; verify every class and method with starccm_api_lookup;
write simple macros like the ones STAR-CCM+ records; print results with sim.println(...), and prefix
lines with 'MCP|' to get them back in tagged_lines.
Inputs: port (required), source, max_chars, timeout_s, +3 more. Returns: result
starccm_session_infoARead-onlyIdempotent
Runs a built-in read-only macro on the server at localhost: and returns the simulation name and path, workers, current iteration, regions and boundaries with types, continua and models, global parameters (definition, value, units), reports, monitors and scenes. It takes some seconds because a batch client has to start. Use it to confirm which simulation is open before running any other macro.
Inputs: port (required), timeout_s. Returns: result
starccm_session_listARead-onlyIdempotent
Running STAR-CCM+ servers on this machine (Windows): port, server process, start time, connected clients and, when a GUI is connected, the simulation name from its window title. Licence data is never returned.
Inputs: no named parameters. Returns: result
starccm_sim_boundariesBRead-onlyIdempotent
Boundary types and physics values of every boundary in a .sim file.
For each boundary: region, name, type (e.g. FreeStreamBoundary, WallBoundary, StagnationBoundary),
selected options and the active values with method, definition, value and units (e.g. Mach number
'${Minlet}' = 0.8). Options are stored as indices (options_selected_index). When the local Java API
reference is available, options also gives a label, assuming the index follows the declaration order
of .Type (checked on FlowDirectionOption, FreeStreamOption and KwTurbSpecOption).
Inputs: path (required), name, region. Returns: result
starccm_sim_findARead-onlyIdempotent
Finds objects in a .sim file by name, class or raw text. Returns record numbers for starccm_sim_object.
Inputs: path (required), pattern (required), limit, where, +1 more. Returns: result
starccm_sim_monitorsARead-onlyIdempotent
Residual and report monitors stored in a .sim file.
Without name: list of monitors with class, linked report, current value and number of stored samples.
With name: the stored history (x = iteration or time, y = monitor value) for the last last samples.
Use it to check convergence or read the final value of a force coefficient without opening STAR-CCM+.
Inputs: path (required), last, name, stride. Returns: result
starccm_sim_objectARead-onlyIdempotent
All settings of one object (report, mesh operation, physics model, solver, criterion...).
References are resolved: quantities show value, units and definition; options show the selected index;
other objects show their name and class, expanded to depth levels.
Inputs: path (required), name, depth, record. Returns: result
starccm_sim_overviewARead-onlyIdempotent
Summary of a STAR-CCM+ .sim file read directly from disk, without STAR-CCM+ or a licence.
Returns JSON with: STAR-CCM+ version that saved it, current iteration, volume mesh size (cells, faces, vertices), regions, number of boundaries, physics continua with their models, global parameters, reports, monitors, mesh operations, scenes, stopping criteria (used/satisfied and their limits) and the last save-history entries. Start here, then use starccm_sim_parameters, starccm_sim_boundaries, starccm_sim_monitors or starccm_sim_object for details. The file is never modified.
Inputs: path (required), history. Returns: result
starccm_sim_parametersARead-onlyIdempotent
Global parameters (Tools > Parameters) of a .sim file: name, definition, stored value and units.
Note: the stored value of an expression is the last one STAR-CCM+ evaluated; after an edit that was not re-evaluated it can be stale. The definition is always the current one.
Inputs: path (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Most tools target distinct resources: sim_* readers split cleanly by aspect (overview, parameters, boundaries, monitors, find, object), and log/docs/session tools are separate domains. There is mild overlap because starccm_sim_overview already summarizes parameters, boundaries and monitors that the dedicated tools return in detail, and starccm_sim_object can return any of them too, but the descriptions explicitly steer (start with overview, then drill down), which resolves most confusion. session_list vs session_info is clearly distinguished by list-vs-inspect.
Every tool shares the starccm_ prefix and snake_case, grouped by domain (sim_, log_, docs_, session_). Minor deviation: the sim readers are noun-only (starccm_sim_overview, starccm_sim_boundaries) while other tools are verb-led (starccm_sim_find, starccm_docs_search, starccm_run_macro), so it is not a uniform verb_noun pattern. Still highly predictable and readable.
14 tools is well within the ideal range and each group earns its place: 6 read-only .sim inspectors, 2 log tools, 2 doc-guide tools, 1 API reference checker, and 3 session/macro tools. Nothing feels redundant or missing at the count level.
The surface covers the full read/inspect lifecycle for .sim files, logs, documentation, API verification and live session discovery, and starccm_run_macro is an escape hatch for arbitrary actions. Gaps remain: no direct write tools (e.g. set a parameter or boundary value without writing a Java macro), no explicit solver/mesh control tool, and no session attach/save operations, though these are reachable through macros.
Related MCP Connectors
Search and query nTop's knowledge base and engineering guides from AI applications.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Run FDS, OpenFOAM, CalculiX and other engineering simulations on cloudHPC from your AI assistant.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Ansys simulation software (Fluent, MAPDL, Mechanical, Geometry) through the Model Context Protocol.71MIT
- AlicenseCqualityDmaintenanceEnables AI agents to read and write .mph model files, control the COMSOL desktop GUI in real time, and run complete modeling, meshing, solving, and post-processing workflows.231MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to search and read the Simcenter STAR-CCM+ Java API documentation from a local installation, so generated macros use real, current API calls instead of invented ones.6BSD 3-Clause
- AlicenseNot gradedqualityCmaintenanceEnables searching official ANSYS SpaceClaim API documentation and generating SCDM Python code candidates from natural language modeling intents.5MIT