Skip to main content
Glama

A Model Context Protocol (MCP) server that gives an LLM agent a turbine-vane simulation toolbox: mesh generation, OpenFOAM CFD, aero-thermal boundary conditions for FEA, millisecond surrogates, an inverse operating-point search and a defect assessment.

At a glance

9

ms → min

±σ

MCP

typed tools: mesh, CFD, heat transfer, surrogates, defects

surrogate answers or a full OpenFOAM run

uncertainty on every surrogate answer

works with any Model Context Protocol client

The agent decides what to compute; the tools do the physics. Each tool is a thin, documented wrapper around a command of the TurboAI projects, with typed arguments, the validity envelope written in its description, and JSON results with paths to the figures.

LLM agent (any MCP client)
   │  "Which inlet angle keeps the loss below 5 % at exit Mach 0.95? Check it with CFD."
   ▼
turboai_mcp.py ── find_operating_point ──► GP surrogates (turboai-surrogates)      ~1 ms
               ── run_cfd ───────────────► gmsh + OpenFOAM (TurboAI)                ~3 min
               ── assess_defect ─────────► hybrid model (turboai-damage)            ~0.1 s
               ── aerothermal_boundary_conditions ─► T_aw and h tables for FEA      ~10 min

Related MCP server: openfoam-mcp

Tools

tool

what it does

cost

environment_check

OpenFOAM version, Python stack, CPU resources

s

generate_mesh

periodic cascade mesh with a y+ ≈ 1 boundary layer; cell count and preview

s

run_cfd

RANS simulation at (P0, T0, M2is, inlet angle): loss, exit angle, mass flow, loading plot

minutes

aerothermal_boundary_conditions

adiabatic wall temperature and heat transfer coefficient at engine conditions, as the table a thermal FEA reads

minutes

predict_performance

surrogate prediction with standard deviations, inside the training envelope

ms

find_operating_point

operating point that meets any subset of targets (loss, angle, mass flow, Zweifel)

s

assess_defect

loss change caused by a bump or dent of given height and position, without CFD

ms

dataset_status

progress of a CFD campaign

ms

validation_summary

CFD against the VKI experiments

ms

Design choices that matter for an agent:

  • Envelope in the description. predict_performance states the ranges it was trained on; the server instructions tell the agent to switch to run_cfd outside them.

  • Uncertainty in every surrogate answer, so the agent can decide when a CFD check is needed.

  • Expensive tools say so (minutes), and return file paths rather than large arrays.

  • No hidden state. Every call is reproducible from its arguments.

Quick start

The server needs the core repository (OpenFOAM wrapper and environment script) and, for the surrogate tools, the model repositories installed in the same Python environment:

git clone https://github.com/ignaciofuertecarrasco/TurboAI ../TurboAI          # or set TURBOAI_CORE=/path/to/TurboAI
pip install -r requirements.txt                                  # MCP Python SDK 2.x
python mcp_server/turboai_mcp.py                                  # stdio server

Client configuration (any MCP client: desktop assistants, IDEs, agent frameworks), see mcp_server/mcp.example.json:

{
  "mcpServers": {
    "turboai": {
      "command": "python",
      "args": ["mcp_server/turboai_mcp.py"],
      "env": {"TURBOAI_CORE": "/path/to/TurboAI"}
    }
  }
}

On Windows the server calls the tools inside WSL (Ubuntu) through the core's scripts/ofenv.sh; on Linux it calls them directly.

Repository layout

turboai-agent/
├── mcp_server/
│   ├── turboai_mcp.py        the MCP server: tool definitions, validity envelope, calls into the solvers
│   └── mcp.example.json      client configuration
├── tests/test_server.py      the server imports without OpenFOAM and exposes the documented tools
└── requirements.txt          MCP Python SDK

The series

#

Project

Question

1

TurboAI

OpenFOAM CFD of a transonic vane, checked against the wind tunnel, with a Python API

2

openfoam-viscous-work

Viscous heating in the rhoSimpleFoam energy equation, added as an fvOption

3

turboai-surrogates

How few CFD runs does a millisecond surrogate need?

4

turboai-shape-ml

Gaussian processes or a graph network over blade shape? Design checked by CFD

5

turboai-damage

Where does a 0.4 mm defect hurt, and can a model tell without CFD?

6

turboai-agent (this one)

The toolbox as typed tools for an LLM agent (MCP)

7

vane-thermomech

CAD → mesh → thermal, static and modal FEA of the cooled vane, CAM, ML data set

8

cax-components

CFD, FEA and a differentiable surrogate as Tesseract components

Overview page: https://ignaciofuertecarrasco.github.io/cax-portfolio/

License

MIT, see LICENSE. The LS-89 geometry and measurements are from T. Arts et al., VKI TN-174 (1990).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Turns an AI assistant into an OpenFOAM setup and debugging co-pilot, enabling case scaffolding, dictionary edits, mesh sizing, turbulence calculations, and solver log analysis through natural language.
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables AI agents to drive OpenFOAM end to end: cloning tutorials or custom cases, editing dictionaries, meshing and running solvers in the background, tracking convergence and job status, and analyzing results. It also renders flow images — slices, patches, streamlines, iso-surfaces and residual or force plots — back to the agent.
      25
      1
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables an AI agent to set up, run and verify engineering simulations through typed tools — creating or importing cases, setting boundary conditions, running solvers, checking convergence, verifying results against references, and rendering output, with edits appearing live in the GUI. It exposes no shell or code-execution tool.
      37
      48 PyPI
      1
      GPL 3.0
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to automate CAD/CAE/CFD and chemical/mechanical engineering workflows through 60 JSON-RPC tools, including direct COM control of SolidWorks, Aspen Plus, HYSYS, AutoCAD, and Fluent, plus headless Linux first-principles solvers with invariant circuit breaking.
      -