Colab MCP logo

Colab MCP

by SebastianGilPinzon

Control Colab notebooks, manage cells, run code, and assign T4, L4, or A100 GPUs through MCP.

Install Colab MCP

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for SebastianGilPinzon/colab-mcp, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

SebastianGilPinzon/colab-mcp MCP server lets AI coding agents control Google Colab notebooks through MCP tools. It can open a browser connection, create and edit code or markdown cells, execute cells, read outputs, and rearrange or remove cells. With Google OAuth configured, it can also assign T4, L4, A100, or no accelerator without changing the runtime manually in Colab. Reach for it when an agent needs to develop or run notebook code while retaining notebook state and outputs.

Use cases

  • Create and run exploratory Colab notebook cells
  • Read notebook outputs into an AI coding workflow
  • Assign a T4, L4, or A100 runtime with OAuth
  • Reorganize or clean up generated notebook cells

Key features

  • Google Colab browser connection
  • Code and Markdown cell management
  • Cell execution and output retrieval
  • T4, L4, A100, and NONE runtime selection
  • OAuth token caching
  • Stale server detection and cleanup

Tools9

What Colab MCP lets your agent do. Expand a tool for its parameters.

Self-reported~108 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

16/17 checks healthy over the last 79d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8/28/2026 via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars22Stargazers on the source repository.
Last commit4mo agoMost recent push to the default branch.
Tools exposed9Callable tools this server registers over MCP.
Directory activity10 viewsConfig copies, upvotes, and views on AllMCPs.

How Colab MCP works

What SebastianGilPinzon/colab-mcp MCP server does

SebastianGilPinzon/colab-mcp MCP server exposes Google Colab notebook operations to MCP-compatible AI clients. The notebook workflow starts by opening a browser connection to a Colab notebook. Once connected, an agent can inspect the notebook, create or modify cells, execute code, and manage cell order.

The server also includes a runtime control operation. With Google OAuth enabled, an agent can request the T4, L4, A100, or NONE accelerator. Notebook editing and execution use the browser connection, while runtime selection requires OAuth credentials.

How it works

The server runs locally and communicates with an MCP client over standard input and output. Its proxy component connects the local process to browser-based Colab notebook tools. The fork pre-registers its tools so clients can see the notebook operations at startup rather than waiting for a tool-list change notification.

A typical session calls open_colab_browser_connection, then uses the returned notebook context with operations such as add_code_cell, run_code_cell, and get_cells. Cell operations identify their targets with cellId; the older cellIndex fallback is not supported. The server records running instances in a small registry, prunes stale entries when starting, and provides commands for listing or terminating stale processes.

Setup and configuration

Install uv using the project’s documented installer instructions, then run the project with uv or the repository’s uvx Git reference. An MCP client configuration points command to uv and passes run, --directory, the local repository path, and colab-mcp as arguments. The repository example uses a 30-second client timeout.

Notebook control can be configured without OAuth. To enable change_runtime, create a Google Cloud project, configure an OAuth consent screen, add a test user, create a Desktop OAuth client, and pass the downloaded client-secrets JSON with --client-oauth-config. On first launch, the browser-based consent flow authorizes access. The resulting token is cached at ~/.colab-mcp-auth-token.json and refreshed automatically.

On Windows, the server uses port 8085 for compatibility. Its registry is stored under %LOCALAPPDATA%\\colab-mcp\\registry.json on Windows and ~/.colab-mcp/registry.json on macOS or Linux.

Tools and capabilities

SebastianGilPinzon/colab-mcp MCP server provides these operations:

  • open_colab_browser_connection: connect to a Colab notebook in the browser.
  • get_cells: read cell IDs, contents, notebook state, and outputs.
  • add_code_cell: insert executable code.
  • add_text_cell: insert a Markdown cell.
  • run_code_cell: execute a cell by cellId.
  • update_cell: edit an existing cell by cellId.
  • delete_cell: remove a cell by cellId.
  • move_cell: reposition a cell by cellId.
  • change_runtime: select T4, L4, A100, or NONE when OAuth is configured.

Limitations and notes

Browser-dependent notebook operations require an active Colab browser connection. Runtime selection is unavailable unless the server starts with a valid OAuth client configuration.

Define the MCP server in only one client configuration file. Duplicate global and project definitions can start competing instances and cause one to fail. If Colab reports that it is disconnected from the local server, --list-running can show active instances and --kill-stale can terminate them before a new session starts. The latter should be run from a regular shell, not inside Claude Code.

The project is licensed under Apache-2.0 and requires Python 3.11 or newer.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Colab MCP

Install `uv`, then configure the MCP client to run the project with `uv run --directory <repository-path> colab-mcp`.

Create Google OAuth Desktop credentials, save the client-secrets JSON, and pass its path with `--client-oauth-config`. The `change_runtime` tool can then select T4, L4, A100, or NONE.

Yes. The setup example includes Cursor as an MCP client. Configure the local `uv` command in the client’s MCP configuration.

Run `colab-mcp --list-running` to inspect active instances or `colab-mcp --kill-stale` from a regular shell to terminate running instances and clear the registry.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewColab MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/sebastiangilpinzon-colab-mcp?style=directory)](https://allmcps.com/mcp/sebastiangilpinzon-colab-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/sebastiangilpinzon-colab-mcp"><img src="https://allmcps.com/api/badge/sebastiangilpinzon-colab-mcp?style=directory" alt="Colab MCP on AllMCPs" /></a>