NotebookLM MCP Server

NotebookLM MCP Server

Enables AI assistants to interact with Google NotebookLM to manage notebooks, sources, and conversations via the Model Context Protocol. It allows for querying sources using NotebookLM's AI and automatically saving responses as notes.

Category
Visit Server

README

NotebookLM MCP Server

This repository provides a Model Context Protocol (MCP) server for NotebookLM. It allows AI assistants (like Claude, Antigravity, or others supporting MCP) to interact with your NotebookLM notebooks, sources, and conversations.

Features

  • List Notebooks: View all your NotebookLM notebooks.
  • Create Notebooks: Programmatically create new notebooks.
  • Manage Sources: Add websites, Google Drive documents, or pasted text to your notebooks.
  • Query Notebooks: Ask questions about your sources using the NotebookLM AI.
  • Conversation History: Full support for follow-up questions and conversation context.
  • Auto-Save Notes: Automatically save AI responses as notes in your notebooks.

Prerequisites

  • Python 3.10 or higher.
  • A Google Account with access to NotebookLM.
  • An MCP-compatible client (e.g., Cursor, Claude Desktop).

Quick Start

1. Clone the repository

git clone https://github.com/YOUR_USERNAME/MCPNotebookLM.git
cd MCPNotebookLM

2. Set up the environment

Install dependencies:

pip install -r requirements.txt

Authenticate with NotebookLM:

notebooklm-mcp-auth

Follow the prompts to authorize the application. This will create a local auth.json file in ~/.notebooklm-mcp/.

3. Configure your MCP Client

For Cursor:

  1. Copy mcp_config.json.example to your Cursor config directory:

    • Linux: ~/.config/cursor/mcp.json
    • macOS: ~/Library/Application Support/Cursor/mcp.json
    • Windows: %APPDATA%\Cursor\mcp.json
  2. Edit the command field with the absolute path to notebooklm-mcp:

    {
      "mcpServers": {
        "notebooklm": {
          "command": "/home/YOUR_USER/.local/bin/notebooklm-mcp",
          "args": [],
          "env": {}
        }
      }
    }
    
  3. Find the binary path:

    which notebooklm-mcp
    # or
    ls ~/.local/bin/notebooklm-mcp
    
  4. Restart Cursor to apply the configuration.

Usage Examples

Basic Usage

Test your setup by listing notebooks:

python3 query_notebook_mcp.py

Or query a notebook directly:

python3 query_notebook_mcp.py <notebook_id> "Your question"

Auto-Save Notes Feature

The repository includes an automatic note-saving feature that saves all AI responses as notes in your notebooks. This is especially useful when working through MCP API, as responses aren't automatically saved in the web interface history.

Quick start:

from auto_save_notes import query_and_save

answer, source_id = query_and_save(
    notebook_id="your-notebook-id",
    question="What is Python?",
    auto_save=True
)

See docs/AUTO_SAVE_NOTES.md for detailed documentation (if available locally).

Security Note

[!WARNING] Your authentication tokens are stored locally in ~/.notebooklm-mcp/auth.json. Never share this file or commit it to a public repository. The .gitignore in this repo is already configured to ignore this folder.

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured