mcp-colab-gpu
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_DRIVE_CLIENT_JSON | No | Custom OAuth client credentials for Google Drive (JSON string). If not set, uses built-in client. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| colab_executeA | Execute Python code on a Google Colab GPU/TPU runtime. Primary tool for running GPU/TPU-accelerated Python code (ML training, inference, CUDA operations). Allocates hardware, runs the code, and returns structured JSON with per-cell output, errors, and stderr. After execution:
Common issues:
Args: code: Python code to execute on the Colab runtime. accelerator: Hardware accelerator type. Default: "T4". GPU types: "T4" - NVIDIA Tesla T4 (16 GB, free-tier) "L4" - NVIDIA L4 (24 GB, Colab Pro) "A100" - NVIDIA A100 (40 GB, Colab Pro/Pro+) "H100" - NVIDIA H100 (80 GB, Colab Pro+) "G4" - NVIDIA G4 (Colab Pro+) TPU types: "V5E1" - TPU v5e-1 (Colab Pro+) "V6E1" - TPU v6e-1 (Colab Pro+) high_memory: Enable high-memory runtime (more RAM). Default: False. timeout: Max execution time in seconds (10-3600). Default: 300. background: Run in background (non-blocking). Default: False. When True, returns immediately with a job_id that can be polled via colab_poll. Incompatible with drive_fetch/drive_save. drive_fetch: JSON mapping Drive paths to Colab paths. Files are downloaded from Google Drive BEFORE your code runs. Example: '{"colab_data/train.csv": "/content/train.csv"}' Requires prior colab_drive_upload to place files on Drive. drive_save: JSON mapping Colab paths to Drive paths. Files are uploaded to Google Drive AFTER your code finishes, using a freshly obtained token (safe for long-running tasks). Example: '{"/content/model.pt": "results/model.pt"}' |
| colab_execute_fileA | Execute a local Python file on a Google Colab GPU/TPU runtime. Reads the file contents and sends them for execution on a Colab runtime. Use this instead of colab_execute when you already have a .py script file ready to run. After execution:
Common issues:
Args: file_path: Path to a local .py file to execute on Colab. accelerator: Hardware accelerator type. Default: "T4". GPU types: "T4" - NVIDIA Tesla T4 (16 GB, free-tier) "L4" - NVIDIA L4 (24 GB, Colab Pro) "A100" - NVIDIA A100 (40 GB, Colab Pro/Pro+) "H100" - NVIDIA H100 (80 GB, Colab Pro+) "G4" - NVIDIA G4 (Colab Pro+) TPU types: "V5E1" - TPU v5e-1 (Colab Pro+) "V6E1" - TPU v6e-1 (Colab Pro+) high_memory: Enable high-memory runtime (more RAM). Default: False. timeout: Max execution time in seconds (10-3600). Default: 300. |
| colab_execute_notebookA | Execute Python code on Colab GPU/TPU and collect generated artifacts. Runs the code, then scans the runtime for output files (images, CSVs, models, etc.), zips them, and downloads to a local directory. Use this when your code produces files you need to retrieve locally. After execution:
Common issues:
Args: code: Python code to execute on the Colab runtime. output_dir: Local directory to save the artifacts zip and extracted files. accelerator: Hardware accelerator type. Default: "T4". GPU types: "T4" - NVIDIA Tesla T4 (16 GB, free-tier) "L4" - NVIDIA L4 (24 GB, Colab Pro) "A100" - NVIDIA A100 (40 GB, Colab Pro/Pro+) "H100" - NVIDIA H100 (80 GB, Colab Pro+) "G4" - NVIDIA G4 (Colab Pro+) TPU types: "V5E1" - TPU v5e-1 (Colab Pro+) "V6E1" - TPU v6e-1 (Colab Pro+) high_memory: Enable high-memory runtime (more RAM). Default: False. timeout: Max execution time in seconds (10-3600). Default: 300. |
| colab_cancelA | Cancel an active background job. Marks the job as cancelled and attempts to cancel the underlying asyncio task. Use colab_jobs to find active job IDs. After cancellation:
Common issues:
Args: job_id: The job identifier returned by colab_execute. |
| colab_pollA | Poll a background job for its current status and results. Use this after launching a background execution with colab_execute(..., background=True) to check progress and retrieve results when complete. Interpreting the response:
Common issues:
Args: job_id: The job identifier returned by colab_execute. |
| colab_jobsA | List all tracked background jobs. Returns a JSON array of job summaries including job_id, status, accelerator type, and timestamps. Use this to find job IDs for colab_poll or colab_cancel. After listing:
|
| colab_drive_uploadA | Upload a local file to Google Drive. Use this to stage input data before running colab_execute with the drive_fetch parameter. The file is uploaded to the specified folder under MyDrive. After upload:
Common issues:
Args: local_path: Path to the local file to upload. drive_folder: Target folder path on Google Drive (relative to MyDrive). Nested paths like 'data/train' are supported. Folders are created automatically if they don't exist. Default: "colab_data". |
| colab_drive_downloadA | Download a file from Google Drive to a local path. Use this to retrieve results saved to Drive by colab_execute with the drive_save parameter, or any file stored on Google Drive. After download:
Common issues:
Args: drive_path: File path on Google Drive relative to MyDrive (e.g. 'results/model.pt' or 'colab_data/output.csv'). local_path: Local destination path where the file will be saved. |
| colab_statusA | Return current server status including accelerator info and job state. Use this before executing code to check which accelerators are available and whether a background job is already running (only one background job is allowed at a time). After checking status:
|
| colab_versionA | Return the mcp-colab-gpu server version. Use this to verify server compatibility or for debugging. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
Each tool has a clearly distinct purpose: execution variants (colab_execute, colab_execute_file, colab_execute_notebook) differ in input and output handling, job management tools are separate, and Drive utilities are distinct. No overlap that would cause misselection.
All tools follow the consistent 'colab_' prefix with snake_case verb_noun pattern (e.g., colab_execute, colab_poll, colab_drive_upload). No mixing of conventions.
10 tools is well-scoped for a GPU execution server: three execution variants, job lifecycle management, Drive integration, and status/version check. Each tool earns its place without being excessive or sparse.
Covers core workflows: code execution (with file and artifact options), job management, Drive upload/download, and status. Minor gaps like lack of a tool to list Drive files or manage folders, but overall sufficient for common tasks.