Getting Started
August 3, 2026 · View on GitHub
A practical guide to going from "just installed" to "Gemini Notebook (formerly Google NotebookLM) is wired into my agent." For background on what the project is and the full feature list, see the README. For deep command/tool reference, see the CLI Guide and MCP Guide.
Contents
First-time setup
If you have never used notebooklm-mcp-cli before, the path is:
- Install —
uv tool install notebooklm-mcp-cli. This gives you both thenlmCLI and thenotebooklm-mcpserver binary. See the README → Installation section for alternatives (uvx,pip,pipx, source install). - Authenticate —
nlm login. The CLI extracts your Google cookies from a managed browser session. See the Authentication Guide for the two supported methods (Auto Mode and File Mode) and how multi-profile auth works. - Connect an agent — pick your client:
nlm skill install hermes # Hermes Agent claude mcp add gemini-notebook-mcp -- notebooklm-mcp # Claude Code gemini mcp add --scope user gemini-notebook-mcp -- notebooklm-mcp # Gemini CLI nlm setup add json # any other MCP client (prints JSON) - Verify — restart your agent and call
notebook_list(MCP) ornlm notebook list(CLI). If you see your existing notebooks, you are good to go.
For deeper coverage, jump to the relevant guide:
- CLI Guide — every command, every flag
- MCP Guide — every tool, every parameter
- Authentication Guide — login, profiles, token
lifecycle,
auth_statusstate meanings
Migrating from another Gemini Notebook MCP
If you previously used a browser-automation–based Gemini Notebook MCP (or any
other third-party Gemini Notebook server) and want to switch to
notebooklm-mcp-cli for direct API access, follow these steps. Most agent
frameworks (Hermes Agent, Claude Code, Cursor, etc.) get confused when two
Gemini Notebook servers are configured at the same time because their tool
names overlap (notebook_create, source_add, …), so a clean swap is
recommended.
1. Install the unified CLI/MCP
uv tool install notebooklm-mcp-cli
This installs both nlm and the notebooklm-mcp server binary.
2. Authenticate once
nlm login
Your Google cookies are extracted from a managed browser session and
cached in ~/.notebooklm-mcp-cli/profiles/default/auth.json. The
nlm login --check command verifies that the cached creds still work.
3. Register the new MCP server
Pick whichever fits your agent framework:
# Hermes Agent
nlm skill install hermes
# Claude Code
claude mcp add gemini-notebook-mcp -- notebooklm-mcp
# Gemini CLI
gemini mcp add --scope user gemini-notebook-mcp -- notebooklm-mcp
# Claude Desktop (detects regular and Relay AI/3P profiles)
nlm setup add claude-desktop
# Or select Relay AI / Claude 3P explicitly
nlm setup add claude-desktop --profile 3p
For any other MCP client, generate a config snippet:
nlm setup add json
Recommended server name:
gemini-notebook-mcp. The executable remainsnotebooklm-mcp. Avoid generic names likenotebooklmif you also have a legacy server registered, or your agent will mix their tools up.
For Claude Desktop, fully quit the selected profile before running setup. If both regular and Relay AI/3P profiles are detected, the CLI asks which one to configure; if no profile exists, it creates nothing. Reopen Claude Desktop after setup completes.
User-level skill installation also requires the target tool to be detected;
use nlm skill install <tool> --level project when you intentionally want a
project-local skill without changing user-level tool directories.
4. Remove the old MCP server
This is the step most people forget. Leaving both configured is the #1 cause of "Hermes picked the wrong tool" symptoms:
# Claude Code
claude mcp remove notebooklm # (or whatever the old name was)
# Gemini CLI
gemini mcp remove notebooklm
# Hermes / others: edit the client config directly
If you are not sure what is registered, list everything:
claude mcp list # Claude Code
gemini mcp list # Gemini CLI
5. Restart your agent
Restart Claude Code / Cursor / Gemini / Hermes so the new tool list is
reloaded. Verify with a no-op call such as notebook_list (via the MCP)
or nlm notebook list (via the CLI).
Troubleshooting
- Auth setup issues — see the Authentication Guide → Troubleshooting.
- "Hermes picked the wrong tool" — you almost certainly have two Gemini Notebook servers registered. See step 4 of the migration section above.
auth_statussays"stale"— re-runnlm login. See Understandingauth_statusfor the difference betweenstaleandunverified.- Run the full diagnostic —
nlm doctorchecks storage, auth, browser, and MCP wiring in one go.