Colab MCP Adapter
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
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 |
|---|---|
| tasks | {
"list": {},
"cancel": {},
"requests": {
"tools": {
"call": {}
},
"prompts": {
"get": {}
},
"resources": {
"read": {}
}
}
} |
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| colab_session_createA | Create a new Colab session. Args: name: Optional session name (auto-generated if omitted) gpu: GPU variant: T4, L4, G4, H100, A100 tpu: TPU variant: v5e1, v6e1 high_mem: Request high-RAM machine shape (requires Pro/Pro+) Returns: Session info including name, session_id, hardware, shape, variant, status Raises: ToolError: SESSION_ALREADY_EXISTS, QUOTA_EXCEEDED, AUTH_EXPIRED, CLI_ERROR |
| colab_session_listA | List all active Colab sessions. Returns: List of sessions with name, session_id, hardware, shape, variant, status Raises: ToolError: AUTH_EXPIRED, CLI_ERROR |
| colab_session_getB | Get status of a specific Colab session. Args: name: Session display name Returns: Session info including name, session_id, hardware, shape, variant, status Raises: ToolError: SESSION_NOT_FOUND, AUTH_EXPIRED, CLI_ERROR |
| colab_session_stopA | Stop (terminate and delete) a Colab session. WARNING: This is a destructive operation. The session and its kernel state will be permanently deleted. Files in /content persist on the runtime filesystem but the session cannot be resumed. Args: name: Session display name Returns: Confirmation that session was terminated Raises: ToolError: SESSION_NOT_FOUND, AUTH_EXPIRED, CLI_ERROR |
| colab_code_executeA | Execute Python code in a Colab session via stdin pipe. Args: session: Session display name code: Python code to execute timeout: Execution timeout in seconds (1-300, default: 30) env: Environment variables to set before execution Returns: Execution result with stdout, stderr, exit_code, execution_time Raises: ToolError: SESSION_NOT_FOUND, EXECUTION_TIMEOUT, KERNEL_ERROR, AUTH_EXPIRED, QUOTA_EXCEEDED, CLI_ERROR |
| colab_file_executeA | Execute a Python file in a Colab session. Args: session: Session display name file_path: Path to Python file to execute timeout: Execution timeout in seconds (1-300, default: 30) env: Environment variables to set before execution Returns: Execution result with stdout, stderr, exit_code, execution_time Raises: ToolError: SESSION_NOT_FOUND, EXECUTION_TIMEOUT, KERNEL_ERROR, AUTH_EXPIRED, QUOTA_EXCEEDED, CLI_ERROR |
| colab_session_get_urlB | Get the browser URL for a Colab session. Args: session: Session display name host: Optional Colab frontend host (default: https://colab.research.google.com) Returns: Full Colab browser URL for the session Raises: ToolError: SESSION_NOT_FOUND, AUTH_EXPIRED, QUOTA_EXCEEDED, CLI_ERROR |
| colab_session_logA | Get session history logs. Args: session: Session display name (omit to list all sessions with logs) lines: Number of lines to show (default: all) type: Filter by event type (e.g., execution, file_operation, session_created) Returns: Log lines for the session, or list of sessions with logs if session omitted Raises: ToolError: SESSION_NOT_FOUND, AUTH_EXPIRED, QUOTA_EXCEEDED, CLI_ERROR |
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 8 tools
Session lifecycle tools are clearly separated by action and target, and read-only helpers like get_url and log have distinct purposes. The only mild ambiguity is between code_execute and file_execute, which both execute Python in a session but differ by input form and are clarified in their descriptions.
All tools use snake_case with a consistent colab_ prefix and mostly follow a resource_action pattern. Minor deviations exist: colab_session_log uses only a noun, and colab_session_get_url adds an extra noun to the usual pattern.
Eight tools is well-scoped for a Colab session adapter, covering creation, listing, status, termination, execution, URL access, and logs without obvious padding. Each tool appears to earn its place in the surface.
The core session lifecycle and execution workflows are covered, including logs and browser URL access. Explicit file upload/download or notebook-file operations are absent, though agents can likely work around this by writing files through code_execute.