Skip to main content
Glama
README.md
# NotebookLM MCP Server

Connect Claude to Google NotebookLM. Create podcasts, videos, quizzes, and more — just by asking.

## What This Does

After setup, you can say things like:
- "Create a podcast about AI trends"
- "Turn this article into an audio overview"
- "Generate flashcards from my research"
- "Make a video explainer about climate change"

Claude handles everything: creating notebooks, adding sources, generating content, downloading files.

## Quick Start (5 minutes)

### Step 1: Install

```bash
# Install with browser support (needed for Google login)
pip install "notebooklm-mcp[browser]"

# Install Chromium for browser automation
playwright install chromium
```

### Step 2: Login to Google

```bash
notebooklm-mcp login
```

This opens a browser — log in with your Google account. Your session is saved locally.

### Step 3: Configure Claude Desktop

```bash
notebooklm-mcp install
```

This automatically adds the MCP server to Claude Desktop's config.

### Step 4: Restart Claude Desktop

Close and reopen Claude Desktop. NotebookLM tools are now available!

### Step 5: Try It

Open Claude Desktop and say:

> "Create a new NotebookLM notebook called 'AI Research', add this Wikipedia article about machine learning, and generate an audio overview"

## Manual Configuration

If `notebooklm-mcp install` doesn't work, manually edit your Claude config:

**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
**Linux**: `~/.config/Claude/claude_desktop_config.json`

Add this:

```json
{
  "mcpServers": {
    "notebooklm": {
      "command": "notebooklm-mcp",
      "args": ["serve"]
    }
  }
}
```

Then restart Claude Desktop.

## Available Tools

Once connected, Claude can use these tools:

| Tool | Description |
|------|-------------|
| `notebooklm_create_notebook` | Create a new notebook |
| `notebooklm_add_source_url` | Add a webpage or YouTube video |
| `notebooklm_add_source_text` | Add pasted text content |
| `notebooklm_generate_audio` | Create podcast (deep-dive, brief, critique, debate) |
| `notebooklm_generate_video` | Create video overview |
| `notebooklm_generate_quiz` | Create quiz questions |
| `notebooklm_generate_flashcards` | Create study flashcards |
| `notebooklm_generate_study_guide` | Create study guide or briefing doc |
| `notebooklm_ask` | Ask questions about your sources |
| `notebooklm_download_artifact` | Download generated content |

## Commands

```bash
notebooklm-mcp login      # Authenticate with Google
notebooklm-mcp status     # Check if authenticated
notebooklm-mcp install    # Configure Claude Desktop
notebooklm-mcp uninstall  # Remove from Claude Desktop
notebooklm-mcp serve      # Start MCP server (used by Claude)
```

## Troubleshooting

### "Not authenticated" error

Run `notebooklm-mcp login` again. Sessions expire after a few weeks.

### Claude doesn't see the tools

1. Check config: `notebooklm-mcp install`
2. Restart Claude Desktop completely (quit, not just close window)
3. Check Claude Desktop logs for errors

### Playwright install fails

On Linux, you may need:
```bash
sudo apt-get install libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libpango-1.0-0 libcairo2 libasound2
```

### Audio/video generation takes forever

This is normal — NotebookLM can take 2-10 minutes to generate audio/video. Claude will wait automatically.

## How It Works

```
You: "Create a podcast about quantum computing"
  ↓
Claude: [Calls notebooklm_create_notebook]
Claude: [Calls notebooklm_add_source_url with Wikipedia articles]
Claude: [Calls notebooklm_generate_audio]
Claude: [Calls notebooklm_wait_for_artifact]
Claude: [Calls notebooklm_download_artifact]
  ↓
You: Here's your podcast! [audio file]
```

## Security Notes

- Credentials are stored locally in `~/.notebooklm/`
- Only you can access your NotebookLM data
- No data is sent to third parties
- Uses Google's internal APIs (unofficial)

## Credits

Built on top of [notebooklm-py](https://github.com/teng-lin/notebooklm-py) by Teng Lin.

## License

MIT