notebooklm-py exposes Google Gemini Notebook (formerly NotebookLM) through a Python API, shell commands, MCP, and REST hooks. It targets automation and agent workflows beyond the web interface.
Overview
notebooklm-py is a community Python package that drives Google’s Gemini Notebook service through undocumented APIs. It is not affiliated with Google, and endpoints may change or throttle heavy use.
You can manage notebooks, import sources from URLs, files, YouTube, or Google Drive, run web or Drive research, chat with citations, and generate studio artifacts such as audio overviews, video, slides, quizzes, flashcards, reports, tables, and mind maps. Batch downloads and structured exports are supported for several formats.
Interfaces include an async Python client, a command-line tool, a local MCP server for agent hosts, and a REST server for scripted HTTP access. Optional Android-backend transport uses bearer tokens instead of browser cookies for headless setups.
Authentication options cover interactive browser login, imported browser cookies, master-token refresh for unattended jobs, and multiple stored profiles. Agent-oriented installs ship skills for Claude Code, Codex, and related tooling.
Key features
- Python and CLI programmatic access
- MCP and REST server interfaces
- Multi-source notebook ingestion
- Research and cited Q&A chat
- Studio artifact generation
- Batch artifact downloads
- Master-token headless authentication
- Optional Android API backend
Use cases
- Agent-driven research pipelines
- Automated content repurposing
- Scheduled audio briefings
- Bulk quiz and flashcard export
- Remote MCP connector workflows