Skip to main content
Glama

nbln-mcp

Ein MCP-Server, der einem KI-Agenten Zugriff auf Google NotebookLM gewährt (im Juli 2026 umbenannt in Gemini Notebook): Notebooks auflisten und erstellen, deren Quellen verwalten, Fragen stellen, die aus diesen Quellen mit Zitaten beantwortet werden, und Studio-Artefakte wie Audio-Zusammenfassungen, Briefing-Dokumente, Quizze und Mindmaps erzeugen.

Der Sinn liegt im Grounding. NotebookLM antwortet nur aus dem Material, das du ihm gegeben hast. Ein Agent, der ask aufrufen kann, bekommt also zitierte Antworten aus deinen eigenen Dokumenten, statt zu raten – und es kostet keine Tokens deines eigenen Kontexts, weil Gemini das Lesen serverseitig übernimmt.

⚠️ Inoffiziell – zuerst lesen

Google bietet keine öffentliche Consumer-API für NotebookLM. Dieser Server spricht dieselben privaten Web-Endpunkte an, die auch die Notebooklm.google.com-Oberfläche nutzt, authentifiziert mit deinen eigenen Browser-Session-Cookies, über die MIT-lizenzierte Bibliothek notebooklm-py.

  • Weder mit Google verbunden noch von Google unterstützt.

  • Die interne API kann sich ohne Ankündigung ändern und diesen Server brechen.

  • Es gelten die Ratenlimits deines Google-Kontos und die täglichen Studio-Kontingente.

  • Verwende ein Konto, bei dem dir die Automatisierung nichts ausmacht – am besten für private Projekte, Recherchen und Prototypen.

Google dokumentiert hingegen eine offizielle API für Gemini Notebook Enterprise. Falls du eine Workspace-/Cloud-Organisation mit diesem Feature hast, bevorzuge diese gegenüber diesem Server.

Installation

Noch nicht auf PyPI – installiere direkt aus diesem Repository. uvx baut und startet die Verbindung im Lieferbetrieb, sodass du nichts von Hand aktualisieren musst:

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

Related MCP server: notebooklm-mcp-server

Einmal anmelden

Für die Anmeldung brauchst du das auth-Extra (Playwright) und eine Person vor der Tastatur:

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

Ein Browserfenster öffnet sich; melde mich bei NotebookLM wie gewohnt an. Die Session-Cookies werden unter ~/.notebooklm/ gespeichert (dasselbe Profil-Layout, das auch notebooklm-py verwendet, eine vorhandene notebooklm login hat also nichts dabei). Der MCP-Server meldet sich niemals von selbst an – er braucht einen interaktiven Browser, den ein MCP-Host nicht bieten kann.

Falls Playwright noch keinen Browser hat, führe zuerst playwright install chromium aus.

Cookies laufen ab. Wenn das passiert, melden die Tools deinen Validation-Challenge – dann führe die Anmeldung einfach erneut aus.

Mit einem Client verbinden

Claude Code – -s user macht es in jedem Projekt verfügbar:

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

Claude Desktop – füge dies zu claude_desktop_config.json hinzu und starte die App neu (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 startet von der GUI, die die PATH-Variable deiner Shell nicht erbt. Falls der Server dort nicht starten kann, ersetze "uvx" durch den absoluten Pfad der uvx (which uvx, normalerweise ~/.local/bin/uvx).

In jedem Fall kannst du es prüfen, indem du den Agenten bittest, auth_status zu rufen.

Tools

Tool

Funktion

auth_status

Prüft die gespeicherte Session mit einer echten Anfrage; sagt dir, ob du dich neu anmelden musst.

list_notebooks

Alle Notebooks, die der Account finden von kann, mit IDs und Quellenanzahl.

get_notebook

Ein einzelnes Notebook und seine Quellen; optional NotebookLMs eigene Zusammenfassung.

create_notebook

Erstellt ein leeres Notebook.

delete_notebook

Löscht ein Notebook und alles darin. Erfordert confirm=true.

list_sources

Quellen in einem Notebook und ihr Verarbeitungsstatus.

add_source

Fügt eine Quelle hinzu: über eine URL (Web, YouTube, Drive), per eingefügtem Text oder lokaler Datei.

delete_source

Entfernt eine Quelle. Erfordert confirm=true.

ask

Stellt dem Notebook eine Frage und liefert die Antwort inklusive Zitaten, die den Quelleltiteln zugeordnet sind.

chat_history

Bisherige Frage-/Antwortrunden des Notebook-Dialogs.

list_artifacts

Erstellte Studio-Artefakte und ihren Status – damit pollst du auch einen laufenden Prozess.

generate_artifact

Generiert a robust audio, video, report, study_guide, quiz, flashcards, infographic, slide_deck oder mind_map.

download_artifact

Lädt ein fertiges Artefakt in eine Datei auf dem Rechner, auf dem der Server läuft.

Hinweise zum Verhalten

  • Destruktive Tools sind geschützt. delete_notebook und delete_source führen ohne confirm=true nicht aus, damit ein versehentlicher Aufruf kein Notebook zerstören kann.

  • Generatoren brauchen Zeit und sind quotaabhängig. generate_artifact meldet sich, sobald der Auftrag eingereiht ist (wait=false – Standardmaterialempfehlung) und rät dem Agenten, list_artifacts abzufragen. Möchtest du stattdessen blockieren, gib wait=true mit; dann hat er bis zu NBLM_GENERATION_TIMEOUT Sekunden.

  • Dateipfade laufen serverseitig. add_source(file_path=...) und download_artifact lesen/schreiben auf dem Host, wo der MCP-Server läuft – das ist nicht unbedingt der Rechner, auf dem dein Chat-Client läuft.

Konfiguration

Alles optional – siehe .env.example. Eine .env im Arbeitsverzeichnis wird geladen, wenn sie vorhanden ist.

Variable

Standard

Zweck

NOTEBOOKLM_PROFILE

aktives Profil

Welche gespeicherte Anmeldung verwendet wird, bei mehreren Google-Konten.

NOTEBOOKLM_STORAGE_PATH

aus dem Profil aufgelöst

Expliziter Pfad zu einer storage_state.json.

NBLM_DOWNLOAD_DIR

~/.nblm-mcp/downloads

Zielordner, in den download_artifact ohne wahlweise Standard schreibt.

NBLM_GENERATION_TIMEOUT

600

Sekunden, die ein wait=true auf ein Artefakt wartet.

NBLM_SOURCE_TIMEOUT

180

Sekunden, die auf die Verarbeitung einer neuen Quelle gewartet wird.

Entwicklung

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

Die Tests führen die Tools gegen eine In-Memory-Fake-Client aus – sie berühren veritabel nie Google, und sind überall sicher und schnell auszuführen.

Verwandte Projekte

notebooklm-py macht den schweren Teil: Reverse-Engineering und Pflege des privaten batchexecute-protokolls und bringt seinen eigenen, grüderen MCP-Server mit. Dieses Projekt ist eine bewusst schlankere, reduzierte Tool-Oberfläche auf Basis dieser Bibliothek: weniger Tools, Bestätigungspflicht für destruktive Operationen und auf Quellen aufgelöste Antworten.

Lizenz

MIT – siehe 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