NotebookLM MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add --transport http notebooklm-mcp https://your-project.vercel.app/api/mcp
Required:BROWSERLESS_TOKENNOTEBOOKLM_STORAGE_STATE+ 1 optional
README.md

Programmatic access to Google NotebookLM via browser automation

NotebookLM MCP Server

A remote Model Context Protocol (MCP) server that gives AI agents (Claude, Cursor, Copilot, etc.) full programmatic access to Google NotebookLM via browser automation.

Hosted on Vercel Β· Browser powered by Browserless.io


πŸ—ΊοΈ Architecture

AI Agent (Claude / Cursor)
        β”‚  MCP (Streamable HTTP)
        β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  Vercel Function    β”‚  ← Next.js App Router
  β”‚  (TypeScript / MCP) β”‚     mcp-handler adapter
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
            β”‚  WebSocket (CDP)
            β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  Browserless.io     β”‚  ← Remote headless Chromium
  β”‚  (free tier)        β”‚     stealth mode enabled
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
            β”‚  Playwright
            β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  Google NotebookLM  β”‚  ← Authenticated via stored cookies
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

⚑ Quick Start

Prerequisites

  • Node.js 18+
  • A free Browserless.io account β†’ get your API token
  • A Google account with access to NotebookLM
  • A Vercel account

Step 1 β€” Clone & install

git clone <your-repo-url>
cd notebooklm-mcp
npm install

Step 2 β€” Extract Google cookies (one-time)

This step opens a browser window for you to sign in. Runs locally only.

# Install playwright for local cookie extraction
npm install playwright --save-dev
npx playwright install chromium

# Run the extractor
npm run get-cookies
  1. A Chrome browser will open β†’ sign in to your Google account
  2. Navigate to NotebookLM and verify you can see your notebooks
  3. Switch back to the terminal and press Enter
  4. The script prints a NOTEBOOKLM_STORAGE_STATE=... value β€” copy it

Step 3 β€” Configure environment variables

Copy .env.example to .env.local and fill in your values:

cp .env.example .env.local
# From https://browserless.io β†’ your dashboard
BROWSERLESS_TOKEN=your_token_here

# From the get-cookies script output
NOTEBOOKLM_STORAGE_STATE=eyJjb29...

# Optional: closest region (sfo | lon | sea | fra)
BROWSERLESS_REGION=sfo

Step 4 β€” Test locally

npm run dev
# MCP endpoint: http://localhost:3000/api/mcp

Step 5 β€” Deploy to Vercel

# Install Vercel CLI
npm i -g vercel

# Deploy (follow the prompts)
vercel

# Add your environment variables (or use the Vercel dashboard)
vercel env add BROWSERLESS_TOKEN
vercel env add NOTEBOOKLM_STORAGE_STATE
vercel env add BROWSERLESS_REGION

# Deploy to production
vercel --prod

Your MCP server will be live at:

https://your-project.vercel.app/api/mcp

Step 6 β€” Connect your AI agent

Claude Desktop (~/Library/Application\ Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "notebooklm": {
      "url": "https://your-project.vercel.app/api/mcp"
    }
  }
}

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "notebooklm": {
      "url": "https://your-project.vercel.app/api/mcp"
    }
  }
}

πŸ› οΈ Available MCP Tools

Notebooks

Tool Description
notebooklm_list_notebooks List all notebooks in your account
notebooklm_create_notebook Create a new notebook
notebooklm_get_notebook Get details of a notebook by ID
notebooklm_delete_notebook Delete a notebook permanently

Sources

Tool Description
notebooklm_list_sources List all sources in a notebook
notebooklm_add_source_url Add a website URL as a source
notebooklm_add_source_youtube Add a YouTube video as a source
notebooklm_add_source_text Add plain text as a source
notebooklm_remove_source Remove a source from a notebook

Chat / Query

Tool Description
notebooklm_ask Ask a question (single turn)
notebooklm_conversation Multi-turn conversation (up to 10 questions)

Content Generation

Tool Description
notebooklm_generate_audio Generate an Audio Overview (podcast)
notebooklm_generate_quiz Generate a quiz
notebooklm_generate_flashcards Generate flashcards
notebooklm_generate_mindmap Generate a mind map
notebooklm_generate_slideshow Generate a slide deck
notebooklm_generate_study_guide Generate a study guide
notebooklm_generate_briefing Generate a briefing document

Utility

Tool Description
notebooklm_health_check Verify Browserless.io connection and session validity

πŸ”‘ Session Management

Google sessions typically last 30–90 days. When your session expires:

  1. Run npm run get-cookies again on your local machine
  2. Copy the new NOTEBOOKLM_STORAGE_STATE value
  3. Update it in Vercel: vercel env rm NOTEBOOKLM_STORAGE_STATE && vercel env add NOTEBOOKLM_STORAGE_STATE
  4. Re-deploy: vercel --prod

The `notebooklm_

Tools (19)

notebooklm_list_notebooksList all notebooks in your account
notebooklm_create_notebookCreate a new notebook
notebooklm_get_notebookGet details of a notebook by ID
notebooklm_delete_notebookDelete a notebook permanently
notebooklm_list_sourcesList all sources in a notebook
notebooklm_add_source_urlAdd a website URL as a source
notebooklm_add_source_youtubeAdd a YouTube video as a source
notebooklm_add_source_textAdd plain text as a source
notebooklm_remove_sourceRemove a source from a notebook
notebooklm_askAsk a question (single turn)
notebooklm_conversationMulti-turn conversation (up to 10 questions)
notebooklm_generate_audioGenerate an Audio Overview (podcast)
notebooklm_generate_quizGenerate a quiz
notebooklm_generate_flashcardsGenerate flashcards
notebooklm_generate_mindmapGenerate a mind map
notebooklm_generate_slideshowGenerate a slide deck
notebooklm_generate_study_guideGenerate a study guide
notebooklm_generate_briefingGenerate a briefing document
notebooklm_health_checkVerify Browserless.io connection and session validity

Environment Variables

BROWSERLESS_TOKENrequiredAPI token from Browserless.io dashboard
NOTEBOOKLM_STORAGE_STATErequiredGoogle session cookies extracted via local script
BROWSERLESS_REGIONOptional region for Browserless (sfo | lon | sea | fra)

Configuration

claude_desktop_config.json
{"mcpServers": {"notebooklm": {"url": "https://your-project.vercel.app/api/mcp"}}}

Try it

β†’List all my current notebooks in NotebookLM.
β†’Add this YouTube video URL to my 'Research' notebook.
β†’Generate a study guide based on the sources in my 'Project Alpha' notebook.
β†’Ask NotebookLM to summarize the key findings from my uploaded documents.
β†’Create a new notebook named 'AI Trends' and add this website as a source.

Frequently Asked Questions

What are the key features of NotebookLM MCP Server?

Programmatic access to Google NotebookLM via browser automation. Supports managing notebooks, sources, and chat interactions. Automated generation of audio overviews, quizzes, and study guides. Remote deployment via Vercel with Browserless.io integration.

What can I use NotebookLM MCP Server for?

Automating the ingestion of research materials into NotebookLM. Generating study materials like quizzes and flashcards from existing sources. Integrating NotebookLM chat capabilities directly into AI agent workflows. Programmatically managing large collections of notebooks and sources.

How do I install NotebookLM MCP Server?

Install NotebookLM MCP Server by running: git clone <your-repo-url> && cd notebooklm-mcp && npm install

What MCP clients work with NotebookLM MCP Server?

NotebookLM MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep NotebookLM MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare