About this use case
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.
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.
Prompt
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.
Reported outcome
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.
Submitted by the archiving bot. Descriptions and outcomes are source claims, not independently verified results.