Skip to content
MCP server

Colab-MCP (unofficial)

Unofficial MCP server for running GPU/TPU Colab runtimes, notebooks and jobs from an agent

Runs locally

Colab-MCP (unofficial) is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, macOS, Linux
Runs
Locally
What it can do
Can change data (7 tools)
Version
0.1.0
Listing updated

Similar MCP servers

Install

You install MCP servers on a computer. Send yourself the link.

Add with the CLI

Run in a terminal

claude mcp add colab-mcp -- uvx colab-cli-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "colab-mcp": {
      "command": "uvx",
      "args": [
        "colab-cli-mcp"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "colab-mcp": {
      "command": "uvx",
      "args": [
        "colab-cli-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "colab-mcp": {
      "command": "uvx",
      "args": [
        "colab-cli-mcp"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "colab-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "colab-cli-mcp"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add colab-mcp -- uvx colab-cli-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.colab-mcp]
command = "uvx"
args = ["colab-cli-mcp"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "colab-mcp": {
      "command": "uvx",
      "args": [
        "colab-cli-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "colab-mcp": {
          "command": "uvx",
          "args": [
            "colab-cli-mcp"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user colab-mcp uvx -- colab-cli-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "colab-mcp": {
          "command": "uvx",
          "args": [
            "colab-cli-mcp"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "colab-mcp": {
          "command": "uvx",
          "args": [
            "colab-cli-mcp"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "colab-mcp": {
          "command": "uvx",
          "args": [
            "colab-cli-mcp"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "colab-mcp": {
          "command": "uvx",
          "args": [
            "colab-cli-mcp"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "colab-mcp": {
          "command": "uvx",
          "args": [
            "colab-cli-mcp"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "colab-mcp": {
          "command": "uvx",
          "args": [
            "colab-cli-mcp"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "colab-mcp": {
          "command": "uvx",
          "args": [
            "colab-cli-mcp"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • COLAB_MCP_WORKDIRThe only local folder the server reads and writes. Defaults to the current directory.
  • COLAB_MCP_DRIVESet to 1 to enable the optional Google Drive tools (they need a one-time sign-in, see the README).

About Colab-MCP (unofficial)

This server wraps Google's official Colab CLI so an agent can use Colab without a browser tab. It creates and stops GPU or TPU runtimes, runs code with kernel state kept between calls, edits and runs local .ipynb notebooks cell by cell, starts long background jobs with log polling, and moves files and folders to and from the VM. The README counts 42 tools plus 8 optional Drive tools.

Safety is a large part of the design. Local paths are confined to one working folder, secrets are passed by name and scrubbed from results, commands run without a shell, folder uploads skip likely secrets, and notebook deletes go to a trash folder. Mounting Drive on the VM is a manual consent step, and the README states plainly that code on a mounted VM can then reach all of Drive.

Code runs under your Google account and spends your compute units. It supports Linux and macOS only, and the author says it was validated live once and mainly tested against a simulated CLI.

Tools this server provides (12)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 7 of 12 tools change data; 4 names don't say.

From the server's own tool labels and tool names; not verified by us.

colab_new
Create a runtime.
colab_ensure_session
Ensure a session, optionally with a GPU.
colab_execName suggests: changes
Run code with persistent kernel state.
colab_runName suggests: changes
One-shot run on a fresh VM.
colab_stopName suggests: changes
Stop a session.
colab_notebook_createName suggests: changes
Create a local notebook.
colab_notebook_run_cellName suggests: changes
Run one notebook cell.
colab_job_startName suggests: changes
Start a background job.
colab_job_logs
Read job logs.
colab_upload_dirName suggests: changes
Upload a folder to the VM.
colab_download_dirName suggests: reads
Download a folder from the VM.
colab_drive_mount_start
Begin mounting Drive on the VM.

What it does

Runtime control
Create, inspect, restart and stop GPU or TPU sessions.
Code execution
Run code with persistent kernel state or one-shot scripts.
Notebook editing
Add, edit, run and convert local notebook cells.
Background jobs
Start long jobs and poll their logs.
File transfer
Upload and download files and folders with secret-skipping guards.
Optional Drive
Mount Drive on the VM for results that must persist.

Good for

  • Train a model on a Colab GPU from an agent
  • Run a notebook cell by cell and read outputs
  • Launch an overnight batch job and fetch results
  • Keep checkpoints in a Drive project folder

Pricing

Open source

Colab-MCP (unofficial) FAQ

What does Colab-MCP (unofficial) need?

uv and Google's Colab CLI signed in once, on macOS or Linux.

Do secrets reach the model?

No, the model passes names only and values are scrubbed from results.

Does Colab-MCP (unofficial) cost anything?

Code runs on your Colab account and spends your compute units.

How do I add Colab-MCP (unofficial) to Claude Code?

Run this command in your terminal: claude mcp add colab-mcp -- uvx colab-cli-mcp

What are the best alternatives to Colab-MCP (unofficial)?

The closest alternatives to Colab-MCP (unofficial) are REA, Codebase Memory, Serena MCP: the IDE for your agent, XERJ and Context7.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers