AN

alfredang/notebooklm-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

60 stars 36 forks 质量 55 趋势 14

alfredang/notebooklm-mcp 是从 https://github.com/alfredang/notebooklm-mcp. 导入的 MCP 服务器候选服务器。

概览

alfredang/notebooklm-mcp 是从 https://github.com/alfredang/notebooklm-mcp. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

一个强大的MCP(模型上下文协议)服务器,将Google NotebookLM引入Claude Desktop和Claude代码中。

特色

  • 研究:列出并制作笔记本
  • 内容:添加网址、文本和文件作为来源
  • 生成:创建播客、视频、幻灯片、思维导图、信息图表、测验、抽认卡和报告
  • 自然互动:直接利用Claude的推理与你的消息来源聊天

先修条件

1.Install uv(Python Package Manager)

macOS / Linux

默认安装地点:~/.local/bin/uv

窗户

默认安装位置:%USERPROFILE%\.local\bin\uv.exe

确认安装:

2.克隆和安装依赖

这将:

  • 创建一个.venv虚拟环境
  • 安装 notebooklm-py(NotebookLM API 的 Python 客户端)
  • 安装 fastmcp(MCP 服务器框架)

注: 这些依赖关系对 Claude Desktop 和 Claude 代码都是必需的。


步骤1:使用 NotebookLM 认证

NotebookLM使用基于浏览器的认证。您必须登录一次才能保存会话Cookie。

发生了什么:

  1. 浏览器窗口会自动打开
  2. 登录你的谷歌账户

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

NotebookLM MCP for Claude (Desktop & CLI)

A powerful MCP (Model Context Protocol) server that brings Google NotebookLM into Claude Desktop and Claude Code.

Features

  • Research: List and create notebooks
  • Content: Add URLs, text, and files as sources
  • Generation: Create Podcasts, Videos, Slides, Mind Maps, Infographics, Quizzes, Flashcards, and Reports
  • Natural Interaction: Chat directly with your sources using Claude’s reasoning

Prerequisites

1. Install uv (Python Package Manager)

Verify installation:

uv --version

2. Clone and Install Dependencies

# Clone the repository
git clone https://github.com/alfredang/notebooklm-mcp.git

# Navigate to the project folder
cd notebooklm-mcp

# Install dependencies (includes notebooklm-py and fastmcp)
uv sync

This will:

  • Create a .venv virtual environment
  • Install notebooklm-py (Python client for NotebookLM API)
  • Install fastmcp (MCP server framework)

Note: These dependencies are required for both Claude Desktop and Claude Code.


Step 1: Authenticate with NotebookLM

NotebookLM uses browser-based authentication. You must login once to save your session cookies.

cd notebooklm-mcp
uv run notebooklm login

What happens:

  1. A browser window will open automatically
  2. Log in to your Google account
  3. Navigate to NotebookLM if not redirected automatically
  4. Wait until the terminal displays “Success”
  5. Close the browser

Verify authentication:

uv run python -c "
from notebooklm import NotebookLMClient
import asyncio
async def test():
    client = await NotebookLMClient.from_storage()
    async with client:
        notebooks = await client.notebooks.list()
        print(f'Authenticated! Found {len(notebooks)} notebooks.')
asyncio.run(test())
"

You should see: Authenticated! Found X notebooks.


Step 2: Test the MCP Server

Before configuring Claude, verify the server starts correctly:

cd notebooklm-mcp
uv run python server.py

Expected output:

Starting NotebookLM MCP server...
NotebookLM client initialized successfully
Starting MCP server 'NotebookLM' with transport 'stdio'

Press Ctrl+C (or Cmd+C on Mac) to stop the server after confirming it works.


Step 3: Setup for Claude Desktop

3.1 Find Your Paths

You’ll need two paths for the configuration:

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "notebooklm": { "command": "<UV_PATH>", "args": [ "--directory", "<PROJECT_PATH>", "run", "python", "server.py" ] } } }