Skip to main content

MCP server for Google NotebookLM - Create notebooks, add sources, and query AI with citations

Project description

kof-notebooklm-mcp

PyPI version License: MIT 中文文檔

MCP Server for Google NotebookLM — Create notebooks, add sources, and query AI with citations directly from your IDE.

🧠 Part of the KOF-LocalBrain ecosystem


Features

  • 🆕 Create Notebooks — Programmatically create and name NotebookLM notebooks
  • 📄 Add Sources — Upload URLs or paste text directly into notebooks
  • 💬 Ask Questions — Query the AI and get answers with source citations
  • 📋 List & Inspect — Browse notebooks and their sources
  • 🔐 Persistent Auth — Login once, reuse session across runs

Installation

pip install kof-notebooklm-mcp

Post-install Setup

# Install Playwright browsers
playwright install chromium

# Initialize authentication (opens browser for Google login)
kof-notebooklm-init

Quick Start

As MCP Server

Add to your MCP configuration (mcp_config.json):

{
  "mcpServers": {
    "notebooklm": {
      "command": "kof-notebooklm-mcp",
      "args": []
    }
  }
}

Available Tools

Tool Description
health_check Verify connection and auth status
list_notebooks List all notebooks
create_notebook Create a new notebook (with optional title)
get_notebook Get notebook details
list_sources List sources in a notebook
add_source Add URL or text source
ask Query notebook AI with citations

Example Usage (via MCP client)

# Create a research notebook
result = await mcp.call_tool("create_notebook", {"title": "Market Research 2026"})
notebook_id = result["notebook_id"]

# Add a source
await mcp.call_tool("add_source", {
    "notebook_id": notebook_id,
    "source_type": "url",
    "url": "https://example.com/report.pdf"
})

# Ask a question
answer = await mcp.call_tool("ask", {
    "notebook_id": notebook_id,
    "question": "What are the key market trends?"
})
print(answer["answer"])
print(answer["citations"])

Configuration

Environment variables (optional):

Variable Description Default
KOF_NOTEBOOKLM_HEADLESS Run browser in headless mode true
KOF_NOTEBOOKLM_PROFILE_DIR Browser profile directory ~/.kof-notebooklm/profile

Development

git clone https://github.com/keeponfirst/kof-notebooklm-mcp.git
cd kof-notebooklm-mcp

pip install -e ".[dev]"
pytest

License

MIT License - see LICENSE for details.


Related Projects

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kof_notebooklm_mcp-0.1.0.tar.gz (64.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kof_notebooklm_mcp-0.1.0-py3-none-any.whl (51.1 kB view details)

Uploaded Python 3

File details

Details for the file kof_notebooklm_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: kof_notebooklm_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 64.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kof_notebooklm_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8a1d5d1b74a6c6c3b26ee1e3c8cdd6f273c4897f443d40704c779881ffe9fec0
MD5 30af06b78fd649838f575566d1ead565
BLAKE2b-256 157b0eb4aba47ac98175b9609867c201b540b49ad88c0677ddc441a540803a6b

See more details on using hashes here.

Provenance

The following attestation bundles were made for kof_notebooklm_mcp-0.1.0.tar.gz:

Publisher: publish.yml on keeponfirst/kof-notebooklm-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kof_notebooklm_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kof_notebooklm_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5772f1a7e3c2883e2a0a4d34d10d1f1279ecd4ba33a3241b09b2ad2b5698a9df
MD5 a9b2ef0880d0919cc6540420f7c517a7
BLAKE2b-256 759214a4d3fe354ea28dac064e7f733169ab29aec4cd02d945c1a0f36084749b

See more details on using hashes here.

Provenance

The following attestation bundles were made for kof_notebooklm_mcp-0.1.0-py3-none-any.whl:

Publisher: publish.yml on keeponfirst/kof-notebooklm-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page