How bhupesh-debug/notebooklm-py works
notebooklm-py is an unofficial Python client and automation interface for Google NotebookLM, exposed through a Python API, CLI, MCP agent server, and local REST server. A typical workflow authenticates, creates or selects a notebook, imports sources, asks grounded questions or runs research, then generates and downloads artifacts. The graph preserves these documented capabilities and highlights the shared client, authentication, and Web transport layers. Some domain implementations were not sampled, so documented features are included but uncertain internal call links are omitted.
Main entry points: client.py NotebookLM client · cli CLI · server.py MCP server · app.py REST server
Components 17
User interfaces
- CLI
src/notebooklm/cli - Python API
src/notebooklm/client.py - MCP server
src/notebooklm/mcp/server.py - REST server
src/notebooklm/server/app.py
Client runtime
- NotebookLM client
src/notebooklm/client.py - Web transport
src/notebooklm/_web/transport - Public data types
src/notebooklm/types.py
Notebook operations
- Notebook management
src/notebooklm/_notebooks.py - Source import and research
src/notebooklm/_sources.py - Grounded chat
src/notebooklm/_chat.py - Artifact generation
src/notebooklm/_artifacts.py - Artifact downloads
src/notebooklm/downloads.py
Authentication
- Authentication facade
src/notebooklm/auth.py - Profile admission
src/notebooklm/_app/web_profiles.py - Credential persistence
src/notebooklm/_auth/storage.py
Other components
- User or agent
- Google NotebookLM
Connections 23
- User or agent → CLI: runs commands
README.md - User or agent → Python API: calls API
README.md - User or agent → MCP server: uses agent tools
README.md - User or agent → REST server: uses REST
README.md - CLI → NotebookLM client: automates NotebookLM
- Python API → NotebookLM client: constructs client
src/notebooklm/client.py - MCP server → NotebookLM client: provides client
src/notebooklm/mcp/server.py - REST server → NotebookLM client: provides client
src/notebooklm/server/app.py - NotebookLM client → Web transport: uses transport
- NotebookLM client → Authentication facade: uses credentials
src/notebooklm/client.py - Authentication facade → Credential persistence: reads and writes
src/notebooklm/auth.py - Profile admission → Credential persistence: checks profile state
src/notebooklm/_app/web_profiles.py - NotebookLM client → Notebook management: exposes operations
src/notebooklm/client.py - NotebookLM client → Source import and research: exposes operations
src/notebooklm/client.py - NotebookLM client → Grounded chat: exposes operations
src/notebooklm/client.py - NotebookLM client → Artifact generation: exposes operations
src/notebooklm/client.py - NotebookLM client → Artifact downloads: exposes downloads
- NotebookLM client → Public data types: uses data types
src/notebooklm/client.py - Web transport → Google NotebookLM: sends requests
- Source import and research → Google NotebookLM: imports and researches
README.md - Grounded chat → Google NotebookLM: queries sources
README.md - Artifact generation → Google NotebookLM: generates media
README.md - Artifact downloads → User or agent: exports artifacts
README.md