The Colab MCP Endpoint From Claude Code: Set It Up, Test It, Run a Notebook on a TPU
Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.
Step-by-step guide to set up Colab MCP endpoint with Claude Code and run notebooks on TPU, highly actionable and directly relevant to AI/ML tooling and cloud infrastructure.
Google's new Colab API and hosted MCP endpoint let developers programmatically create, inspect, and delete Colab runtimes from code, with a v1beta REST API exposing six methods and an MCP wrapper adding sessions and code execution. A test using the endpoint spun up a fresh Colab TPU v5e-1 in 4 seconds, ran a 26-cell Gemma 4 E2B notebook in 901 seconds, and deleted the runtime afterward, with performance matching the Colab CLI (124.6 vs 122.0 tok/s). The MCP endpoint at https://colaboratory.googleapis.com/mcp requires a Google Cloud project with the Colab API enabled and supports tools like create_runtime, execute_code, and delete_runtime.