Claude Code 懶人包 #01:連接 Google NotebookLM
Description
> 版本:v0.2(加入環境檢查、復原機制、跨平台支援) > 更新日期:2026-04-04 > 對應影片:Claude基本功 EP03 > 📌 **本懶人包可獨立執行**:會自動檢查並安裝所需工具,不需要先看過其他懶人包。你只要確認下方「先備條件」即可開始。 ---
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
Repository README
This is the README for mathruffian-dot/claude-code-lazy-packs, shared by 8 entries
in this directory. It describes the repository, not this entry specifically.
title: 'Claude Code 懶人包 #01:連接 NotebookLM' date: '2026-04-04' type: 懶人包 version: v0.2 status: 初版(實作後更新) tags:
- Claude-Code
- 懶人包
- NotebookLM
- MCP video: EP03
Claude Code 懶人包 #01:連接 Google NotebookLM
版本:v0.2(加入環境檢查、復原機制、跨平台支援) 更新日期:2026-04-04 對應影片:Claude基本功 EP03
📌 **本懶人包可獨立執行**:會自動檢查並安裝所需工具,不需要先看過其他懶人包。你只要確認下方「先備條件」即可開始。
這個懶人包會幫你做什麼?
讓你的 Claude Code 桌面版能夠直接操控 Google NotebookLM,包括:
- 建立 notebook、上傳資料來源
- 產生教學簡報(Slide Deck)
- 產生資訊圖表(Infographic)
- 所有成品自動下載到電腦裡的指定資料夾
原理說明:這個懶人包在做什麼?
**三角關係圖**:
Claude Code ←(MCP 協定)→ nlm (翻譯官) ←(Google 登入)→ NotebookLM
這個懶人包會在你的電腦裡裝一個叫 `nlm` 的「翻譯官」,讓 Claude Code 能透過它去操控 NotebookLM。
**為什麼需要翻譯官?** NotebookLM 沒有官方 API,Google 沒開放程式直接呼叫。`nlm` 是用「模擬瀏覽器操作」的方式,假裝是你在點網頁。
**什麼是 MCP?** MCP(Model Context Protocol)是 Claude 跟外部工具溝通的標準接口,就像手機的 USB-C——只要工具支援 MCP,Claude 就能插上去用。
**為什麼要登入 Google?** `nlm` 需要你的 Google 通行證,才能幫你去操作 NotebookLM。
**一句話記住**:你跟 Claude 講中文,Claude 叫 `nlm` 去幫你點 NotebookLM 的網頁,成品自動下載到你電腦的資料夾。
先備條件
在使用這個懶人包之前,請確認:
- Claude Code 桌面版已安裝且能正常使用(Pro 方案以上)
- 你有 Google 帳號(用來登入 NotebookLM)
- 電腦有網路連線
請 Claude Code 幫我執行以下步驟
⚠️ 以下內容是給 Claude Code 讀的操作指令。 你只需要把這整份 MD 檔丟給 Claude Code 桌面版的 Code 分頁,它會自動開始執行。 遇到需要你手動操作的地方,它會暫停並告訴你該怎麼做。
**所有安裝與設定都在 Claude Code 桌面版內完成,不需要另外打開 PowerShell 或命令提示字元。** 如果 Claude Code 桌面版無法執行某個指令,才會引導你到終端機操作。 進階使用者也可以直接使用 Claude Code CLI 版本來執行本懶人包。
步驟零:環境檢查
請 Claude 在開始安裝前,先自動確認以下所有項目。 如果有任何一項不符合,請先告知使用者問題所在,並引導解決後再繼續。 **不要跳過任何一項檢查,不要假設環境正常。**
- 確認作業系統:執行系統指令確認是 Windows / macOS / Linux,後續所有指令請根據實際的作業系統選擇正確版本執行
- 檢查 Git 是否已安裝:執行
git --version,如果未安裝:- Windows:
winget install --id Git.Git --accept-source-agreements --accept-package-agreements - macOS:
xcode-select --install - Linux:
sudo apt update && sudo apt install git -y
- Windows:
- 確認 uv 已安裝:執行
uv --version,如果未安裝,步驟一會自動安裝 - 確認網路連線正常:嘗試 ping 一個外部網站
- 確認 Claude Code 的版本:確保是最新版本
全部通過後,告知使用者:「環境檢查完成,所有條件都符合,開始安裝。」 如果有不通過的項目,列出問題清單並逐一引導解決。
步驟一:安裝 NotebookLM MCP CLI 工具
如果步驟零確認 `uv` 尚未安裝,請先安裝:
**Windows(PowerShell)**:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
**macOS / Linux**:
curl -LsSf https://astral.sh/uv/install.sh | sh
安裝完 uv 後(或已有 uv),安裝 NotebookLM MCP CLI:
uv tool install notebooklm-mcp-cli
安裝完成後,確認指令可用:
nlm --version
如果出現 `nlm: command not found`,請重開終端機再試一次。 如果仍然失敗,請告知使用者可能需要手動將 uv 的路徑加入系統 PATH。
步驟二:登入 Google 帳號
請執行以下指令,會自動開啟瀏覽器讓使用者登入 Google:
nlm login
🖐️ **需要手動操作**:瀏覽器會開啟 Google 登入頁面,請使用者登入他的 Google 帳號。登入成功後,CLI 會自動擷取認證資訊。
登入成功後,確認狀態:
nlm doctor
如果 `nlm doctor` 顯示未認證,請重新執行 `nlm login`。 如果瀏覽器沒有自動開啟,請手動開啟瀏覽器到 Google 登入頁面,登入後再回到終端機。
步驟三:設定 Claude Code 的 MCP 連接
請執行以下指令,自動完成 MCP 設定(不需要手動編輯 JSON):
nlm setup add claude-code
確認設定成功:
nlm setup list
應該能看到 `claude-code` 出現在已設定的客戶端清單中。
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11