nblm-mcp
nblm-mcp
Un servidor MCP que da a un agente de IA acceso a Google NotebookLM (renombrado Gemini Notebook en julio de 2026): listar y crear cuadernos, gestionar sus fuentes, hacer preguntas que se responden desde esas fuentes con citas, y generar artefactos de Studio como resúmenes de audio, documentos informativos, cuestionarios y mapas mentales.
La clave es la base documental. NotebookLM responde solo a partir del material
que le has dado, así que un agente que pueda llamar a ask obtiene respuestas
citadas de tus propios documentos en lugar de adivinar — y no cuesta tokens de
tu propio contexto, porque Gemini hace la lectura en el servidor.
⚠️ No oficial — lee esto primero
Google no tiene una API pública de consumo para NotebookLM. Este servidor utiliza los mismos endpoints web privados que usa la interfaz de notebooklm.google.com, autenticados con las cookies de tu propia sesión de navegador, mediante la librería
notebooklm-pycon licencia MIT.
No está afiliado ni respaldado por Google.
La API interna puede cambiar sin previo aviso y romper este servidor.
Se aplican los límites de tasa y las cuotas diarias de Studio de tu cuenta de Google.
Usa una cuenta con la que te sientas cómodo automatizando. Es mejor para proyectos personales, investigación y prototipos.
Google sí documenta una API oficial para Gemini Notebook Enterprise. Si tienes una organización de Workspace/Cloud con esa función, prefierela a esta.
Instalación
Aún no está en PyPI — instala directamente desde este repositorio. uvx lo
compila y ejecuta bajo demanda, así que no hay nada que mantener actualizado
manualmente:
uvx --from git+https://github.com/Diego-Dev-Moros/nblm-mcp nblm-mcpRelated MCP server: notebooklm-mcp-server
Inicia sesión una vez
El inicio de sesión necesita el extra auth (Playwright) y una persona
delante del teclado:
uvx --from "nblm-mcp[auth] @ git+https://github.com/Diego-Dev-Moros/nblm-mcp" nblm-mcp-loginSe abre una ventana del navegador; inicia sesión en NotebookLM como harías
normalmente. Las cookies de sesión se guardan en ~/.notebooklm/ (la misma
estructura de perfiles que usa notebooklm-py, así que un notebooklm login
existente también funciona). El servidor MCP nunca inicia sesión por su cuenta
— necesita un navegador interactivo, que un host MCP no puede proporcionar.
Si Playwright aún no tiene navegador, ejecuta playwright install chromium
primero.
Las cookies caducan. Cuando lo hacen, las herramientas empiezan a devolver un error de autenticación; vuelve a ejecutar el comando de inicio de sesión.
Conéctalo a un cliente
Claude Code — -s user lo hace disponible en todos los proyectos:
claude mcp add notebooklm -s user -- \
uvx --from git+https://github.com/Diego-Dev-Moros/nblm-mcp nblm-mcpClaude Desktop — añade esto a claude_desktop_config.json y reinicia la
aplicación (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 se lanza desde la interfaz gráfica, que no hereda el PATH de
tu shell. Si el servidor no arranca ahí, sustituye "uvx" por su ruta absoluta
(which uvx, normalmente ~/.local/bin/uvx).
En cualquier caso, confirma que funciona pidiendo al agente que llame a
auth_status.
Herramientas
Herramienta | Qué hace |
| Verifica la sesión guardada con una petición real; te dice si necesitas volver a iniciar sesión. |
| Todos los cuadernos a los que la cuenta puede acceder, con ids y recuentos de fuentes. |
| Un cuaderno y sus fuentes; opcionalmente el resumen propio de NotebookLM. |
| Crea un cuaderno vacío. |
| Elimina un cuaderno y todo lo que contiene. Requiere |
| Fuentes de un cuaderno y su estado de procesamiento. |
| Añade una fuente desde una URL (web, YouTube, Drive), texto pegado o un archivo local. |
| Elimina una fuente. Requiere |
| Hace una pregunta al cuaderno; devuelve la respuesta y las citas resueltas a los títulos de las fuentes. |
| Turnos anteriores de preguntas/respuestas de la conversación del cuaderno. |
| Artefactos de Studio generados y su estado — también es la forma de consultar una generación en curso. |
| Genera audio, video, informe, study_guide, quiz, flashcards, infografía, presentación o mapa mental. |
| Descarga un artefacto completado a un archivo en la máquina que ejecuta el servidor. |
Notas sobre el comportamiento
Las herramientas destructivas están protegidas.
delete_notebookydelete_sourcese niegan a ejecutarse sinconfirm=true, así que una llamada de herramienta accidental no puede destruir un cuaderno.La generación es lenta y está sujeta a cuotas.
generate_artifactdevuelve el resultado en cuanto el trabajo está en cola (wait=false, el valor por defecto) y le dice al agente que consultelist_artifacts. Pasawait=truepara bloquear en su lugar; espera hastaNBLM_GENERATION_TIMEOUTsegundos.Las rutas de archivo son del lado del servidor.
add_source(file_path=...)ydownload_artifactleen y escriben en el host que ejecuta el servidor MCP, que no es necesariamente donde se ejecuta el cliente de chat del usuario.
Configuración
Todo es opcional — consulta .env.example. Se carga un .env
en el directorio de trabajo si existe.
Variable | Valor por defecto | Propósito |
| perfil activo | Qué inicio de sesión guardado usar, para varias cuentas de Google. |
| resuelto desde el perfil | Ruta explícita a un |
|
| Dónde escribe |
|
| Segundos de espera para un artefacto cuando |
|
| Segundos de espera para que una fuente nueva termine de procesarse. |
Desarrollo
uv venv && uv pip install -e ".[dev]"
uv run pytest
uv run ruff check src testsLa suite de pruebas ejecuta las herramientas contra un cliente falso en memoria — nunca toca Google, así que es segura y rápida de ejecutar en cualquier lugar.
Trabajo previo
notebooklm-py hace la parte
difícil — la ingeniería inversa y el mantenimiento del protocolo privado
batchexecute — y trae su propio servidor MCP, más grande. Este proyecto es
una superficie de herramientas más pequeña y con criterio sobre esa librería:
menos herramientas, compuertas de confirmación en operaciones destructivas y
respuestas con citas resueltas.
Licencia
MIT — consulta 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