notebooklm-mcp-multiprofile

notebooklm-mcp-multiprofile

Enables AI agents to manage Google NotebookLM notebooks, sources, and generate podcasts/videos through the MCP protocol, with support for multiple Google accounts.

Category
访问服务器

README

🤖 NotebookLM MCP — Multi-Account Setup

Python 3.10+ notebooklm-mcp-cli 0.2.7 License: MIT

Configuración lista para usar de Google NotebookLM como servidor MCP, con soporte para múltiples cuentas de Google simultáneas.

Compatible con cualquier cliente AI que soporte MCP: Antigravity, Claude Desktop, Cline, Continue, y otros.


¿Qué hace esto?

Convierte NotebookLM en un conjunto de ~50 herramientas que tu IA puede usar directamente:

  • 📚 Gestionar notebooks (crear, listar, renombrar, eliminar, consultar)
  • 🔗 Agregar fuentes (URLs, archivos locales, Google Drive, texto)
  • 🎙️ Generar contenido (podcasts, videos, slides, informes, flashcards, quizzes)
  • 🔍 Investigación profunda automática (busca y agrega docenas de fuentes web)
  • 📝 Notas internas en notebooks (memoria persistente para el agente)
  • 🔄 Multi-cuenta: cada cuenta de Google corre como servidor MCP independiente

Instalación rápida

1. Clonar e Instalar

git clone https://github.com/rulords/notebooklm-mcp-multiprofile.git
cd notebooklm-mcp-multiprofile

# Windows
Double click en setup.bat
# O via Terminal: .\setup.bat

# macOS / Linux
bash setup.sh
# O via Terminal: ./setup.sh

# Instalación manual:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

2. Configurar autenticación

Existen dos métodos:

A. Modo Elite (Recomendado para Agentes) 🚀

Usa el binario nativo para abrir un navegador y loguearte en segundos:

.venv/bin/nlm login --profile personal

B. Modo Manual (Legacy)

Obtén cookies desde Chrome (ver docs/AUTHENTICATION.md):

python inject_profile.py --profile personal --email tu@gmail.com

3. Registrar en tu cliente AI

Edita el archivo de configuración MCP de tu cliente (ver mcp_config.example.json):

{
  "mcpServers": {
    "notebooklm_personal": {
      "command": "/ruta/al/proyecto/.venv/Scripts/python.exe",
      "args": ["-m", "notebooklm_tools.mcp.server"],
      "env": { "NLM_PROFILE": "personal" }
    }
  }
}

4. Verificar

python verify_profile.py

Documentación

Documento Para quién
docs/AUTHENTICATION.md Cómo obtener e inyectar cookies desde Chrome
docs/CONFIGURATION.md Configurar el MCP en cada cliente AI
docs/AI_IMPLEMENTATION_GUIDE.md Para agentes AI: guía completa de implementación paso a paso
docs/SKILL.md Para agentes AI: instrucciones detalladas de orquestación y workflows

Uso desde el cliente AI

# Listar notebooks
mcp_notebooklm_personal_notebook_list(max_results=10)

# Crear notebook
mcp_notebooklm_work_notebook_create(title="Investigación Q1 2026")

# Agregar fuente URL
mcp_notebooklm_personal_source_add(
    notebook_id="...",
    source_type="url",
    url="https://ejemplo.com/articulo"
)

# Generar podcast
mcp_notebooklm_personal_studio_create(
    notebook_id="...",
    artifact_type="audio",
    confirm=True
)

# Investigación profunda
mcp_notebooklm_work_research_start(
    query="inteligencia artificial en salud 2025",
    mode="deep"
)

Mantenimiento

Las cookies de Google expiran cada 1-4 semanas. Síntomas de cookies expiradas:

  • MCP devuelve RPC Error 16 o Authentication expired
  • En Antigravity: el servidor no aparece en el panel MCP ("server not found")

Diagnóstico rápido:

python verify_profile.py

Renovar cookies:

# Obtener cookies frescas (ver docs/AUTHENTICATION.md)
python inject_profile.py --profile [nombre] --email [email]

# Recargar en el cliente AI:
mcp_notebooklm_[nombre]_refresh_auth()

Motor MCP: notebooklm-mcp-cli

Este proyecto usa el paquete notebooklm-mcp-cli (PyPI), versión 0.2.7.

⚠️ Versión importante: 0.2.7 es la que incluye el set completo de ~50 herramientas. Las versiones notebooklm-mcp 2.x son reescrituras incompletas con solo funciones básicas de chat. No actualizar sin verificar que el set completo esté disponible.

Herramientas disponibles (~50 en total)

Categoría Herramienta Descripción
Notebooks notebook_list Lista todos los notebooks
notebook_create Crea notebook vacío
notebook_get Detalles y fuentes de un notebook
notebook_describe Resumen IA del contenido
notebook_rename Renombrar notebook
notebook_delete Eliminar permanentemente
notebook_query Consulta IA basada en las fuentes
chat_configure Configurar estilo de respuesta
Fuentes source_add Agregar URL, texto, Drive o archivo local
source_describe Resumen IA de una fuente
source_get_content Texto crudo de la fuente
source_delete Eliminar fuente
source_list_drive Listar fuentes de Drive con estado
source_sync_drive Sincronizar fuentes desactualizadas
Notas note CRUD de notas internas (create/list/update/delete)
Investigación research_start Iniciar búsqueda web o Drive
research_status Poll de progreso de investigación
research_import Importar fuentes encontradas
Studio studio_create Generar audio/video/slides/infographic/report/flashcards/quiz/mind_map/data_table
studio_status Estado de generación y URLs
studio_delete Eliminar artefacto generado
download_artifact Descargar artefacto a archivo local
export_artifact Exportar a Google Docs o Sheets
Compartir notebook_share_public Habilitar link público
notebook_share_invite Invitar colaborador por email
notebook_share_status Ver configuración de compartido
Auth refresh_auth Recargar tokens desde disco
save_auth_tokens Guardar cookies manualmente

Seguridad

  • Los archivos *_cookies.txt están en .gitignore — nunca se suben a GitHub
  • Los perfiles se guardan en ~/.notebooklm-mcp-cli/ (fuera del repo)
  • mcp_config.json con tus rutas locales también está ignorado — usar mcp_config.example.json como plantilla

Créditos

  • Motor MCP: notebooklm-mcp-cli
  • Configuración multi-cuenta, scripts de autenticación y documentación: este repositorio

Licencia

MIT — ver 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 模型以安全和受控的方式获取实时的网络信息。

官方
精选