Notebooklm Py Diet Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Notebooklm Py Diet Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
The Context Bridge -- Connecting AI coding agents to Google NotebookLM
Connect your AI agent to Google NotebookLM. Query your notebooks, add sources, generate reports, podcasts, slide decks, and more -- directly from Cursor, Claude Code, or any MCP-compatible client.
Workflow-orientated MCP toolset for IDE level interaction with NotebookLM. Designed as a smart and lightweight MCP server to enable AI code assist-native multi-step workflows (research, generate artifacts, download and convert). Packaged as single tool calls so the agent gets more done with less messing aroung and without losing capability.
Built on notebooklm-py by Teng Lin.
Unofficial -- Uses undocumented Google APIs via notebooklm-py. Not affiliated with Google. APIs may change without notice.
Need granular control over every SDK method? See the full-fat notebooklm-py-MCP (72 individual tools exposed - designed primarily for testing).
This server is not just a thin wrapper. It adds capabilities that the underlying API does not provide:
templates/slide_styles.md. Pass any template as the instructions parameter to generate_and_download and NotebookLM will follow the specified tone, colour palette, typography, and layout rules. Create your own templates using the same structure.pdf_to_png splits a downloaded slide deck (or any PDF) into individual page images that an LLM can review, critique, or annotate. png_to_pdf reassembles edited pages back into a single document. This enables a generate-review-refine loop that is not possible through the NotebookLM interface alone.ask_question accepts optional persona and response_length parameters, configuring the chat persona in the same call rather than requiring a separate configuration step.| Tool | Description |
|---|---|
list_notebooks_tool | List all notebooks with IDs and titles |
create_notebook | Create a new notebook |
list_sources | List all sources in a notebook |
add_sources | Add multiple sources (URL, text, file) in a single call |
ask_question | Query a notebook with optional persona, source filtering, and threading |
generate_and_download | Generate and download an artifact in one step (report, audio, slide deck, quiz, infographic) |
list_artifacts | List artifacts in a notebook |
export_artifact | Export an artifact to a file |
research_and_import | Research a topic and import results as sources automatically |
get_account_info | Show the active account and available profiles |
switch_account | Switch to a different Google account profile |
create_profile | Create a new account profile and launch browser sign-in |
pdf_to_png | Convert a PDF to individual PNG images (one per page) |
png_to_pdf | Combine PNG images into a single PDF document |
| URI | Description |
|---|---|
notebooklm://notebooks | List all notebooks (read-only) |
notebooklm://notebook/{id} | Notebook details including sources |
| Prompt | Description |
|---|---|
analyze_notebook_sources | Template for analysing notebook sources by theme |
research_topic_workflow | Guided research workflow using NotebookLM tools |
generate_styled_slides | Generate a slide deck using a bundled design template (corporate, educational, creative) |
git clone https://github.com/earlyprototype/notebooklm-py-diet-mcp.git
cd notebooklm-py-diet-mcppython -m venv venv
# Windows (PowerShell)
.\venv\Scripts\Activate.ps1
# macOS / Linux
source venv/bin/activate
pip install -e ".[dev]"Alternatively, install from requirements.txt:
pip install -r requirements.txtplaywright install chromium# Set the account profile directory
# Windows (PowerShell)
$env:NOTEBOOKLM_HOME = "$HOME\.notebooklm-work"
# macOS / Linux
export NOTEBOOKLM_HOME=~/.notebooklm-work
# Login (opens a browser window -- select your Google account)
notebooklm login
# Verify
notebooklm listAdd the following to your .cursor/mcp.json file:
{
"mcpServers": {
"notebooklm": {
"command": "<path-to-venv>/python",
"args": [
"<path-to-repo>/notebooklm_mcp_server.py"
]
}
}
}Replace the placeholder paths with your actual paths. The server manages account profiles internally -- no NOTEBOOKLM_HOME environment variable is needed. Use switch_account and get_account_info to manage profiles at runtime.
Restart Cursor after saving the configuration.
claude mcp add notebooklm -- python /path/to/notebooklm_mcp_server.pypython notebooklm_mcp_server.py --httpThen connect your client to http://localhost:8000/mcp.
Each Google account is stored in a separate directory. Set NOTEBOOKLM_HOME to switch between them:
# Authenticate different accounts
NOTEBOOKLM_HOME=~/.notebooklm-work notebooklm login # Work account
NOTEBOOKLM_HOME=~/.notebooklm notebooklm login # Personal account
NOTEBOOKLM_HOME=~/.notebooklm-design notebooklm login # Another accountThe get_account_info tool shows the currently active profile and available alternatives. Use switch_account to change at runtime without restarting.
Once configured, you can interact with NotebookLM directly from your AI agent:
List notebooks:
"List my NotebookLM notebooks"
Query a knowledge base:
"Ask the Strategy notebook: what are our key objectives for 2026?"
Set a persona and ask:
"As a strategy analyst, summarise the key risks in my Research notebook"
Add multiple sources at once:
"Add these URLs to my Research notebook: https://example.com/article1, https://example.com/article2"
Generate and download content:
"Generate a podcast overview for the Project notebook and save it" "Generate a report from the Strategy notebook and download it as PDF" "Create an infographic from the Training notebook"
Research and import:
"Research 'digital fabrication trends' and import the top results into my Research notebook"
Generate a styled slide deck:
"Generate a slide deck for the Strategy notebook using the Corporate template"
The three bundled templates produce distinctly different output from the same workflow. Each example below was generated from a subsection of an innovation literacy training programme.
Strategy consulting style -- serif headings, blue accent, data-dense layouts with charts, tables, and evidence callouts.
<p> <img src="docs/demos/selected/corporate_1.png" width="32%" alt="Corporate slide: historical analogy mapping" /> <img src="docs/demos/selected/corporate_2.png" width="32%" alt="Corporate slide: diagnostic table" /> <img src="docs/demos/selected/corporate_3.png" width="32%" alt="Corporate slide: recommendation table" /> </p>
Workshop and training style -- warm cream background, teal/amber accents, illustrated concepts, generous whitespace.
<p> <img src="docs/demos/selected/educational_1.png" width="32%" alt="Educational slide: operational vs design thinking comparison" /> <img src="docs/demos/selected/educational_2.png" width="32%" alt="Educational slide: four-point capture cycle" /> <img src="docs/demos/selected/educational_3.png" width="32%" alt="Educational slide: disproven hypothesis principle" /> </p>
Pitch deck style -- dark backgrounds, lime accent, bold typography, minimal text, visually striking layouts.
<p> <img src="docs/demos/selected/creative_1.png" width="32%" alt="Creative slide: hero statement on dark background" /> <img src="docs/demos/selected/creative_2.png" width="32%" alt="Creative slide: facilitation gap with split contrast" /> <img src="docs/demos/selected/creative_3.png" width="32%" alt="Creative slide: 2x2 grid with icons" /> </p>
See templates/slide_styles.md for the full template definitions or create your own following the same structure.
notebooklm-py-diet-mcp/
notebooklm_mcp_server.py # MCP server (14 tools, resources, prompts)
pyproject.toml # Python packaging and tool configuration
requirements.txt # Convenience dependency file
INSTRUCTIONS.md # Context injected into the LLM when loaded
LICENSE # MIT licence
README.md # This file
tests/
conftest.py # Shared test fixtures and mocks
test_helpers.py # Unit tests for helper functions
test_tools.py # Mock-based tool tests
test_lifespan.py # Server startup scenario tests
templates/
slide_styles.md # Bundled slide design templates
docs/
setup.md # Detailed setup guide
demos/selected/ # Curated slide demo images (README gallery)
demos/corporate/ # Full corporate template example set
demos/educational/ # Full educational template example set
demos/creative/ # Full creative template example setpip install -e ".[dev]"
pytestruff check .
ruff format .The INSTRUCTIONS.md file is loaded by MCP clients alongside the server and provides the LLM with usage context -- workflow patterns, error handling guidance, and tool conventions. Place it next to notebooklm_mcp_server.py or in the MCP server metadata directory used by your client.
This project would not exist without notebooklm-py by Teng Lin and contributors. It provides the complete Python API for Google NotebookLM that this MCP server wraps.
The MCP server is built using the Model Context Protocol Python SDK by Anthropic.
MIT -- see LICENSE for details.
This is an unofficial project. It is not affiliated with, endorsed by, or supported by Google. It relies on undocumented APIs that may change at any time. Use at your own risk. See the notebooklm-py security policy for credential handling guidance.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.