
Notebooklm Mcp Secure
io.github.Pantheon-SecurityPublished by GitHub account Pantheon-Securityv2026.5.0Updated Oct 24, 2026
Security-hardened NotebookLM MCP with post-quantum encryption
Overview
Lets an assistant query, create, and manage NotebookLM notebooks, generate audio, video, and data-table overviews, and optionally run Gemini research and…
- What you can do
- A security-hardened NotebookLM MCP server exposing 48 tools. Core tools query notebooks with source-grounded answers, create and batch-create notebooks, add or remove sources including bulk folder uploads, sync libraries, and generate audio overviews, video overviews, and structured data tables. Optional Gemini API tools add deep research, grounded queries, and document upload, query, and deletion. It also offers session, quota, query-history, and webhook management.
- When to use it
- Use it when an assistant should work with NotebookLM notebooks programmatically instead of manual clicking: asking questions grounded in your own sources, building or bulk-creating notebooks, producing audio or video summaries, extracting tables as JSON, or running Gemini deep research and document analysis when an API key is available.
- Requirements
- Runs locally as a stdio process, installed via the npm package @pan-sec/notebooklm-mcp (Node.js required). Core NotebookLM features need browser-based authentication through setup_auth, not an API key. Optional Gemini features need the GEMINI_API_KEY environment variable, plus optional settings such as GEMINI_DEFAULT_MODEL and GEMINI_TIMEOUT_MS. Desktop only; network access required.
Installation
In SourceWeft
- Open Notebooklm Mcp Secure in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
NotebookLM MCP Server (Security Hardened)
🏆 The World's Most Advanced NotebookLM MCP Server
Zero-hallucination answers • Gemini Deep Research • 17 Security Layers • Enterprise Compliance
[npm] [CalVer] [TypeScript] [MCP] [Platform] [Security] [Post-Quantum] [Gemini] [Documents] [Notebooks] [Compliance] [Tests]
What's New 2026 • Deep Research • Document API • Create Notebooks • Security • Install
The only NotebookLM MCP with enterprise-grade security, post-quantum encryption, and full Gemini API integration.
Security-hardened fork of PleasePrompto/notebooklm-mcp • Maintained by Pantheon Security
⚡ TL;DR — What You Get
- 🔍 Query your NotebookLM notebooks — source-grounded, zero-hallucination answers
- 📚 Create & manage notebooks programmatically — no manual clicking
- 🎙️ Generate audio overviews — podcast-style summaries of your docs
- 🎬 Generate video overviews — AI video summaries with 10 visual styles NEW
- 📊 Extract data tables — structured JSON from notebook sources NEW
- 🔬 Gemini 3 + Deep Research — latest models with thinking control (optional API) NEW
- 📄 Document API — upload & query PDFs without browser (optional API)
- 🔐 17 security layers — post-quantum encryption, audit logs, secrets scanning
- ✅ Compliance-ready architecture — built to GDPR, SOC2, and CSSF standards (controls implemented; formal certification requires third-party audit)
- 💡 No API key required — core features work with just browser auth
🚀 What's New in 2026
Latest: v2026.3.1 — All 334 audit issues resolved. 631 tests. Full MCP protocol compliance.
Why Choose This MCP?
🔬 Security Audit 2026 — What We Found and Fixed
In April 2026, we commissioned a parallel deep-audit of v2026.2.11 (main @ 2973097) using four specialised AI code reviewers, each focused on a different attack surface: security vulnerabilities, protocol correctness, architecture quality, and testing gaps and edge cases. The four reviewers operated independently so their findings wouldn't influence each other. Together they produced a 334-item master issue list covering protocol correctness, security vulnerabilities, architecture flaws, test gaps, and documentation accuracy. All 334 issues are resolved across v2026.3.0 and v2026.3.1.
Audit by the Numbers
What the Four Reviewers Found
Security reviewer: Identified the forceAuth bypass in validateToken() allowing unauthenticated access to filesystem tools; webhook SSRF via unvalidated delivery targets; audit log hash chain not verified on read; concurrent audit writes interleaving entries; auth token salt not persisted (tokens invalidated on restart).
Protocol reviewer: Found 38 tools returning incorrect response shapes (missing structuredContent, wrong isError semantics, transport tags leaking into content); all 48 tools had incorrect or missing readOnlyHint/idempotentHint/destructiveHint annotations; 9 tool schemas lacked numeric bounds, enabling out-of-range inputs.
Architecture reviewer: Flagged the 3,611-line handlers.ts as a maintenance liability; singleton imports throughout domain functions preventing unit testing; the 500-line switch/case dispatch adding O(n) overhead and making tool registration error-prone.
Testing & edge-case reviewer: Found test suite at 139 tests with minimal coverage of security-critical modules; mcp-auth.ts at near-zero coverage; no tests for prompt injection patterns, audit log tampering, or concurrent browser session state; the DSAR handler had an undetected race condition.
Key Fixes
- 17 security vulnerabilities addressed (auth bypass, SSRF, audit integrity, race conditions, selector injection vectors)
- MCP protocol fully compliant — all 48 tools return correct
structuredContent/isErrorshapes; annotations accurate; schema bounds enforced - Architecture decomposed —
handlers.tssplit into 9 domain modules with HandlerContext dependency injection; 100% unit-testable without process mocks - Test coverage — 15 new security-critical test suites including browser session, auth, prompt injection, audit log, webhook, DSAR, and compliance
- Claims aligned — certificate pinning removed (implementation was retracted in Day 1 of the audit); PQ encryption scope documented accurately; compliance language uses "controls implemented" not "certified"
📋 Full Feature List (48 Tools)
Core NotebookLM (No API Key Required)
Gemini API (Optional - Requires GEMINI_API_KEY)
Webhooks & Integrations
Enterprise Compliance (16 additional tools)
See Compliance Documentation for full list.
Gemini Deep Research (v1.8.0)
The most powerful research capability for AI agents — now in your MCP toolkit.
v1.8.0 introduces the Gemini Interactions API as a stable, API-based research backend alongside browser automation. This gives your agents access to Google's state-of-the-art Deep Research agent.
Why This Matters
New Tools
deep_research — Comprehensive Research Agent
- Runs Google's Deep Research agent (same as Gemini Advanced)
- Takes 1-5 minutes for comprehensive, web-grounded analysis
- Returns structured answers with citations and sources
- Perfect for complex topics requiring multi-source synthesis
gemini_query — Fast Grounded Queries
- Google Search grounding — Current information, not just training data
- Code execution — Run calculations, data analysis
- URL context — Analyze web pages on demand
- Models:
gemini-3-flash-preview(default),gemini-3-pro-preview(powerful),gemini-2.5-flash(legacy)
get_research_status — Background Task Monitoring
Run deep research in the background and check progress:
Hybrid Architecture
💡 Gemini API is completely optional! All core NotebookLM features (ask_question, notebooks, sessions, audio) work via browser automation with no API key required. The Gemini tools below are bonus features for users who want direct API access.
Gemini Configuration (Optional)
When to Use Which
📄 Document API (v1.9.0)
Upload and query documents directly via Gemini API — no browser automation needed.
v1.9.0 introduces the Gemini Files API for fast, reliable document analysis. Upload PDFs, analyze them instantly, and delete when done.
Why This Matters
New Tools
upload_document — Fast Document Upload
Upload any document to Gemini for instant querying:
- Supported: PDF (50MB, 1000 pages), TXT, MD, HTML, CSV, JSON, DOCX, images, audio, video
- 48-hour retention — files auto-expire, or delete manually
- Returns a file ID for querying
query_document — Ask Questions About Documents
- Full document understanding (text, tables, charts, diagrams)
- Multi-document queries (compare multiple files)
- Fast API response (no browser wait)
list_documents — See All Uploaded Files
Shows file names, sizes, MIME types, and expiration times.
delete_document — Clean Up Sensitive Files
Immediately remove files (don't wait for 48h expiration).
Workflow Example
Auto-Chunking for Large PDFs (v1.10.0)
No file size limits — PDFs of any size are automatically handled.
When you upload a PDF that exceeds Gemini's limits (50MB or 1000 pages), the system automatically:
- Detects the oversized PDF
- Splits it into optimal chunks (500 pages each)
- Uploads all chunks in parallel
- Returns chunk metadata for querying
query_chunked_document — Query All Chunks at Once
For chunked documents, use this tool to query all parts and get an aggregated answer:
When to Use Document API vs NotebookLM
Programmatic Notebook Creation (v1.7.0+)
Create NotebookLM notebooks entirely from code — no manual clicks required.
Most MCP servers can only read from NotebookLM. This one can create notebooks, add sources, and generate audio — all programmatically.
create_notebook — Build Notebooks Instantly
Create a complete notebook with multiple sources in one command:
Supported source types:
- URL — Web pages, documentation, articles
- File — PDF, DOCX, TXT, and more
- Text — Raw text, code snippets, notes
batch_create_notebooks — Scale Up
Create up to 10 notebooks in a single operation:
Perfect for:
- Setting up project documentation libraries
- Onboarding new team members with curated knowledge bases
- Creating topic-specific research notebooks in bulk
manage_sources — Dynamic Source Management
Add or remove sources from existing notebooks:
generate_audio — Audio Overview Creation
Generate NotebookLM's famous "Audio Overview" podcasts programmatically:
sync_notebook — Keep Sources Updated
Sync notebook sources from a local directory:
Why This Matters
Your agent can now build entire knowledge bases autonomously.
🎬 Video Overviews & Data Tables (v2026.2.0)
Generate AI-powered visual summaries and extract structured data from any notebook — all programmatically.
NotebookLM's Studio panel now offers Video Overviews and Data Tables alongside Audio Overviews. This release brings full automation for both.
generate_video_overview — AI Video Summaries
Generate visual video overviews of your notebook content with 10 visual styles:
Two formats:
- Explainer — Full explanation (5-15 min)
- Brief — Quick summary (1-3 min)
get_video_status — Check Generation Progress
Video generation takes 3-10 minutes. Check progress:
generate_data_table — Structured Data Extraction
Generate a structured table from your notebook sources. NotebookLM extracts key information into rows and columns:
get_data_table — Extract Table as JSON
Extract the generated table as structured JSON for processing:
When to Use Which Studio Feature
📊 Query History & Chat Extraction (v2026.1.0)
Track your research and recover conversations from NotebookLM notebooks.
get_query_history — Review Past Research (v1.10.8)
All queries made through the MCP are automatically logged for review:
- Automatic logging — every Q&A pair saved with metadata
- Search — find specific topics across all queries
- Filter — by notebook, session, or date
- Quota tracking — see query counts and timing
get_notebook_chat_history — Extract Browser Conversations (v2026.1.0)
Extract conversation history directly from a NotebookLM notebook's chat UI with context management to avoid overwhelming your AI context window:
Quick audit (preview mode):
Returns message counts without content — test the water before extracting.
Export to file (avoids context overflow):
Dumps full history to disk instead of returning to context.
Paginate through history:
Page through large histories without loading everything at once.
Returns:
Use cases:
- Recover conversations made directly in the NotebookLM browser (not tracked by MCP)
- Audit research — see what queries were made in a notebook
- Resume context — pick up where a previous session left off
- Quota reconciliation — understand why quota seems off
Why This Fork?
The original NotebookLM MCP is excellent for productivity — but MCP servers handle sensitive data:
- Browser sessions with Google authentication
- Cookies and tokens stored on disk
- Query history that may contain proprietary information
This fork adds 17 security hardening layers to protect that data.
Security Features
Post-Quantum Primitives (Local At-Rest)
Encryption of secrets on disk uses hybrid post-quantum primitives:
- ML-KEM-768: NIST-standardized post-quantum key encapsulation
- ChaCha20-Poly1305: Modern stream cipher (immune to timing attacks)
Scope, honestly: this is local at-rest encryption. Both keys live on the same machine — the PQ secret key is wrapped with a classical key derived from a machine-bound secret, not held by a remote recipient. This protects against offline theft of individual encrypted files, not against Harvest-Now-Decrypt-Later attacks (those require a remote PQ recipient holding the unwrap key).
Cross-Platform Support
Full native support for all major operating systems:
All sensitive files (encryption keys, auth tokens, audit logs) are automatically protected with owner-only permissions on every platform.
Enterprise Compliance-Ready Architecture (v1.6.0+)
Built to the standards required for regulated industries. All code-level technical controls are implemented — full compliance also requires organizational process controls (policies, training, vendor management). Formal certification (SOC2 Type II report, GDPR registration, CSSF submission) requires a third-party audit engagement.
Compliance Tools (16 MCP tools)
See COMPLIANCE-SPEC.md for full documentation.
Installation
What Works Out of the Box (No API Key)
All core NotebookLM features work immediately with just browser authentication:
Optional: Add GEMINI_API_KEY for bonus features like deep_research, gemini_query, and upload_document.
For repeatable authenticated validation, see the Authenticated Testing Runbook.
Claude Code
With Authentication + Gemini (Recommended)
Codex
Cursor
Add to ~/.cursor/mcp.json:
Google Antigravity
Add to ~/.gemini/antigravity/mcp_config.json (macOS/Linux) or %USERPROFILE%\.gemini\antigravity\mcp_config.json (Windows):
With optional env vars:
Note: Antigravity does NOT support
${workspaceFolder}variables. Use absolute paths.
OpenCode
Add to ~/.config/opencode/opencode.json (global) or opencode.json in project root:
Note: OpenCode uses
"mcp"(not"mcpServers") and"command"is an array.
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
VS Code + Copilot
Add to your VS Code settings.json:
Other MCP Clients
Most MCP clients use this standard format:
Common config locations:
Quick Start
1. Install (see above)
2. Authenticate
Chrome opens → sign in with Google
3. Add your notebook
Go to notebooklm.google.com → Create notebook → Upload docs → Share link
4. Use it
5. Try Deep Research (NEW!)
Complete Tool Reference
Research Tools
Notebook Management
Source Management (v1.7.0+)
Studio Features (v2026.2.0)
Session & System
Compliance (v1.6.0+)
16 compliance tools for GDPR, SOC2, and CSSF requirements.
What Gets Protected
Configuration
All security features are enabled by default. Override via environment variables:
Multi-Session Mode
Run multiple Claude Code sessions simultaneously with isolated browser profiles:
How it works:
- Each session gets its own Chrome profile (no lock conflicts)
- Isolated profiles clone from the authenticated base profile
- Auth coordination ensures cloning waits for any in-progress authentication
See SECURITY.md for complete configuration reference.
Security Scanning
Run MEDUSA security scanner:
Or integrate in CI/CD:
Comparison
vs Other NotebookLM MCPs
Security & Compliance (Unique to This Fork)
* Compliance-ready: code-level technical controls are implemented. Full compliance also requires organizational process controls and formal certification via third-party audit.
Bottom line: If you need more than basic queries, or care about security, there's only one choice.
Version History
Reporting Vulnerabilities
Found a security issue? Do not open a public GitHub issue.
Email: [email protected]
Credits
- Original MCP Server: Gérôme Dexheimer — notebooklm-mcp
- Security Hardening: Pantheon Security
- Post-Quantum Crypto: @noble/post-quantum
- Gemini API: Google AI
License
MIT — Same as original.
Security hardened with 🔒 by Pantheon Security
Powered by Google Gemini 3 🚀
Full Security Documentation • Compliance Guide • Report Vulnerability
Source: README.md at commit 100000b
Tools
0Version history
1- v2026.5.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts