Google Colab, inside your AI agent β powered by Google's official open-source tools, built independently.
A professional ZCode plugin integrating Google's official colab-mcp browser-bridge MCP server and the google-colab-cli headless CLI β provision GPU/TPU runtimes, run code, and manage files on Google Colab without ever leaving your agent.
- Overview
- How It Works
- Repository Layout
- Installation
- Quick Start
- Troubleshooting
- FAQ
- Development
- Roadmap
- License & Notice
- Acknowledgments
| π Browser bridge | Pair ZCode with a live Colab notebook open in your browser via Google's official MCP proxy β inspect kernel state, run cells, iterate with the agent |
| β‘ Headless control | Provision CPU/GPU/TPU sessions, execute scripts, upload/download artifacts with the official CLI β no browser required |
| π§ Two skills | colab-mcp (pairing flow, dynamic tools, troubleshooting) and colab-cli (full command reference, agent workflows) |
| π‘ No redistribution | The MCP server is fetched at runtime from Google's official repo β this plugin ships configuration and expertise only |
| π Bilingual skills, English docs | Skills are pre-optimized for agent use; all documentation is in English |
| π§ͺ Validated | 15-point repository validator runs locally and in CI on every push |
flowchart LR
subgraph local["π₯ Your machine"]
Z["ZCode agent"]
P["colab-mcp proxy<br/>(uv tool run)"]
S["colab-cli<br/>(WSL on Windows)"]
end
subgraph cloud["β Google"]
B["Colab notebook<br/>in your browser"]
R["Colab runtime<br/>CPU / GPU / TPU"]
end
Z <-- "MCP stdio" --> P
P <-- "local WebSocket + token" --> B
Z -- "shell" --> S
S --> R
B --> R
Two independent paths: the MCP proxy pairs ZCode with a notebook you control in the browser, while the CLI provisions raw runtimes for fully automated jobs.
marketplace.json β ZCode marketplace catalog
LICENSE β Apache-2.0 full text
NOTICE.md β legal notice (non-affiliation, attribution)
CHANGELOG.md β version history
colab/
βββ .zcode-plugin/plugin.json β plugin manifest (v0.1.1)
βββ .mcp.json β official colab-mcp server definition
βββ skills/
βββ colab-mcp/SKILL.md β browser pairing flow & troubleshooting
βββ colab-cli/SKILL.md β headless CLI command reference
scripts/
βββ validate.py β 15-point repository validator
βββ smoke_colab_mcp.py β MCP handshake smoke test
.github/workflows/validate.yml β CI: validates the repo on push & PR
- In ZCode: Plugin Marketplace β Add β Add Plugin Marketplace
- Paste the repository URL:
https://github.com/movtigroup/Colab-Plugin.git - Install Google Colab Tools from the
movti-colabmarketplace - Restart ZCode so the MCP server starts fresh
| Requirement | Why | Install |
|---|---|---|
| uv | Runs the MCP server | pip install uv |
| Google account | Access to colab.research.google.com | β |
| WSL (Windows only) | google-colab-cli targets Linux/macOS |
wsl --install |
Browser pairing β select the colab-mcp skill and say:
"Connect me to Colab"
The pairing tool opens Colab in your browser; after you sign in and the notebook connects back over WebSocket, the notebook's tools appear dynamically.
Headless GPU job β select the colab-cli skill:
colab new -s trainer --gpu A100 # provision a runtime
colab install -s trainer torch transformers
colab exec -s trainer -f train.py # run code (contents sent to kernel)
colab download -s trainer checkpoints/model.bin ./model.bin
colab stop -s trainer # release the VM| Symptom | Fix |
|---|---|
| No Colab tools listed | Session not paired β invoke open_colab_browser_connection, keep the Colab tab open, and sign in to Google |
| Server fails to start | pip install uv, then restart ZCode |
| uvx build fails behind a mirror | Add --index https://pypi.org/simple to .mcp.json args |
| Pairing times out | Invoke the pairing tool again for a fresh 60-second window |
| colab-cli on Windows | Run inside WSL β Windows is not supported by the upstream CLI |
Is this made by Google?
No. This is an independent integration of Google's official open-source tools β see NOTICE.md.
Where does the MCP server come from?
It is fetched at runtime from googlecolab/colab-mcp via uv tool run. Nothing is redistributed here.
Does it cost anything?
The Colab free tier works. GPU/TPU accelerators and high-RAM shapes consume Colab compute points (Pro/Pro+).
Why is the CLI Linux/macOS only?
That is an upstream limitation of google-colab-cli, documented by Google. On Windows, run it inside WSL.
python scripts/validate.py # 15-point repo validation
python scripts/smoke_colab_mcp.py # live MCP handshake + tools/list testCI runs the validator on every push and pull request.
- Plugin foundation: MCP server, pairing and CLI skills, marketplace catalog
- Professional packaging: license, notice, changelog, CI, validators
- Tagged releases surfaced in the ZCode marketplace
- Extra skills: Drive-mount workflows, compute-points monitoring
Released under the Apache License 2.0. Independent project β not affiliated with, endorsed by, or sponsored by Google. Legal details in NOTICE.md, history in CHANGELOG.md.
- googlecolab/colab-mcp Β· Β© Google, Apache-2.0
- googlecolab/google-colab-cli Β· Β© Google, Apache-2.0
β Star this repo if it saves you a GPU trip to the browser!