Google Notebook MCP
Connects AI agents to Google NotebookLM knowledge bases for grounded Q&A, multi-document synthesis, and citation capabilities, allowing retrieval of answers with source citations from private Google notebooks.
Operates through a Google Chrome Manifest V3 companion extension, executing all authenticated requests inside Chrome's native network process to maintain a zero-credential-export architecture.
Enables ingestion of Google Drive files 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., "@Google Notebook MCP Query my NotebookLM notebook for the deployment checklist and cite sources."
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.
Google Notebook MCP Gateway
A secure, zero-credential-export Model Context Protocol (MCP) gateway connecting AI coding agents to your private Google Notebook knowledge bases (formerly NotebookLM).
Quickstart • Wiki • Supported Clients • Tool Reference • Documentation • Security Model
Overview
Google Notebook MCP brings the grounded reasoning, multi-document synthesis, and citation capabilities of Google NotebookLM directly into your AI development workflow (Claude Code, Cursor, Windsurf, Cline, Antigravity IDE, Zed).
Unlike traditional API wrappers or unofficial scrapers that ask you to paste session cookies into configuration files, this gateway operates under a strict Zero-Credential Export architecture:
All upstream Google requests execute inside Google Chrome's native network process via a Manifest V3 companion extension.
Google session cookies (
SID,HSID,SSID), CSRF tokens (SNlM0e), and hardware Device Bound Session Credentials (DBSC) never leave Chrome's native memory.Credentials are never written to disk, never sent across local IPC sockets, and never visible to AI client prompt logs or transcripts.
Related MCP server: notebooklm-mcp-server
Architecture
flowchart TD
subgraph ClientLayer["AI Coding Assistant"]
Client["Claude Code / Cursor / Windsurf / Cline"]
end
subgraph MCPGateway["MCP Gateway Layer"]
Facade["MCP stdio Facade (cli.py mcp)"]
Broker["Broker Daemon (Unix Socket / Named Pipe)"]
Journal["SQLite WAL Mutation Journal"]
Allowlist["Allowlist Authorization (allowlist.json)"]
Scrubber["Zero-Leakage Secret Scrubber (secret_scrubber.py)"]
end
subgraph NativeBridge["Native Messaging Bridge"]
NativeHost["Python Native Messaging Host (native_host.py)"]
end
subgraph BrowserLayer["Google Chrome (DBSC / TPM Containment)"]
MV3["Companion Extension (MV3 Background Service Worker)"]
ChromeNet["Chrome Native Network Stack (fetch credentials: 'include')"]
NotebookLM["Google Notebook (notebook.google.com / notebooklm.google.com)"]
end
Client <-->|"JSON-RPC 2.0 (stdio)"| Facade
Facade <-->|"Big-Endian Framed IPC"| Broker
Broker <--> Journal
Broker <--> Allowlist
Broker <--> Scrubber
Broker <-->|"Local Socket"| NativeHost
NativeHost <-->|"Chrome stdio Framing (@I, <=512 KiB)"| MV3
MV3 <-->|"Internal DOM fetch()"| ChromeNet
ChromeNet <-->|"Authenticated TLS"| NotebookLM
classDef secure fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px;
class BrowserLayer,Scrubber secure;Key Features
12 Production MCP Tools: Grounded natural-language Q&A with Unicode citation spans, source cataloging, note creation/listing/deletion, binary file ingestion via Scotty, and studio artifact querying/metadata/extraction.
Self-Healing Wire Adapters & Upstream Drift Resilience: Decoupled declarative wire specification (
wire_spec.v4.json) with Ed25519 cryptographic signature verification, air-gapped User Vault isolation, dynamic DOM selector relay without extension reinstalls, and an automated 10-minute health window with atomic rollback to Last Known Good (LKG).MCP 2025/2026 Protocol Standardization: First-class MCP resources (
notebooklm://), parameter-validated prompt templates (prompts/*), live progress notifications (notifications/progress), and standardized behavioral tool annotations (readOnlyHint,idempotentHint).ADR-011 Interactive Session Lock: Enforces single-notebook locking per session, preventing accidental cross-notebook queries or modifications.
Project Directory Binding (
.notebook_mcp.json): Seamlessly binds local workspaces to their designated NotebookLM notebook with an interactive in-chat confirmation handshake.Scotty 3-Step Resumable Uploads: Upload PDFs, Markdown, Word documents, and text files directly into NotebookLM with automatic offset resumption and $\le 512\text{ KiB}$ IPC slicing.
Conservative Mutation Journaling: SQLite WAL state machine guarantees zero duplicate writes and freezes ambiguous requests upon network disconnection.
Cross-Platform: Built-in support for Linux, macOS, and Windows (including Windows Named Pipes and automatic path length bounds).
Quickstart
🚀 Zero-Friction Automated Onboarding (Recommended)
Run the autonomous onboarding orchestrator directly from the repository root:
git clone https://github.com/wdeldaybytebuster/google-notebook-mcp.git
cd google-notebook-mcp
# 1. Install dependencies (pip or uv)
pip install -e .
# or: uv sync
# 2. Run the 6-stage autonomous onboarding wizard
python3 install_and_onboard.py
# Or via the CLI if installed:
gemini-notebook-mcp onboardThe orchestrator automatically:
Detects your compatible Chromium browser (bypassing ChromeOS Garcon bridges and configuring Wayland flags).
Registers the Chrome Native Messaging Host manifests across global and profile scopes.
Pre-seeds Developer mode and launches Chrome directly at
chrome://extensions.Injects or guides 1-click loading of the companion extension (with clipboard path assist) and verifies
service_worker.js.Navigates automatically to
notebook.google.comwith the companion extension already active.Discovers all your notebooks and interactively seeds
allowlist.jsonand.notebook_mcp.json.
Manual Step-by-Step Setup
1. Install
git clone https://github.com/wdeldaybytebuster/google-notebook-mcp.git
cd google-notebook-mcp
# Using pip:
pip install -e .
# Or using uv:
uv sync2. Register Chrome Native Messaging Host
Automatically registers the gateway bridge with Chrome:
gemini-notebook-mcp install3. Load Companion Extension in Chrome
Open Chrome and navigate to
chrome://extensions.Enable Developer mode (toggle in the top-right).
Click Load unpacked and select the
src/extension/directory from this repository.Copy the generated Extension ID (e.g.,
abcdefghijklmnop...) — or open the extension popup's Setup Mode banner — and run:python3 setup_native_host.py --extension-id <COPIED_EXTENSION_ID> # or: gemini-notebook-mcp install --extension-id <COPIED_EXTENSION_ID>
4. Launch Gateway & Dedicated Browser
gemini-notebook-mcp launch5. Authorize Your Notebooks
Run the interactive allowlist wizard to choose which notebooks your AI agents can access:
gemini-notebook-mcp allowlist seedClient Configuration
Add the gateway to your favorite AI coding environment:
Claude Desktop (claude_desktop_config.json)
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"gemini-notebook": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/google-notebook-mcp",
"run",
"gemini-notebook-mcp",
"mcp"
],
"env": {
"UV_THREADPOOL_SIZE": "3"
}
}
}
}(If installed globally or in an active environment, you can replace the command with "python3" and args with ["-m", "mcp_gateway.cli", "mcp"]).
Claude Code
Run in your terminal:
claude mcp add gemini-notebook -- python3 -m mcp_gateway.cli mcpOr with uv:
claude mcp add gemini-notebook uv -- --directory /ABSOLUTE/PATH/TO/google-notebook-mcp run gemini-notebook-mcp mcpCursor (.cursor/mcp.json or Global Settings)
{
"mcpServers": {
"gemini-notebook": {
"command": "python3",
"args": ["-m", "mcp_gateway.cli", "mcp"],
"env": {
"UV_THREADPOOL_SIZE": "3"
}
}
}
}Windsurf (~/.codeium/windsurf/mcp_config.json)
{
"mcpServers": {
"gemini-notebook": {
"command": "python3",
"args": ["-m", "mcp_gateway.cli", "mcp"],
"env": {
"UV_THREADPOOL_SIZE": "3"
}
}
}
}Note on
MCP_BROKER_SOCKET: By default, both the broker daemon and MCP client automatically resolve the secure platform IPC path viaget_default_ipc_path()($XDG_RUNTIME_DIR/notebooklm-mcp/broker.sockor~/.config/notebooklm-mcp-bridge/broker.sockon Linux,~/Library/Application Support/notebooklm-mcp/broker.sockon macOS, and\\.\pipe\notebooklm-mcp-brokeron Windows). SetMCP_BROKER_SOCKETinenvonly when overriding the socket path on both the broker and client.
Cline / Roo Code (cline_mcp_settings.json)
{
"mcpServers": {
"gemini-notebook": {
"command": "python3",
"args": ["-m", "mcp_gateway.cli", "mcp"],
"disabled": false,
"autoApprove": []
}
}
}For detailed instructions on other clients (Zed, Antigravity IDE, Neovim), see the Client Configuration Guide.
MCP Tool Reference
Tool | Type | Key Inputs | Description |
| Session |
| Locks session to a single notebook and binds local project config. |
| Read |
| Lists allowlisted notebooks and returns active project binding status. |
| Read |
| Fetches full metadata, source counts, and timestamps. |
| Read |
| Extracts ingested sources and readiness states ( |
| Q&A |
| Streams grounded Q&A with normalized Unicode citation offsets. |
| Write |
| Ingests URLs, Google Drive files, pasted text, or local binary documents. |
| Write |
| Creates a new user note journaled in SQLite. |
| Read |
| Returns user notes with upstream schema anomaly detection. |
| Write |
| Deletes a user note by ID with pre-flight identity assertion. |
| Read |
| Lists generated studio artifacts (audio overviews, study guides, mind maps, briefings). |
| Read |
| Fetches generation parameters, readiness state, duration, and download URI. |
| Write/Export |
| Streams artifact to tmpfs/disk in $\le 512\text{ KiB}$ chunks returning |
MCP 2025/2026 Protocol Capabilities
In addition to tools, the gateway natively implements the modern MCP standard:
Resources (
resources/*): Browse notebook contents using standard URIs:notebooklm://notebooks/{nb_id}/{metadata|sources|notes|artifacts}[/{item_id}]. Protected by Invariant 3 Universal Security Interceptor Gate.Prompts (
prompts/*): Ready-to-use prompt templates (synthesize_sources,generate_study_guide,extract_action_items,adversarial_audit) for AI coding agents.Progress Notifications (
notifications/progress): Out-of-band progress tracking for Scotty byte streaming and readiness polling.Logging (
logging/setLevel): Client-controllable diagnostic logging without stdio frame pollution.
Full schema parameters and error envelopes are documented in the Tools Reference.
Project-Level Notebook Binding
When working inside a project repository, the gateway can automatically remember which NotebookLM knowledge base belongs to that project:
When calling
select_notebook, settingsave_for_project: true(the default) creates.notebook_mcp.jsonin your project root.At the start of a chat, the AI assistant calls
list_notebooks, discovers your project setting, and performs a conversational handshake:*"This project is configured to use notebook 'Project Docs'. Would you like to use this notebook, or select another from your allowlist?"*
Once confirmed, your session is locked and protected against accidental cross-notebook tampering.
Packaged Agent Skills Ecosystem
The repository packages four production agent skills adhering to the Anthropic and OpenClaw specification:
Skill | Trigger / Description |
| Grounded technical research, multi-source cross-examination, and coordinate-normalized Unicode citation verification. Enforces Mitigation M-06 grounding barrier. |
| Non-blocking discovery, asynchronous generation monitoring, and zero-OOM tmpfs binary streaming ($\le 512\text{ KiB}$) for Audio Overviews, Video Overviews, and Reports. |
| Enforces ADR-011 single-notebook session lock lifecycle, project workspace binding ( |
| Closed-loop consultation planning with live models, spec-vs-plan decoupling, 5-domain adversarial red-team stress-testing, and remediation invariant synthesis. |
Detailed skill instructions and state schemas are available in docs/agent-skills.md.
Self-Healing Wire Adapters & Upstream Drift Resilience
Google NotebookLM is an evolving web application that periodically updates internal RPC IDs, payload structures, DOM global property names, and batchexecute array layouts. The gateway incorporates a zero-friction, cryptographic self-healing engine to adapt automatically without requiring manual code changes or user intervention:
Decoupled Wire Specification (
wire_spec.v4.json): All volatile RPC IDs (wXbhsf,rLM1Ne,CYK0Xb,tGMBJ,o4cbdc,izAoDd,GenerateFreeFormStreamed), row array indices, endpoints, and DOM selector keys are defined declaratively outside compiled code.Cryptographic Ed25519 Pre-Validation: Dynamic updates are cryptographically signed. The gateway verifies detached signatures strictly on raw un-parsed bytes using a pinned 32-byte Ed25519 public key before decoding JSON.
Air-Gapped Vault Isolation: The User Vault (
~/.config/notebooklm-mcp-bridge/) containingallowlist.json,.notebook_mcp.json, andjournal.dbis strictly read-only to the update engine. All adapter files live in isolated Dynamic Adapter Storage (~/.local/share/notebooklm-mcp-bridge/adapters/).Dynamic DOM Relay Protocol: Property paths and CSRF identifiers are relayed dynamically to the Chrome extension companion, allowing DOM target evolution without requiring Chrome Web Store extension updates.
Atomic LKG Rollback & 10-Minute Health Window: Every new candidate spec must pass synthetic canary parsing before activation. Once promoted, a 10-minute active health monitor tracks live request status; if 3 consecutive RPC failures or schema drift errors occur, the gateway automatically quarantines the spec hash and triggers an atomic rollback to Last Known Good (LKG) or the package-bundled static default.
Documentation
GitHub Wiki: Comprehensive online wiki with interactive quickstarts, client guides, and FAQs.
Getting Started Guide: Full walkthrough for Linux, macOS, and Windows.
Client Configuration: Setup guides for all major AI coding agents.
Agent Skills Ecosystem: Complete guide to the packaged skills for Claude Code, Cursor, Windsurf, and OpenClaw.
Tools Reference: Complete parameter reference, types, and error envelopes.
Troubleshooting & FAQs: Diagnosing native messaging, permissions, and platform quirks.
Security Architecture: Deep dive into TPM/DBSC containment and secret scrubbing.
Architecture Decision Records: The 17 core architectural invariants (ADR-001 through ADR-017).
GitHub Launch Completion Report: Full project ledger and security audit from the public repository launch.
Contributing
Contributions, bug reports, and suggestions are welcome! Please read our Contributing Guide and Code of Conduct before opening a pull request.
Security Vulnerability Reporting
If you discover a potential security vulnerability, please refer to our Security Policy to report it responsibly.
License
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
Available Tools
12 toolsadd_sourceC
Add a new text, URL, YouTube, Drive, or file source to a notebook.
Inputs: source (required), notebook_id (required), idempotency_key (required), wait_until_ready.
create_noteC
Create a new note in an allowlisted Google Notebook.
Inputs: content (required), notebook_id (required), idempotency_key (required), title.
delete_noteCDestructiveIdempotent
Delete a note from an allowlisted Google Notebook.
Inputs: note_id (required), notebook_id (required), idempotency_key (required).
extract_artifactARead-onlyIdempotent
Extract the content of a Studio deliverable (Markdown text for documents/reports, or opaque temporary file path for binary audio/video).
Inputs: artifact_id (required), notebook_id (required), output_format.
get_artifact_metadataBRead-onlyIdempotent
Retrieve metadata, type, creation time, and readiness status for a specific Studio deliverable.
Inputs: artifact_id (required), notebook_id (required).
get_notebook_metadataCRead-onlyIdempotent
Retrieve metadata for an allowlisted notebook.
Inputs: notebook_id (required).
list_artifactsBRead-onlyIdempotent
List Studio panel deliverables (Mind Maps, Audio Overviews, Video Overviews, Reports, Briefing Docs, Study Guides) within an allowlisted Google Notebook.
Inputs: notebook_id (required), cursor, page_size, artifact_type_filter.
list_notebooksBRead-onlyIdempotent
List all allowlisted Google Gemini Notebooks. You MUST call this at the start of each chat/project to inspect available notebooks and project defaults, present the options to the user, and ask the user to confirm which notebook to use for this chat/project.
Inputs: cursor, page_size.
list_notesCRead-onlyIdempotent
List all notes within an allowlisted Google Notebook.
Inputs: notebook_id (required), cursor, page_size.
list_sourcesCRead-onlyIdempotent
List all sources within an allowlisted notebook.
Inputs: notebook_id (required), cursor, page_size.
query_notebookC
Submit a grounded question to an allowlisted notebook.
Inputs: question (required), notebook_id (required), request_key (required), source_ids, +1 more.
select_notebookBIdempotent
Select and lock the session to a specific allowlisted Google Notebook for this chat. IMPORTANT: Always double-check with the user first before calling this. Sets save_for_project=true by default to remember this selection in .notebook_mcp.json for future chats in this project.
Inputs: title, notebook_id, save_for_project.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool targets a clear resource+action pair (notebooks, sources, notes, artifacts), and query_notebook vs create_note/add_source are well separated. Minor potential confusion between get_notebook_metadata and list_notebooks, and between get_artifact_metadata and extract_artifact, but the descriptions disambiguate them adequately.
All twelve tools follow a uniform snake_case verb_noun pattern (list_notebooks, select_notebook, add_source, create_note, delete_note, extract_artifact, etc.). No mixed conventions or vague standalone verbs.
12 tools is squarely in the well-scoped range for a multi-resource server (notebooks, sources, notes, artifacts). Each tool maps to a distinct operation rather than redundant variants.
Notes support create/list/delete but there is no read-single-note or update_note, and sources support list/add but no remove_source, leaving removal and update workflows as dead ends. Notebook creation/deletion being absent is defensible for a read-mostly client, but the missing source-delete and note-read/update operations are notable gaps.
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
Create, search and manage Knowtis collaborative notes from AI assistants.
Private memory for AI agents: save and recall facts across Claude Code, Codex, Cursor and ChatGPT.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI agents to query and interact with Google NotebookLM notebooks to retrieve citation-backed information. It provides tools for listing notebooks, accessing source data, and asking natural language questions.11-
- AlicenseBqualityDmaintenanceEnables AI agents to interact with Google NotebookLM for grounded, hallucination-free answers through notebook management, source management, research, and generation tools.29255 npm45MIT
- 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