Skip to content

Menu

Google Colab MCP Server logo

Google Colab MCP Server

Published

At a glance

GitHub repository
googlecolab/colab-mcp
Watch out for
The local server needs a client that runs on your own device and supports notifications/tools/list_changed, so hosted chat clients without that support will not work.

Google's Colab team publishes colab-mcp, an open-source server announced on the Google Developers Blog in March 2026 and released under the Apache-2.0 license. It runs locally on your machine and acts as a bridge between a local agent and a Colab notebook you have open in your browser. Your agent keeps running where it is, but the code it writes runs in Colab's cloud runtime instead of on your laptop.

The local server talks to your client over stdio and is started with uvx straight from the GitHub repository, so there is no package to install by hand beyond uv itself. The README asks for a client that runs on your own device and supports the notifications/tools/list_changed notification, because the tools the server offers change once a Colab session connects.

Google also documents a separate remote server for the Colab API at https://colaboratory.googleapis.com/mcp. That one manages Colab runtimes directly and exposes named tools such as create_runtime and execute_code. It needs MCP enabled and authentication set up through Google Cloud first, so treat it as a second option rather than the same thing.

How it connects

Your AI app

An assistant or agent that supports MCP

Google Colab MCP Server

Runs as

  • Python (uv / pip)
  • Remote (HTTP)

Gives the agent

  • Notebook authoring
  • Running code in Colab
  • Cell organisation and dependencies
  • Runtime management (Colab API server)
  • Kernel sessions and execution (Colab API server)
  • Subscription check (Colab API server)

Google Colab

The data or system the tools act on

Your AI app talks to Google Colab MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Notebook authoring
Through the local colab-mcp bridge an agent can create .ipynb files in the open Colab session and add markdown cells to explain its steps.
Running code in Colab
The agent writes Python cells and runs them in real time on the Colab runtime, then reads the outputs back.
Cell organisation and dependencies
It can rearrange cells and install missing libraries with !pip install inside the notebook.
Runtime management (Colab API server)
The remote server offers create_runtime, list_runtimes, get_runtime, delete_runtime and list_runtime_specs for creating, reusing and removing Colab runtimes.
Kernel sessions and execution (Colab API server)
create_session, list_sessions and delete_session handle Jupyter kernel sessions, and execute_code runs Python in a session or runtime and returns text output.
Subscription check (Colab API server)
get_subscription reports whether the account is on the free, Pro or Pro+ tier.

Setting it up

Install uv first with pip install uv; the blog post also lists Python and git as requirements. Then add an entry to your agent's mcpServers configuration that runs the command uvx with the single argument git+https://github.com/googlecolab/colab-mcp and a timeout of 30000. The README names the entry colab-mcp, while the blog example calls it colab-proxy-mcp; the name is up to you. The README lists Gemini CLI, Claude Code and Windsurf as supported clients. Open a Colab notebook in your browser, then give your local agent a task and it will work inside that notebook. Users behind a non-standard default package index may need to add --index https://pypi.org/simple to the arguments. For the remote Colab API server, point your client at https://colaboratory.googleapis.com/mcp after enabling MCP servers and configuring authentication as described in Google Cloud's docs.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Load a dataset in Colab, build a short sales forecast, and plot the result in the notebook, which is the example Google gives
  • Offload a training or data-processing script from a weak laptop to a Colab runtime while you keep chatting with your local agent
  • Turn a rough analysis into a tidy notebook with markdown explanations and cells in a sensible order
  • Check which runtime specs an account is eligible for, spin one up with create_runtime and delete it when the job is done

Limitations and things to watch

  • The local server needs a client that runs on your own device and supports notifications/tools/list_changed, so hosted chat clients without that support will not work.
  • It works against a Colab notebook open in your browser, so the session has to stay open while the agent works.
  • The project does not accept external code contributions right now, and questions and feature requests go through GitHub Discussions.
  • On the Colab API server, create_runtime is slow and quota-limited, and delete_runtime and delete_session discard data and kernel state permanently.
  • Code the agent runs executes with whatever access the notebook or runtime has, so review what it installs and runs before trusting the output.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…