Colab MCP
Connects an agent to Google Colab in a browser tab, allowing it to open or attach to an existing Colab notebook and interact with the notebook through MCP tools and resources after browser authentication.
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.
Colab MCP
A local stdio MCP server that connects an agent to a Colab browser tab.
Python 3.13+; the only runtime dependency is websockets==17.4.
Run from the checkout without installing the project or creating a virtual environment:
# Skip this if websockets is already installed.
python -m pip install --only-binary=:all: websockets==17.4
cd src
python -m colab_mcpThe server waits for MCP messages on stdin. Normally your MCP client launches it. For Codex, use this configuration with your actual checkout path and Python executable:
[mcp_servers.colab]
command = "python"
args = ["-m", "colab_mcp"]
cwd = 'D:\path\to\colab-mcp\src'
tool_timeout_sec = 120Call open_colab_browser_connection to open a scratch notebook. Its optional
notebook_url argument opens an existing HTTPS Colab notebook. Sign in and accept
Colab's connection prompt in the browser. Notebook tools appear after connection;
the MCP client must handle notifications/tools/list_changed. Keep the tab open.
If the browser cannot open or connection times out, the tool returns a manual URL.
src/minimcp contains the independent, standard-library-only protocol code:
JSON-RPC, initialization, notifications, cancellation, and stdio. It supports MCP
2025-11-25, 2025-06-18, and 2024-11-05; it does not implement HTTP/OAuth or task
extensions. src/colab_mcp handles browser authentication and forwards tools,
resources, prompts, progress, and supported client callbacks.
Logs go to stderr, or to a directory supplied with --log. The WebSocket listener
binds to 127.0.0.1, accepts one tab, and checks its token and Colab origin.
Run checks from the repository root with python -m pytest. Tests need only pytest
and websockets; they do not open a real browser or contact Google.
Building an installable wheel uses Hatchling, declared in pyproject.toml.
Running from src does not load or require that build backend.
This server cannot be deployed
Maintenance
Related MCP Connectors
Read a project's prompts, logs and agents, and send new work to the agent on your own machines.
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Persistent cloud workspaces for AI agents: run commands, edit files, use git and a browser.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Related MCP Servers
AlicenseAqualityDmaintenanceBridges a local agent to a Colab session in the browser, enabling seamless interaction with Colab from local clients.11,429Apache 2.0- AlicenseDqualityBmaintenanceEnables agents to control Google Colab notebooks through a secure, headless WebSocket architecture, allowing cell creation, editing, execution, and inspection without browser automation.133Apache 2.0
- AlicenseAqualityDmaintenanceBridges a local AI agent to a Colab session in the browser, enabling code execution and file operations through the Model Context Protocol.29Apache 2.0
- AlicenseAqualityCmaintenanceEnables local agents to connect to and interact with Google Colab sessions running in the browser.3Apache 2.0