@roomi-fields/notebooklm-mcp 1.3.5 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +62 -662
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,78 +14,32 @@
|
|
|
14
14
|
|
|
15
15
|
<!-- End Badges -->
|
|
16
16
|
|
|
17
|
-
[MCP Installation](#mcp-installation) • [HTTP REST API](#http-rest-api) • [Why NotebookLM](#why-notebooklm-not-local-rag) • [Examples](#real-world-example) • [Documentation](./deployment/docs/)
|
|
18
|
-
|
|
19
17
|
</div>
|
|
20
18
|
|
|
21
19
|
---
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## 🚀 Two Ways to Use This Server
|
|
28
|
-
|
|
29
|
-
### 1️⃣ **HTTP REST API** (New! Recommended for n8n, Zapier, Make.com)
|
|
21
|
+
## Why NotebookLM?
|
|
30
22
|
|
|
31
|
-
|
|
23
|
+
| Approach | Token Cost | Hallucinations | Answer Quality |
|
|
24
|
+
| ------------------- | ----------- | ----------------------------- | -------------------- |
|
|
25
|
+
| Feed docs to Claude | Very high | Yes - fills gaps | Variable |
|
|
26
|
+
| Web search | Medium | High - unreliable sources | Hit or miss |
|
|
27
|
+
| Local RAG | Medium-High | Medium - retrieval gaps | Depends on setup |
|
|
28
|
+
| **NotebookLM MCP** | **Minimal** | **Zero** - refuses if unknown | **Expert synthesis** |
|
|
32
29
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
# Install globally
|
|
37
|
-
npm install -g @roomi-fields/notebooklm-mcp
|
|
38
|
-
|
|
39
|
-
# For MCP stdio mode (Claude Code, Cursor)
|
|
40
|
-
notebooklm-mcp
|
|
41
|
-
|
|
42
|
-
# For HTTP server mode
|
|
43
|
-
# Note: Currently requires cloning the repo for HTTP mode
|
|
44
|
-
# See Option B below
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
**Option B: Install from source (Required for HTTP mode)**
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
# Clone and install
|
|
51
|
-
git clone https://github.com/roomi-fields/notebooklm-mcp.git
|
|
52
|
-
cd notebooklm-mcp
|
|
53
|
-
npm install
|
|
54
|
-
npm run build
|
|
55
|
-
npm run start:http
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
**Query the API:**
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
curl -X POST http://localhost:3000/ask \
|
|
62
|
-
-H "Content-Type: application/json" \
|
|
63
|
-
-d '{"question": "Explain X", "notebook_id": "my-notebook"}'
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
**Perfect for:**
|
|
67
|
-
|
|
68
|
-
- ✅ n8n workflows and automation
|
|
69
|
-
- ✅ Zapier, Make.com integrations
|
|
70
|
-
- ✅ Custom web applications
|
|
71
|
-
- ✅ Backend APIs
|
|
72
|
-
|
|
73
|
-
**👉 Full HTTP setup guide:** [deployment/docs/01-INSTALL.md](./deployment/docs/01-INSTALL.md)
|
|
30
|
+
NotebookLM is pre-indexed by Gemini, provides citation-backed answers, and requires no infrastructure.
|
|
74
31
|
|
|
75
32
|
---
|
|
76
33
|
|
|
77
|
-
|
|
34
|
+
## Quick Start
|
|
78
35
|
|
|
79
|
-
|
|
36
|
+
### Option 1: MCP Mode (Claude Code, Cursor, Codex)
|
|
80
37
|
|
|
81
38
|
```bash
|
|
82
39
|
# Claude Code
|
|
83
40
|
claude mcp add notebooklm npx @roomi-fields/notebooklm-mcp@latest
|
|
84
41
|
|
|
85
|
-
#
|
|
86
|
-
codex mcp add notebooklm -- npx @roomi-fields/notebooklm-mcp@latest
|
|
87
|
-
|
|
88
|
-
# Cursor (add to ~/.cursor/mcp.json)
|
|
42
|
+
# Cursor - add to ~/.cursor/mcp.json
|
|
89
43
|
{
|
|
90
44
|
"mcpServers": {
|
|
91
45
|
"notebooklm": {
|
|
@@ -96,662 +50,108 @@ codex mcp add notebooklm -- npx @roomi-fields/notebooklm-mcp@latest
|
|
|
96
50
|
}
|
|
97
51
|
```
|
|
98
52
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
- ✅ Claude Code, Cursor, Codex
|
|
102
|
-
- ✅ Any MCP-compatible AI assistant
|
|
103
|
-
- ✅ Direct CLI integration
|
|
104
|
-
|
|
105
|
-
---
|
|
106
|
-
|
|
107
|
-
## The Problem
|
|
108
|
-
|
|
109
|
-
When you tell Claude Code or Cursor to "search through my local documentation", here's what happens:
|
|
110
|
-
|
|
111
|
-
- **Massive token consumption**: Searching through documentation means reading multiple files repeatedly
|
|
112
|
-
- **Inaccurate retrieval**: Searches for keywords, misses context and connections between docs
|
|
113
|
-
- **Hallucinations**: When it can't find something, it invents plausible-sounding APIs
|
|
114
|
-
- **Expensive & slow**: Each question requires re-reading multiple files
|
|
115
|
-
|
|
116
|
-
## The Solution
|
|
117
|
-
|
|
118
|
-
Let your tools chat directly with [**NotebookLM**](https://notebooklm.google/) — Google's **zero-hallucination knowledge base** powered by Gemini 2.5 that provides intelligent, synthesized answers from your docs.
|
|
119
|
-
|
|
120
|
-
```
|
|
121
|
-
Your Task → Agent/n8n asks NotebookLM → Gemini synthesizes answer → Correct output
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
**The real advantage**: No more manual copy-paste. Your agent/workflow asks NotebookLM directly and gets answers back. Build deep understanding through automatic follow-ups.
|
|
125
|
-
|
|
126
|
-
---
|
|
127
|
-
|
|
128
|
-
## Why NotebookLM, Not Local RAG?
|
|
129
|
-
|
|
130
|
-
| Approach | Token Cost | Setup Time | Hallucinations | Answer Quality |
|
|
131
|
-
| ----------------------- | ---------------------------------- | ---------------------------- | ----------------------------- | ------------------ |
|
|
132
|
-
| **Feed docs to Claude** | 🔴 Very high (multiple file reads) | Instant | Yes - fills gaps | Variable retrieval |
|
|
133
|
-
| **Web search** | 🟡 Medium | Instant | High - unreliable sources | Hit or miss |
|
|
134
|
-
| **Local RAG** | 🟡 Medium-High | Hours (embeddings, chunking) | Medium - retrieval gaps | Depends on setup |
|
|
135
|
-
| **NotebookLM MCP** | 🟢 Minimal | 5 minutes | **Zero** - refuses if unknown | Expert synthesis |
|
|
136
|
-
|
|
137
|
-
### What Makes NotebookLM Superior?
|
|
138
|
-
|
|
139
|
-
1. **Pre-processed by Gemini**: Upload docs once, get instant expert knowledge
|
|
140
|
-
2. **Natural language Q&A**: Not just retrieval — actual understanding and synthesis
|
|
141
|
-
3. **Multi-source correlation**: Connects information across 50+ documents
|
|
142
|
-
4. **Citation-backed**: Every answer includes source references
|
|
143
|
-
5. **No infrastructure**: No vector DBs, embeddings, or chunking strategies needed
|
|
144
|
-
|
|
145
|
-
---
|
|
146
|
-
|
|
147
|
-
## HTTP REST API
|
|
148
|
-
|
|
149
|
-
### Quick Start
|
|
150
|
-
|
|
151
|
-
```powershell
|
|
152
|
-
# 1. Clone and install
|
|
153
|
-
git clone <repo-url> D:\notebooklm-http
|
|
154
|
-
cd D:\notebooklm-http
|
|
155
|
-
npm install
|
|
156
|
-
npm run build
|
|
157
|
-
|
|
158
|
-
# 2. Configure authentication (one-time)
|
|
159
|
-
npm run setup-auth
|
|
160
|
-
# Chrome opens → log in with Google → close Chrome
|
|
161
|
-
|
|
162
|
-
# 3. Start the server
|
|
163
|
-
|
|
164
|
-
# Option A: Foreground mode (terminal stays open)
|
|
165
|
-
npm run start:http
|
|
166
|
-
|
|
167
|
-
# Option B: Background daemon mode (recommended for production)
|
|
168
|
-
npm run daemon:start # Start in background
|
|
169
|
-
npm run daemon:logs # View logs
|
|
170
|
-
npm run daemon:status # Check status
|
|
171
|
-
npm run daemon:stop # Stop server
|
|
172
|
-
|
|
173
|
-
# 4. Add your first notebook (in another terminal if using Option A)
|
|
174
|
-
curl -X POST http://localhost:3000/notebooks \
|
|
175
|
-
-H "Content-Type: application/json" \
|
|
176
|
-
-d '{
|
|
177
|
-
"url": "https://notebooklm.google.com/notebook/YOUR-NOTEBOOK-ID",
|
|
178
|
-
"name": "My Knowledge Base",
|
|
179
|
-
"description": "My documentation",
|
|
180
|
-
"topics": ["docs", "api"]
|
|
181
|
-
}'
|
|
182
|
-
|
|
183
|
-
# 5. Query NotebookLM
|
|
184
|
-
curl -X POST http://localhost:3000/ask \
|
|
185
|
-
-H "Content-Type: application/json" \
|
|
186
|
-
-d '{"question": "Explain X"}'
|
|
187
|
-
|
|
188
|
-
# 6. Validate installation (optional)
|
|
189
|
-
.\deployment\scripts\test-server.ps1
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
**👉 See [Testing Guide](./deployment/scripts/README.md) for automated test suite**
|
|
193
|
-
|
|
194
|
-
### API Endpoints
|
|
195
|
-
|
|
196
|
-
| Method | Endpoint | Description |
|
|
197
|
-
| -------- | -------------------------- | ----------------------------------- |
|
|
198
|
-
| `GET` | `/health` | Check server health |
|
|
199
|
-
| `POST` | `/ask` | Ask a question to NotebookLM |
|
|
200
|
-
| `GET` | `/notebooks` | List all notebooks |
|
|
201
|
-
| `POST` | `/notebooks` | Add notebook (with live validation) |
|
|
202
|
-
| `POST` | `/notebooks/auto-discover` | Auto-generate notebook metadata |
|
|
203
|
-
| `DELETE` | `/notebooks/:id` | Remove a notebook |
|
|
204
|
-
| `PUT` | `/notebooks/:id/activate` | Set active notebook |
|
|
205
|
-
| `GET` | `/sessions` | List active sessions |
|
|
206
|
-
| `DELETE` | `/sessions/:id` | Close a session |
|
|
207
|
-
|
|
208
|
-
**👉 Full API documentation:** [deployment/docs/03-API.md](./deployment/docs/03-API.md)
|
|
209
|
-
|
|
210
|
-
### n8n Integration
|
|
211
|
-
|
|
212
|
-
Perfect for n8n workflows:
|
|
213
|
-
|
|
214
|
-
```json
|
|
215
|
-
{
|
|
216
|
-
"nodes": [
|
|
217
|
-
{
|
|
218
|
-
"name": "Ask NotebookLM",
|
|
219
|
-
"type": "n8n-nodes-base.httpRequest",
|
|
220
|
-
"parameters": {
|
|
221
|
-
"method": "POST",
|
|
222
|
-
"url": "http://your-server:3000/ask",
|
|
223
|
-
"jsonParameters": true,
|
|
224
|
-
"bodyParametersJson": {
|
|
225
|
-
"question": "{{ $json.query }}",
|
|
226
|
-
"notebook_id": "my-notebook"
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
]
|
|
231
|
-
}
|
|
232
|
-
```
|
|
233
|
-
|
|
234
|
-
**👉 n8n guide:** [deployment/docs/04-N8N-INTEGRATION.md](./deployment/docs/04-N8N-INTEGRATION.md)
|
|
235
|
-
|
|
236
|
-
---
|
|
237
|
-
|
|
238
|
-
## 🔍 Auto-Discovery : Self-Organizing Documentation
|
|
239
|
-
|
|
240
|
-
Autonomous resource discovery enables AI orchestrators to find and use relevant documentation without manual intervention.
|
|
241
|
-
|
|
242
|
-
### How it works
|
|
243
|
-
|
|
244
|
-
**1. Add notebook** (zero manual metadata):
|
|
245
|
-
|
|
246
|
-
```bash
|
|
247
|
-
curl -X POST http://localhost:3000/notebooks/auto-discover \
|
|
248
|
-
-H "Content-Type: application/json" \
|
|
249
|
-
-d '{"url": "https://notebooklm.google.com/notebook/YOUR_ID"}'
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
**2. System queries NotebookLM** to auto-generate:
|
|
253
|
-
|
|
254
|
-
- Kebab-case name (3 words max)
|
|
255
|
-
- Concise description (2 sentences)
|
|
256
|
-
- Relevant tags (8-10 keywords)
|
|
257
|
-
|
|
258
|
-
**3. Orchestrators discover autonomously**:
|
|
259
|
-
|
|
260
|
-
- Claude Code finds relevant docs without prompting
|
|
261
|
-
- n8n workflows auto-select documentation
|
|
262
|
-
- Cursor matches context to notebooks
|
|
263
|
-
|
|
264
|
-
### Progressive disclosure pattern
|
|
265
|
-
|
|
266
|
-
Inspired by [Claude Skills best practices](https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices#progressive-disclosure-patterns):
|
|
267
|
-
|
|
268
|
-
- **Level 0** (startup): Lightweight metadata loaded (~500 tokens)
|
|
269
|
-
- **Level 1** (matching): Local tag/description search (0 NotebookLM queries)
|
|
270
|
-
- **Level 2** (deep query): Targeted NotebookLM query only when needed
|
|
271
|
-
|
|
272
|
-
### Why this matters
|
|
273
|
-
|
|
274
|
-
**Before**: Manual library management, orchestrators can't discover resources autonomously
|
|
275
|
-
|
|
276
|
-
**After**: Self-organizing library, autonomous documentation discovery
|
|
53
|
+
Then say: _"Log me in to NotebookLM"_ → Chrome opens → log in with Google.
|
|
277
54
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
- ✅ Teams with 10+ documentation notebooks
|
|
281
|
-
- ✅ n8n workflows needing dynamic doc access
|
|
282
|
-
- ✅ Claude Code autonomous research
|
|
283
|
-
- ✅ Onboarding new developers without manual setup
|
|
284
|
-
|
|
285
|
-
### Example workflow
|
|
286
|
-
|
|
287
|
-
```bash
|
|
288
|
-
# 1. Add documentation notebooks (auto-discover metadata)
|
|
289
|
-
curl -X POST /notebooks/auto-discover -d '{"url": "https://notebooklm.google.com/notebook/n8n-docs"}'
|
|
290
|
-
curl -X POST /notebooks/auto-discover -d '{"url": "https://notebooklm.google.com/notebook/react-guide"}'
|
|
291
|
-
|
|
292
|
-
# 2. Claude Code autonomously discovers relevant notebook
|
|
293
|
-
User: "Build Gmail automation with n8n"
|
|
294
|
-
→ System matches: "n8n-docs" (tags: ["n8n", "gmail", "automation"])
|
|
295
|
-
→ Query NotebookLM: "Gmail node configuration?"
|
|
296
|
-
→ Claude implements with accurate info
|
|
297
|
-
|
|
298
|
-
# 3. Zero hallucinations, zero manual intervention
|
|
299
|
-
```
|
|
300
|
-
|
|
301
|
-
---
|
|
302
|
-
|
|
303
|
-
### Background Daemon Mode
|
|
304
|
-
|
|
305
|
-
Run the HTTP server as a background process without keeping a terminal window open:
|
|
55
|
+
### Option 2: HTTP REST API (n8n, Zapier, Make.com)
|
|
306
56
|
|
|
307
57
|
```bash
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
npm run
|
|
313
|
-
|
|
314
|
-
# Check server status
|
|
315
|
-
npm run daemon:status
|
|
316
|
-
|
|
317
|
-
# Restart server
|
|
318
|
-
npm run daemon:restart
|
|
319
|
-
|
|
320
|
-
# Stop server
|
|
321
|
-
npm run daemon:stop
|
|
322
|
-
|
|
323
|
-
# Remove from PM2 process list
|
|
324
|
-
npm run daemon:delete
|
|
325
|
-
```
|
|
326
|
-
|
|
327
|
-
**Features:**
|
|
328
|
-
|
|
329
|
-
- ✅ Runs in background without terminal window
|
|
330
|
-
- ✅ Auto-restart on crash
|
|
331
|
-
- ✅ Centralized log management (logs/pm2-\*.log)
|
|
332
|
-
- ✅ Memory limit protection (1GB max)
|
|
333
|
-
- ✅ Production-ready process management
|
|
334
|
-
|
|
335
|
-
**Configuration:** Edit `ecosystem.config.cjs` to customize PM2 behavior (env vars, restart policy, etc.)
|
|
336
|
-
|
|
337
|
-
### Installation & Documentation
|
|
338
|
-
|
|
339
|
-
- 📖 [**Installation Guide**](./deployment/docs/01-INSTALL.md) — Step-by-step setup
|
|
340
|
-
- 🔧 [**Configuration**](./deployment/docs/02-CONFIGURATION.md) — Environment variables, security
|
|
341
|
-
- 📡 [**API Reference**](./deployment/docs/03-API.md) — Complete endpoint documentation
|
|
342
|
-
- 📚 [**Notebook Library**](./deployment/docs/06-NOTEBOOK-LIBRARY.md) — Multi-notebook management
|
|
343
|
-
- ✅ [**Testing Suite**](./deployment/scripts/README.md) — Automated validation scripts
|
|
344
|
-
- 🐛 [**Troubleshooting**](./deployment/docs/05-TROUBLESHOOTING.md) — Common issues
|
|
345
|
-
|
|
346
|
-
---
|
|
347
|
-
|
|
348
|
-
## MCP Installation
|
|
349
|
-
|
|
350
|
-
<details>
|
|
351
|
-
<summary>Claude Code</summary>
|
|
352
|
-
|
|
353
|
-
```bash
|
|
354
|
-
claude mcp add notebooklm npx @roomi-fields/notebooklm-mcp@latest
|
|
355
|
-
```
|
|
356
|
-
|
|
357
|
-
</details>
|
|
358
|
-
|
|
359
|
-
<details>
|
|
360
|
-
<summary>Codex</summary>
|
|
361
|
-
|
|
362
|
-
```bash
|
|
363
|
-
codex mcp add notebooklm -- npx @roomi-fields/notebooklm-mcp@latest
|
|
364
|
-
```
|
|
365
|
-
|
|
366
|
-
</details>
|
|
367
|
-
|
|
368
|
-
<details>
|
|
369
|
-
<summary>Gemini</summary>
|
|
370
|
-
|
|
371
|
-
```bash
|
|
372
|
-
gemini mcp add notebooklm npx @roomi-fields/notebooklm-mcp@latest
|
|
373
|
-
```
|
|
374
|
-
|
|
375
|
-
</details>
|
|
376
|
-
|
|
377
|
-
<details>
|
|
378
|
-
<summary>Cursor</summary>
|
|
379
|
-
|
|
380
|
-
Add to `~/.cursor/mcp.json`:
|
|
381
|
-
|
|
382
|
-
```json
|
|
383
|
-
{
|
|
384
|
-
"mcpServers": {
|
|
385
|
-
"notebooklm": {
|
|
386
|
-
"command": "npx",
|
|
387
|
-
"args": ["-y", "@roomi-fields/notebooklm-mcp@latest"]
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
```
|
|
392
|
-
|
|
393
|
-
</details>
|
|
394
|
-
|
|
395
|
-
<details>
|
|
396
|
-
<summary>amp</summary>
|
|
397
|
-
|
|
398
|
-
```bash
|
|
399
|
-
amp mcp add notebooklm -- npx @roomi-fields/notebooklm-mcp@latest
|
|
58
|
+
git clone https://github.com/roomi-fields/notebooklm-mcp.git
|
|
59
|
+
cd notebooklm-mcp
|
|
60
|
+
npm install && npm run build
|
|
61
|
+
npm run setup-auth # One-time Google login
|
|
62
|
+
npm run start:http # Start server on port 3000
|
|
400
63
|
```
|
|
401
64
|
|
|
402
|
-
</details>
|
|
403
|
-
|
|
404
|
-
<details>
|
|
405
|
-
<summary>VS Code</summary>
|
|
406
|
-
|
|
407
65
|
```bash
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
<details>
|
|
414
|
-
<summary>Other MCP clients</summary>
|
|
415
|
-
|
|
416
|
-
**Generic MCP config:**
|
|
417
|
-
|
|
418
|
-
```json
|
|
419
|
-
{
|
|
420
|
-
"mcpServers": {
|
|
421
|
-
"notebooklm": {
|
|
422
|
-
"command": "npx",
|
|
423
|
-
"args": ["@roomi-fields/notebooklm-mcp@latest"]
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
```
|
|
428
|
-
|
|
429
|
-
</details>
|
|
430
|
-
|
|
431
|
-
### MCP Quick Start
|
|
432
|
-
|
|
433
|
-
1. **Install** the MCP server (see above)
|
|
434
|
-
|
|
435
|
-
2. **Authenticate** (one-time)
|
|
436
|
-
|
|
437
|
-
Say in your chat (Claude/Codex):
|
|
438
|
-
|
|
439
|
-
```
|
|
440
|
-
"Log me in to NotebookLM"
|
|
441
|
-
```
|
|
442
|
-
|
|
443
|
-
_A Chrome window opens → log in with Google_
|
|
444
|
-
|
|
445
|
-
3. **Create your knowledge base**
|
|
446
|
-
|
|
447
|
-
Go to [notebooklm.google.com](https://notebooklm.google.com) → Create notebook → Upload your docs:
|
|
448
|
-
|
|
449
|
-
- 📄 PDFs, Google Docs, markdown files
|
|
450
|
-
- 🔗 Websites, GitHub repos
|
|
451
|
-
- 🎥 YouTube videos
|
|
452
|
-
- 📚 Multiple sources per notebook
|
|
453
|
-
|
|
454
|
-
Share: **⚙️ Share → Anyone with link → Copy**
|
|
455
|
-
|
|
456
|
-
4. **Let Claude use it**
|
|
457
|
-
|
|
458
|
-
```
|
|
459
|
-
"I'm building with [library]. Here's my NotebookLM: [link]"
|
|
66
|
+
# Query the API
|
|
67
|
+
curl -X POST http://localhost:3000/ask \
|
|
68
|
+
-H "Content-Type: application/json" \
|
|
69
|
+
-d '{"question": "Explain X", "notebook_id": "my-notebook"}'
|
|
460
70
|
```
|
|
461
71
|
|
|
462
|
-
**That's it.** Claude now asks NotebookLM whatever it needs, building expertise before writing code.
|
|
463
|
-
|
|
464
72
|
---
|
|
465
73
|
|
|
466
|
-
##
|
|
467
|
-
|
|
468
|
-
The original author [PleasePrompto](https://github.com/PleasePrompto) also created a **Python-based Claude Code Skill** as an alternative approach:
|
|
74
|
+
## Documentation
|
|
469
75
|
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
|
475
|
-
|
|
|
476
|
-
|
|
|
477
|
-
|
|
|
478
|
-
|
|
|
479
|
-
|
|
|
480
|
-
| **HTTP API** | ✅ Works with n8n, Zapier, Make.com | ❌ Not available |
|
|
481
|
-
| **Language** | TypeScript | Python |
|
|
482
|
-
| **Use case** | Long conversations, automation workflows | Quick one-off queries |
|
|
483
|
-
|
|
484
|
-
### Which one should you choose?
|
|
485
|
-
|
|
486
|
-
- **Use this MCP project** if you want:
|
|
487
|
-
- Persistent sessions (faster repeated queries)
|
|
488
|
-
- Compatibility with multiple tools (Cursor, Codex, etc.)
|
|
489
|
-
- HTTP REST API for n8n/Zapier automation
|
|
490
|
-
- TypeScript-based development
|
|
491
|
-
|
|
492
|
-
- **Use the original Skill** if you prefer:
|
|
493
|
-
- Python-based workflow
|
|
494
|
-
- Simpler clone-and-use installation
|
|
495
|
-
- Stateless queries (no session management)
|
|
496
|
-
- Only using Claude Code locally
|
|
497
|
-
|
|
498
|
-
Both use the same Patchright browser automation technology and provide zero-hallucination answers from NotebookLM.
|
|
499
|
-
|
|
500
|
-
---
|
|
501
|
-
|
|
502
|
-
## Real-World Example
|
|
503
|
-
|
|
504
|
-
### Building an n8n Workflow Without Hallucinations
|
|
505
|
-
|
|
506
|
-
**Challenge**: n8n's API is new — Claude hallucinates node names and functions.
|
|
507
|
-
|
|
508
|
-
**Solution**:
|
|
509
|
-
|
|
510
|
-
1. Downloaded complete n8n documentation → merged into manageable chunks
|
|
511
|
-
2. Uploaded to NotebookLM
|
|
512
|
-
3. Told Claude: _"Build me a Gmail spam filter workflow. Use this NotebookLM: [link]"_
|
|
513
|
-
|
|
514
|
-
**Watch the AI-to-AI conversation:**
|
|
515
|
-
|
|
516
|
-
```
|
|
517
|
-
Claude → "How does Gmail integration work in n8n?"
|
|
518
|
-
NotebookLM → "Use Gmail Trigger with polling, or Gmail node with Get Many..."
|
|
519
|
-
|
|
520
|
-
Claude → "How to decode base64 email body?"
|
|
521
|
-
NotebookLM → "Body is base64url encoded in payload.parts, use Function node..."
|
|
522
|
-
|
|
523
|
-
Claude → "How to parse OpenAI response as JSON?"
|
|
524
|
-
NotebookLM → "Set responseFormat to json, use {{ $json.spam }} in IF node..."
|
|
525
|
-
|
|
526
|
-
Claude → "What about error handling if the API fails?"
|
|
527
|
-
NotebookLM → "Use Error Trigger node with Continue On Fail enabled..."
|
|
528
|
-
|
|
529
|
-
Claude → ✅ "Here's your complete workflow JSON..."
|
|
530
|
-
```
|
|
531
|
-
|
|
532
|
-
**Result**: Perfect workflow on first try. No debugging hallucinated APIs.
|
|
76
|
+
| Guide | Description |
|
|
77
|
+
| ------------------------------------------------------------ | ----------------------------------------- |
|
|
78
|
+
| [Installation](./deployment/docs/01-INSTALL.md) | Step-by-step setup for HTTP and MCP modes |
|
|
79
|
+
| [Configuration](./deployment/docs/02-CONFIGURATION.md) | Environment variables and security |
|
|
80
|
+
| [API Reference](./deployment/docs/03-API.md) | Complete HTTP endpoint documentation |
|
|
81
|
+
| [n8n Integration](./deployment/docs/04-N8N-INTEGRATION.md) | Workflow automation setup |
|
|
82
|
+
| [Troubleshooting](./deployment/docs/05-TROUBLESHOOTING.md) | Common issues and solutions |
|
|
83
|
+
| [Notebook Library](./deployment/docs/06-NOTEBOOK-LIBRARY.md) | Multi-notebook management |
|
|
84
|
+
| [Auto-Discovery](./deployment/docs/07-AUTO-DISCOVERY.md) | Autonomous metadata generation |
|
|
85
|
+
| [Chrome Limitation](./docs/CHROME_PROFILE_LIMITATION.md) | HTTP/MCP simultaneous mode issue |
|
|
533
86
|
|
|
534
87
|
---
|
|
535
88
|
|
|
536
89
|
## Core Features
|
|
537
90
|
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
Manage multiple NotebookLM notebooks with automatic validation, duplicate detection, and smart selection.
|
|
545
|
-
|
|
546
|
-
### **Autonomous Research**
|
|
547
|
-
|
|
548
|
-
Claude asks follow-up questions automatically, building complete understanding before coding.
|
|
549
|
-
|
|
550
|
-
### **Deep, Iterative Research**
|
|
551
|
-
|
|
552
|
-
- Claude automatically asks follow-up questions to build complete understanding
|
|
553
|
-
- Each answer triggers deeper questions until Claude has all the details
|
|
554
|
-
- Example: For n8n workflow, Claude asked multiple sequential questions about Gmail integration, error handling, and data transformation
|
|
555
|
-
|
|
556
|
-
### **HTTP REST API**
|
|
557
|
-
|
|
558
|
-
Use NotebookLM from n8n, Zapier, Make.com, or any HTTP client. No MCP required.
|
|
559
|
-
|
|
560
|
-
### **Cross-Tool Sharing**
|
|
561
|
-
|
|
562
|
-
Set up once, use everywhere. Claude Code, Codex, Cursor, n8n — all can access the same library.
|
|
91
|
+
- **Zero Hallucinations** — NotebookLM refuses to answer if info isn't in your docs
|
|
92
|
+
- **Multi-Notebook Library** — Manage multiple notebooks with validation and smart selection
|
|
93
|
+
- **Auto-Discovery** — Automatically generate metadata via NotebookLM queries
|
|
94
|
+
- **HTTP REST API** — Use from n8n, Zapier, Make.com, or any HTTP client
|
|
95
|
+
- **Daemon Mode** — Run as background process with PM2 (`npm run daemon:start`)
|
|
96
|
+
- **Cross-Tool** — Works with Claude Code, Cursor, Codex, and any MCP client
|
|
563
97
|
|
|
564
98
|
---
|
|
565
99
|
|
|
566
100
|
## Architecture
|
|
567
101
|
|
|
568
|
-
```
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
C --> D[Chrome Automation]
|
|
573
|
-
D --> E[NotebookLM]
|
|
574
|
-
E --> F[Gemini 2.5]
|
|
575
|
-
F --> G[Your Docs]
|
|
576
|
-
G --> F
|
|
577
|
-
F --> E
|
|
578
|
-
E --> D
|
|
579
|
-
D --> C
|
|
580
|
-
C --> B
|
|
581
|
-
B --> H[Accurate Output]
|
|
102
|
+
```
|
|
103
|
+
Your Task → Agent/n8n → MCP/HTTP Server → Chrome Automation → NotebookLM → Gemini 2.5 → Your Docs
|
|
104
|
+
↓
|
|
105
|
+
Accurate Output
|
|
582
106
|
```
|
|
583
107
|
|
|
584
108
|
---
|
|
585
109
|
|
|
586
|
-
##
|
|
587
|
-
|
|
588
|
-
| Intent | Say | Result |
|
|
589
|
-
| --------------- | ------------------------------------------------------------- | -------------------------------- |
|
|
590
|
-
| Authenticate | _"Open NotebookLM auth setup"_ or _"Log me in to NotebookLM"_ | Chrome opens for login |
|
|
591
|
-
| Add notebook | _"Add [link] to library"_ | Saves notebook with metadata |
|
|
592
|
-
| List notebooks | _"Show our notebooks"_ | Lists all saved notebooks |
|
|
593
|
-
| Research first | _"Research this in NotebookLM before coding"_ | Multi-question session |
|
|
594
|
-
| Select notebook | _"Use the React notebook"_ | Sets active notebook |
|
|
595
|
-
| Update notebook | _"Update notebook tags"_ | Modify metadata |
|
|
596
|
-
| Remove notebook | _"Remove [notebook] from library"_ | Deletes from library |
|
|
597
|
-
| View browser | _"Show me the browser"_ | Watch live NotebookLM chat |
|
|
598
|
-
| Fix auth | _"Repair NotebookLM authentication"_ | Clears and re-authenticates |
|
|
599
|
-
| Switch account | _"Re-authenticate with different Google account"_ | Changes account |
|
|
600
|
-
| Clean restart | _"Run NotebookLM cleanup"_ | Removes all data for fresh start |
|
|
601
|
-
|
|
602
|
-
---
|
|
603
|
-
|
|
604
|
-
## Comparison to Alternatives
|
|
605
|
-
|
|
606
|
-
### vs. Downloading docs locally
|
|
607
|
-
|
|
608
|
-
- **You**: Download docs → Claude: "search through these files"
|
|
609
|
-
- **Problem**: Claude reads thousands of files → massive token usage, often misses connections
|
|
610
|
-
- **NotebookLM**: Pre-indexed by Gemini, semantic understanding across all docs
|
|
611
|
-
|
|
612
|
-
### vs. Web search
|
|
613
|
-
|
|
614
|
-
- **You**: "Research X online"
|
|
615
|
-
- **Problem**: Outdated info, hallucinated examples, unreliable sources
|
|
616
|
-
- **NotebookLM**: Only your trusted docs, always current, with citations
|
|
110
|
+
## Roadmap
|
|
617
111
|
|
|
618
|
-
|
|
112
|
+
See [ROADMAP.md](./ROADMAP.md) for planned features and version history.
|
|
619
113
|
|
|
620
|
-
|
|
621
|
-
- **Problem**: Hours of setup, tuning retrieval, still gets "creative" with gaps
|
|
622
|
-
- **NotebookLM**: Upload docs → done. Google handles everything.
|
|
114
|
+
**Next up (v1.4.0):** Separate Chrome profiles to enable HTTP + MCP modes simultaneously.
|
|
623
115
|
|
|
624
116
|
---
|
|
625
117
|
|
|
626
|
-
##
|
|
627
|
-
|
|
628
|
-
**Is it really zero hallucinations?**
|
|
629
|
-
Yes. NotebookLM is specifically designed to only answer from uploaded sources. If it doesn't know, it says so.
|
|
630
|
-
|
|
631
|
-
**What about rate limits?**
|
|
632
|
-
Free tier has daily query limits per Google account. Quick account switching supported for continued research.
|
|
633
|
-
|
|
634
|
-
**How secure is this?**
|
|
635
|
-
Chrome runs locally. Your credentials never leave your machine. Use a dedicated Google account if concerned.
|
|
118
|
+
## Disclaimer
|
|
636
119
|
|
|
637
|
-
|
|
638
|
-
Yes! Say _"Show me the browser"_ (MCP mode) or set `HEADLESS=false` (HTTP mode) to watch the live NotebookLM conversation.
|
|
120
|
+
This tool automates browser interactions with NotebookLM. Use a dedicated Google account for automation. CLI tools like Claude Code can make mistakes — always review changes before deploying.
|
|
639
121
|
|
|
640
|
-
|
|
641
|
-
Your docs are always current. No training cutoff. No hallucinations. Perfect for new libraries, internal APIs, or fast-moving projects.
|
|
122
|
+
See full [Disclaimer](#disclaimer-details) below.
|
|
642
123
|
|
|
643
124
|
---
|
|
644
125
|
|
|
645
|
-
##
|
|
126
|
+
## Contributing
|
|
646
127
|
|
|
647
|
-
|
|
128
|
+
Found a bug? Have an idea? [Open an issue](https://github.com/roomi-fields/notebooklm-mcp/issues) or submit a PR!
|
|
648
129
|
|
|
649
|
-
|
|
130
|
+
See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
|
|
650
131
|
|
|
651
|
-
|
|
132
|
+
## License
|
|
652
133
|
|
|
653
|
-
|
|
134
|
+
MIT — Use freely in your projects. See [LICENSE](./LICENSE).
|
|
654
135
|
|
|
655
|
-
|
|
136
|
+
---
|
|
656
137
|
|
|
657
|
-
|
|
138
|
+
<details>
|
|
139
|
+
<summary><a name="disclaimer-details"></a>Full Disclaimer</summary>
|
|
658
140
|
|
|
659
141
|
**About browser automation:**
|
|
660
|
-
While I've built in humanization features (realistic typing speeds, natural delays, mouse movements)
|
|
142
|
+
While I've built in humanization features (realistic typing speeds, natural delays, mouse movements), I can't guarantee Google won't detect or flag automated usage. Use a dedicated Google account for automation.
|
|
661
143
|
|
|
662
144
|
**About CLI tools and AI agents:**
|
|
663
|
-
CLI tools like Claude Code, Codex, and similar AI-powered assistants are
|
|
145
|
+
CLI tools like Claude Code, Codex, and similar AI-powered assistants are powerful but can make mistakes:
|
|
664
146
|
|
|
665
147
|
- Always review changes before committing or deploying
|
|
666
148
|
- Test in safe environments first
|
|
667
149
|
- Keep backups of important work
|
|
668
|
-
-
|
|
669
|
-
|
|
670
|
-
I built this tool for myself because I was tired of the copy-paste dance between NotebookLM and my editor. I'm sharing it in the hope it helps others too, but I can't take responsibility for any issues, data loss, or account problems that might occur. Use at your own discretion and judgment.
|
|
671
|
-
|
|
672
|
-
That said, if you run into problems or have questions, feel free to open an issue on GitHub. I'm happy to help troubleshoot!
|
|
150
|
+
- AI agents are assistants, not infallible oracles
|
|
673
151
|
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
## Roadmap
|
|
677
|
-
|
|
678
|
-
### ✅ Implemented in v1.3.2
|
|
679
|
-
|
|
680
|
-
**🤖 Auto-Discovery: Autonomous Resource Discovery**
|
|
681
|
-
|
|
682
|
-
- ✅ Automatically generate notebook name, description, and tags via NotebookLM
|
|
683
|
-
- ✅ Progressive disclosure pattern inspired by Claude Skills best practices
|
|
684
|
-
- ✅ Zero-friction notebook addition (30 seconds vs 5 minutes)
|
|
685
|
-
- ✅ Validation of auto-generated metadata (kebab-case, description length, tags count)
|
|
686
|
-
- ✅ Orchestrators discover relevant documentation autonomously
|
|
687
|
-
|
|
688
|
-
**👉 See [Auto-Discovery Documentation](./deployment/docs/07-AUTO-DISCOVERY.md) for details**
|
|
689
|
-
|
|
690
|
-
### 🔧 Minor Fixes (v1.3.5)
|
|
691
|
-
|
|
692
|
-
**Cosmetic improvements:**
|
|
693
|
-
|
|
694
|
-
- Fix PowerShell `CursorPosition` error in test scripts (non-interactive terminal)
|
|
695
|
-
- Add strict type validation for `show_browser` parameter (return 400 on invalid types)
|
|
696
|
-
|
|
697
|
-
### 🔜 Planned for v1.4.0+
|
|
698
|
-
|
|
699
|
-
**🔥 Separate Chrome Profiles by Mode (Priority):**
|
|
700
|
-
|
|
701
|
-
- Enable HTTP and MCP stdio modes to run simultaneously
|
|
702
|
-
- Automatic profile detection: `chrome_profile_http` vs `chrome_profile_stdio`
|
|
703
|
-
- No user configuration needed - just works
|
|
704
|
-
- Solves Chrome profile locking issue for dual-mode users
|
|
705
|
-
- **👉 See [Chrome Profile Limitation](./docs/CHROME_PROFILE_LIMITATION.md) for details**
|
|
706
|
-
|
|
707
|
-
**Smart Metadata Refresh:**
|
|
708
|
-
|
|
709
|
-
- Auto-detect when notebook content has changed
|
|
710
|
-
- Re-query NotebookLM to update metadata
|
|
711
|
-
- Endpoint: `PATCH /notebooks/:id/refresh`
|
|
712
|
-
|
|
713
|
-
**Semantic Matching:**
|
|
714
|
-
|
|
715
|
-
- Use embeddings for advanced notebook matching beyond tags
|
|
716
|
-
- Endpoint: `GET /notebooks/match?query=gmail&semantic=true`
|
|
717
|
-
|
|
718
|
-
**Usage Analytics:**
|
|
152
|
+
I built this tool for myself and share it hoping it helps others, but I can't take responsibility for any issues that might occur. Use at your own discretion.
|
|
719
153
|
|
|
720
|
-
|
|
721
|
-
- Suggest related notebooks based on usage patterns
|
|
722
|
-
- Endpoint: `GET /notebooks/:id/related`
|
|
723
|
-
|
|
724
|
-
### 🚀 Previously Implemented
|
|
725
|
-
|
|
726
|
-
**✅ PM2 Daemon Mode (v1.1.2):**
|
|
727
|
-
|
|
728
|
-
- Cross-platform process manager with auto-restart
|
|
729
|
-
- Commands: `npm run daemon:start`, `daemon:logs`, `daemon:status`
|
|
730
|
-
- Built-in log rotation and monitoring
|
|
731
|
-
|
|
732
|
-
**✅ Multi-Notebook Library (v1.1.2):**
|
|
733
|
-
|
|
734
|
-
- Live validation of notebooks
|
|
735
|
-
- Duplicate detection
|
|
736
|
-
- Smart notebook selection
|
|
737
|
-
|
|
738
|
-
### 💡 Have an idea?
|
|
739
|
-
|
|
740
|
-
[Open a discussion](https://github.com/roomi-fields/notebooklm-mcp/discussions) to suggest new features!
|
|
741
|
-
|
|
742
|
-
---
|
|
743
|
-
|
|
744
|
-
## Contributing
|
|
745
|
-
|
|
746
|
-
Found a bug? Have a feature idea? [Open an issue](https://github.com/roomi-fields/notebooklm-mcp/issues) or submit a PR!
|
|
747
|
-
|
|
748
|
-
See [CONTRIBUTING.md](./CONTRIBUTING.md) for contribution guidelines.
|
|
749
|
-
|
|
750
|
-
## License
|
|
751
|
-
|
|
752
|
-
MIT — Use freely in your projects.
|
|
753
|
-
|
|
754
|
-
See [LICENSE](./LICENSE) for details.
|
|
154
|
+
</details>
|
|
755
155
|
|
|
756
156
|
---
|
|
757
157
|
|