Gemini Notebook MCP
Connects AI agents to Google NotebookLM, enabling access to notebooks, sources, notes, chat history, studio artifacts, grounded Q&A, and audio overviews.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
🌌 Gemini Notebook MCP
The Enterprise-Grade Model Context Protocol (MCP) Server for Google NotebookLM.
Bridge the gap between Google's state-of-the-art Gemini grounding engine and your autonomous AI agent squad (Antigravity 2.0, Claude Code, Cursor, Windsurf, OpenCode, Jules).
Features • Installation • Client Config • Tool Reference • Architecture • SDLC Ground-Truth
🚀 Overview
Gemini Notebook MCP (v2.1.0) is the next-generation, actively maintained MCP server connecting AI assistants directly to Google NotebookLM.
While traditional AI workflows consume hundreds of thousands of tokens injecting huge raw PDFs, transcripts, and codebases into context windows, Gemini Notebook MCP unlocks a 90% Token Reduction through NotebookLM's native Map-Reduce retrieval. It provides autonomous AI agents with instant access to synthesized domain knowledge, full conversation histories, notes dumps, and direct local file exports for Studio artifacts (generated React/TSX components, Python scripts, study guides, reports, and audio podcasts).
Related MCP server: NotebookLM MCP
✨ Key Features
🎨 1. Studio Panel Artifact Extraction & Auto-Downloads
list_studio_items: Inspect all studio items generated by NotebookLM (Mind Maps, Study Guides, Briefing Docs, FAQs, Timelines, Audio Overviews, Custom Code Artifacts).get_studio_item: Read the full content and metadata of any studio artifact on demand.download_studio_item: Trigger native file downloads for any studio asset directly into your local workspace directory.export_studio_artifacts: Bulk export all studio assets (code.tsx,.ts,.py,.json,.md, images, audio) in one unified command.
💬 2. Complete Conversation & Thought-Chain Reconstruction
get_chat_history: Retrieve complete structured chat turns between user and NotebookLM.export_chat_history: Dump entire notebook conversation transcripts to disk in structured JSON or Markdown formats.Deep Grounding: Extracts citations, referenced page fragments, and underlying model reasoning threads.
📝 3. Comprehensive Notes Knowledge Base
list_notes: List all saved notes with tags and source anchors.get_note: Read individual note contents by ID or title.export_notes: Export all notes (e.g. 100+ research summaries) into markdown files for offline analysis and agent indexing.
🔍 4. Multimodal Sources & Media Retrieval
list_sources: Retrieve all uploaded PDFs, Google Docs, YouTube transcripts, and web links.download_source_images: Extract and download source figures, architectural diagrams, screenshots, and visual assets directly to disk.add_source: Ingest new URLs, text snippets, or files programmatically into any notebook.
🎙️ 5. Audio Overview (Deep Dive Podcasts)
generate_audio: Trigger generation of dual-host conversational podcast overviews.get_audio_status: Real-time progress monitoring (pending,generating,ready).download_audio: Download generated.wav/.m4aaudio files directly to your storage.
🛡️ 6. Anti-Detection Stealth Engine (Patchright)
Built on Patchright (hardened Playwright fork) with stealth flags, persistent human fingerprints, and zero browser automation leakage (
navigator.webdriverpatched).Headless execution with auto-fallback to Chromium channel.
🏗️ Architecture
flowchart TD
subgraph Agents["Autonomous AI Agents & IDEs"]
AG[Antigravity 2.0 Orchestrator]
CL[Claude Desktop / Claude Code]
CR[Cursor / Roo Code / Windsurf]
OC[OpenCode Frontend & Jules Cloud]
end
subgraph MCP["Gemini Notebook MCP Server (v2.1.0)"]
Router["JSON-RPC Tool Router (stdio / Streamable-HTTP)"]
AuthMgr["Auth & Session Manager (State & Fingerprint)"]
StudioExt["Studio Artifact & File Downloader Engine"]
ChatHist["Chat & Thought-Chain Extractor"]
NotesMgr["Notes & Ground-Truth Exporter"]
PatchEng["Patchright Stealth Browser Core"]
end
subgraph Google["Google Cloud Infrastructure"]
NLM["Google NotebookLM"]
GeminiCore["Gemini 2.5 Pro / Flash Grounding Core"]
Storage["NotebookLM Studio & Media Storage"]
end
Agents <-->|MCP Protocol| Router
Router --> AuthMgr
Router --> StudioExt
Router --> ChatHist
Router --> NotesMgr
StudioExt & ChatHist & NotesMgr --> PatchEng
PatchEng <-->|Secure Persistent Session| NLM
NLM <--> GeminiCore
NLM <--> Storage📦 Installation
Option 1: Run via NPX (Recommended)
npx gemini-notebook-mcp@latestOption 2: Clone & Build from Source
git clone https://github.com/vn002187444/gemini-notebook-mcp.git
cd gemini-notebook-mcp
npm install
npm run build🔐 One-Click Authentication Setup
To authenticate with your Google Account once:
# In the repository root
npm run loginA dedicated browser window will launch. Log in to your Google Account and visit NotebookLM. The session state and credentials are automatically saved to your OS user data directory:
Windows:
%LOCALAPPDATA%\notebooklm-mcp\Data\browser_state\state.jsonmacOS:
~/Library/Application Support/notebooklm-mcp/browser_state/state.jsonLinux:
~/.local/share/notebooklm-mcp/browser_state/state.json
Subsequent runs run completely headless and require no user interaction.
⚙️ Client Configuration
1. Antigravity 2.0 & AGY CLI
Add to your mcp_servers configuration in ~/.gemini/antigravity/mcp.json or project configuration:
{
"mcpServers": {
"notebooklm": {
"command": "node",
"args": ["d:/NotebookLM Knowledge/notebooklm-mcp/dist/index.js"],
"env": {
"BROWSER_CHANNEL": "chrome"
}
}
}
}2. Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"notebooklm": {
"command": "npx",
"args": ["-y", "gemini-notebook-mcp@latest"]
}
}
}3. Cursor & Windsurf
Add to .cursor/mcp.json:
{
"mcpServers": {
"notebooklm": {
"command": "node",
"args": ["<PATH_TO_REPO>/dist/index.js"]
}
}
}🛠️ MCP Tools Reference
1. Studio Artifacts & Downloads (v2.1.0 New)
Tool | Parameters | Description |
|
| Lists all generated studio artifacts (guides, code, audio, mindmaps). |
|
| Inspects full content and metadata of a studio item. |
|
| Triggers download of a studio asset directly to disk. |
|
| Batch exports all studio artifacts and generated code to target folder. |
2. Chat Conversation History & Thought Extraction (v2.1.0 New)
Tool | Parameters | Description |
|
| Reconstructs the notebook conversation turns with citations & thoughts. |
|
| Dumps the full chat history into a |
3. Notes Knowledge Base (v2.1.0 New)
Tool | Parameters | Description |
|
| Lists all notes created by user or generated by NotebookLM. |
|
| Reads the markdown content of a specific note. |
|
| Exports all notes as markdown files in the specified directory. |
4. Notebook & Source Management
Tool | Parameters | Description |
|
| Lists all accessible notebooks with title, URL, and IDs. |
|
| Sets the active notebook context for all subsequent queries. |
|
| Returns metadata, sources count, and summary of the notebook. |
|
| Creates a new empty notebook. |
|
| Deletes a notebook. |
|
| Adds a URL, text, or file source to the active notebook. |
|
| Lists all ingested sources and their processing status. |
|
| Downloads source figures, images, and diagrams to disk. |
5. Grounded Q&A & Audio Overviews
Tool | Parameters | Description |
|
| Ask a grounded question against notebook sources with full citations. |
|
| Starts generating an AI Audio Overview (Deep Dive conversation). |
|
| Returns audio generation progress and completion status. |
|
| Downloads the generated audio podcast file. |
🎯 SDLC Ground-Truth Protocol
When working in an agentic pair-programming workflow (e.g. Antigravity 2.0 SDLC), use the NotebookLM Ground-Truth & Map-Reduce Protocol:
Avoid Raw Dumps: Never load 50,000 lines of documentation or legacy code directly into your prompt. Ingest it as a NotebookLM source.
4-Pass Deep Inquiry: Use
ask_questionto query core logic, architecture schemas, and edge cases.Studio Asset Pull: Use
export_studio_artifactsto pull all code snippets (.tsx, .py, .ts) and assets synthesized by NotebookLM directly into the local repo (docs/nlm_ground_truth_code/).Zero Hallucination Verification: Cross-reference generated code against the DOM-level citations returned by
get_chat_history.
👨💻 Development & Testing
# Watch mode for rapid TypeScript development
npm run dev
# Run full TypeScript check and build
npm run check
# Code formatting & linting
npm run format
npm run lint📄 License & Acknowledgements
Licensed under the MIT License.
Built for the autonomous AI development era by vn002187444.
Special thanks to the original
notebooklm-mcpprototype foundations by Gérôme Dexheimer.
This server cannot be deployed
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
Let AI assistants record meetings and work with notes, transcripts, contacts, and Drive.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
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.5310,563 PyPI6,444MIT
- AlicenseAqualityAmaintenanceMCP server for Google NotebookLM. 27 tools to manage notebooks and sources (web pages, YouTube, text, Google Drive), ask questions answered only from your sources, run web research, and generate Audio and Video Overviews, slide decks, reports, infographics, flashcards and quizzes. Every tool has MCP annotations and a typed output schema. Runs locally with your own Google session.27311 npm22MIT
- AlicenseAqualityCmaintenanceExposes Google NotebookLM notebooks as tools for AI assistants, enabling listing, finding, and querying notebooks with grounded answers.41MIT
- 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