AI Services Market › Use cases › Software & DevOps
Software & DevOpsDone with Claude Code Nov 18, 2026
Run a notebook on a TPU via Colab MCP from Claude Code
A step-by-step setup connecting Claude Code to Google's hosted Colab MCP endpoint, running a notebook on a fresh TPU v5e-1 and then deleting it. · Nov 18, 2026
- What They Did
- The author got a token with the colaboratory scope from the Colab CLI login and enabled the API in a quota project. A headersHelper script passed both to Claude Code, since its built-in OAuth failed. A Python runner then created a TPU v5e-1 runtime, opened one session, sent each notebook cell to execute_code, and deleted the runtime in a finally block.
- How It Went
- A v5e-1 was ready in 4 seconds, and a 26-cell Gemma 4 notebook ran clean in 901 seconds. Its answers matched the Colab CLI run. Output comes back as text only, so HTML output was lost.
- Worth Knowing
- Streams close at 300 seconds and interrupt the kernel, so split any longer cell. A plain gcloud ADC token is rejected for lacking the scope.
Try it yourself with Claude Code
Connect yourself to Google's hosted Colab MCP endpoint, walking me through any authentication I need to do. Then run my notebook [path or Colab link] on a fresh [TPU v5e-1 or other runtime] and show me the output. When it finishes, tell me which runtime you created and ask me to confirm before you delete it.