nblm-mcp
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-mcpRelated 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-loginEin 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-mcpClaude 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 |
| Prüft die gespeicherte Session mit einer echten Anfrage; sagt dir, ob du dich neu anmelden musst. |
| Alle Notebooks, die der Account finden von kann, mit IDs und Quellenanzahl. |
| Ein einzelnes Notebook und seine Quellen; optional NotebookLMs eigene Zusammenfassung. |
| Erstellt ein leeres Notebook. |
| Löscht ein Notebook und alles darin. Erfordert |
| Quellen in einem Notebook und ihr Verarbeitungsstatus. |
| Fügt eine Quelle hinzu: über eine URL (Web, YouTube, Drive), per eingefügtem Text oder lokaler Datei. |
| Entfernt eine Quelle. Erfordert |
| Stellt dem Notebook eine Frage und liefert die Antwort inklusive Zitaten, die den Quelleltiteln zugeordnet sind. |
| Bisherige Frage-/Antwortrunden des Notebook-Dialogs. |
| Erstellte Studio-Artefakte und ihren Status – damit pollst du auch einen laufenden Prozess. |
| Generiert a robust audio, video, report, study_guide, quiz, flashcards, infographic, slide_deck oder mind_map. |
| 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_notebookunddelete_sourceführen ohneconfirm=truenicht aus, damit ein versehentlicher Aufruf kein Notebook zerstören kann.Generatoren brauchen Zeit und sind quotaabhängig.
generate_artifactmeldet sich, sobald der Auftrag eingereiht ist (wait=false– Standardmaterialempfehlung) und rät dem Agenten,list_artifactsabzufragen. Möchtest du stattdessen blockieren, gibwait=truemit; dann hat er bis zuNBLM_GENERATION_TIMEOUTSekunden.Dateipfade laufen serverseitig.
add_source(file_path=...)unddownload_artifactlesen/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 |
| aktives Profil | Welche gespeicherte Anmeldung verwendet wird, bei mehreren Google-Konten. |
| aus dem Profil aufgelöst | Expliziter Pfad zu einer |
|
| Zielordner, in den |
|
| Sekunden, die ein |
|
| 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 testsDie 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 toolsadd_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
Scored across 13 tools
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.
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.
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.
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
Google NotebookLM via natural language: create notebooks, add sources (PDF, URL, YouTube) and ask gr
Google Gemini Notebook (NotebookLM): notebooks, sources, cited chat, podcasts, video, slides
Turn any recording or document into notes, flashcards and quizzes your agent can read and act on
Create, search and manage Knowtis collaborative notes from AI assistants.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI agents to query and interact with Google NotebookLM notebooks to retrieve citation-backed information. It provides tools for listing notebooks, accessing source data, and asking natural language questions.11-
- AlicenseBqualityDmaintenanceEnables AI agents to interact with Google NotebookLM for grounded, hallucination-free answers through notebook management, source management, research, and generation tools.29255 npm45MIT
- AlicenseBqualityAmaintenanceEnables AI assistants to programmatically interact with Google NotebookLM, allowing them to create and manage notebooks, add sources, query content, generate audio/video, and perform research tasks through natural language commands.5518,759 PyPI6,558MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to programmatically access and control Google NotebookLM, supporting operations like notebook management, source addition, audio generation, and more via natural language.39MIT