notebooklm-py
Tool : A precise action the AI can call
An unofficial Python library to drive Google's NotebookLM programmatically, from the command line or from an agent.
notebooklm-py gives access to what the web interface does not allow: batch downloads, export of quizzes and flashcards, extraction of mind maps. A skill and an optional MCP server make it usable by Claude Code or Codex. It relies on undocumented internal Google APIs, and the authors say so plainly: they can change without notice, the library has no affiliation with Google, and it suits prototypes and personal projects, at your own risk. Authentication reuses the cookies of your Google session, or a master token that the project describes as a full-account credential.
Security reflects where data goes, requested permissions and incidents on record at the verification date. It is not a guarantee of zero risk: check the deployment mode and the connections you enable.
What it does, concretely
notebooklm-py is an unofficial Python library that drives Google's NotebookLM programmatically. It fills gaps in the web interface: batch downloads of generated content, export of quizzes and flashcards in several formats, and mind map extraction as JSON. In July 2026 Google rebranded NotebookLM as "Gemini Notebook". According to the README, the library drives the same service and works unchanged.
In practice, you use it from Python, from the command line, through an MCP server or a local REST server, or by handing it to an agent such as Claude Code or Codex. You create a notebook, add sources (links, PDFs, YouTube, Google Drive, pasted text), ask questions with cited answers, then generate podcasts, videos, slide decks, quizzes, flashcards, infographics, data tables or mind maps. A skill shipped with the project is installed with the notebooklm skill install command.
It is meant for developers and users comfortable with a terminal who want to automate research, produce study material at scale, or give an agent a memory grounded in their own documents.
It is a poor fit if you need a stable, official tool. It relies on undocumented internal Google APIs that can change without notice, and the authors state it has no affiliation with Google. It is therefore limited to prototypes, research and personal projects, at your own risk. Authentication also gives the tool access to your Google account, which makes it unsuitable for a company account.
What it offers
- ·Create, copy, list, rename and delete notebooks, and add sources: links, YouTube, files (PDF, text, Markdown, Word, EPUB, audio, video, images), Google Drive or pasted text.
- ·Ask the notebook questions and get cited answers, with conversation history, custom personas and the option to save answers as notes.
- ·Run web or Drive research in fast or deep mode, with automatic import of the results as sources.
- ·Generate Audio Overviews (4 formats, 50+ languages), videos, slide decks, infographics, reports, data tables and mind maps.
- ·Generate quizzes and flashcards with adjustable quantity and difficulty, then export them as JSON, Markdown or HTML.
- ·Download generated content in bulk (MP3, MP4, PDF, PPTX, PNG, CSV, JSON, Markdown) and export to Google Docs or Sheets.
- ·Share a notebook through a public or private link, with viewer or editor permissions.
- ·Drive everything from Claude Code, Codex or other agents through a skill and an optional MCP server, locally or as a self-hosted remote connector.
In practice
- Price
- Free
- Commercial use
- Commercial use: yes
- Available on
- cli, api, claude-code, codex
- FR interface
- No
Security and data
- Rating
- Security: one caveat, see the card
- Your data
- Data with the vendor
- Maintenance
- Active
- Last release
- 29 October 2026
Links and repository checked on 30 November 2026 · added on 30 November 2026
How to install notebooklm-py
uv tool install "notebooklm-py[browser]" && notebooklm login