NotebookLM MCP
Bridge Google NotebookLM into AI assistants: manage notebooks, ingest sources, run research, query content, and generate studio artifacts via 27 MCP tools.
Notebook management: list, create, get details, summarize, rename, and delete notebooks.
Source ingestion & management: add web pages/YouTube, raw text/local files, and Google Drive files; get source metadata or full extracted text; sync Drive sources; delete sources.
Grounded Q&A: ask NotebookLM questions answered only from a notebook's sources, with follow-up conversations via
notebook_query.Autonomous research: start web/Drive research tasks, poll their status, and import discovered web results as notebook sources.
Studio generation: create audio overviews, video overviews, infographics, slide decks, reports, flashcards, and quizzes; check artifact status and download completed outputs.
Authentication helpers: refresh the NotebookLM session and manually save cookies/tokens.
Provides tools to manage NotebookLM notebooks, ingest sources (URLs, YouTube, Google Drive, text), trigger deep research, and generate Audio Overviews, Briefing Docs, Infographics, Slide Decks, and Quizzes.
Allows ingesting Google Drive files as sources into NotebookLM notebooks.
Allows ingesting YouTube transcripts as sources into NotebookLM notebooks.
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 Deep research on climate change impacts"
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 Server
Bridge the Gap Between Google NotebookLM and Your AI Workspace
Stop jumping between browser tabs. NotebookLM MCP brings the full analytical power of Google NotebookLM directly into your local terminal, IDE, and AI assistants like Claude, Cursor, and VS Code.
Manage notebooks, ingest diverse sources, trigger deep research, and generate studio-quality contentβall via a single, standardized Model Context Protocol (MCP) interface.
New to MCP? The Model Context Protocol is a standard for connecting LLMs to external data sources and tools. This package speaks MCP over stdio β your AI client (Claude Desktop, Cursor, VS Code, etc.) spawns
notebooklm-mcp serveas a subprocess and the two communicate over JSON-RPC. The 27 tools below become callable functions in the model's tool list.
π₯ Key Capabilities
β‘ Seamless Authentication: Log in once with
notebooklm-mcp auth. Our automated CDP-based flow handles secure cookie extraction so you can focus on your data.π Resilient Connectivity: Built-in background session restoration. If your session expires, the server transparently reconnects without breaking your workflow.
π Universal Ingestion: Instantly add URLs, YouTube transcripts, Google Drive files, or raw text snippets to any notebook.
π΅οΈ Autonomous Research: Harness Google's Deep Research engine. Start a task, poll its progress, and import structured insights directly into your project.
π Creative Studio: Programmatically generate Audio Overviews (podcasts), Briefing Docs, Infographics, Slide Decks, and Quizzes from your sources.
Related MCP server: notebooklm-py-diet-mcp
π Quick Start
1. Installation
Requires Node.js β₯ 20 and Google Chrome or Chromium (for auth).
Run it instantly with npx:
npx -y @m4ykeldev/notebooklm-mcp serveOr install globally for better performance:
npm install -g @m4ykeldev/notebooklm-mcpDevelopers who want to hack on the source: this repo uses pnpm (pinned via
packageManagerinpackage.json). After cloning, runcorepack enable && pnpm install. See CONTRIBUTING.md on GitHub for the full dev / release flow.
2. The "One-Click" Login
Say goodbye to manual cookie hunting. Our smart auth flow does the heavy lifting for you.
notebooklm-mcp authA secure Chrome window will open. Simply log into your Google account, and we'll handle the rest. Your session is stored locally and securely.
Auth fallbacks if automated Chrome can't run:
notebooklm-mcp auth --manual # interactive copy/paste from your browser
notebooklm-mcp auth --file tokens.json # import a previously exported bundle
notebooklm-mcp auth --show-tokens # verify the cached sessionFor headless / CI environments, set NOTEBOOKLM_COOKIES (and optionally NOTEBOOKLM_CSRF_TOKEN, NOTEBOOKLM_SESSION_ID) instead of running the auth flow. Token resolution order: env var β ~/.notebooklm-mcp/auth.json β error.
π€ AI Assistant Integration
Pick your client below β every section shows the config file path per OS, a minimal copy-paste block, and the advanced variant with --query-timeout and NOTEBOOKLM_COOKIES env override.
Client | Config file | Format |
| JSON | |
| JSON / CLI | |
| TOML | |
in-code | Python | |
in-code | TypeScript | |
| JSON | |
| JSON | |
| JSON | |
| JSON | |
| JSON | |
| JSON | |
| JSONC | |
extension settings UI | JSON | |
| YAML | |
in-app settings | GUI | |
not yet supported | β | |
yours | β |
Claude Desktop
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"notebooklm": {
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve"]
}
}
}{
"mcpServers": {
"notebooklm": {
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve", "--query-timeout", "180000", "--debug"],
"env": {
"NOTEBOOKLM_COOKIES": "SID=...; HSID=...; SSID=...; APISID=...; SAPISID=..."
}
}
}
}Verify: restart Claude Desktop, click the hammer icon at the bottom-right of the input. Gotchas: absolute paths only; relative paths fail silently on startup.
Claude Code (CLI)
Recommended path is the claude mcp add CLI (writes the JSON for you):
claude mcp add --transport stdio notebooklm -- npx -y @m4ykeldev/notebooklm-mcp serve{
"mcpServers": {
"notebooklm": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve"]
}
}
}claude mcp add --transport stdio \
--env NOTEBOOKLM_COOKIES="SID=...; HSID=...; SSID=...; APISID=...; SAPISID=..." \
notebooklm -- npx -y @m4ykeldev/notebooklm-mcp serve --query-timeout 180000Verify: claude mcp list && claude mcp get notebooklm, or /mcp inside a session. Gotchas: all options before the server name; use -- to separate options from the command. Project-scoped .mcp.json needs interactive approval on first sight.
Codex CLI
macOS:
~/.codex/config.tomlLinux:
~/.config/codex/config.tomlWindows:
%APPDATA%\codex\config.toml
[mcp_servers.notebooklm]
command = "npx"
args = ["-y", "@m4ykeldev/notebooklm-mcp", "serve"][mcp_servers.notebooklm]
command = "npx"
args = ["-y", "@m4ykeldev/notebooklm-mcp", "serve", "--query-timeout", "180000"]
env = { NOTEBOOKLM_COOKIES = "SID=...; HSID=...; SSID=...; APISID=...; SAPISID=..." }Verify: codex --list-tools should list the NotebookLM tools. Gotchas: Codex CLI's MCP schema is still being formalized β double-check against the latest openai/codex README.
OpenAI Agents SDK β Python
Wire it in code (no config file):
from agents.mcp import MCPServerStdio
async with MCPServerStdio(
name="NotebookLM",
params={
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve"],
},
) as server:
tools = await server.list_tools()
print([t.name for t in tools]) # 27 toolsasync with MCPServerStdio(
name="NotebookLM",
params={
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve", "--query-timeout", "180000"],
"env": {"NOTEBOOKLM_COOKIES": "SID=...; HSID=...; SSID=...; APISID=...; SAPISID=..."},
},
) as server:
...OpenAI Agents SDK β TypeScript
import { MCPServerStdio } from "@openai/agents";
const server = new MCPServerStdio({
command: "npx",
args: ["-y", "@m4ykeldev/notebooklm-mcp", "serve"],
});
await server.connect();
const tools = await server.listTools();
console.log(tools.map((t) => t.name)); // 27 toolsconst server = new MCPServerStdio({
command: "npx",
args: ["-y", "@m4ykeldev/notebooklm-mcp", "serve", "--query-timeout", "180000"],
env: { NOTEBOOKLM_COOKIES: "SID=...; HSID=...; SSID=...; APISID=...; SAPISID=..." },
});Gemini CLI
~/.gemini/settings.json (user-global) or .gemini/settings.json (per-project).
{
"mcpServers": {
"notebooklm": {
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve"]
}
}
}{
"mcpServers": {
"notebooklm": {
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve"],
"timeout": 180000,
"env": {
"NOTEBOOKLM_COOKIES": "$NOTEBOOKLM_COOKIES"
}
}
}
}Verify: gemini mcp list, or /mcp in a session. Gotchas: undefined $VAR resolves to empty string β pre-export them in your shell.
Cursor
macOS / Linux:
~/.cursor/mcp.json(global) or.cursor/mcp.json(per-project)Windows:
%APPDATA%\Cursor\mcp.json
{
"mcpServers": {
"notebooklm": {
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve"]
}
}
}{
"mcpServers": {
"notebooklm": {
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve", "--query-timeout", "180000"],
"env": {
"NOTEBOOKLM_COOKIES": "SID=...; HSID=...; SSID=...; APISID=...; SAPISID=..."
}
}
}
}Verify: Cursor Settings β MCP should show notebooklm in green, or MCP: View Server Status in the Command Palette. Gotchas: Cursor only loads MCP servers at startup β fully quit and relaunch after edits. Soft ~40-tool ceiling across all enabled servers combined.
VS Code (Copilot Chat agent mode)
.vscode/mcp.json (per-project). Top-level key is servers (not mcpServers β Microsoft renamed this).
{
"servers": {
"notebooklm": {
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve"]
}
}
}{
"servers": {
"notebooklm": {
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve", "--query-timeout", "180000"],
"env": {
"NOTEBOOKLM_COOKIES": "SID=...; HSID=...; SSID=...; APISID=...; SAPISID=..."
}
}
}
}Verify: Command Palette β MCP: Open User Configuration. Ask Copilot Chat in agent mode to list NotebookLM notebooks.
Windsurf
macOS / Linux:
~/.codeium/windsurf/mcp_config.jsonWindows:
%APPDATA%\Codeium\Windsurf\mcp_config.json
{
"mcpServers": {
"notebooklm": {
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve"]
}
}
}{
"mcpServers": {
"notebooklm": {
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve", "--query-timeout", "180000"],
"env": {
"NOTEBOOKLM_COOKIES": "${env:NOTEBOOKLM_COOKIES}"
}
}
}
}Verify: open the Cascade sidebar β MCP settings β confirm notebooklm is active. Gotchas: prefer ${env:VAR} / ${file:/path} interpolation over inlining cookies; Windsurf substitutes at server-launch time so secrets stay out of the config file.
JetBrains AI Assistant / Junie
macOS / Linux:
~/.junie/mcp/mcp.json(user-global) or.junie/mcp/mcp.json(per-project)Windows:
%APPDATA%\JetBrains\Junie\mcp.json
{
"mcpServers": {
"notebooklm": {
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve"]
}
}
}{
"mcpServers": {
"notebooklm": {
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve", "--query-timeout", "180000"],
"env": {
"NOTEBOOKLM_COOKIES": "SID=...; HSID=...; SSID=...; APISID=...; SAPISID=..."
}
}
}
}Verify: Settings (Ctrl+Alt+S) β Tools β Junie β MCP Settings β notebooklm should appear in the discovered list.
Zed
~/.config/zed/settings.json β the relevant key is context_servers (Zed's MCP equivalent).
{
"context_servers": {
"notebooklm": {
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve"]
}
}
}{
"context_servers": {
"notebooklm": {
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve", "--query-timeout", "180000"],
"env": {
"NOTEBOOKLM_COOKIES": "SID=...; HSID=...; SSID=...; APISID=...; SAPISID=..."
}
}
}
}Verify: Zed's AI Agent Panel lists notebooklm as an available context source.
OpenCode (sst)
opencode.jsonc (project root) or ~/.config/opencode/config.json.
{
"mcp": {
"servers": {
"notebooklm": {
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve"]
}
}
}
}{
"mcp": {
"servers": {
"notebooklm": {
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve", "--query-timeout", "180000"],
"env": {
"NOTEBOOKLM_COOKIES": "SID=...; HSID=...; SSID=...; APISID=...; SAPISID=..."
}
}
}
}
}Verify: start OpenCode and ask "List my NotebookLM notebooks." β the model should call notebook_list. Gotchas: OpenCode's MCP schema is still evolving; confirm against the OpenCode docs if startup fails.
Cline (VS Code extension)
Managed via Cline's MCP settings UI inside VS Code. Underlying file (don't edit by hand): ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json.
Open the Cline panel β click the MCP icon β
Configure MCP Servers.Paste:
{
"mcpServers": {
"notebooklm": {
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve"]
}
}
}Save. Cline restarts the server automatically.
{
"mcpServers": {
"notebooklm": {
"command": "npx",
"args": ["-y", "@m4ykeldev/notebooklm-mcp", "serve", "--query-timeout", "180000"],
"env": {
"NOTEBOOKLM_COOKIES": "SID=...; HSID=...; SSID=...; APISID=...; SAPISID=..."
}
}
}
}Verify: ask Cline "List my NotebookLM notebooks." β the tool-call panel shows notebook_list.
Goose (Block)
~/.config/goose/config.yaml (or via goose configure). Goose calls MCP servers "extensions".
extensions:
notebooklm:
type: stdio
command: npx
args:
- "-y"
- "@m4ykeldev/notebooklm-mcp"
- serveextensions:
notebooklm:
type: stdio
command: npx
args:
- "-y"
- "@m4ykeldev/notebooklm-mcp"
- serve
- "--query-timeout"
- "180000"
env:
NOTEBOOKLM_COOKIES: "SID=...; HSID=...; SSID=...; APISID=...; SAPISID=..."Verify: goose configure β confirm the extension is enabled, then goose session and ask "List my NotebookLM notebooks."
5ire
GUI app (no user-editable config file):
Open 5ire β
Settings(Mod+KβProviders).Click Add MCP Server.
Name:
notebooklmType:
StdioCommand:
npxArgs:
-y @m4ykeldev/notebooklm-mcp serve(add--query-timeout 180000if needed)Env vars (optional):
NOTEBOOKLM_COOKIES=SID=...; HSID=...; SSID=...; APISID=...; SAPISID=...Save and restart.
Verify: ask in chat "List my NotebookLM notebooks." β tool-call panel shows notebook_list.
Aider
Aider does not yet have first-class MCP-server client integration. Workarounds: run notebooklm-mcp serve separately and pipe responses, or use the generic stdio caller inside a small wrapper script. Track upstream support via the Aider Discord.
Generic stdio caller
If your client speaks the MCP protocol over stdio but isn't listed above, every config above reduces to the same primitive:
spawn: npx -y @m4ykeldev/notebooklm-mcp serve
stdio: parent <- stdout (JSON-RPC responses) | parent -> stdin (JSON-RPC requests)
env: (optional)
NOTEBOOKLM_COOKIES=... # skip the auth flow in CI
NOTEBOOKLM_CSRF_TOKEN=...
NOTEBOOKLM_SESSION_ID=...
flags: (optional)
--query-timeout <ms> # per-RPC timeout, default 120000
--debug # verbose stderr loggingOn connection the server advertises 27 tools β see the Complete Tool Reference below.
Verify any wiring
After restarting your client, ask:
"List my NotebookLM notebooks."
If the model invokes notebook_list and returns a table of titles, you're connected.
π§© Agent Skill
skills/notebooklm/SKILL.md teaches an agent when and how to use these tools (setup, query β studio β research workflows, confirmation rules, failure handling). Copy the skills/notebooklm/ folder into your agent's skills directory (for Claude Code: ~/.claude/skills/).
π¬ Example Prompts
Once wired up, your AI can drive NotebookLM end-to-end with natural language. The model picks the right tool from the 27 below.
Goal | Sample prompt | Tools the model will call |
Inventory | "Show me every NotebookLM project I own" |
|
Start a project | "Create a notebook called 'Q3 Earnings' and add the AAPL 10-Q PDF at https://β¦" |
|
Grounded Q&A | "From the AAPL notebook, what is the year-over-year services revenue change?" |
|
Multi-source brief | "In my 'Climate Policy' notebook, generate a one-page briefing doc focused on IRA tax credits" |
|
Studio podcast | "Make a 10-min audio overview of my 'AI Safety Reading' notebook" |
|
Deep Research β import | "Run deep research on 'kelp aquaculture in Maine' and import the findings into my 'Climate' notebook" |
|
Cleanup | "Delete the 'Old Drafts' notebook I no longer need" |
|
π Complete Tool Reference (27)
Every tool carries a title, a description of what it returns, and MCP annotations (read-only, destructive, idempotent), so clients can tell safe lookups from changes. Since v0.5.0 each tool also publishes an outputSchema and returns its result as structuredContent (typed fields) alongside the usual JSON text. The server also sends usage instructions at initialization.
Renamed in v0.4.0. Tool names now follow one
resource_actionscheme. If your client allow-lists tools by name (e.g.mcp__notebooklm__notebook_add_urlin Claude Code permissions), update it:
Before
Now
notebook_add_url/notebook_add_text/notebook_add_drive
source_add_url/source_add_text/source_add_drive
source_describe
source_get
notebook_describe
notebook_summarize
refresh_auth/save_auth_tokens
auth_refresh/auth_save_tokens
π Notebook Management
Tool | Description |
| Get an overview of your notebooks (titles, sources, ownership), up to |
| Create a new NotebookLM project instantly from your terminal or AI assistant. |
| Retrieve deep metadata and a full list of sources for a specific notebook. |
| Get an AI-generated summary of the notebook plus the questions NotebookLM suggests asking. |
| Update the title of an existing notebook. |
| Permanently remove a notebook (requires explicit confirmation). |
π Source Ingestion & Management
Tool | Description |
| Add any public website or YouTube video as a source. Returns the new source's ID. |
| Ingest raw text snippets or local file contents. Returns the new source's ID. |
| Import a Google Drive file by its file ID. Returns the new source's ID. |
| Get a source's title, type and extracted-text length (the text itself: next tool). |
| Extract the full underlying text of a source for processing by other AI tools. |
| Sync selected Google Drive sources to pull the latest changes into NotebookLM. |
| Remove a specific source from your notebook. |
π¬ Research & Deep Analysis
Tool | Description |
| Launch an autonomous research task using Google's engine (Web or Drive sources). |
| Track the progress of active research tasks and view discovered insights. |
| Instantly import the findings of a research task as new sources in your notebook. |
| Ask questions answered only from your sources, with follow-ups in the same conversation. |
π¬ Studio (AI Content Generation)
Tool | Description |
| Transform your notebook's sources into a professional, podcast-style audio discussion. |
| Generate a structured video explainer based on your project data. |
| Create professional Briefing Docs, Study Guides, or Blog Posts tailored to your sources. |
| Turn your research into a presenter-ready slide deck automatically. |
| Visualize complex data and relationships with an AI-generated infographic. |
| Generate interactive study flashcards to master your notebook's content. |
| Create a comprehensive quiz to test knowledge grounded in your provided sources. |
| Check the generation status of your Studio artifacts and get download links. |
π Authentication Helpers
Tool | Description |
| Manually trigger a session refresh if you encounter connection issues. |
| Manually save cookie data (legacy fallback method). |
π CLI Reference
notebooklm-mcp serve [--query-timeout <ms>] [--debug]
notebooklm-mcp auth [--manual] [--file <path>] [--show-tokens]
notebooklm-mcp --versionFlag | Default | Description |
|
| Per-RPC timeout in ms. Bump for large studio jobs or slow research. |
| off | Verbose stderr logging of every RPC + retry. |
| off | Skip Chrome automation; paste cookies yourself. |
| β | Import a previously exported tokens JSON. |
| β | Print the cached session's metadata (cookie names, age, CSRF/SID presence β never the secret values). |
π©Ή Troubleshooting
Symptom | Likely cause | Fix |
"Could not find Google Chrome or Chromium" | No Chrome/Chromium on PATH | Install Chrome or run |
"Authentication expired" inside the AI session | Cookies stale | The server auto-refreshes once; if it can't, re-run |
"NotebookLM redirected to β¦ (Google sign-in)" or "page has no CSRF token" | Google session signed out | Re-run |
HTTP 401 with valid cookies ( | NotebookLM moved to | Upgrade to the latest version |
| NotebookLM could not fetch some URLs | Retry, or pick other results. Drive results are skipped; only web results import |
Tool calls hang past 2 min | Big studio job over default timeout | Restart server with |
"file_path β¦ outside the allowed roots" |
| Copy the file into your working directory or pass |
MCP client reports server crashed on startup |
|
|
Multiple Chrome windows pop up on concurrent failures | Older version without single-flight mutex | Upgrade to β₯ |
π‘ Pro Tips
Custom Timeouts: Working with massive sources? Increase the timeout:
notebooklm-mcp serve --query-timeout 180000Check Connections: Use
notebooklm-mcp auth --show-tokensto verify your session validity without exposing the secrets.CI / headless: Set
NOTEBOOKLM_COOKIES(plusNOTEBOOKLM_CSRF_TOKEN,NOTEBOOKLM_SESSION_ID) to skip the browser flow entirely.
π‘ Security & Privacy
Local Storage with hardened perms. Tokens live at
~/.notebooklm-mcp/auth.json(mode0600) inside~/.notebooklm-mcp/(mode0700). Nothing leaves your machine except calls to Google.Path-traversal guard.
source_add_textrejectsfile_patharguments outside the working directory or the OS temp directory β a hostile MCP prompt cannot ask the server to read your~/.ssh/id_rsa.Loopback-only Chrome DevTools. The automated auth flow launches Chrome with an OS-assigned ephemeral port bound to
127.0.0.1β no fixed-port squatting, no LAN exposure.Single-flight auth refresh. Concurrent requests that hit an expired session share one refresh promise instead of each spawning their own Chrome.
Supply-chain gated releases. Every publish runs gitleaks β osv-scanner β
pnpm audit(high+) βnpm audit signatures(Sigstore) β lockfile registry pinning β publish-manifest preview beforepnpm publishships via OIDC trusted publishers. See CONTRIBUTING.md β Releasing on GitHub.Test coverage: 100% statements / branches / functions / lines, enforced by CI.
Unofficial Tool: This project is an independent community effort and is not affiliated with Google. It interfaces with internal endpoints and may be affected by changes to the NotebookLM web platform.
π License
Open-source and available under the MIT License.
Crafted with precision for the AI-first developer. Part of the Model Context Protocol ecosystem.
Available Tools
27 toolsaudio_overview_createCreate Audio OverviewA
Start generating an Audio Overview: a podcast-style conversation between two AI hosts about the notebook's sources. Uses the user's NotebookLM quota and takes several minutes, so agree on the options with the user first: with confirm=false it does nothing and returns pending_confirmation. With confirm=true it returns the artifact_id; poll studio_status until that artifact is completed. Once completed, studio_status gives an audio download_url.
Inputs: confirm (required), notebook_id (required), format, length, +3 more. Returns: status, message, artifact_id
auth_refreshRefresh NotebookLM sessionAIdempotent
Re-read the NotebookLM page with the saved cookies to refresh the CSRF token and session ID. Returns a confirmation, or an authentication error if the Google session is signed out; then ask the user to run npx -y @m4ykeldev/notebooklm-mcp auth in a terminal. Call it once after an auth error, then retry.
Inputs: no named parameters. Returns: status, message
auth_save_tokensSave NotebookLM cookiesADestructiveIdempotent
Manual fallback: save NotebookLM cookies the user pasted, plus an optional CSRF token and session ID, to ~/.notebooklm-mcp/auth.json, replacing what is stored there. Returns a confirmation; the next call uses the new tokens. Prefer the CLI auth command. Use this only when the user hands you cookies, and never echo them back.
Inputs: cookies, csrf_token, session_id. Returns: status, message
flashcards_createCreate flashcardsA
Start generating a set of study flashcards from the notebook's sources. Uses the user's NotebookLM quota and takes several minutes, so agree on the options with the user first: with confirm=false it does nothing and returns pending_confirmation. With confirm=true it returns the artifact_id; poll studio_status until that artifact is completed. This artifact has no download file: the user opens it in the notebook in NotebookLM.
Inputs: confirm (required), notebook_id (required), difficulty, source_ids. Returns: status, message, artifact_id
infographic_createCreate infographicA
Start generating an infographic: a single image that summarises the notebook's sources visually. Uses the user's NotebookLM quota and takes several minutes, so agree on the options with the user first: with confirm=false it does nothing and returns pending_confirmation. With confirm=true it returns the artifact_id; poll studio_status until that artifact is completed. Once completed, studio_status gives an image download_url.
Inputs: confirm (required), notebook_id (required), language, source_ids, +3 more. Returns: status, message, artifact_id
notebook_createCreate notebookA
Create an empty NotebookLM notebook. Returns the new notebook; keep its id for every later call. Each call creates another notebook, so first look for one with this title in notebook_list. Then fill it: source_add_url, source_add_text or source_add_drive for sources you have, research_start to find some.
Inputs: title (required). Returns: status, message, notebook
notebook_deleteDelete notebookADestructiveIdempotent
Permanently delete a notebook and everything in it. With confirm=false it does nothing and returns pending_confirmation; with confirm=true it deletes and returns a confirmation message. This cannot be undone: name the notebook to the user and get explicit approval first.
Inputs: confirm (required), notebook_id (required). Returns: status, message
notebook_getGet notebookARead-onlyIdempotent
Get one notebook's details. Returns its title, emoji, ownership, timestamps and sources, each with id, title and type (web_page, youtube, pasted_text, pdf, google_docs, ...). Use it to find source IDs for notebook_query and the Studio tools, or to check that a source you just added has appeared.
Inputs: notebook_id (required). Returns: status, message, notebook
notebook_listList notebooksARead-onlyIdempotent
List the user's NotebookLM notebooks, owned and shared. Returns each notebook's id, title, emoji, sources (id, title, type), ownership and timestamps, plus a count. Start here to find a notebook_id by title; once you have the id, notebook_get reads one notebook. There is no paging: if count equals max_results, call again with a higher max_results.
Inputs: max_results. Returns: count, status, message, notebooks
notebook_queryAsk the notebookA
Ask NotebookLM a question that it answers only from the notebook's sources (all of them, or source_ids). Returns the answer and a conversation_id. The answer text keeps NotebookLM's bracketed citation numbers such as [1], but not which passage each number points to. Pass conversation_id back to ask a follow-up; this server remembers the conversation's history while it keeps running.
Inputs: query (required), notebook_id (required), source_ids, conversation_id. Returns: answer, status, message, conversation_id
notebook_renameRename notebookAIdempotent
Change a notebook's title; its sources and chat stay as they are. Returns a confirmation message with the new title. Find the notebook_id with notebook_list first.
Inputs: new_title (required), notebook_id (required). Returns: status, message
notebook_summarizeSummarise notebookARead-onlyIdempotent
Ask NotebookLM for an AI-generated overview of the whole notebook. Returns a short summary of what its sources cover and the questions NotebookLM suggests asking about them. Use it to get oriented in an unfamiliar notebook; ask specific questions with notebook_query and list the sources with notebook_get.
Inputs: notebook_id (required). Returns: status, message, summary, suggested_questions
quiz_createCreate quizA
Start generating a multiple-choice quiz from the notebook's sources. Uses the user's NotebookLM quota and takes several minutes, so agree on the options with the user first: with confirm=false it does nothing and returns pending_confirmation. With confirm=true it returns the artifact_id; poll studio_status until that artifact is completed. This artifact has no download file: the user opens it in the notebook in NotebookLM.
Inputs: confirm (required), notebook_id (required), difficulty, source_ids, +1 more. Returns: status, message, artifact_id
report_createCreate reportA
Start generating a written report from the notebook's sources: a Briefing Doc, Study Guide, Blog Post, or your own brief with report_format "Create Your Own" and custom_prompt. Uses the user's NotebookLM quota and takes several minutes, so agree on the options with the user first: with confirm=false it does nothing and returns pending_confirmation. With confirm=true it returns the artifact_id; poll studio_status until that artifact is completed. This artifact has no download file: the user opens it in the notebook in NotebookLM.
Inputs: confirm (required), notebook_id (required), language, source_ids, +2 more. Returns: status, message, artifact_id
research_importImport research resultsA
Add results of a finished research task to the notebook as sources. Only web results can be imported: without source_indices it imports every web result and skips Drive ones. NotebookLM fetches each URL and skips any it can't reach, so it returns "Imported X of Y research sources". If none could be fetched the call fails and the task shows import_failed; a retry may succeed.
Inputs: task_id (required), notebook_id (required), source_indices. Returns: status, message
research_startStart researchA
Start a NotebookLM research task that searches the web, or the user's Google Drive, for sources on a topic. Deep mode is more thorough and slower than the default fast mode. Returns a task_id: poll research_status with it, then import the results you want with research_import.
Inputs: query (required), notebook_id (required), mode, source. Returns: status, message, task_id
research_statusCheck researchARead-onlyIdempotent
Check research tasks in a notebook: one task, or all of them. Returns each task's status (in_progress, completed, imported, import_failed, or unknown for a state this server doesn't recognise), query, summary and found sources (url, title, description, type). Poll until the status is no longer in_progress; a source's position in this list is the index research_import takes.
Inputs: notebook_id (required), task_id. Returns: status, message, results
slide_deck_createCreate slide deckA
Start generating a slide deck from the notebook's sources. Uses the user's NotebookLM quota and takes several minutes, so agree on the options with the user first: with confirm=false it does nothing and returns pending_confirmation. With confirm=true it returns the artifact_id; poll studio_status until that artifact is completed. Once completed, studio_status gives a download_url for the deck as a PDF.
Inputs: confirm (required), notebook_id (required), format, length, +3 more. Returns: status, message, artifact_id
source_add_driveAdd Google Drive sourceA
Add a Google Drive file as a source, by its Drive file ID and MIME type; the signed-in Google account must be able to open the file. Returns the new source (id, title, type). The source is a snapshot: when the Drive file changes, refresh it with source_sync_drive. For a public web page use source_add_url instead.
Inputs: title (required), file_id (required), doc_type (required), notebook_id (required). Returns: source, status, message
source_add_textAdd text sourceA
Add text as a source: pass it in content, or point file_path at a local file (content wins if both are set). A file_path outside the server's working directory and the OS temp directory is refused; read such a file yourself and pass content. Returns the new source (id, title, type pasted_text). For a web page or YouTube video use source_add_url; for a Drive file, source_add_drive.
Inputs: title (required), notebook_id (required), content, file_path. Returns: source, status, message
source_add_urlAdd web page or YouTube sourceA
Add a web page or a YouTube video to a notebook by URL. NotebookLM fetches the page itself, so it must be publicly reachable. Returns the new source (id, title, type web_page or youtube); the title can show the URL until processing finishes. If NotebookLM cannot fetch the page the call fails: check notebook_get before retrying.
Inputs: url (required), notebook_id (required). Returns: source, status, message
source_deleteDelete sourceADestructiveIdempotent
Permanently remove one source from a notebook. With confirm=false it does nothing and returns pending_confirmation; with confirm=true it deletes and returns a confirmation message. This cannot be undone: name the source to the user and get explicit approval first.
Inputs: confirm (required), source_id (required), notebook_id (required). Returns: status, message
source_getDescribe sourceARead-onlyIdempotent
Get one source's metadata. Returns its id, title, type (web_page, youtube, pasted_text, pdf, google_docs, ...) and content_length, the number of characters NotebookLM extracted from it. The text itself is left out because it can be very long; fetch it with source_get_content.
Inputs: source_id (required), notebook_id (required). Returns: source, status, message
source_get_contentGet source textARead-onlyIdempotent
Get the full text NotebookLM extracted from a source, with tables flattened to "cell | cell" rows. Returns { text }, which can be long: a long Wikipedia article came to about 100,000 characters. Prefer notebook_query to answer questions; use this when the user needs the verbatim text.
Inputs: source_id (required), notebook_id (required). Returns: text, status, message
source_sync_driveSync Google Drive sourcesADestructiveIdempotent
Re-import Google Drive sources (added with source_add_drive) so the notebook uses the latest version of each file, replacing the stored snapshot. With confirm=false it does nothing and returns pending_confirmation; with confirm=true it syncs and returns how many sources were synced.
Inputs: confirm (required), source_ids (required), notebook_id (required). Returns: status, message
studio_statusCheck Studio artifactsARead-onlyIdempotent
List the notebook's Studio artifacts. Returns each one's id, type (audio, video, report, flashcards, quiz, infographic, slide_deck), status (pending, generating, completed or failed) and download_url: set for completed audio, video, infographics and slide decks (PDF), null otherwise. It lists older artifacts too: after a *_create call, poll every 30-60 seconds and find yours by its artifact_id.
Inputs: notebook_id (required). Returns: status, message, artifacts
video_overview_createCreate Video OverviewA
Start generating a Video Overview: a narrated video with visuals that explains the notebook's sources. Uses the user's NotebookLM quota and takes several minutes, so agree on the options with the user first: with confirm=false it does nothing and returns pending_confirmation. With confirm=true it returns the artifact_id; poll studio_status until that artifact is completed. Once completed, studio_status gives a video download_url.
Inputs: confirm (required), notebook_id (required), format, language, +3 more. Returns: status, message, artifact_id
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 27 tools
The tools divide cleanly by domain and action: notebook CRUD, source ingestion/retrieval, Studio artifact generation, research, query, and auth. Parallel families like the seven *_create Studio tools are distinguished by artifact type in the name and description, so an agent can select correctly.
All names use snake_case and a consistent domain-first, action-second pattern (notebook_list, source_add_url, report_create, research_start). Occasional extra qualifiers such as source_get_content and auth_save_tokens remain predictable.
27 tools is heavy: the Studio suite could consolidate seven near-identical *_create tools into one parameterised tool, and source ingestion could be unified. However each tool maps to a distinct capability, so the count is borderline rather than arbitrary.
Core notebooks, sources, Studio artifacts, research, query, and auth workflows are covered. Gaps include deleting or updating Studio artifacts and refreshing non-Drive URL sources, but agents can work around these.
Maintenance
Related MCP Connectors
Google NotebookLM via natural language: create notebooks, add sources (PDF, URL, YouTube) and ask gr
Google Gemini Notebook (NotebookLM): notebooks, sources, cited chat, podcasts, video, slides
Securely search, create, and organize your Mem notes and collections from AI assistants.
Create, search and manage Knowtis collaborative notes from AI assistants.
Related MCP Servers
- AlicenseBqualityAmaintenanceEnables AI assistants to programmatically interact with Google NotebookLM, allowing them to create and manage notebooks, add sources, query content, generate audio/video, and perform research tasks through natural language commands.5518,759 PyPI6,558MIT
- AlicenseAqualityDmaintenanceConnects AI coding agents to Google NotebookLM, enabling querying notebooks, adding sources, and generating artifacts like reports, podcasts, and slide decks.141MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to programmatically access and control Google NotebookLM, supporting operations like notebook management, source addition, audio generation, and more via natural language.39MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Google NotebookLM notebooks, add sources from URLs, YouTube, Drive, or text, query and summarize content, and generate audio overviews, infographics, and slide decks through natural language.MIT