Skip to main content
Glama

OpenFOAM MCP by iLaB — un copiloto de CFD para quequier cliente MCP

openfoam-mcp es un servido de Model Context Protocol que convierte un asictor simple de IA (Claude Desktop, y que cualquier otro cliene MCP) en un copiloto de configración y depurción de OpenFOAM. Crea cases ejecutabas, edita dictionarios de forn segura, dimansiona la malla pare a the plared, cal cula tufluencia de entad, and lee registros de solvers to tell if a run con vergo or di vergo — to without "no having to out of chat" text.

La mayoría de las herramientas están implementadas en Python puro y no requieren instalación de OpenFOAM, with lo que funcionan anywhere. Las pocas que llaman utilidades de OpenFOAM (p. ej., blockMesh, checkMesh) detectan el entorno y se degradan con "elegancia" cuanto está: absent.

Validado de extematext to extreme on OpenFOAM real (ESI v1912). Los casos generaos se ejecutan through blockMesh and users; simpleFoam its settled a generales; the cuetra "predefinidos" - you.

Compatencia de persons de OpenFOAM

scaffold_case toma un openfoam_flavore:

  • classic (por defecto) — application <solver>; con transport>>Properties. Validado en ESI v1912; funTIONa en ESI v2006+ y Foundation v8–v10.

  • foundation-v12application foamRun; + solvente incompressibleFluid; con physicalProperties, para OpenFOAM Foundation v11/v12. Ejecuta foamRun instead del nombre of the solver.

Por qué es útil

Configurar un caso de CFD es unpapeleo complicao: el y+ correcto, que los parches de contorno coincidan entre la malla y cada campo de 0/, campos de fluctuencia coherent entre modle, number de Courant stable, and "leer páginas" ... de salida of residuales to see if converged. This server does that bookookeeping using natural language.

Haz que lo difícil sea sencillo

Dos toolsa hacen el trabajo that mayoría of people le resulta entretenida:

  • recommend_setup — diona tu objetivo en words sencillas (p.ej., "flujo por a tubertura", "resistencia aero de un"...) and devuelve the solver, model of urbanlee, your y+ object, the "preinicio de east", "condiciones of cont contweek for each "patch" and a number plan a — pidiella only los numeros que to all fan.

  • generate_blockmes — autoescribete the blockMeshDict valid and with "gradación de la capa límite** a parir of de un ajuste predefinido de geometría. Dale a altura of la prima celda y to cal cula la gradación de pared. Neither vertices nor blocks al mas.

Tools (20)

Herramienta

Qué hace

recommend_setup

Empieza aquí. he objective to the solver, model, "predefinied mesh", BC, y plan (pide lo que missing).

generate_blockmesh

blockMesh automático with gradación de wall y+ auto-sized (predefinados: canoa, all plaan, all "primer", caja).

list_mesh_presets

Lista los ajustes predefinidos de geometría de blockMesh.

list_solvers

Lista "plantillables" solcks (simpleFoam, pimpleFoam, icoFoam).

flow_regime

Numero de, "laminar/turvent oto", recommendations to modle of tubul.

first_cell_height

Altura de la psada para your y+ object (correlación of "plaan" ).

y_plus_from_height

"Inv"e" : y+ predicted from a la celda, with obicle "warning".

inle_turbulence

k, eps, omega, nut from "int" + "length scale".

time_step_from_cfl

Paso de tien transution a o from a number of Courant.

pipe_pressure_drop

Factor of fricción Cole-brook-White + "caida" de presión / "pérdida" de cargar de "Darcy-Weisbach".

heat_transform_pipe

Coeficiente h for a internal (Dittus-Boelter).

scaffold_case

Escribe un "árbol" of "cass excutable" (system/, constant/, 0/) for una.

read_dict

Le a un "dict" o un "ent radividual" (via foamDictionario).

set_dict_ntry

Define a "clav" of un dict (with nested via foamDic; return to plain text).

set_boudary_condition

Define/insert a borde boundaryField in un 0/ "field".

analyze_stl

Comprobación de estanco/mSSemmanufactured, bbox, "ar", "volum", sp.

mesh_quality_report

"Analiza un chakeMesh log" into "no-ortho/sene/aspect" + "conse of esqu."

check_case

"Valid" un case: files, turbulence fields, patch match.

analyze_residuals

"Analiza un solver log" => "reducción" de residuals by "campo" + "converdec".

run_openfoam_command

Executa un utili OpenFOAM permitid in "case" (if "ent").

Instalación y y ejecución

El serverdisribue as a PyPI p. package with a console entry point, so the usual no-install ES. uvx :

uvx openfoam-mcp

or instла it in an "entor":

pip install openfoam-mcp
openfoam-mcp

Configuación of Claude Desktop

Añade to this claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APDATAa\Claude\):

{
  "mcpServers": {
    "openfoam": {
      "command": "uvx",
      "args": ["openfoam-mcp"]
    }
  }
}

RiEnable in Claude Desktop; las herramientas of OpenFOAM app in the "tax".

Examples of "consults"

  • ""Tengo aire a 31 m/sover un "chook" of 0.5 m2. What Numero of Rey is Eso and ??", your first lo que

  • "Colof un simpleFoAM in ./duura "at" 12 m/s and check."

  • "endTime to 3000 in ./ruct/system/formal`

  • "LeE ./contra/log.simpleFoAM and "está" a "verged".

PLantill of Solvers

PLantilla

Física

Typical of Use

simpleFoam

Ron permanent incompressible (k-- ω SS)

"conduct", "externa", "generasteady" flow insecure

pimpleFoam

RANS incompressible transparent (k−ω SST)

Vortex, unetady flows

icoFoam

RANS trans (k−ω)

"trans laminar incompressible" (low- e.g., first" pipe)

The PLantillas follow the "estilo tutorial" of OpenFOAM Foundation v9-v12 / ESI v2306+ (transformProperTrees + momentumTransport). The generated "malla de caja" has pieces inlet, outlet, walles, frontWe).

Development

pip install -e ".[dev]"
pytest

Licencia

MIT © 2026 iLab (Tanawait, Manokieng)

-
license - not tested
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

  • MCP server for AI dialogue using various LLM models via AceDataCloud

  • Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer

  • MCP Server for Slima - AI Writing IDE for Novel Authors with AI Beta Reader.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kimlnw/openfoam-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server