lab-gpu-steward
Queries NVIDIA GPUs through nvidia-smi to map GPU UUIDs to memory, SM utilization, active processes, and usernames; supports GPU selection and protection for timing and shared accuracy workloads.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Lab GPU Steward
Zero-dependency Python 3.11+ CLI, Agent Skill (SKILL.md), and stdio MCP server for shared multi-GPU research servers—built to plug directly into both Codex and Antigravity (AGY).
Shared lab servers rarely have Slurm, yet multiple humans and coding agents routinely collide on GPUs, contaminate wall-clock timing runs, crash vLLM startup with OOMs, or fill /data with teacher logits while risking frozen experiment evidence. lab-gpu-steward turns those brittle prose rules into deterministic, JSON-first checks.
Capabilities
UUID-First GPU Inventory (
status,select): Queriesnvidia-smi+/proc/<pid>to map every GPU UUID to memory, SM utilization, active processes, and usernames.Timing vs. Accuracy Policy Separation (
select,attest,run):timingmode enforces strict idle (or allowlisted tiny resident processes with--allow-small-mib+--max-sm-util) and writes a machine-verifiabletiming_attestation.jsonwith pre/post snapshots.accuracymode permitsshared_gpu: truewithin free VRAM budgets while protecting resident servers (--exclude-uuid,--protect-process).
Cooperative Multi-Agent Leases (
lease,release,leases):flock-backed lease registry with automatic dead-PID and TTL reaping so parallel agents never double-book a GPU.vLLM Memory-Utilization Ladder (
vllm-launch): Steps down--gpu-memory-utilization(0.98 -> 0.97 -> 0.96 -> 0.95) on OOM and exits cleanly withwait_recommendedinstead of force-killing unrelated processes.Evidence-Safe Artifact GC (
gc,disk): Dry-run by default; never deletesvalidation*.json,metrics*.json,timing_attestation*.json,failed.json,*.tex, or*.pdf; gzips large.jsonl/.logfiles; removes regenerable caches only on--apply; appends an auditableCLEANUP_*.mdledger.Native Codex + Antigravity Integration (
mcp,install-config,SKILL.md): Pure-stdlib JSON-RPC 2.0 stdio MCP server (zeropipdeps) supporting both newline-delimited andContent-Lengthframing.
Related MCP server: AgentConduit
Install
Requires Python 3.11+ (no third-party packages required; nvidia-smi is needed for live GPU queries):
git clone https://github.com/WhoJay0609/lab-gpu-steward.git
cd lab-gpu-steward
python3 -m pip install --no-build-isolation -e .Or run without installing:
PYTHONPATH=src python3 -m lab_gpu_steward status --jsonWire into Codex and Antigravity (AGY)
Print copy-ready MCP and Skill symlink snippets:
lab-gpu-steward install-configCodex MCP (
~/.codex/config.toml):[mcp_servers.lab_gpu_steward] command = "lab-gpu-steward" args = ["mcp"]Antigravity MCP (
~/.gemini/config/mcp_config.json):{ "mcpServers": { "lab-gpu-steward": { "command": "lab-gpu-steward", "args": ["mcp"] } } }Skills: symlink the repository directory into
${CODEX_HOME:-$HOME/.codex}/skills/lab-gpu-stewardand$HOME/.gemini/config/skills/lab-gpu-steward.
Quick Examples
# Inspect live GPUs by UUID, PID owners, and cooperative leases
lab-gpu-steward status --json
# Pick a GPU for strict wall-clock timing vs shared accuracy
lab-gpu-steward select --mode timing --allow-small-mib 650 --max-sm-util 5 --json
lab-gpu-steward select --mode accuracy --min-free-mib 24000 --json
# Dry-run vLLM memory-utilization ladder
lab-gpu-steward vllm-launch --ladder 0.98,0.97,0.96,0.95 --json -- \
python3 -m vllm.entrypoints.openai.api_server --model Qwen/Qwen3-8B
# Dry-run evidence-safe GC, then apply with cleanup ledger
lab-gpu-steward gc --root ./runs --json
lab-gpu-steward gc --root ./runs --apply --ledger ./runs/CLEANUP.md --jsonVerify
PYTHONPATH=src python3 -m unittest discover -s tests -vLicense
MIT © 2026 WhoJay0609. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Coordinate multiple AI agents over MCP: atomic claims, leases, shared ledger, handoffs, tasks.
Task coordination for AI agents. Exclusive locks, shared files, handoffs, per-agent spending limits.
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
LLM cost optimization gateway, repo token-waste auditor & model arbitrage MCP server.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables AI coding agents to run policy-constrained Python jobs on lab NVIDIA GPU hosts, including GPU inspection, device reservation, job launching and monitoring, and owner-scoped process stopping.2-
- AlicenseNot gradedqualityDmaintenanceEnables provider-neutral durable coordination for coding agents sharing Git work, including peer discovery, durable messaging, job progress tracking, and FIFO integration authority with fenced leases.MIT
- AlicenseAqualityCmaintenanceEnables parallel AI coding agents to claim files atomically, detect and prevent workspace collisions, and receive deterministic zero-latency safety verdicts on destructive shell commands without any network egress. It also provides autonomous wave dispatch, worker recovery, and completion verification for multi-agent workflows via a shared coordination board.7MIT
- AlicenseNot gradedqualityBmaintenanceCoordinates teams of coding agents by managing file claims, agent presence, public intentions, and filesystem leases so they avoid conflicts and leave an audit trail.MIT