nblm-mcp

nblm-mcp

Enables AI agents to interact with Google NotebookLM, including listing and managing notebooks and sources, asking grounded questions with citations, and generating audio overviews, briefings, quizzes, and mind maps.

Category
访问服务器

README

nblm-mcp

An MCP server that gives an AI agent access to Google NotebookLM (rebranded Gemini Notebook in July 2026): list and create notebooks, manage their sources, ask questions that are answered from those sources with citations, and generate Studio artifacts like audio overviews, briefing docs, quizzes and mind maps.

The point is grounding. NotebookLM answers only from the material you gave it, so an agent that can call ask gets cited answers out of your own documents instead of guessing — and it costs no tokens of your own context, because Gemini does the reading server-side.

⚠️ Unofficial — read this first

Google has no public consumer API for NotebookLM. This server drives the same private web endpoints the notebooklm.google.com UI calls, authenticated with your own browser session cookies, via the MIT-licensed notebooklm-py library.

  • Not affiliated with or endorsed by Google.
  • The internal API can change without notice and break this server.
  • Your Google account's rate limits and daily Studio quotas apply.
  • Use an account you are comfortable automating. Best for personal projects, research, and prototypes.

Google does document an official API for Gemini Notebook Enterprise. If you have a Workspace/Cloud org with that feature, prefer it over this.

Install

Not on PyPI yet — install straight from this repository. uvx builds and runs it on demand, so there is nothing to keep updated by hand:

uvx --from git+https://github.com/Diego-Dev-Moros/nblm-mcp nblm-mcp

Log in once

Login needs the auth extra (Playwright) and a human at the keyboard:

uvx --from "nblm-mcp[auth] @ git+https://github.com/Diego-Dev-Moros/nblm-mcp" nblm-mcp-login

A browser window opens; sign in to NotebookLM as you normally would. The session cookies are stored under ~/.notebooklm/ (the same profile layout notebooklm-py uses, so an existing notebooklm login also works). The MCP server never logs in on its own — it needs an interactive browser, which an MCP host cannot provide.

If Playwright has no browser yet, run playwright install chromium first.

Cookies expire. When they do, tools start returning an auth error; run the login command again.

Connect it to a client

Claude Code-s user makes it available in every project:

claude mcp add notebooklm -s user -- \
  uvx --from git+https://github.com/Diego-Dev-Moros/nblm-mcp nblm-mcp

Claude Desktop — add this to claude_desktop_config.json and restart the app (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\, Linux: ~/.config/Claude/):

{
  "mcpServers": {
    "notebooklm": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/Diego-Dev-Moros/nblm-mcp", "nblm-mcp"]
    }
  }
}

Claude Desktop launches from the GUI, which does not inherit your shell's PATH. If the server fails to start there, replace "uvx" with its absolute path (which uvx, typically ~/.local/bin/uvx).

Either way, confirm it works by asking the agent to call auth_status.

Tools

Tool What it does
auth_status Verifies the stored session with a real request; tells you if you need to log in again.
list_notebooks All notebooks the account can reach, with ids and source counts.
get_notebook One notebook plus its sources; optionally NotebookLM's own summary.
create_notebook Creates an empty notebook.
delete_notebook Deletes a notebook and everything in it. Requires confirm=true.
list_sources Sources in a notebook and their processing status.
add_source Adds one source from a URL (web, YouTube, Drive), pasted text, or a local file.
delete_source Removes a source. Requires confirm=true.
ask Asks the notebook a question; returns the answer plus citations resolved to source titles.
chat_history Past question/answer turns for the notebook's conversation.
list_artifacts Generated Studio artifacts and their status — also how you poll a running generation.
generate_artifact Generates audio, video, report, study_guide, quiz, flashcards, infographic, slide_deck, or mind_map.
download_artifact Downloads a completed artifact to a file on the machine running the server.

Notes on behavior

  • Destructive tools are gated. delete_notebook and delete_source refuse to run without confirm=true, so a stray tool call can't destroy a notebook.
  • Generation is slow and quota-bound. generate_artifact returns as soon as the job is queued (wait=false, the default) and tells the agent to poll list_artifacts. Pass wait=true to block instead; it waits up to NBLM_GENERATION_TIMEOUT seconds.
  • File paths are server-side. add_source(file_path=...) and download_artifact read and write on the host running the MCP server, which is not necessarily where the user's chat client runs.

Configuration

All optional — see .env.example. A .env in the working directory is loaded if present.

Variable Default Purpose
NOTEBOOKLM_PROFILE active profile Which stored login to use, for multiple Google accounts.
NOTEBOOKLM_STORAGE_PATH resolved from profile Explicit path to a storage_state.json.
NBLM_DOWNLOAD_DIR ~/.nblm-mcp/downloads Where download_artifact writes by default.
NBLM_GENERATION_TIMEOUT 600 Seconds to wait for an artifact when wait=true.
NBLM_SOURCE_TIMEOUT 180 Seconds to wait for a new source to finish processing.

Development

uv venv && uv pip install -e ".[dev]"
uv run pytest
uv run ruff check src tests

The test suite runs the tools against an in-memory fake client — it never touches Google, so it is safe and fast to run anywhere.

Prior art

notebooklm-py does the hard part — reverse-engineering and maintaining the private batchexecute protocol — and ships its own, larger MCP server. This project is a smaller, opinionated tool surface on top of that library: fewer tools, confirmation gates on destructive operations, and citation-resolved answers.

License

MIT — see LICENSE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选