Skip to main content

An MCP server around SU2 workflows

Project description

su2-mcp

su2-mcp exposes SU2 session lifecycle, config editing, solver execution, and results inspection through an MCP server.

Features

  • Session lifecycle management with per-session working directories.
  • Config helpers for reading, parsing, and updating SU2 .cfg files.
  • Mesh upload and automatic MESH_FILENAME synchronization.
  • Optional STEP -> SU2 mesh conversion via gmsh (generate_mesh_from_step).
  • Solver wrappers for SU2_CFD and SU2_DEF with timeout/missing-binary handling.
  • Result-file listing, base64 download, history CSV parsing, and surface sampling.

Install

python3 -m venv .venv
source .venv/bin/activate
pip install -e .[dev]

Run the Server

StdIO (default)

su2-mcp --transport stdio

HTTP transports

su2-mcp --transport http --host 0.0.0.0 --port 8002 --path /mcp
su2-mcp --transport streamable-http --host 0.0.0.0 --port 8002 --streamable-http-path /mcp

Server-Sent Events (SSE)

su2-mcp --transport sse --host 0.0.0.0 --port 8000 --mount-path / --sse-path /sse

Programmatic entrypoints are available from su2_mcp.main.

Development

make dev
make lint
make type
make test
make docs

Full local CI-style gate:

make ci

Checking SU2 binaries

The MCP tool get_su2_status reports availability of common SU2 binaries (SU2_CFD, SU2_CFD_MPI, SU2_DEF).

Optional SU2 dependency extra

pip install .[su2]

System dependencies

The Python package is pure Python, but some tools rely on external executables:

  • run_su2_solver / generate_deformed_mesh: requires SU2 binaries on PATH
  • generate_mesh_from_step: requires gmsh on PATH

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

su2_mcp-0.1.0.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

su2_mcp-0.1.0-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file su2_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: su2_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for su2_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f494abc6be2da4d31e60898a5e52f60c5fd6c7b2cec17c5116969643c0b8d166
MD5 bac1785dcd477ac0df1ac9eeba839147
BLAKE2b-256 8327d9e50ec26f7b35c971caa3a87ac0b474731152d178fa960339aaf4063e45

See more details on using hashes here.

Provenance

The following attestation bundles were made for su2_mcp-0.1.0.tar.gz:

Publisher: workflow.yml on cmudrc/su2-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file su2_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: su2_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for su2_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f35d670026215cdd781aaa34acaede0253f7f0a8cf11cdc89b961c5f917542f5
MD5 7f87f78746b458f038bd3e85168c8f7d
BLAKE2b-256 6c5d74f3a3024ee4df2d7a4e285eaacc8b78a59b9e47de181d54b71001b0990c

See more details on using hashes here.

Provenance

The following attestation bundles were made for su2_mcp-0.1.0-py3-none-any.whl:

Publisher: workflow.yml on cmudrc/su2-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page