Skip to main content
Glama

nblm-mcp

AIエージェントにGoogle NotebookLM(2026年7月にGemini Notebookへ改名)へのアクセスを提供するMCPサーバーです。ノートブックの一覧表示・作成、ソースの管理、それらのソースからの引用付き回答を得る質問、オーディオ概要・ブリーフィングドキュメント・クイズ・マインドマップなどのStudioアーティファクト生成を行います。

ポイントは「根拠に基づくこと」です。NotebookLMは与えた素材だけから回答するため、askを呼び出せるエージェントは、推測ではなく自分のドキュメントから引用付きの回答を得られます。しかも、Geminiがサーバー側で読むため、自分のコンテキストのトークンを消費しません。

⚠️ 非公式 — 最初にお読みください

GoogleにはNotebookLMの公開コンシューマーAPIはありません。 このサーバーは、notebooklm.google.comのUIが呼び出すのと同じ非公開Webエンドポイントを、MITライセンスのnotebooklm-pyライブラリを介して、自分のブラウザセッションCookieで認証して操作します。

  • Googleとは提携・承認されていません。

  • 内部APIは予告なく変更され、このサーバーが壊れる可能性があります。

  • Googleアカウントのレート制限と1日のStudioクォータが適用されます。

  • 自動化しても問題ないアカウントを使用してください。個人プロジェクト、研究、プロトタイプに最適です。

GoogleはGemini Notebook Enterprise向けの公式APIを文書化しています。その機能を持つWorkspace/Cloud組織をお持ちの場合は、こちらを優先してください。

インストール

まだPyPIには公開されていません — このリポジトリから直接インストールします。uvxが必要に応じてビルドして実行するため、手動で更新するものはありません:

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

Related MCP server: notebooklm-mcp-server

一度ログインする

ログインにはauthエクストラ(Playwright)とキーボードの前の人間が必要です:

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

ブラウザウィンドウが開くので、通常どおりNotebookLMにサインインします。セッションCookieは~/.notebooklm/に保存されます(notebooklm-pyが使用するのと同じプロファイル構成なので、既存のnotebooklm loginも機能します)。MCPサーバーは単独ではログインしません — インタラクティブなブラウザが必要であり、MCPホストはそれを提供できないためです。

Playwrightにブラウザがまだない場合は、最初にplaywright install chromiumを実行してください。

Cookieは期限切れになります。期限が切れると、ツールは認証エラーを返し始めるので、ログインコマンドを再度実行してください。

クライアントに接続する

Claude Code — -s userを指定すると、すべてのプロジェクトで利用可能になります:

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

Claude Desktop — これをclaude_desktop_config.jsonに追加してアプリを再起動します(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はGUIから起動するため、シェルのPATHを継承しません。そこでサーバーが起動しない場合は、"uvx"を絶対パス(which uvx、通常は~/.local/bin/uvx)に置き換えてください。

どちらの場合も、エージェントにauth_statusを呼び出させることで動作を確認できます。

ツール

ツール

機能

auth_status

保存されたセッションを実際のリクエストで検証し、再ログインが必要かどうかを通知します。

list_notebooks

アカウントがアクセスできるすべてのノートブックを、IDとソース数とともに表示します。

get_notebook

1つのノートブックとそのソースを取得します。オプションでNotebookLM自身の要約も取得します。

create_notebook

空のノートブックを作成します。

delete_notebook

ノートブックとその中のすべてを削除します。confirm=trueが必要です。

list_sources

ノートブック内のソースとその処理ステータスを表示します。

add_source

URL(Web、YouTube、Drive)、貼り付けたテキスト、またはローカルファイルから1つのソースを追加します。

delete_source

ソースを削除します。confirm=trueが必要です。

ask

ノートブックに質問し、回答とソースタイトルに解決された引用を返します。

chat_history

ノートブックの会話における過去の質問/回答ターンを表示します。

list_artifacts

生成されたStudioアーティファクトとそのステータス — 実行中の生成をポーリングする方法でもあります。

generate_artifact

オーディオ、ビデオ、レポート、study_guide、quiz、flashcards、infographic、slide_deck、またはmind_mapを生成します。

download_artifact

完了したアーティファクトをサーバーが実行されているマシンのファイルにダウンロードします。

動作に関する注意

  • 破壊的なツールはゲート付きです。 delete_notebookとdelete_sourceはconfirm=trueなしでは実行を拒否するため、誤ったツール呼び出しでノートブックを破壊することはありません。

  • 生成は遅く、クォータに制限されます。 generate_artifactはジョブがキューに入るとすぐに返り(wait=false、デフォルト)、エージェントにlist_artifactsをポーリングするよう指示します。代わりにブロックするにはwait=trueを渡します。NBLM_GENERATION_TIMEOUT秒まで待機します。

  • ファイルパスはサーバー側です。 add_source(file_path=...)とdownload_artifactは、MCPサーバーが実行されているホスト上で読み書きします。これはユーザーのチャットクライアントが実行されている場所と同じとは限りません。

設定

すべてオプションです — .env.exampleを参照してください。作業ディレクトリに.envがあれば読み込まれます。

変数

デフォルト

目的

NOTEBOOKLM_PROFILE

アクティブプロファイル

複数のGoogleアカウント用に、使用する保存済みログインを指定します。

NOTEBOOKLM_STORAGE_PATH

プロファイルから解決

storage_state.jsonへの明示的なパス。

NBLM_DOWNLOAD_DIR

~/.nblm-mcp/downloads

download_artifactがデフォルトで書き込む場所。

NBLM_GENERATION_TIMEOUT

600

wait=trueの場合にアーティファクトを待つ秒数。

NBLM_SOURCE_TIMEOUT

180

新しいソースの処理完了を待つ秒数。

開発

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

テストスイートはインメモリのフェイククライアントに対してツールを実行します — Googleには一切アクセスしないため、どこでも安全かつ高速に実行できます。

先行技術

notebooklm-pyが難しい部分 — 非公開のbatchexecuteプロトコルのリバースエンジニアリングと保守 — を担当し、独自のより大きなMCPサーバーを提供しています。このプロジェクトは、そのライブラリの上に構築された、より小さく、意見が反映されたツールサーフェスです。ツールが少なく、破壊的操作には確認ゲートがあり、引用が解決された回答を提供します。

ライセンス

MIT — LICENSEを参照してください。

Available Tools

13 tools
add_sourceA

Add one source to a notebook, from a URL, pasted text, or a local file.

Pass exactly one of url, text, or file_path.

Inputs: notebook_id (required), url, text, wait, +2 more. Returns: object

askA

Ask a notebook a question and get an answer grounded in its sources.

The answer comes from Gemini reading the notebook's own sources, with citations back to them — use this instead of summarizing the sources yourself when a notebook already holds the material.

Inputs: question (required), notebook_id (required), source_ids, conversation_id. Returns: object

auth_statusA

Check whether this server has a working NotebookLM session.

Call this first when any other tool reports an auth problem. It performs a real (cheap) request, so it distinguishes "no cookies stored" from "cookies stored but expired".

Inputs: no named parameters. Returns: object

chat_historyB

Read past question/answer turns for a notebook's current conversation.

Inputs: notebook_id (required), limit. Returns: object

create_notebookA

Create an empty notebook.

A notebook with no sources cannot answer questions — follow up with add_source before calling ask.

Inputs: title (required). Returns: object

delete_notebookA

Permanently delete a notebook and everything in it.

This cannot be undone and deletes the notebook's sources, chats, and generated artifacts along with it.

Inputs: notebook_id (required), confirm. Returns: object

delete_sourceC

Remove a source from a notebook.

Inputs: source_id (required), notebook_id (required), confirm. Returns: object

download_artifactB

Download a completed Studio artifact to a file on the server host.

Inputs: artifact_id (required), notebook_id (required), output_path. Returns: object

generate_artifactA

Generate a Studio artifact (podcast, report, quiz, mind map...).

Generation runs server-side and is slow — an audio overview commonly takes several minutes — and it consumes the account's daily Studio quota. Prefer the default wait=false and poll with list_artifacts.

Inputs: kind (required), notebook_id (required), wait, language, +7 more. Returns: object

get_notebookC

Get one notebook with its sources.

Inputs: notebook_id (required), include_summary. Returns: object

list_artifactsA

List generated Studio artifacts in a notebook.

Use this to poll a generation started with wait=false: the artifact reports status: completed when it is ready to download.

Inputs: notebook_id (required), kind. Returns: object

list_notebooksA

List the notebooks reachable by the signed-in Google account.

Returns id, title, and source count for each. Use the ids with every other tool — NotebookLM has no lookup by title.

Inputs: no named parameters. Returns: object

list_sourcesB

List the sources in a notebook, with their processing status.

A source that is not ready is still being ingested and will not ground answers yet.

Inputs: notebook_id (required). Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 13 tools

    Disambiguation4/5

    Most tools target a distinct resource+action (notebook CRUD, source add/delete/list, artifact generate/list/download, ask, auth). Minor overlap between get_notebook (returns notebook with sources) and list_sources (sources with processing status), but descriptions clarify the difference.

    Naming Consistency4/5

    Strong verb_noun pattern for most tools (add_source, list_notebooks, create_notebook, list_artifacts, generate_artifact, download_artifact). A few deviations—ask (bare verb), chat_history and auth_status (noun phrases)—but overall readable and predictable.

    Tool Count5/5

    13 tools is well-scoped for the NotebookLM domain, cleanly grouped into notebooks, sources, artifacts, and query/auth concerns. Each tool earns its place with no filler.

    Completeness4/5

    Good CRUD/lifecycle coverage: notebook create/get/list/delete, source add/delete/list, artifact generate/list/download, plus ask, chat_history, and auth_status. Minor gaps like notebook rename/update and source update, but core workflows are covered.

    Related MCP Connectors

    Related MCP Servers