OpenFOAM MCP Server (ymg2007)
MCP serverCommunity
Reads and edits OpenFOAM case files without running OpenFOAM, with extra tools for indoor thermal and buoyancy setups. By ymg2007.
4 starsUpdated 9 months agoGitHub data from 5 Nov 2026
At a glance
- Type
- MCP server
- Works with
- OpenFOAM
- How it connects
- Reads and writes files; the tool isn't needed
- Access
- Can modify models
- Tool versions
- Not stated in its documentation
- Operating systems
- Windows, Linux, macOS
- Needs a OpenFOAM licence
- No
- Transport
- Local (stdio)
- AI clients documented
- Claude Desktop, Claude Code, Cursor, OpenCode, Cline
- Licence
- Not stated in its documentation
- Language
- Python
What it can do
- Lists a case's structure and parses dictionaries such as controlDict, fvSchemes and fvSolution.
- Changes solver parameters and boundary conditions in field files, and searches across case files.
- Sets up temperature fields, buoyant solvers, wall heat transfer, supply and return vents and radiation models (P1, viewFactor, DO).
- Configures air-age transport, internal heat sources and PMV-PPD comfort calculation.
Limitations
- Edits files only; you run meshing and solvers yourself.
- README is in Chinese, and the repository has no licence file.
Install
git clone https://github.com/ymg2007/openfoam-mcp.git
cd openfoam-mcp
chmod +x install.sh
./install.shSource: github.com/ymg2007/openfoam-mcp
{
"mcpServers": {
"openfoam": {
"command": "C:\\path\\to\\openfoam-mcp\\venv\\Scripts\\python.exe",
"args": ["C:\\path\\to\\openfoam-mcp\\src\\server.py"]
}
}
}Source: github.com/ymg2007/openfoam-mcp
MCP servers and skills run code on your computer. Review the source before installing.
AI-generated models, drawings and results must be checked by a qualified engineer before use.