Skip to content
Tresca

OpenFOAM MCP servers and AI agent skills

OpenFOAM has no official MCP server, but it has the most community activity of any CFD code: servers that run real cases (tutorial cloning, meshing, background solves, convergence checks), a research multi-agent system with its own Claude Code skill, a workshop kit that validates results against published data, file-only editors, and several setup skills. Most run on Linux, macOS or WSL2 rather than native Windows, and each targets a particular release, so check whether yours is an openfoam.org or openfoam.com build.

  • No official Open source server yet.
  • 8 MCP servers and 3 agent skills listed.
Open source8 servers · 3 skillsChecked 4 Nov 2026

Integrations for OpenFOAM

Community and commercial servers

MCP serverCommunity

Foam-Agentby CSML at RPI (csml-rpi)

A research multi-agent system that plans, writes, runs and repairs OpenFOAM cases from a prompt, exposed as MCP tools.

LocalLinuxCan modify models363· updated 3 days ago
MCP serverCommunity

openfoam-mcp (0xFFD)by 0xFFD

Drives any OpenFOAM case from a chat: clone tutorials, edit dictionaries, mesh, run long jobs and render the flow.

LocalLinux, macOS, WindowsCan modify models1· updated 4 weeks ago
MCP serverCommunity

Agentic CFD with OpenFOAM (workshop servers)by Dilip Kalagotla

Workshop kit with four MCP servers that set up, mesh, solve and validate OpenFOAM cases against published data.

LocalLinux, WindowsCan modify models1· updated 5 weeks ago
MCP serverCommunity

Gmsh MCP Serverby OFFTECH

Builds structured Gmsh meshes from box, O-H cylinder and pipe templates, checks quality, shows checkpoints and exports to OpenFOAM.

LocalWindows, macOS, LinuxCan modify models0· updated 6 weeks ago
MCP serverCommunity

OpenFOAM MCP (milsonson)by milsonson

A template-driven OpenFOAM server that goes from a prompt to case, preflight check, solve and residual plot.

LocalCan modify models2· updated 8 months ago
MCP serverCommunity

OpenFOAM MCP Server (ymg2007)by ymg2007

Reads and edits OpenFOAM case files without running OpenFOAM, with extra tools for indoor thermal and buoyancy setups.

LocalWindows, Linux, macOSCan modify models4· updated 9 months ago
MCP serverCommunity

OpenFOAM MCP Server (webworn)by webworn

A C++ MCP server for OpenFOAM 12 aimed at CFD teaching, with guided questioning, mesh checks and pipe-flow tools.

LocalLinuxCan modify models127· updated 10 months ago

Agent skills

SkillCommunity

/foam skill (Foam-Agent)by CSML at RPI (csml-rpi)

A Claude Code skill that runs Foam-Agent's plan, write, run and repair loop for an OpenFOAM case from one prompt.

Linux363· updated 3 days ago
SkillCommunity

openfoam-v14 skill (FOAM-Skills)by Souritra Garai

An agent skill for an OpenFOAM v14 install: case setup, smoke tests and a map of the source tree, kept as a growing index.

Linux0· updated 4 weeks ago

Listings are sorted by origin, then by recent activity. GitHub data is refreshed nightly. Nothing here is ranked.

How AI connects to OpenFOAM

An MCP server or skill can only do what OpenFOAM lets programs do. OpenFOAM exposes 2 automation interfaces:

  • Case dictionaries (0/, constant/, system/) (Input files): An OpenFOAM case is a folder of plain-text dictionaries: initial and boundary fields in 0/, physical properties in constant/, and controlDict, fvSchemes and fvSolution in system/. That makes every case scriptable without an API, and it is why file-only servers can edit boundary conditions or solver settings without OpenFOAM installed. The foamDictionary utility reads and writes single entries safely, and foamToC lists the available boundary conditions, models and solvers. Documentation
  • Utilities and solvers from the shell (Command line): Meshing (blockMesh, snappyHexMesh, checkMesh), decomposition and solving are separate executables run in a sourced OpenFOAM environment, often through an Allrun script. Releases from openfoam.org since version 11 use foamRun with modular solvers, while openfoam.com releases such as v2412 keep named solvers like simpleFoam, so a server built for one line may call commands the other doesn't have. Documentation

What Open source offers

Neither openfoam.org nor openfoam.com lists an MCP server, AI assistant or agent among its downloads or documentation as of this check. All the AI integrations here are community or academic projects; Foam-Agent, from a university research group, publishes benchmark results on its FoamBench task set, including runs with Claude models.

Checked 4 Nov 2026. Sources: openfoam.org, openfoam.com, Foam-Agent README (reported benchmark results)

What you can do with OpenFOAM and AI

  • Clone a tutorial such as pitzDaily or motorBike, edit its dictionaries, mesh it with blockMesh or snappyHexMesh and run it in parallel, with the agent watching residuals and Courant number.
  • Turn a plain-language description into a complete case, run it and let the agent repair the files when the solver stops with a FOAM FATAL ERROR.
  • Compare a lid-driven cavity or backward-facing step against Ghia or Armaly reference data, with a REPORT.md recording each decision.
  • Edit boundary conditions, transport properties or radiation settings in an existing case without launching OpenFOAM.
  • Get slices, streamlines or force-coefficient plots back as images from a headless ParaView.

Taken from the listings' own documentation. Check each listing for exactly what it supports.

Installing

The listings here document setup for Claude Code, Claude Desktop, Cline, Codex, Cursor, Gemini CLI, GitHub Copilot (VS Code and CLI), GitHub Copilot CLI, Kilo, OpenCode, VS Code, Windsurf and opencode. Install steps, copied from each project's own documentation, are on each listing's page. Most OpenFOAM integrations run on your own computer next to OpenFOAM, so you need OpenFOAM installed and licensed on the same machine unless the listing says otherwise.

Questions

Is there an official OpenFOAM MCP server?

No. Neither openfoam.org nor openfoam.com publishes one. The servers listed here come from individual developers, a university research group (Foam-Agent) and a workshop at AIAA Aviation 2026.

Which OpenFOAM version do these servers support?

It varies. The 0xFFD server handles openfoam.org 11 and later and openfoam.com builds; webworn targets OpenFOAM 12; Foam-Agent defaults to Foundation v10 with a separate v2006 target; the workshop kit installs v2412; one skill is written for v14.

Can I use these on Windows?

Mostly through WSL2. The 0xFFD server configures Windows-side clients to start it inside WSL2 and doesn't support native Windows builds, and the workshop kit installs into WSL2. The ymg2007 server edits case files only, so it runs natively on Windows.

Do any of them need an AI API key besides my chat client?

Foam-Agent does: its planning and repair steps call a language model you configure (OpenAI, Anthropic, Bedrock, Ollama and others). The other servers leave all reasoning to the client and just run OpenFOAM commands.

AI-generated models, drawings and results must be checked by a qualified engineer before use.

Sources (checked 4 Nov 2026): OpenFOAM user guide (openfoam.org, CFD Direct) · OpenFOAM user guide (openfoam.com) · 0xFFD/openfoam-mcp README · csml-rpi/Foam-Agent README · OpenFOAM product page

OpenFOAM is developed by its own project (Open source). Tresca is independent and not affiliated with or endorsed by the OpenFOAM project.