NotebookLM MCP CLI
raw JSON → 0.5.31 verified Mon Apr 27 auth: no python
Unified CLI and MCP server for Google NotebookLM. Version 0.5.31, actively developed with frequent releases.
pip install notebooklm-mcp-cli Common errors
error AssertionError: Request already responded to ↓
cause HTTP transport in stateless mode (default) causes MCP SDK double-response crash on slow Google API calls.
fix
Add
--no-stateless to your MCP server startup arguments. error Auth loop: refresh_auth keeps returning false success ↓
cause NOTEBOOKLM_COOKIES env var set with expired cookies; tool keeps reloading stale cookies.
fix
Unset NOTEBOOKLM_COOKIES and run
nlm login to generate fresh tokens. Warnings
breaking HTTP transport now defaults to stateless mode. Use `--no-stateless` to opt out. ↓
fix Add `--no-stateless` to your MCP server args if you encounter double-response crashes.
gotcha Stale NOTEBOOKLM_COOKIES env var causes auth loop. ↓
fix Clear the env var and re-run `nlm login`.
Imports
- cli wrong
from notebooklm_mcp_cli import clicorrect# CLI is run via `nlm` command, not imported
Quickstart
nlm login
nlm notebooks list