notebooklm-memory-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Local NotebookLM MCP server with pinned dependencies, corpus-only paths, and no cookie or token forwarding.
Built for AI agents that need session memory and context engineering on Windows. It keeps the upstream client pinned and stops credential-shaped names and common secret patterns from reaching tool calls.
What and why
notebooklm-py exposes NotebookLM to MCP clients, but it accepts arbitrary file paths and text arguments and keeps its own browser session. This package starts that upstream server over stdio, pins the dependency version, and applies guardrails before each tool call. Diagnostics go to stderr so stdout stays MCP JSON-RPC.
Related MCP server: notebooklm-mcp
Usage
Command | What it does |
| Starts the guarded server over stdio. |
| Runs the guard tests. |
| Checks Python syntax. |
| Builds a wheel and source distribution. |
Point your MCP client at examples/mcp.json. It contains a stdio command and a corpus path, with no cookie or token values.
Configuration
Key | Default | Meaning |
|
| Directory for local source paths. Relative paths resolve inside it; absolute paths outside it are refused. |
How it works
What you see | Where it comes from |
Startup exits on a version mismatch |
|
Refused source path |
|
Redacted argument |
|
Upstream tools |
|
Privacy and security
This repository ships no browser cookies, master token, .env file, SSH key or raw transcript. The upstream client manages its login state under ~/.notebooklm/; treat that directory as a credential and never add it to a notebook source. The guard is defense in depth, not a sandbox: curate corpus files yourself.
Run it
Python 3.13 and uv 0.12.13 or newer are required. A NotebookLM account is needed for upstream calls, but this repository performs no login. No administrator rights are needed.
git clone https://github.com/Krow-zy/notebooklm-memory-mcp.git
cd notebooklm-memory-mcp
uv sync --frozen
uv run pytest -q
uv run notebooklm-memory-mcpBuild from source
uv sync --frozen
uv run python -m compileall -q src tests tools
uv run pytest -q
uv buildThe build writes dist/*.whl and dist/*.tar.gz. Regenerate the committed icon with uv run python tools/generate-icon.py.
Limits, stated plainly
Pinned to
notebooklm-py==0.8.6; startup fails closed on any other version.Redaction covers 5 regex patterns and 13 named text keys. Other formats are not detected.
The path guard does not inspect file contents, so corpus files must be curated manually.
NotebookLM's upload endpoint rejects
.html; keep HTML out of the corpus.No login flow is implemented here; upstream owns browser auth and session storage.
No release is published by pushing a tag; publishing is a separate manual workflow run.
Memory and CPU floor have not been measured. The process inherits Python and upstream browser dependencies.
Repository layout
Path | Contents |
| Server wrapper, guard middleware and guard functions. |
| Guard tests. |
| MCP client config and a curated corpus placeholder. |
| Committed 256 px icon. |
| Icon regeneration script. |
| CI and release-verification workflows. |
Releasing
Pushing v0.1.0 runs the Release workflow's verify job: tests, version/tag check and build. Publishing requires running the same workflow with publish=true; no GitHub release is created by this initial commit.
License
MIT - 2026 Krow-zy
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Canonical copy: LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent memory, hybrid search and a goal graph for AI agents, over stdio or remote HTTP.
Securely search and manage workspace context files for AI agents and teams.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
CellMath is a governed AI memory and knowledge-cell MCP server designed to stop context bloat, unverified memory drift, and agent hallucinations. Instead of dumping raw, noisy RAG chunks into every turn, CellMath organizes persistent agent knowledge into structured, isolated Knowledge Cells with causal graph edges and strict write-time governance—keeping the full 3-tool MCP schema ultra-compact (~1,200 tokens). Core 3-Tool Pipeline: • vault_access — Read-only lookup, cell hydration, and graph edge traversal with strict zero-match silence (never fabricates context when no verified cell exists). • verify_safety — Preflight security and policy gate that blocks destructive or unsafe operations before execution. • vault_commit — Governed state mutation (store, update, causal edges, session checkpoints, and 4-tier purge) enforcing source provenance. Built for Claude, Cursor, ChatGPT, Gemini, and autonomous agents over Streamable HTTP.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI agents to interact with Google NotebookLM for grounded, hallucination-free answers through notebook management, source management, research, and generation tools.29255 npm45MIT
- AlicenseBqualityCmaintenanceMCP server that provides ~39 tools to interact with Google NotebookLM's internal API, enabling notebook management, source addition, chat queries, and Studio artifact generation through stdio, HTTP, and SSE transports.39MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to open, edit, check, run, emit, and save source programs through structured, revision-checked tools over stdio, confining paths to the launch root and returning diagnostics with fixes for rejected edits.2Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables compatible agents to call registered local tools and read resources through one stdio server, including harness preparation, knowledge search and document management, memory retention/recall, correction proposals, advisory decisions, tool/skill discovery, and log/source inspection.2Apache 2.0