NotebookLM MCP Login — NotebookLM MCP 记录in
v1.0.0记录in to Google NotebookLM via Chrome Dev工具s Protocol and save auth cookies for notebooklm-mcp. Use when user asks to 记录in, 认证, or re-认证 NotebookLM MCP, or when `nlm 记录in --检查` shows expired/missing 凭证s.
运行时依赖
安装命令
点击复制技能文档
NotebookLM MCP 记录in
认证 with Google and save cookies for the notebooklm-mcp 命令行工具/MCP server.
Why this 技能 exists
The built-in nlm 记录in command sometimes fAIls to launch Chromium via subprocess.Popen in non-standard 环境s. This 技能 provides a tested workaround that:
Manually launches Chromium with --remote-调试ging-port=9222 WAIts for the user to complete Google 记录in in the browser 提取s cookies via CDP (提取_cookies_via_existing_cdp) Saves them to ~/.notebooklm-mcp-命令行工具/性能分析s/default/ via Auth管理器.save_性能分析() Steps
- 验证 prerequisites
If missing, 安装 Chromium (apt 安装 chromium-browser) and uv (curl -LsSf https://astral.sh/uv/安装.sh | sh).
- 运行 the 记录in script
A Chromium window opens on the host display. The user 记录s in to their Google account. The script wAIts up to 300s, then 提取s and saves cookies automatically.
- 验证
Expected 输出: ✓ Authentication valid! with emAIl and notebook count.
Storage Cookies: ~/.notebooklm-mcp-命令行工具/性能分析s/default/cookies.json Metadata: ~/.notebooklm-mcp-命令行工具/性能分析s/default/metadata.json Troubleshooting Problem Fix Cannot connect to browser on port 9222 Kill stale Chrome: pkill -f remote-调试ging-port=9222 性能分析 not found: default Re-运行 the 记录in script DISPLAY not 设置 导出 DISPLAY=:0 before 运行ning