Skip to content
Tresca

Foam-Agent

MCP serverCommunity

A research multi-agent system that plans, writes, runs and repairs OpenFOAM cases from a prompt, exposed as MCP tools. By CSML at RPI (csml-rpi).

363 starsUpdated 3 days agoGitHub data from 5 Nov 2026

At a glance

Type
MCP server
Works with
OpenFOAM
How it connects
Drives a running copy of the tool
Access
Can modify models
Tool versions
OpenFOAM Foundation v10 by default; a separate native ESI/OpenCFD v2006 target
Operating systems
Linux
Needs a OpenFOAM licence
No
Transport
Local (stdio), Remote (HTTP)
AI clients documented
Claude Code, Cursor
Licence
MIT
Language
Python

What it can do

  • Plans a case from a plain-language requirement, choosing solver, domain and the files to write.
  • Writes the input files and an Allrun script, retrieving reference tutorials from FAISS indices of the selected OpenFOAM release.
  • Runs the case locally, reviews errors and rewrites files in a repair loop the client controls.
  • Imports an existing case directory or ZIP through run_case and makes PyVista plots of results.
  • Ships a /foam Claude Code skill that runs the whole loop with up to five repair attempts.

Limitations

  • Calls its own language model for planning and repair, so you need an API key or subscription for one of the supported providers (OpenAI, Anthropic, Bedrock, Ollama, DeepSeek and others).
  • The MCP run tool is local only; meshing and HPC routing are available only through the CLI workflow.
  • The Docker route builds for Linux amd64; native ESI v2006 needs its own image and corpus.

Install

claude mcp add foamagent -- foamagent-mcp

Source: github.com/csml-rpi/Foam-Agent/blob/main/docs/mcp.md

MCP servers and skills run code on your computer. Review the source before installing.

Skills that come with it

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

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