Best for · AI tools
notebooklm-mcp-cli: what it does, how to set it up, and the risks
- Last checked
- 4 sources, linked below
- By the vectaai team
We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.
Verdict Our pick
The bar guide has a call.

- notebooklm-mcp-cli is a free, MIT-licensed, unofficial tool that lets you drive NotebookLM (now called Gemini Notebook) from a terminal with the nlm command, or from an AI assistant like Claude Code, Codex CLI, Gemini CLI or Cursor through an MCP server with 55 tools.
Compared here
- 01notebooklm-mcp-cli
- 02nlm CLI
- 03notebooklm-mcp server
- 04Gemini Notebook for business API
Short answer
notebooklm-mcp-cli is a free, MIT-licensed, unofficial tool that lets you drive NotebookLM (now called Gemini Notebook) from a terminal with the nlm command, or from an AI assistant like Claude Code, Codex CLI, Gemini CLI or Cursor through an MCP server with 55 tools. Install it with uv tool install notebooklm-mcp-cli, run nlm login to sign in through a browser, then nlm setup add claude-code or your client of choice.
The catch is in its own README: it uses internal Google APIs that "are undocumented and may change without notice" and "may not be aligned with Google's Terms of Service," so use it for personal experiments only. Login cookies last about 2 to 4 weeks. Businesses that need a supported route should look at Google's official Gemini Notebook for business API, which needs a paid licence.
At a glance
| notebooklm-mcp-cli | Gemini Notebook for business API | |
|---|---|---|
| Who makes it | Independent open source project, unofficial | Google Cloud |
| Price | Free, MIT licence | Needs a paid Gemini Notebook for business licence |
| Latest version | 0.16.10 on PyPI, 30 November 2026 | v1alpha endpoints |
| How you sign in | nlm login opens a browser, cookies extracted; last 2 to 4 weeks | gcloud auth login with a licensed user |
| What it can do | Notebooks, sources, queries, chats, Studio audio and video, research, sharing, downloads | Create, get, list recent, delete and share notebooks; manage sources |
| AI assistant support | MCP server with 55 tools; setup for Claude Code, Codex CLI, Gemini CLI, Cursor and more | Not an MCP server |
| Terms of service | README warns it may not align with Google's terms | Official, supported |
| Best for | Personal research workflows and experiments | Companies building on Gemini Notebook |
Money first. notebooklm-mcp-cli is free, open source and pays nobody. This page has no affiliate links at all. We did not install it on a test account for this page; we read its GitHub README, its MCP guide, its PyPI page and Google's official API docs on 4 December 2026.
Bar version. NotebookLM is great at reading a pile of documents and answering questions about them. What it lacked was a way for your other tools to use it. This project bolts on a remote control: type commands in a terminal, or let Claude Code or another agent ask your notebooks questions. It is clever, popular and unofficial, and the last word matters.
What notebooklm-mcp-cli is
The README calls it "Gemini Notebook (formerly Google NotebookLM) CLI & MCP Server", offering "Programmatic access to Gemini Notebook." Yes, NotebookLM now goes by Gemini Notebook in places; Google's own Cloud docs use the new name too. One install gives you:
nlm: a command-line tool.notebooklm-mcp: an MCP server, the standard way AI assistants call outside tools.
The old server name notebooklm-mcp now maps to gemini-notebook-mcp, but the executable keeps the old name. Facts from the project pages:
- Licence: MIT.
- GitHub stars: about 6.7k when we looked.
- Latest version on PyPI: 0.16.10, released 30 November 2026.
- Python: 3.11 or newer.
A version number like 0.16 tells you it is still young and changing. Pin a version if you build anything on top.
What you can do with it
From the README, the main jobs:
- List and create notebooks:
nlm notebook create. - Add sources:
nlm source add, including syncing from Google Drive. - Query notebooks and configure chats.
- Create Studio content like audio overviews:
nlm audio create,nlm studio create. - Run research, share notebooks, download artefacts, batch jobs and pipelines.
The MCP server exposes 55 tools in groups: notebooks (6), sources (7), querying (4), chat sessions (5), Studio content (8), downloads, exports, research (3), notes, labels, collections (5), sharing (4), auth, profiles, server info, batch and cross-notebook queries, pipelines and tags. Examples: notebook_query, source_add, studio_create, cross_notebook_query.
A practical example of why people like it: you keep a notebook of your company's docs, and while coding, your AI assistant asks that notebook how the billing system works, with NotebookLM's citations, without you switching windows.
How to install and connect it
Per the README:
- Install.
uv tool install notebooklm-mcp-cliis the recommended route. Alternatives:pip install notebooklm-mcp-cli,pipx install notebooklm-mcp-cli, or try it withuvx --from notebooklm-mcp-cli nlm --help. - Sign in. Run
nlm login. It opens a browser for your Google sign-in; "Auto mode launches a dedicated browser profile," and cookies are extracted automatically. Named profiles and enterprise accounts are supported. - Connect your AI assistant. Run the setup wizard:
nlm setup add claude-code,nlm setup add gemini,nlm setup add github-copilotand so on. Supported clients listed include Claude Code, Claude Desktop, Codex CLI and the ChatGPT desktop app, Gemini CLI, Cursor, Windsurf, Cline, Antigravity, GitHub Copilot in VS Code and OpenCode. - Re-login now and then. The README says cookies typically last about 2 to 4 weeks and you may need to extract them again.
Keep your agent's context lean
Fifty-five tools is a lot for an AI assistant to carry around. The MCP guide says plainly: "This MCP has 55 tools which consume context." Its advice:
- Disable the server when you are not using it.
- Prefer the unified tools like
source_addandstudio_create. - Hide what you do not need with environment variables:
NOTEBOOKLM_DISABLED_GROUPS(for examplestudioorresearch),NOTEBOOKLM_DISABLED_TOOLSfor single tools, andNOTEBOOKLM_ENABLED_TOOLSto switch specific ones back on. It takes precedence over the other two. Restart the server after changing them.
If you only ever query notebooks, disable studio, research and collections and you will notice your agent gets sharper.
The risks, in plain words
This is the part to read twice. From the README:
- The internal APIs it uses "Are undocumented and may change without notice." A Google update can break it overnight.
- They "May not be aligned with Google's Terms of Service." Using it is your call, on your account.
- "Use at your own risk for personal/experimental purposes."
- "No official support."
- Personal accounts are "tested regularly", while "Gemini Notebook Enterprise support is experimental."
And one risk the README implies but we will say out loud: the tool works by extracting your Google login cookies. Those cookies are a key to your account. Keep them on your own machine, do not run the tool on a shared server, and log out of the dedicated browser profile if you stop using it.
Our bar advice: great for a personal research setup, a side project or a demo. Do not build a client product on it, and do not use a work Google account without asking IT.
The official route: Gemini Notebook for business API
Google does have an official API, for business customers. Google Cloud's docs for Gemini Notebook for business say the APIs let you "perform the following notebook management tasks programmatically": create, retrieve, list recently viewed, delete and share notebooks, with sources managed through a sister API. Requests go to v1alpha endpoints.
Requirements, per the docs:
- Gemini Notebook for business set up, with a licence assigned to your user.
- The Cloud NotebookLM User role (
roles/discoveryengine.notebookLmUser). - Sign-in through
gcloud auth login. - The methods "require an authenticated user account with an active Gemini Notebook for business license."
It is narrower than the unofficial tool (no Studio audio from what we read) and not an MCP server, but it is supported and within Google's terms. For a company, that difference matters more than features.
Who should use what
- Curious individual, personal account: notebooklm-mcp-cli, eyes open, on your own machine.
- Developer wiring NotebookLM into an agent for fun: notebooklm-mcp-cli with tool filtering.
- Company with compliance rules: the official Gemini Notebook for business API, or skip it.
- You just want NotebookLM to be cheaper or different: read our NotebookLM alternatives and NotebookLM pricing.
New to NotebookLM itself? Start with NotebookLM use cases. Choosing which AI assistant to plug this into? Terminal AI coding assistants compares seven. More on the AI tools hub.
How we checked
Read on 4 December 2026: the notebooklm-mcp-cli README, its MCP guide, its PyPI page, and Google Cloud's Gemini Notebook for business API docs. We did not install or run the tool. It changes weekly; if its README disagrees with this page, the README wins. Method on how we pick.
Questions people ask
What is notebooklm-mcp-cli?
An open source Python package that gives you two things: the nlm command-line tool and the notebooklm-mcp server for AI assistants. With them you can list and create notebooks, add sources, ask questions, and create Studio content like audio overviews in NotebookLM, which the project now calls Gemini Notebook, without opening the web app.
How do I install notebooklm-mcp-cli?
The README recommends uv tool install notebooklm-mcp-cli. You can also use pip install notebooklm-mcp-cli or pipx install notebooklm-mcp-cli, or try it without installing via uvx --from notebooklm-mcp-cli nlm --help. PyPI lists Python 3.11 or newer as the requirement. Then run nlm login to sign in with your Google account.
Is notebooklm-mcp-cli safe to use?
Use it with care. It signs in by extracting browser cookies for your Google account, so anyone who gets those cookies gets your account access. Its README says the internal APIs it uses are undocumented, may change without notice and may not align with Google's terms. It recommends personal or experimental use at your own risk.
Which AI tools work with the NotebookLM MCP server?
The README's setup wizard connects Claude Code, Claude Desktop, Codex CLI and the ChatGPT desktop app, Gemini CLI, Cursor, Windsurf, Cline, Antigravity, GitHub Copilot in VS Code and OpenCode. You run nlm setup add with the client's name, for example nlm setup add claude-code.
Does Google have an official NotebookLM API?
Yes, for business customers. Google Cloud's docs describe APIs for Gemini Notebook for business that create, retrieve, list recently viewed, delete and share notebooks, and manage sources, on v1alpha endpoints. They require a user with an active Gemini Notebook for business licence and the Cloud NotebookLM User role. There is no official API for free personal accounts in what we read.
Sources
Every fact above comes from these pages. Prices change, so each one carries the date we read it.
- notebooklm-mcp-cli on GitHub, checked 4 Dec 2026
- notebooklm-mcp-cli MCP guide, checked 4 Dec 2026
- notebooklm-mcp-cli on PyPI, checked 4 Dec 2026
- Google Cloud: Create and manage notebooks (API), Gemini Notebook for business, checked 4 Dec 2026