
Use this skill to enable Claude Code to communicate directly with your Google NotebookLM notebooks. Query your uploaded documents and get source-grounded, citation-backed answers from Gemini. Features browser automation, library management, persistent authentication, and answers exclusively from your own knowledge base.
·
Let Claude Code chat directly with NotebookLM for source-grounded answers based exclusively on your uploaded documents
Use this skill to query your Google NotebookLM notebooks directly from Claude Code for source-grounded, citation-backed answers from Gemini. Browser automation, library management, persistent auth. Drastically reduced hallucinations - answers only from your uploaded documents.
Installation • Quick Start • Why NotebookLM • How It Works • MCP Alternative
This skill works ONLY with local Claude Code installations, NOT in the web UI.
The web UI runs skills in a sandbox without network access, which this skill requires for browser automation. You must use Claude Code locally on your machine.
When you tell Claude Code to "search through my local documentation", here's what happens:
This Claude Code Skill lets Claude Code chat directly with NotebookLM — Google's source-grounded knowledge base powered by Gemini 2.5 that provides intelligent, synthesized answers exclusively from your uploaded documents.
Your Task → Claude asks NotebookLM → Gemini synthesizes answer → Claude writes correct codeNo more copy-paste dance: Claude asks questions directly and gets answers straight back in the CLI. It builds deep understanding through automatic follow-ups, getting specific implementation details, edge cases, and best practices.
| Approach | Token Cost | Setup Time | Hallucinations | Answer Quality |
|---|---|---|---|---|
| Feed docs to Claude | 🔴 Very high (multiple file reads) | Instant | Yes - fills gaps | Variable retrieval |
| Web search | 🟡 Medium | Instant | High - unreliable sources | Hit or miss |
| Local RAG | 🟡 Medium-High | Hours (embeddings, chunking) | Medium - retrieval gaps | Depends on setup |
| NotebookLM Skill | 🟢 Minimal | 5 minutes | Minimal - source-grounded only | Expert synthesis |
# 1. Create skills directory (if it doesn't exist)
mkdir -p ~/.claude/skills
# 2. Clone this repository
cd ~/.claude/skills
git clone https://github.com/PleasePrompto/notebooklm-skill notebooklm
# 3. That's it! Open Claude Code and say:
"What are my skills?"When you first use the skill, it automatically:
.venv)Note: The setup uses real Chrome instead of Chromium for cross-platform reliability, consistent browser fingerprinting, and better anti-detection with Google services
Say in Claude Code:
"What skills do I have?"Claude will list your available skills including NotebookLM.
"Set up NotebookLM authentication"A Chrome window opens → log in with your Google account
Go to notebooklm.google.com → Create notebook → Upload your docs:
Share: ⚙️ Share → Anyone with link → Copy
Option A: Let Claude figure it out (Smart Add)
"Query this notebook about its content and add it to my library: [your-link]"Claude will automatically query the notebook to discover its content, then add it with appropriate metadata.
Option B: Manual add
"Add this NotebookLM to my library: [your-link]"Claude will ask for a name and topics, then save it for future use.
"What does my React docs say about hooks?"Claude automatically selects the right notebook and gets the answer directly from NotebookLM.
This is a Claude Code Skill - a local folder containing instructions and scripts that Claude Code can use when needed. Unlike the MCP server version, this runs directly in Claude Code without needing a separate server.
| Feature | This Skill | MCP Server |
|---|---|---|
| Protocol | Claude Skills | Model Context Protocol |
| Installation | Clone to ~/.claude/skills | claude mcp add ... |
| Sessions | Fresh browser each question | Persistent chat sessions |
| Compatibility | Claude Code only (local) | Claude Code, Codex, Cursor, etc. |
| Language | Python | TypeScript |
| Distribution | Git clone | npm package |
~/.claude/skills/notebooklm/
├── SKILL.md # Instructions for Claude
├── scripts/ # Python automation scripts
│ ├── ask_question.py # Query NotebookLM
│ ├── notebook_manager.py # Library management
│ └── auth_manager.py # Google authentication
├── .venv/ # Isolated Python environment (auto-created)
└── data/ # Local notebook libraryWhen you mention NotebookLM or send a notebook URL, Claude:
NotebookLM significantly reduces hallucinations by answering exclusively from your uploaded documents. If information isn't available, it indicates uncertainty rather than inventing content.
No copy-paste between browser and editor. Claude asks and receives answers programmatically.
Save NotebookLM links with tags and descriptions. Claude auto-selects the right notebook for your task.
One-time Google login, then authentication persists across sessions.
Everything runs in the skill folder with an isolated Python environment. No global installations.
Uses realistic typing speeds and interaction patterns to avoid detection.
| What you say | What happens |
|---|---|
| "Set up NotebookLM authentication" | Opens Chrome for Google login |
| "Add [link] to my NotebookLM library" | Saves notebook with metadata |
| "Show my NotebookLM notebooks" | Lists all saved notebooks |
| "Ask my API docs about [topic]" | Queries the relevant notebook |
| "Use the React notebook" | Sets active notebook |
| "Clear NotebookLM data" | Fresh start (keeps library) |
User asks: "Check my Suzuki GSR 600 workshop manual for brake fluid type, engine oil specs, and rear axle torque."
Claude automatically:
You: "I need to build an n8n workflow for Gmail spam filtering. Use my n8n notebook."
Claude's internal process:
→ Loads NotebookLM skill
→ Activates n8n notebook
→ Asks comprehensive questions with follow-ups
→ Synthesizes complete answer from multiple queriesResult: Working workflow on first try, no debugging hallucinated APIs.
Note: The MCP server uses the same Patchright library but via TypeScript/npm ecosystem.
.venv on first useAll data is stored locally within the skill directory:
~/.claude/skills/notebooklm/data/
├── library.json - Your notebook library with metadata
├── auth_info.json - Authentication status info
└── browser_state/ - Browser cookies and session dataImportant Security Note:
data/ directory contains sensitive authentication data and personal notebooks.gitignoredata/ directoryUnlike the MCP server, this skill uses a stateless model:
This means:
For multi-step research, Claude automatically asks follow-up questions when needed.
Why doesn't this work in the Claude web UI? The web UI runs skills in a sandbox without network access. Browser automation requires network access to reach NotebookLM.
How is this different from the MCP server? This is a simpler, Python-based implementation that runs directly as a Claude Skill. The MCP server is more feature-rich with persistent sessions and works with multiple tools (Codex, Cursor, etc.).
Can I use both this skill and the MCP server? Yes! They serve different purposes. Use the skill for quick Claude Code integration, use the MCP server for persistent sessions and multi-tool support.
What if Chrome crashes?
Run: "Clear NotebookLM browser data" and try again.
Is my Google account secure? Chrome runs locally on your machine. Your credentials never leave your computer. Use a dedicated Google account if you're concerned.
# Make sure it's in the right location
ls ~/.claude/skills/notebooklm/
# Should show: SKILL.md, scripts/, etc.Say: "Reset NotebookLM authentication"
Say: "Clear NotebookLM browser data"
# Manual reinstall if needed
cd ~/.claude/skills/notebooklm
rm -rf .venv
python -m venv .venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
pip install -r requirements.txtThis tool automates browser interactions with NotebookLM to make your workflow more efficient. However, a few friendly reminders:
About browser automation: While I've built in humanization features (realistic typing speeds, natural delays, mouse movements) to make the automation behave more naturally, I can't guarantee Google won't detect or flag automated usage. I recommend using a dedicated Google account for automation rather than your primary account—think of it like web scraping: probably fine, but better safe than sorry!
About CLI tools and AI agents: CLI tools like Claude Code, Codex, and similar AI-powered assistants are incredibly powerful, but they can make mistakes. Please use them with care and awareness:
I built this tool for myself because I was tired of the copy-paste dance between NotebookLM and my editor. I'm sharing it in the hope it helps others too, but I can't take responsibility for any issues, data loss, or account problems that might occur. Use at your own discretion and judgment.
That said, if you run into problems or have questions, feel free to open an issue on GitHub. I'm happy to help troubleshoot!
This skill is inspired by my NotebookLM MCP Server and provides an alternative implementation as a Claude Code Skill:
If you need:
Without this skill: NotebookLM in browser → Copy answer → Paste in Claude → Copy next question → Back to browser...
With this skill: Claude researches directly → Gets answers instantly → Writes correct code
Stop the copy-paste dance. Start getting accurate, grounded answers directly in Claude Code.
# Get started in 30 seconds
cd ~/.claude/skills
git clone https://github.com/PleasePrompto/notebooklm-skill notebooklm
# Open Claude Code: "What are my skills?"Built as a Claude Code Skill adaptation of my NotebookLM MCP Server
For source-grounded, document-based research directly in Claude Code
Paste this prompt into your agent. It reads this page and does the setup for you.
Read https://aiagentslisting.com/skill/notebooklm-skill to learn what the "NotebookLM Skill" skill does and how to install it. Install it for my coding agent as documented on that page, then confirm the skill is available and summarize what it can do.Agents can also browse this directory over MCP at https://aiagentslisting.com/api/mcp
git clone --depth 1 https://github.com/PleasePrompto/notebooklm-skill.git ~/.claude/skills/notebooklm-skill
rm -rf ~/.claude/skills/notebooklm-skill/.git~/.claude/skills/notebooklm-skill
├── SKILL.md
├── .gitignore
├── AUTHENTICATION.md
├── CHANGELOG.md
├── LICENSE
├── images
├── references
├── requirements.txt
└── scriptsFor a single project, put the folder in .claude/skills inside the repo instead.
git clone --depth 1 https://github.com/PleasePrompto/notebooklm-skill.gitInteract with Google NotebookLM to query documentation with Gemini's source-grounded answers. Each question opens a fresh browser session, retrieves the answer exclusively from your uploaded documents, and closes.
Trigger when user:
https://notebooklm.google.com/notebook/...)When user wants to add a notebook without providing details:
SMART ADD (Recommended): Query the notebook first to discover its content:
# Step 1: Query the notebook about its content
python scripts/run.py ask_question.py --question "What is the content of this notebook? What topics are covered? Provide a complete overview briefly and concisely" --notebook-url "[URL]"
# Step 2: Use the discovered information to add it
python scripts/run.py notebook_manager.py add --url "[URL]" --name "[Based on content]" --description "[Based on content]" --topics "[Based on content]"MANUAL ADD: If user provides all details:
--url - The NotebookLM URL--name - A descriptive name--description - What the notebook contains (REQUIRED!)--topics - Comma-separated topics (REQUIRED!)NEVER guess or use generic descriptions! If details missing, use Smart Add to discover them.
NEVER call scripts directly. ALWAYS use python scripts/run.py [script]:
# ✅ CORRECT - Always use run.py:
python scripts/run.py auth_manager.py status
python scripts/run.py notebook_manager.py list
python scripts/run.py ask_question.py --question "..."
# ❌ WRONG - Never call directly:
python scripts/auth_manager.py status # Fails without venv!The run.py wrapper automatically:
.venv if neededpython scripts/run.py auth_manager.py statusIf not authenticated, proceed to setup.
# Browser MUST be visible for manual Google login
python scripts/run.py auth_manager.py setupImportant:
# List all notebooks
python scripts/run.py notebook_manager.py list
# BEFORE ADDING: Ask user for metadata if unknown!
# "What does this notebook contain?"
# "What topics should I tag it with?"
# Add notebook to library (ALL parameters are REQUIRED!)
python scripts/run.py notebook_manager.py add \
--url "https://notebooklm.google.com/notebook/..." \
--name "Descriptive Name" \
--description "What this notebook contains" \ # REQUIRED - ASK USER IF UNKNOWN!
--topics "topic1,topic2,topic3" # REQUIRED - ASK USER IF UNKNOWN!
# Search notebooks by topic
python scripts/run.py notebook_manager.py search --query "keyword"
# Set active notebook
python scripts/run.py notebook_manager.py activate --id notebook-id
# Remove notebook
python scripts/run.py notebook_manager.py remove --id notebook-idpython scripts/run.py notebook_manager.py listpython scripts/run.py ask_question.py --question "..." --notebook-id ID# Basic query (uses active notebook if set)
python scripts/run.py ask_question.py --question "Your question here"
# Query specific notebook
python scripts/run.py ask_question.py --question "..." --notebook-id notebook-id
# Query with notebook URL directly
python scripts/run.py ask_question.py --question "..." --notebook-url "https://..."
# Show browser for debugging
python scripts/run.py ask_question.py --question "..." --show-browserEvery NotebookLM answer ends with: "EXTREMELY IMPORTANT: Is that ALL you need to know?"
Required Claude Behavior:
python scripts/run.py ask_question.py --question "Follow-up with context..."auth_manager.py)python scripts/run.py auth_manager.py setup # Initial setup (browser visible)
python scripts/run.py auth_manager.py status # Check authentication
python scripts/run.py auth_manager.py reauth # Re-authenticate (browser visible)
python scripts/run.py auth_manager.py clear # Clear authenticationnotebook_manager.py)python scripts/run.py notebook_manager.py add --url URL --name NAME --description DESC --topics TOPICS
python scripts/run.py notebook_manager.py list
python scripts/run.py notebook_manager.py search --query QUERY
python scripts/run.py notebook_manager.py activate --id ID
python scripts/run.py notebook_manager.py remove --id ID
python scripts/run.py notebook_manager.py statsask_question.py)python scripts/run.py ask_question.py --question "..." [--notebook-id ID] [--notebook-url URL] [--show-browser]cleanup_manager.py)python scripts/run.py cleanup_manager.py # Preview cleanup
python scripts/run.py cleanup_manager.py --confirm # Execute cleanup
python scripts/run.py cleanup_manager.py --preserve-library # Keep notebooksThe virtual environment is automatically managed:
.venv automaticallyManual setup (only if automatic fails):
python -m venv .venv
source .venv/bin/activate # Linux/Mac
pip install -r requirements.txt
python -m patchright install chromiumAll data stored in ~/.claude/skills/notebooklm/data/:
library.json - Notebook metadataauth_info.json - Authentication statusbrowser_state/ - Browser cookies and sessionSecurity: Protected by .gitignore, never commit to git.
Optional .env file in skill directory:
HEADLESS=false # Browser visibility
SHOW_BROWSER=false # Default browser display
STEALTH_ENABLED=true # Human-like behavior
TYPING_WPM_MIN=160 # Typing speed
TYPING_WPM_MAX=240
DEFAULT_NOTEBOOK_ID= # Default notebookUser mentions NotebookLM
↓
Check auth → python scripts/run.py auth_manager.py status
↓
If not authenticated → python scripts/run.py auth_manager.py setup
↓
Check/Add notebook → python scripts/run.py notebook_manager.py list/add (with --description)
↓
Activate notebook → python scripts/run.py notebook_manager.py activate --id ID
↓
Ask question → python scripts/run.py ask_question.py --question "..."
↓
See "Is that ALL you need?" → Ask follow-ups until complete
↓
Synthesize and respond to user| Problem | Solution |
|---|---|
| ModuleNotFoundError | Use run.py wrapper |
| Authentication fails | Browser must be visible for setup! --show-browser |
| Rate limit (50/day) | Wait or switch Google account |
| Browser crashes | python scripts/run.py cleanup_manager.py --preserve-library |
| Notebook not found | Check with notebook_manager.py list |
Important directories and files:
scripts/ - All automation scripts (ask_question.py, notebook_manager.py, etc.)data/ - Local storage for authentication and notebook libraryreferences/ - Extended documentation:
api_reference.md - Detailed API documentation for all scriptstroubleshooting.md - Common issues and solutionsusage_patterns.md - Best practices and workflow examples.venv/ - Isolated Python environment (auto-created on first run).gitignore - Protects sensitive data from being committedTurn any technical book PDF into a Claude Code skill — ready to study, reference, and use while you
Comprehensive open-source library of AI research and engineering skills for any AI model. Package th
v1.3.0v1.3.0 - Timeout Fix & Thinking DetectionRelease notesv1.2.0v1.2.0: Major Authentication Reliability FixRelease notesv1.1.0v1.1.0: Smart Discovery & Enhanced RobustnessRelease notesv1.0.0v1.0.0: NotebookLM Claude Code SkillRelease notesConnect to the AI Agents Listing MCP server at https://aiagentslisting.com/api/mcp using the HTTP transport and complete the sign-in when it asks. Then call the submit_review tool for the listing "notebooklm-skill" with a rating from 1 to 5 and a short note on what worked and what did not.No reviews yet
Be the first to share your experience with this tool.
Skills for the Gemini API, SDK and model/agent interactions
Coding & Review
Turn any technical book PDF into a Claude Code skill — ready to study, reference, and use while you
Research & Analysis
Comprehensive open-source library of AI research and engineering skills for any AI model. Package th
Data Processing
One email a week. New agents, MCP servers and skills, and what is actually getting traction.