
Notebooklm Mcp Secure
io.github.Pantheon-Security由 GitHub 帳號 Pantheon-Security 發布v2026.5.0更新於 Oct 24, 2026
Security-hardened NotebookLM MCP with post-quantum encryption
概覽
讓助理查詢、建立與管理 NotebookLM 筆記本,產生音訊、影片與資料表概覽,並可選擇執行 Gemini 研究與文件查詢。
- 可以做什麼
- 這是一個經過安全強化的 NotebookLM MCP 伺服器,提供 48 個工具。核心工具可依據來源查詢筆記本、建立與批次建立筆記本、新增或移除來源(包括批次上傳資料夾)、同步媒體庫,並產生音訊概覽、影片概覽與結構化資料表。選用的 Gemini API 工具增加深度研究、有依據的查詢,以及文件上傳、查詢與刪除。它也提供工作階段、配額、查詢歷史與 webhook 管理。
- 適用情境
- 當助理需要以程式化方式操作 NotebookLM 筆記本而非手動點擊時使用:依據自有來源提問、建立或批次建立筆記本、產生音訊或影片摘要、將表格擷取為 JSON,或在有 API 金鑰時執行 Gemini 深度研究與文件分析。
- 執行需求
- 以本機 stdio 程序執行,透過 npm 套件 @pan-sec/notebooklm-mcp 安裝(需要 Node.js)。核心 NotebookLM 功能需要透過 setup_auth 進行瀏覽器驗證,而非 API 金鑰。選用的 Gemini 功能需要 GEMINI_API_KEY 環境變數,以及 GEMINI_DEFAULT_MODEL、GEMINI_TIMEOUT_MS 等選用設定。僅限桌面端;需要網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Notebooklm Mcp Secure,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
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
來源:README.md,提交 100000b
工具
0版本歷史
1- v2026.5.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分