cloudhpc-mcp
You can manage cloudHPC simulation workflows from an MCP-capable AI assistant.
Discover available solvers, machine options, and vCPU/RAM recommendations.
Inspect local case folders for solver/model size and pre-flight issues in local mode.
Browse cloudHPC storage and result archives; get temporary upload/download links.
Upload local case folders or use signed upload links for remote workflows.
Launch simulations on stored cases with confirmation because runs cost money.
List, inspect, wait for, and sync simulations; retrieve logs and known-error diagnoses.
Stop simulations softly or hard and get remote-desktop links for running jobs.
Download and extract result archives locally in local mode.
Check API rate limits and usage.
Delete storage files/folders with explicit confirmation.
Hosted mode cannot inspect/upload/download local files directly; use signed links instead.
Enables GitHub Copilot agent mode in VS Code and the Copilot CLI to connect to the cloudHPC MCP server, exposing tools for inspecting simulation cases, recommending resources, uploading cases, launching and monitoring runs, and downloading results directly from Copilot chat.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cloudhpc-mcp Check the FDS case in this folder and tell me which resources to use."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
cloudHPC MCP server
Run engineering simulations on cloudHPC from AI assistants that support the Model Context Protocol (MCP): Claude, ChatGPT/Codex, Gemini, GitHub Copilot and others, from their desktop apps, terminal apps and, where supported, web apps. Inspect a local case, get vCPU/RAM advice, upload the folder, launch, monitor, diagnose errors and download the results, all from a conversation.
Supported solvers: everything available on cloudHPC (FDS, OpenFOAM, snappyHexMesh, DAFoam, code_aster, CalculiX, OpenRadioss/OpenCourant, SU2, openTELEMAC, LIGGGHTS, LAMMPS, Kratos Multiphysics, OpenLB, Palabos, FreeFEM, T-Flows, DualSPHysics, PhasicFlowPlus (CFD-DEM), XBeach, preCICE coupled OpenFOAM/CalculiX/code_aster/FDS, EnergyPlus, CONTAM, ...). Resource advice follows the cloudHPC scalability rules and run diagnosis follows the cloudHPC errors guide.
What you can ask
"Check the FDS case in this folder and tell me which resources to use."
"Run it on cloudHPC and download the results when it finishes."
"What is the status of my running simulations?"
"My last run failed: what went wrong?"
"My OpenFOAM run is converging well: extend endTime to 2000 without stopping it."
Related MCP server: openfoam-mcp
Safe first prompts
Start with questions that only read data, then move on to actions that cost money once you are comfortable with how the assistant works:
"How do I prepare an OpenFOAM case for cloudHPC?" (no account needed)
"List my last simulations and summarise their status."
"Why did my last simulation fail? Check the log."
"Which vCPU and RAM type should I use for an FDS model with 8 meshes and 2 million cells?"
"What is in the storage folder of my last run, and which files are results?"
Only then: "Upload this case and launch it", "Resume simulation 1234". Every action that costs money or deletes data asks for your confirmation first, and the assistant shows you what it will do. With OAuth sign-in you can also connect with read-only access (see Sign-in with OAuth).
Tools
Tool | What it does |
| Detect solver and model size of a local folder (FDS meshes/MPI groups, OpenFOAM cells, CalculiX nodes, ...) and run pre-flight checks |
| vCPU and RAM type recommendation, with reasoning |
| How to prepare a case for a solver: input files, what cloudHPC does automatically, restart, optional settings, parallelism, logs |
| Available solvers, vCPU counts and RAM types |
| Compress a local case folder and upload it to your storage |
| Launch a run (asks for confirmation) |
| Follow your runs; finished runs include a diagnosis of known errors |
| Upload partial results of a running job |
| Soft or hard stop (asks for confirmation) |
| Resume a stopped run with the same solver, vCPU, RAM type and folder (FDS and OpenFOAM; asks for confirmation) |
| Start a Linux or Windows remote desktop for post-processing; billed until you stop it (asks for confirmation) |
| What can be changed in a running simulation, the current content of those files and the state of previous live updates |
| Change a running simulation without stopping it: OpenFOAM |
| Browser remote-desktop link of a running job |
| Browse your storage and result archives |
| Download result archives and extract them locally |
| Temporary links to upload/download single files |
| Delete one or more files or folders (a folder with all its content) with a single confirmation; deletion is asynchronous and takes a few minutes (asks for confirmation) |
| API rate limits and calls used |
Actions that cost money or delete data (launching a run, a hard stop, deleting from storage) always need your confirmation. In apps that support it (e.g. Claude Code) the server shows you a confirmation dialog directly, so the assistant cannot confirm on your behalf; in other apps the assistant shows you a summary and waits for your OK.
¹ Only with the local installation: they work on files on your computer. In web
apps (hosted endpoint) use get_upload_link / get_download_link instead.
Installation
Requirements:
Python 3.10 or newer
A cloudHPC account and its API key: open your cloudHPC profile page (APIKEY docs). The key gives full access to your account: keep it private.
Install with pipx (recommended: isolated, and the
command ends up in ~/.local/bin, easy to find for desktop apps):
pipx install git+https://github.com/CFD-FEA-SERVICE/cloudhpc-mcpor with pip:
pip install git+https://github.com/CFD-FEA-SERVICE/cloudhpc-mcpThis installs the cloudhpc-mcp command. Find its full path, you may need it
below:
which cloudhpc-mcp # Linux / macOS
where cloudhpc-mcp # WindowsThe API key is read from the CLOUDHPC_APIKEY environment variable or, if that
is not set, from the file ~/.cfscloudhpc/apikey created by
cloudHPCexec.
Connect your AI assistant
There are two ways to connect:
Local installation (desktop and terminal apps): the server runs on your computer, so it can read your case folders and save results next to them. All tools are available. Recommended.
Hosted endpoint (web apps):
https://mcp.cloudhpc.cloud/mcp, nothing to install. You connect by signing in once with your API key (OAuth) or by sending the key in a header. It cannot read files on your computer: you upload cases and download results with temporary links (or from the cloudHPC web app). See Web apps.
Assistant | Desktop app | Terminal (Linux) | Web app |
Claude | Claude Desktop (Windows, macOS, Linux beta) | claude.ai (custom connector) | |
ChatGPT | ChatGPT desktop app (where MCP servers are available) | ChatGPT (OAuth sign-in) | |
Gemini | not supported: no Gemini desktop app with MCP support | Gemini (OAuth sign-in) | |
GitHub Copilot | not supported |
In every example replace your-api-key with your key. If the assistant cannot
find the cloudhpc-mcp command, write its full path instead (see
Installation).
Claude
Claude Desktop
Open Settings > Developer > Edit Config and add the server to
claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux: use Edit Config to open the file
{
"mcpServers": {
"cloudhpc": {
"command": "cloudhpc-mcp",
"env": { "CLOUDHPC_APIKEY": "your-api-key" }
}
}
}Restart Claude Desktop. The cloudHPC tools appear in the tools menu of a new conversation.
Claude Code
claude mcp add --scope user cloudhpc -e CLOUDHPC_APIKEY=your-api-key -- cloudhpc-mcp--scope user makes it available in every folder. Check it with claude mcp list
or /mcp inside Claude Code.
ChatGPT / Codex
ChatGPT desktop app
In recent versions of the ChatGPT desktop app: Settings > MCP servers > Add server, choose STDIO:
Command:
cloudhpc-mcpEnvironment variable:
CLOUDHPC_APIKEY=your-api-key
The app shares its MCP configuration with Codex (~/.codex/config.toml, see
below), so a server added in one is available in the other. Availability
depends on app version and plan. The ChatGPT web app only supports remote
connectors and cannot run this local server.
Codex CLI
codex mcp add cloudhpc --env CLOUDHPC_APIKEY=your-api-key -- cloudhpc-mcpor edit ~/.codex/config.toml:
[mcp_servers.cloudhpc]
command = "cloudhpc-mcp"
tool_timeout_sec = 1900 # wait_for_simulation can wait up to 30 minutes
[mcp_servers.cloudhpc.env]
CLOUDHPC_APIKEY = "your-api-key"Check it with codex mcp list.
Gemini
Gemini CLI
gemini mcp add -s user -e CLOUDHPC_APIKEY=your-api-key cloudhpc cloudhpc-mcpor edit ~/.gemini/settings.json:
{
"mcpServers": {
"cloudhpc": {
"command": "cloudhpc-mcp",
"env": { "CLOUDHPC_APIKEY": "$CLOUDHPC_APIKEY" },
"timeout": 1900000
}
}
}$CLOUDHPC_APIKEY takes the key from your shell (export CLOUDHPC_APIKEY=...);
timeout (milliseconds) lets wait_for_simulation wait up to 30 minutes.
Check it with /mcp inside Gemini CLI.
The Gemini desktop and web apps do not support custom MCP servers.
GitHub Copilot
VS Code (Copilot agent mode)
Run MCP: Open User Configuration from the Command Palette (or create
.vscode/mcp.json in a project) and add:
{
"inputs": [
{ "type": "promptString", "id": "cloudhpc-key",
"description": "cloudHPC API key", "password": true }
],
"servers": {
"cloudhpc": {
"type": "stdio",
"command": "cloudhpc-mcp",
"env": { "CLOUDHPC_APIKEY": "${input:cloudhpc-key}" }
}
}
}VS Code asks for the key once and stores it securely. Open Copilot Chat in Agent mode and enable the cloudHPC tools from the tools picker.
Copilot CLI
Edit ~/.copilot/mcp-config.json:
{
"mcpServers": {
"cloudhpc": {
"type": "local",
"command": "cloudhpc-mcp",
"args": [],
"env": { "CLOUDHPC_APIKEY": "your-api-key" },
"tools": ["*"]
}
}
}or use /mcp add inside a Copilot CLI session. The Microsoft Copilot app for
Windows does not support custom MCP servers.
Other MCP clients
Configure a stdio server with command cloudhpc-mcp and the environment
variable CLOUDHPC_APIKEY.
Web apps (hosted endpoint)
Endpoint: https://mcp.cloudhpc.cloud/mcp (streamable HTTP). Two ways to
authenticate:
Sign in with OAuth (ChatGPT, Gemini, claude.ai and any client that supports OAuth for MCP servers): see Sign-in with OAuth.
API key header: the client sends your key with every request in the
X-API-Keyheader (orAuthorization: Bearer <key>). The endpoint stores nothing: the key is only forwarded to the cloudHPC API for that request.
What changes compared with the local installation:
inspect_case,upload_folderanddownload_resultsare not available: the hosted server cannot see your computer.To upload a case, compress the content of the case folder (files at the root of the archive) and ask the assistant for an upload link (
get_upload_link): it gives you a readycurlcommand. Or upload it from the cloudHPC web app.To get results, ask for a download link (
get_download_link).
Sign-in with OAuth
When you add the connector with OAuth, the assistant opens a cloudHPC sign-in page:
Check the name of the app asking for access. It will be able to see your simulations and storage, upload files and launch or stop simulations, which are billed to your account.
Paste your API key (how to find your API key).
Optionally tick Read-only access: the assistant can then see simulations, storage and results, but cannot launch, stop, resume, upload, delete or open remote desktops. Useful to try the connector safely, or for colleagues who only need to follow the runs.
Click Connect.
The assistant never sees the key: it receives tokens that expire after one hour and are renewed automatically for 30 days, then you sign in again. To revoke access for every connected assistant, regenerate the API key in your cloudHPC profile: access stops within an hour.
claude.ai
On plans with custom connectors: Settings > Connectors > Add custom
connector, URL https://mcp.cloudhpc.cloud/mcp, then either:
leave the authentication on OAuth and sign in when asked (Sign-in with OAuth), or
choose No sign-in and under Request headers add
X-API-Key=your-api-key.
Enable the connector in a conversation from the tools menu. The same connector is also available in the Claude desktop and mobile apps.
ChatGPT web
In ChatGPT, turn on developer mode and add a custom connector (app):
URL:
https://mcp.cloudhpc.cloud/mcpAuthentication: OAuth
Then sign in on the cloudHPC page (Sign-in with OAuth).
Gemini web
In the Gemini app (gemini.google.com):
Click Customise in the left sidebar.
Open the Connectors tab.
Click + Custom, enter the URL
https://mcp.cloudhpc.cloud/mcpand click Next.Sign in on the cloudHPC page that opens (Sign-in with OAuth).
Gemini registers itself automatically: you do not need an OAuth client ID or secret. The connector then appears under Connected apps.
Copilot web
Microsoft Copilot and Copilot Chat on github.com do not support custom MCP servers.
Other clients using the hosted endpoint
Any MCP client that supports streamable HTTP with custom headers works, for example:
claude mcp add --transport http cloudhpc https://mcp.cloudhpc.cloud/mcp \
--header "X-API-Key: your-api-key"{ "mcpServers": { "cloudhpc": {
"httpUrl": "https://mcp.cloudhpc.cloud/mcp",
"headers": { "X-API-Key": "your-api-key" } } } }(the second is the Gemini CLI format; VS Code uses "type": "http", "url"
and "headers"; Codex CLI uses url and http_headers in config.toml).
Good to know
Upload layout: the content of the case folder is archived at the root of
upload.tar.gzand uploaded into a storage folder with the same name as the local folder. Hidden files are skipped. Folder names must not contain, ( ) ' $ ~ " #or spaces.Resources: FDS, CalculiX and code_aster start on
highcpu; after a memory error move tostandard, thenhighmem. OpenFOAM and other MPI-only solvers usehighcoreorhypercore. 1 vCPU onhighcpuis never suggested for a solver: it has too little RAM to start.Checking runs: a run can end as COMPLETED even if the solver failed. When a run ends the server scans its output for the errors listed in the errors guide and suggests the fix; after downloading, it also checks the solver's own logs (OpenFOAM
log.*, FDS.out).Costs are billed per vCPU-hour and shown in euro when a run ends.
Storage: files are deleted automatically 60 days after creation. Download your results.
Rate limits: 100 API calls/hour on free accounts, 500 on full accounts (no daily limit). The server reads the rate-limit headers and stops before exceeding them.
Your data: what the tools return (simulation names, logs, file lists, costs) is sent to the AI provider of the assistant you use, under your own account and its terms. For confidential projects check your provider's data settings (e.g. training opt-out, business plans). With the local installation your API key stays on your computer; the hosted endpoint only forwards it and stores nothing. With OAuth sign-in the assistant only holds encrypted, expiring tokens, not the key.
Troubleshooting
Problem | Fix |
The assistant does not see the cloudHPC tools | Restart the app after editing its configuration; in terminal apps check with |
| Use the full path of |
| Copy the key again from your cloudHPC profile page. |
Upload or download fails with 403, "host not allowed" or a network error | Files are transferred directly to/from |
Hosted endpoint: | Write the header exactly as |
Sign-in page: "The API key was not accepted" | Copy the key again from your profile (how to find it); paste only the key, without spaces. |
The assistant asks for an OAuth client ID and secret | Remove the connector and add it again with the URL |
The assistant asks you to sign in again | Normal after 30 days, or after you regenerated the API key: sign in with the current key. |
| Wait for the next hour, or ask the assistant to check less often. |
The wait for a run is cut off | Raise the tool timeout of your client (see the examples above) or ask the assistant to wait in shorter steps. |
Development
git clone https://github.com/CFD-FEA-SERVICE/cloudhpc-mcp
cd cloudhpc-mcp
pip install -e ".[test]"
pytest # offline tests with a mocked APIServer modes (CLOUDHPC_MCP_MODE):
Mode | Transport | Use |
| stdio | Desktop and terminal apps on your computer |
| streamable HTTP | Hosted endpoint; the API key comes with each request |
| streamable HTTP | Set |
| streamable HTTP | Key-less guide endpoint (e.g. for a website chat bot): only |
scripts/e2e_test.py runs the whole workflow against the real API with your
account: it uploads a tiny FDS case and, with --confirm-costs, runs it on
1 vCPU for about a minute (--no-launch only uploads; --cleanup deletes the
test folder at the end).
Support
Documentation: https://docs.cloudhpc.cloud
Issues: https://github.com/CFD-FEA-SERVICE/cloudhpc-mcp/issues
License
Apache-2.0
Available Tools
19 toolsapi_usageARead-onlyInspect
Show the API rate limits and how many calls have been used.
Inputs: no named parameters.
delete_storageADestructiveInspect
Delete a file or folder from storage. Irreversible.
Call first with confirm=false to get the summary, show it to the user, and call again with confirm=true only after the user explicitly agrees.
Inputs: path (required), confirm.
download_resultsAInspect
Download result archives of a storage folder to a local directory.
folder: storage folder of the case. local_dir: where to save (created if missing). extract: unpack .tar.gz archives and delete them after. files_to_get: optional list of file names; default = all result archives.
Inputs: folder (required), local_dir (required), extract, files_to_get.
get_download_linkARead-onlyInspect
Get a temporary download link for a storage file (e.g. "myCase/FDS.tar.gz").
Inputs: path (required).
get_simulationARead-onlyInspect
Get status and details of a simulation.
include_log: add the last output/log lines and a diagnosis of known cloudHPC errors and warnings with their fix. Use it whenever a run ends, since a run can be COMPLETED even if the solver failed.
Inputs: simulation_id (required), include_log.
get_upload_linkAInspect
Get a signed URL to upload one file into a storage folder (remote clients).
For a case folder: compress the CONTENT of the folder (files at the archive root, no wrapping folder) into e.g. upload.tar.gz or case.zip, then upload it into a storage folder with the case name. Accepted: zip, tar.gz, 7z, rar, xz.
Inputs: filename (required), storage_folder (required).
inspect_caseARead-onlyInspect
Inspect a local case folder: detect the solver and the model size.
Reads .fds meshes (cells, MPI_PROCESS groups), OpenFOAM polyMesh cells, CalculiX nodes, code_aster mpi_nbcpu, and runs pre-flight checks for the most common cloudHPC errors (folder name, MPI_PROCESS order, decomposeParDict, missing files). Makes no API calls. Fix 'error' items before uploading.
Inputs: folder (required).
launch_simulationAInspect
Launch a simulation on a case folder already in storage. Costs money.
solver: exact script name from list_solvers (e.g. "fds6.9.1"). cpu / ram: from suggest_resources or list_machine_options. folder: storage folder with the case. mesh_folder: optional storage folder with a mesh to reuse (OpenFOAM). regular_instance: non-preemptible machine (more expensive, no interruptions). Call first with confirm=false, show the returned summary to the user, and call again with confirm=true only after explicit approval.
Inputs: cpu (required), ram (required), folder (required), solver (required), +3 more.
list_machine_optionsARead-onlyInspect
List the vCPU counts and RAM/instance types that can be requested.
Inputs: no named parameters.
list_resultsARead-onlyInspect
List the result archives of a case folder (FDS.tar.gz, OPENFOAM-*.tar.gz, ...).
Inputs: folder (required).
list_simulationsBRead-onlyInspect
List the user's simulations, most recent first.
status: "active" (pending/running/stopping), "all", "completed", "error", "stopped".
Inputs: limit, status.
list_solversARead-onlyInspect
List the solvers/scripts available on cloudHPC, grouped by family.
search: optional case-insensitive substring (e.g. "openfoam", "fds6.9").
Inputs: search.
list_storageARead-onlyInspect
List files and folders in the user's cloudHPC storage.
folder: storage folder path ("" = root, e.g. "myCase" or "myCase/sub").
Inputs: folder.
open_remote_desktopARead-onlyInspect
Get the browser remote-desktop (VNC) link of a running simulation.
The link is short-lived and personal: give it only to the user.
Inputs: simulation_id (required).
stop_simulationADestructiveInspect
Stop a running simulation.
soft: the solver stops cleanly and results are saved (recommended). hard: immediate termination. Call first with confirm=false and show the summary; confirm=true only after the user agrees.
Inputs: simulation_id (required), mode, confirm.
suggest_resourcesARead-onlyInspect
Suggest vCPU and RAM type for a run, following cloudHPC scalability rules.
solver: script name (e.g. "fds6.9.1", "openFoam-v2406") or family ("fds", "openfoam", "calculix", "code_aster", "openradioss", "su2"). cells: CFD cells (OpenFOAM/SU2). nodes: FEA nodes (CalculiX/code_aster). elements: OpenRadioss elements. fds_*: FDS mesh info if the .fds file cannot be read directly. case_folder: (local mode) folder to inspect automatically instead. prefer_speed: favour the faster hypercore/hypercpu instances over cost.
Inputs: solver (required), cells, nodes, elements, +5 more.
sync_simulationAInspect
Ask a running simulation to upload partial results to storage now.
Inputs: simulation_id (required).
upload_folderAInspect
Compress a local case folder and upload it to cloudHPC storage.
The CONTENT of the folder goes into upload.tar.gz, uploaded into the storage folder storage_folder (default: the local folder name). Hidden files are skipped. Returns the storage folder to use in launch_simulation.
Inputs: folder (required), storage_folder.
wait_for_simulationARead-onlyInspect
Wait until a simulation is no longer pending/running, or until max_minutes.
Polls every poll_seconds (min 60, to respect API rate limits). If it returns still running, call it again later rather than looping quickly.
Inputs: simulation_id (required), max_minutes, poll_seconds.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Each tool targets a distinct action or resource: listing, launching, monitoring, stopping, syncing, uploading, downloading, storage management, and resource suggestion. Related storage and simulation tools are clearly separated by their descriptions.
The vast majority of tools follow a clear verb_noun snake_case pattern such as list_solvers, launch_simulation, and delete_storage. The only minor deviation is api_usage, which is a noun phrase rather than an imperative verb.
At 19 tools, the server is slightly above the typical well-scoped range, but every tool maps to a necessary part of the cloudHPC workflow: local inspection, upload, launch, monitoring, storage, and result retrieval. The count feels justified rather than bloated.
The tool set covers the full simulation lifecycle: inspect locally, upload, suggest resources, launch, monitor, wait, sync partial results, stop, access remote desktop, download results, and manage storage. There are no obvious dead ends or missing critical operations.
Related MCP Connectors
Build, check, and export parametric CAD models in your ForgeCAD Projects from your AI agent.
Provides capabilities that let LLM agents perform a range of infrastructure management tasks.
AI-callable calculators and engineering models with real formulas. No hallucinated math.
Build, validate, and manage API simulations in WireMock Cloud from MCP-compatible AI agents.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceAutomates OpenFOAM CFD simulations via MCP, enabling AI agents to mesh, run, and post-process cases from natural language prompts without any API keys.MIT
- AlicenseNot gradedqualityCmaintenanceTurns an AI assistant into an OpenFOAM setup and debugging co-pilot, enabling case scaffolding, dictionary edits, mesh sizing, turbulence calculations, and solver log analysis through natural language.MIT
- AlicenseCqualityBmaintenanceEnables AI assistants to control and automate Abaqus/CAE simulations via MCP, including model query, job management, ODB inspection, KPI extraction, capsule tracking, physics contract validation, report generation, and viewport capture. It also supports noGUI batch mode, dual transport, and integration with Codex/Claude clients.11010MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to manage Sentaurus TCAD simulation experiments via MCP, including creating and submitting jobs, querying status, reading logs, and listing output files.612Apache 2.0