Skip to main content
Glama
Pantheon-Security

NotebookLM MCP Server (Security Hardened)

get_notebook_chat_history

Extract conversation history from NotebookLM notebooks to recover previous research, audit queries, and resume context from chat sessions.

Instructions

Extract conversation history from a NotebookLM notebook's chat interface.

This tool uses browser automation to navigate to a notebook and extract all Q&A pairs from the chat UI. This is useful for:

  • Recovering previous research conversations

  • Auditing what queries were made in a notebook

  • Understanding quota usage from direct NotebookLM browser usage

  • Resuming context from previous sessions

Context Management

Use preview_only: true to get a quick count before extracting full content. Use output_file to export to JSON instead of returning to context. Use offset with limit for pagination through large histories.

Examples

Quick audit (preview only):

{ "notebook_id": "my-research", "preview_only": true }

Export to file (avoids context overflow):

{ "notebook_id": "my-research", "output_file": "/tmp/chat-history.json" }

Paginate through history:

{ "notebook_id": "my-research", "limit": 20, "offset": 0 } { "notebook_id": "my-research", "limit": 20, "offset": 20 }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
notebook_idNoLibrary notebook ID. Use list_notebooks to see available notebooks.
notebook_urlNoDirect notebook URL (overrides notebook_id). Use for notebooks not in your library.
preview_onlyNoIf true, only returns message count and summary without content. Use this to audit before extracting full history. (default: false)
limitNoMaximum number of message pairs to return (default: 50, max: 200).
offsetNoNumber of message pairs to skip from the start. Use with limit for pagination. (default: 0)
output_fileNoIf provided, exports chat history to this JSON file instead of returning to context. Useful for large histories.
show_browserNoShow browser window for debugging (default: false)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Pantheon-Security/notebooklm-mcp-secure'

If you have feedback or need assistance with the MCP directory API, please join our Discord server