# Colab Drive MCP [Health: Active]

**Category:** 📂 File Systems  
**Repository:** https://github.com/YummyTastyCode/colab-drive-mcp  
**GitHub Stars:** 0  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/colab-drive-mcp

## Description
Synchronize Colab notebook files through Google Drive without executing notebook code.

## Tools
Capabilities this server exposes over MCP:

- **get_google_drive_status** — diagnose dependencies, credentials, token, and scope.
- **authorize_google_drive** — explicitly open the Google OAuth browser flow.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "colab-drive-mcp": {
    "command": "uvx",
    "args": ["--from","colab-drive-mcp[drive]","colab-drive-mcp"],
    "env": {
      "COLAB_MCP_ROOT": "",
      "COLAB_MCP_DRIVE_ACCESS": "",
      "COLAB_MCP_GOOGLE_CREDENTIALS": "",
      "COLAB_MCP_GOOGLE_TOKEN": ""
    }
  }
}
```

**Requires environment variables:** `COLAB_MCP_ROOT`, `COLAB_MCP_DRIVE_ACCESS`, `COLAB_MCP_GOOGLE_CREDENTIALS`, `COLAB_MCP_GOOGLE_TOKEN` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/colab-drive-mcp/readme_

