notebooklm-mcp
Integrates with Google NotebookLM, providing tools for notebook management (list, create, delete), source addition (text, URL), querying with citations, research topic discovery, podcast creation, and downloading artifacts.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@notebooklm-mcp Research the impact of AI on healthcare and answer two key questions."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
notebooklm-mcp
An unofficial NotebookLM MCP server and CLI — inspired by
jacob-bd/notebooklm-mcp-cli.
⚠️ NotebookLM has no public API. This project talks to NotebookLM's internal
batchexecute/GenerateFreeFormStreamedRPCs through a Playwright persistent-context session. It is not affiliated with Google.
What works today
Tool | Status | Notes |
| ✅ | Returns "mine" + "shared" notebooks. Pagination for many owned notebooks not yet discovered (shows most-recent owned). |
| ✅ | Untitled empty notebook. |
| ✅ | Permanent, no undo. |
| ✅ | Streams the answer with inline |
| ⚠️ |
|
| ✅ | NotebookLM Discover → returns candidate URLs (does not auto-import). |
| ✅ | One-shot: create → research → import → ask N questions → (optional) delete. |
| ⚠️ |
|
| ✅ | Saves completed audio as |
| ✅ | Checks whether the stored Google session is still live. |
Stubs (raise NotImplementedError): notebook_share_public,
notebook_share_invite, source_sync_drive, source_get_content,
studio_revise, cross_notebook_query, batch, pipeline, tag.
Related MCP server: notebooklm-mcp-2026
End-to-end workflow this supports
Manual orchestration:
notebook_create() → empty notebook
research_start(nid, topic) → ~10 candidate URLs
source_add(nid, kind="url")×N → import the ones you want
notebook_query(nid, question) → grounded answer with citations
studio_create(nid, "audio") → start podcast generation (2-5 min)
download_artifact(nid) → .m4a file on diskOr, in a single call:
research_and_ask(
topic="history of the Cold War space race",
questions=["Who reached space first?", "Key consequences?"],
max_sources=3,
keep_notebook=False, # ephemeral — delete after
)
# → { sources_imported: [...], qa: [{question, answer, ...}, ...] }Install
Quick start (from PyPI)
uv tool install notebooklm-mcp-lisa
uvx --from notebooklm-mcp-lisa playwright install chromium
nlm login # one-time Google sign-in (opens a browser)
nlm setup add claude-code # or: claude-desktopThe setup add command edits the target's config file so the MCP server is
registered — no JSON editing by hand. Restart the client to pick it up.
Verify registration any time:
nlm setup listDev setup (from source)
git clone https://github.com/gracelee087/notebooklm-mcp-lisa.git
cd notebooklm-mcp
uv sync
uv run playwright install chromium
uv run nlm loginFirst-time Google login
NotebookLM requires a signed-in Google session. Run once, headed:
uv run nlm loginA Chromium window opens. Complete Google OAuth; the session is saved to
the OS user-data dir (NLM_PROFILE_DIR to override). Subsequent runs are
headless.
Verify:
uv run nlm status
# {'logged_in': True}Run the MCP server
uv run notebooklm-mcp
# or
uv run nlm serveClaude Code (project-scoped, auto-picked-up)
.mcp.json in this repo is already configured. When you open the project in
Claude Code it prompts you to trust and loads notebooklm automatically.
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"notebooklm": {
"command": "uv",
"args": ["--directory", "/absolute/path/to/this/repo", "run", "notebooklm-mcp"]
}
}
}Repo layout
src/notebooklm_mcp/
server.py # FastMCP entry
cli.py # `nlm` CLI (login/status/serve)
browser.py # Playwright persistent context
config.py # paths, env
tools/
notebook.py source.py studio.py research.py workflow.py auth.pyStatus
Package scaffold, MCP server, CLI
Playwright session with persistent Google login
All tools registered (stubs)
notebook_listDOM scrapenotebook_querychat flowsource_add(url/text/drive/file)studio_createaudio (podcast) + downloadremaining tools
License
MIT
Available Tools
19 toolsbatchB
Run a single tool operation across many notebooks (e.g. operation="notebook_query").
Inputs: operation (required), notebook_ids (required), params. Returns: object
cross_notebook_queryA
Ask the same question across multiple notebooks and return per-notebook answers.
Returns { question, results: { <notebook_id>: { answer, source_count, session_ids, chunks } | { error: }, ... }, ok_count, error_count, }
Per-notebook failures (no sources, RPC errors) are captured in error
so one bad notebook doesn't abort the fan-out.
Inputs: question (required), notebook_ids (required). Returns: object
download_artifactA
Check an artifact's status and, if complete, download it to disk.
If artifact_id is None, returns the most recent artifact in the notebook.
Returns { artifact_id, status, title, duration_sec, path?, mime? }.
path is only present when download succeeded.
Inputs: notebook_id (required), dest_dir, artifact_id. Returns: object
notebook_createA
Create a brand-new, empty notebook. Returns { id, title, url }.
Uses NotebookLM's CCqFvf RPC, which always creates a fresh notebook
(unlike the idempotent "get recent draft" endpoint). title is
accepted but NotebookLM's create RPC produces an untitled notebook;
it will auto-title once sources are added.
Inputs: title. Returns: object
notebook_deleteA
Delete a notebook permanently. Returns { id, deleted: True }.
Irreversible — NotebookLM has no trash/undo. Caller confirms.
Inputs: notebook_id (required). Returns: object
notebook_listA
List notebooks visible to the signed-in Google account.
Returns { id, title, icon, source_count, updated_at, url, ownership }.
ownership is "mine" (user-created) or "shared" (subscribed/public).
Known limitation: wXbhsf returns the user's most-recent owned notebook
only. Bulk pagination for many owned notebooks isn't yet discovered.
Inputs: no named parameters. Returns: result
notebook_queryA
Ask a question inside a notebook and return the grounded answer.
The exchange is persisted in the NotebookLM web UI's chat history. Returns { answer, source_count, session_ids, chunks }.
Inputs: question (required), notebook_id (required). Returns: object
pipelineA
Run a sequence of tool invocations. Each step: { tool, params }.
Output of step N is available as $prev inside step N+1's params.
Inputs: steps (required). Returns: object
refresh_authA
Re-validate the stored Google session. Returns { logged_in: bool, email?: str }.
Inputs: no named parameters. Returns: object
research_and_askA
One-shot: create ephemeral notebook → research → import sources → Q&A.
Full workflow wrapped in a single call:
Create a fresh empty notebook.
research_start(topic)→ candidate URLs.Import the top
max_sourcesURLs as sources.For each question in
questions, runnotebook_query.If
keep_notebookis False (default), delete the notebook.
Returns { notebook_id, # str if kept, None if deleted topic, sources_imported, # [{url, title, word_count}, ...] qa, # [{question, answer, source_count, chunks}, ...] kept, # bool }
Inputs: topic (required), questions (required), max_sources, keep_notebook. Returns: object
research_startA
Kick off NotebookLM's Discover (Fast Research) flow on a topic.
Returns { query, sources: [{ url, title, description }, ...] }.
The candidate sources are NOT automatically added to the notebook.
Use source_add(kind="url", value=<chosen_url>) to import selected ones.
Requires an EMPTY notebook — NotebookLM disables Discover once the
notebook has content. Create one with notebook_create first if needed.
Inputs: query (required), notebook_id (required), timeout_sec. Returns: object
source_addA
Add a source to a notebook and return { id, title, word_count }.
kind="text":
valueis the raw text to paste.titledefaults to "붙여넣은 텍스트" (NotebookLM's own default).kind="url":
valueis a webpage URL. NotebookLM fetches + extracts the content server-side;titleis ignored (NotebookLM uses the page's own ).
Not yet implemented: drive, file.
Inputs: kind (required), value (required), notebook_id (required), title. Returns: object
source_get_contentB
Return the extracted text/metadata of a single source.
Inputs: source_id (required), notebook_id (required). Returns: object
source_sync_driveB
Refresh Drive-linked sources. If source_id is None, refresh all.
Inputs: notebook_id (required), source_id. Returns: object
studio_createA
Start generating a Studio artifact (audio/podcast by default).
Returns immediately with { artifact_id, status, title } — generation is
asynchronous and typically takes 2-5 minutes. Poll download_artifact
to check progress and retrieve the file when complete.
Currently implemented: audio (Audio Overview / podcast). Other artifact types (video, slides, etc.) raise NotImplementedError.
Inputs: notebook_id (required), artifact, language, instructions. Returns: object
studio_reviseA
Revise an existing slide deck (and any revisable artifact) with new instructions.
Inputs: artifact_id (required), notebook_id (required), instructions (required). Returns: object
tagA
Add/remove tags on one or more notebooks. mode in {"add","remove","set"}.
Inputs: tags (required), notebook_ids (required), mode. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Most tools target distinct resources and actions: notebook lifecycle, source management, research, and studio are clearly separated. Potential confusion exists between research_start and research_and_ask (both initiate research) and between studio_create and studio_revise (both generate artifacts), but descriptions clarify the workflow differences.
Resource-based tools follow a consistent <resource>_<action> pattern (notebook_*, source_*, studio_*), but several tools deviate: download_artifact, refresh_auth, batch, pipeline, tag, and research_and_ask break the convention. The naming is readable and accessible, though mixed styles reduce overall predictability.
At 19 tools, the set is on the heavier side but justified by NotebookLM's broad feature surface: notebooks, sources, research, studio, sharing, and meta-orchestration all receive coverage. The number is not excessive and each tool serves a distinct purpose.
Core lifecycle operations are covered for notebooks (create, list, delete, query) and sources (add, sync, get_content), and research/studio workflows are complete. Notable gaps include lack of notebook update/rename, source deletion, and source listing, but these are minor and workaroundable.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Google Keep-style notes app with an MCP server for AI agents to read/write notes.
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides CLI and MCP server to programmatically access Google NotebookLM, enabling AI assistants to create notebooks, add sources, generate podcasts, and more, with support for both personal and enterprise accounts.41MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for querying Google NotebookLM notebooks, enabling AI assistants to list notebooks, read sources, and ask questions about them.MIT
- FlicenseBqualityDmaintenanceA production-ready, fully asynchronous MCP server that bridges AI agents with Google NotebookLM, enabling notebook creation, source management, audio generation, and more through natural language.12-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives Claude (and any MCP-compatible agent) full access to Google NotebookLM — create notebooks, upload sources, ask questions, and generate audio overviews, quizzes, flashcards, mind maps, slide decks, videos, and reports.1MIT