Colab Drive MCP logo

Colab Drive MCP

Synchronizes Google Colab-compatible notebooks with local files and Google Drive without executing notebook code.

Install Colab Drive MCP

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

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "colab-drive-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "colab-drive-mcp[drive]",
        "colab-drive-mcp"
      ],
      "env": {
        "COLAB_MCP_ROOT": "YOUR_VALUE_HERE",
        "COLAB_MCP_DRIVE_ACCESS": "YOUR_VALUE_HERE",
        "COLAB_MCP_GOOGLE_CREDENTIALS": "YOUR_VALUE_HERE",
        "COLAB_MCP_GOOGLE_TOKEN": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx --from colab-drive-mcp[drive] colab-drive-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Colab Drive MCP MCP server lets agents inspect, edit, and synchronize Google Colab-compatible .ipynb files through a local root directory and Google Drive. It provides notebook cell operations, Drive upload and download tools, synchronization checks, progress notifications, and explicit OAuth setup. Use it when an agent needs to prepare notebooks locally, move them through Drive, or inspect saved outputs without controlling a Colab runtime.

Use cases

  • Prepare notebook cells locally before opening them in Colab
  • Synchronize edited notebooks with Google Drive
  • Inspect saved notebook outputs without running code
  • Compare local and Drive notebook versions
  • Create and organize Colab-compatible notebook files

Key features

  • Local .ipynb inspection and cell editing
  • Google Drive notebook upload and download
  • MD5-based synchronization status
  • Explicit OAuth authorization and diagnostics
  • Restricted local file root
  • Colab stream-output metadata normalization

Tools2

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

Self-reported~36 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

Recent health check succeeded.

14/15 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · colab-drive-mcp (PyPI)

Adoption & maintenance

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

Last commit5mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed2Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Colab Drive MCP works

What Colab Drive MCP MCP server does

Colab Drive MCP MCP server manages Google Colab-compatible .ipynb files as documents rather than executable workloads. Agents can inspect notebook cells, create or modify local notebooks, search cell content, clear outputs, and move notebook files between a configured local directory and Google Drive.

The server supports creating, finding, copying, uploading, and downloading notebooks. It can also return a Colab URL, but that URL is only returned as data; the server does not open it or automate a browser. Colab Drive MCP MCP server is intended for preparing a notebook, synchronizing changes, and reviewing completed outputs before opening the file in Colab, Jupyter, VS Code, or another runtime.

How it works

Local file operations are restricted to .ipynb files below COLAB_MCP_ROOT. Drive operations use Google OAuth and can run with either the narrower file access mode or the broader full mode. The default file mode works with files created by, or explicitly opened to, the OAuth application. Finding and updating existing notebooks across Drive may require full mode.

pull_drive_notebook downloads a Drive notebook, while push_local_notebook uploads a local copy. When the MCP client supplies a progress token, these operations send upload or download progress notifications. The client controls whether those notifications are displayed.

get_notebook_sync_status compares the local upload representation with Drive's content MD5 and reports in_sync, differs, remote_only, or unknown. It also returns Drive metadata such as modification time and version. This comparison does not reveal whether a Colab runtime is connected or running.

Setup and configuration

Install from PyPI with uvx --from 'colab-drive-mcp[drive]' colab-drive-mcp, or install the project in a virtual environment from source. Run the process as a standard stdio MCP server and set COLAB_MCP_ROOT to the directory containing permitted notebooks.

For Drive access, create a Google Cloud project, enable the Drive API, configure OAuth consent and a test user, create a Desktop app OAuth client, and save its credentials. The initial status check diagnoses dependencies, credentials, tokens, and scopes without opening a browser. Call authorize_google_drive separately to start the OAuth flow.

Credentials and tokens default to ~/.config/colab-mcp/credentials.json and ~/.config/colab-mcp/token.json. COLAB_MCP_GOOGLE_CREDENTIALS and COLAB_MCP_GOOGLE_TOKEN can change those locations. Changing Drive access modes may require authorizing again after removing the existing token.

Tools and capabilities

Colab Drive MCP MCP server exposes these functional groups:

  • Setup diagnostics and explicit Google OAuth authorization.
  • Local notebook listing, retrieval, creation, cell insertion, updates, deletion, searching, and output clearing.
  • Drive notebook listing, pulling, pushing, copying, synchronization checks, and Colab URL retrieval.
  • Download normalization that removes Colab's incompatible stream-output metadata property while preserving stream text and other outputs.

Limitations and notes

The server does not execute cells, connect to or monitor Colab runtimes, click “Run all,” automate the Colab interface, maintain unattended sessions, bypass quotas, or deploy notebook projects. It also cannot determine runtime activity from Drive metadata.

Use file access unless discovery of existing Drive files requires full access. OAuth credentials and tokens should not be committed. Review operations before overwriting an existing Drive file. The project is not affiliated with or endorsed by Google.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

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

Frequently Asked Questions about Colab Drive MCP

Colab Drive MCP is an MCP server that connects local Google Colab-compatible notebook files with Google Drive. Its main tools inspect and edit local notebooks, list, pull, push, and copy Drive notebooks, report synchronization status, diagnose Drive access, and start OAuth authorization without executing notebook code.

Install it from PyPI with uvx or from source in a Python virtual environment. The documented command uses `uvx --from 'colab-drive-mcp[drive]' colab-drive-mcp`; source installation uses `pip install -e '.[drive]'`, followed by running `colab-drive-mcp`.

Call `get_google_drive_status` first, then call `authorize_google_drive` after configuring Google OAuth credentials. Create a Google Cloud project, enable the Drive API, create a Desktop app OAuth client, save the credentials, and complete the browser sign-in flow.

No, it only transfers and edits `.ipynb` files. It does not connect to Colab runtimes, execute cells, click Run all, automate the Colab browser interface, or monitor whether a notebook is running.

Set `COLAB_MCP_DRIVE_ACCESS=full` and authorize again if needed. The default `file` mode uses the narrower `drive.file` scope and may not reliably list existing notebooks that were not created by or explicitly opened to the OAuth application.

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 Drive MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/colab-drive-mcp?style=directory)](https://allmcps.com/mcp/colab-drive-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/colab-drive-mcp"><img src="https://allmcps.com/api/badge/colab-drive-mcp?style=directory" alt="Colab Drive MCP on AllMCPs" /></a>