GPU MCP
Allows AI agents to inspect NVIDIA GPUs across lab hosts, reserve devices, launch Python jobs on approved GPU hosts, monitor running jobs, and stop owned GPU processes.
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., "@GPU MCPCheck the available GPU memory on gpu01 and reserve a device."
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.
GPU MCP
GPU MCP lets an AI assistant run Python experiments on lab GPUs without giving it an unrestricted remote terminal.
MCP (Model Context Protocol) is simply a way to give an AI named functions. You talk to the AI normally; it uses these functions when it needs a GPU.
GPU MCP is experimental. It helps trusted researchers avoid mistakes, but it is not a security sandbox or a cluster scheduler.
Why does it work well?
The human stays in charge. GPU work is limited by a short permission file, and approval applies only to the exact version the human reviewed.
The AI gets GPU functions, not an open remote shell. The GPU machine runs only an allowed Python file through a small checker copied into the research project.
Jobs do not silently collide. A job reserves its GPU and keeps that reservation alive with a heartbeat.
Silence is not mistaken for an idle GPU. If a heartbeat stops, GPU MCP checks whether the original program is still running before freeing the GPU.
Long jobs are not forgotten. Each job has an ID, a saved outcome, and a planned check time. The optional Codex hook reminds the AI when a check is due or a result appears, without constant polling.
Stopping is deliberate. GPU MCP first shows the process owner, command, GPU, and start time. It stops the process only on a second call with the same fingerprint, after confirming that nothing changed.
Expensive work can start small. The AI can run a short smoke test before the main experiment and keep the link between the two jobs.
Related MCP server: secure-cluster-mcp
What can the AI do?
Function | What it does |
| Gives a quick summary of the GPU machines. |
| Shows which GPUs are busy, their memory use, and GPU MCP reservations. |
| Shows the programs currently using the GPUs. |
| Reserves one GPU and starts an allowed Python file. It returns a job ID. |
| Checks, retries, stops, or finishes a job using its job ID. |
| Shows which GPUs have been claimed by GPU MCP jobs. |
| Inspects one process, returns its fingerprint, and stops it only after a matching second call. |
| Shows exactly what a proposed permission change would do. |
| Applies the exact permission change a human approved. |
| Discards a proposed permission change. |
For example, you can ask:
Find a free GPU, run jobs/train_model.py, follow the job until it finishes,
and tell me where the output was written.How does the human stay in control?
Each research project has a small file named gpu-mcp.toml. It lists:
the GPU machines this project may use;
the folders containing Python files that may be run;
the folders those files may change; and
the folders where logs may be written.
GPU work stays locked until a human reviews this file. GPU MCP then checks it before every operation, checks the Python file, watches where it writes, and confirms a program's identity before stopping it. If the permission file changes, GPU work pauses until the new version is shown and approved.
The hook only supplies reminders. manage_gpu_job performs the real status
check, reports the result, and releases the GPU.
This reduces mistakes; it does not make unknown Python safe. A launched file still has the normal access of the user running it.
Will it work in my lab?
The current version needs Linux, NVIDIA GPUs with nvidia-smi, direct SSH, and
Python 3.11 or newer. The research project must appear at the same path on the
computer running the AI and on the GPU machines. GPU MCP does not currently
submit jobs through SLURM, PBS, LSF, Kubernetes, or cloud GPU services.
How do I start?
Install GPU MCP once on the computer where the AI runs. A private folder in your home directory, such as
~/gpu-mcp, is recommended; the GPU machines do not need to see this folder. Follow INSTALL.md.Run the SSH setup yourself and choose the GPU machines to make available.
Open your research project with the AI and point it to AI_native_installer/INSTALL_FOR_AI.md.
Review the proposed
gpu-mcp.tomland approve it only if the machines and folders are correct.
Only the research project needs to live on the shared filesystem. Some labs
also keep one GPU MCP copy for editing and another copy in the home directory
that the AI uses. If yours does, record those paths and the copy command in
LOCAL_DEPLOYMENT.md. Git ignores that file so private machine details stay
local.
For deeper detail, see test/README.md, the design decisions, and the official Codex MCP documentation.
The project is version 0.0.0 and has no open-source license yet.
This server cannot be deployed
Maintenance
Related MCP Connectors
On-demand GPU nodes for agents: create nodes, run commands, and submit jobs, billed by the minute.
Read GPU instances, types, images, filesystems and firewall rules; launch and terminate instances.
Provides capabilities that let LLM agents perform a range of infrastructure management tasks.
GPU cloud platform — create, manage, and monitor instances, snapshots, SSH keys, and billing.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to manage Massed Compute GPU instances, including browsing inventory, launching and managing VMs, and auditing billing.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to manage SLURM cluster jobs with safety guardrails, including file transfer, job submission, log reading, and remote command execution.1MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents and MCP clients to manage AutoDL GPU instances programmatically, including creating, listing, powering on/off, executing commands, transferring files, and enforcing automatic shutdown.18 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to manage GPU training end-to-end through natural language, including submitting and scheduling jobs, monitoring logs and metrics, diagnosing failures, comparing runs, and recommending the best checkpoints.Apache 2.0