notebooklm-mcp

v0.5.1
@m4ykeldev/notebooklm-mcp Checked 5 days ago Published 1 month ago

MCP server for Google NotebookLM — 27 tools for notebooks, sources, research, and studio content generation

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

notebook_list List notebooks

List the user's NotebookLM notebooks, owned and shared. Returns each notebook's id, title, emoji, sources (id, title, type), ownership and timestamps, plus a count. Start here to find a notebook_id by title; once you have the id, notebook_get reads one notebook. There is no paging: if count equals max_results, call again with a higher max_results.

ParameterTypeDescription
max_resultsnumberMaximum number of notebooks to return (default 100)

notebook_create Create notebook

Create an empty NotebookLM notebook. Returns the new notebook; keep its id for every later call. Each call creates another notebook, so first look for one with this title in notebook_list. Then fill it: source_add_url, source_add_text or source_add_drive for sources you have, research_start to find some.

ParameterTypeDescription
title *stringTitle for the new notebook

notebook_get Get notebook

Get one notebook's details. Returns its title, emoji, ownership, timestamps and sources, each with id, title and type (web_page, youtube, pasted_text, pdf, google_docs, ...). Use it to find source IDs for notebook_query and the Studio tools, or to check that a source you just added has appeared.

ParameterTypeDescription
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create

notebook_summarize Summarise notebook

Ask NotebookLM for an AI-generated overview of the whole notebook. Returns a short summary of what its sources cover and the questions NotebookLM suggests asking about them. Use it to get oriented in an unfamiliar notebook; ask specific questions with notebook_query and list the sources with notebook_get.

ParameterTypeDescription
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create

notebook_rename Rename notebook

Change a notebook's title; its sources and chat stay as they are. Returns a confirmation message with the new title. Find the notebook_id with notebook_list first.

ParameterTypeDescription
new_title *stringNew title for the notebook
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create

notebook_delete Delete notebook

Permanently delete a notebook and everything in it. With confirm=false it does nothing and returns pending_confirmation; with confirm=true it deletes and returns a confirmation message. This cannot be undone: name the notebook to the user and get explicit approval first.

ParameterTypeDescription
confirm *booleanMust be true to delete. With false the tool only returns pending_confirmation
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create

source_get Describe source

Get one source's metadata. Returns its id, title, type (web_page, youtube, pasted_text, pdf, google_docs, ...) and content_length, the number of characters NotebookLM extracted from it. The text itself is left out because it can be very long; fetch it with source_get_content.

ParameterTypeDescription
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create
source_id *stringSource ID, as listed in the notebook's sources by notebook_get

source_get_content Get source text

Get the full text NotebookLM extracted from a source, with tables flattened to "cell | cell" rows. Returns { text }, which can be long: a long Wikipedia article came to about 100,000 characters. Prefer notebook_query to answer questions; use this when the user needs the verbatim text.

ParameterTypeDescription
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create
source_id *stringSource ID, as listed in the notebook's sources by notebook_get

source_add_url Add web page or YouTube source

Add a web page or a YouTube video to a notebook by URL. NotebookLM fetches the page itself, so it must be publicly reachable. Returns the new source (id, title, type web_page or youtube); the title can show the URL until processing finishes. If NotebookLM cannot fetch the page the call fails: check notebook_get before retrying.

ParameterTypeDescription
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create
url *stringPublic http(s) URL of a web page or a YouTube video

source_add_text Add text source

Add text as a source: pass it in content, or point file_path at a local file (content wins if both are set). A file_path outside the server's working directory and the OS temp directory is refused; read such a file yourself and pass content. Returns the new source (id, title, type pasted_text). For a web page or YouTube video use source_add_url; for a Drive file, source_add_drive.

ParameterTypeDescription
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create
title *stringTitle shown for the source in the notebook
contentstringText to add. Takes precedence over file_path
file_pathstringLocal file to read the text from, under the server's working directory or the OS temp directory

source_add_drive Add Google Drive source

Add a Google Drive file as a source, by its Drive file ID and MIME type; the signed-in Google account must be able to open the file. Returns the new source (id, title, type). The source is a snapshot: when the Drive file changes, refresh it with source_sync_drive. For a public web page use source_add_url instead.

ParameterTypeDescription
doc_type *stringMIME type of the Drive file, e.g. application/vnd.google-apps.document for a Google Doc or application/pdf
file_id *stringGoogle Drive file ID, the part after /d/ in the file's URL
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create
title *stringTitle shown for the source in the notebook

source_sync_drive Sync Google Drive sources

Re-import Google Drive sources (added with source_add_drive) so the notebook uses the latest version of each file, replacing the stored snapshot. With confirm=false it does nothing and returns pending_confirmation; with confirm=true it syncs and returns how many sources were synced.

ParameterTypeDescription
confirm *booleanMust be true to sync. With false the tool only returns pending_confirmation
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create
source_ids *arrayIDs of the Drive sources to sync, from notebook_get

source_delete Delete source

Permanently remove one source from a notebook. With confirm=false it does nothing and returns pending_confirmation; with confirm=true it deletes and returns a confirmation message. This cannot be undone: name the source to the user and get explicit approval first.

ParameterTypeDescription
confirm *booleanMust be true to delete. With false the tool only returns pending_confirmation
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create
source_id *stringSource ID, as listed in the notebook's sources by notebook_get

audio_overview_create Create Audio Overview

Start generating an Audio Overview: a podcast-style conversation between two AI hosts about the notebook's sources. Uses the user's NotebookLM quota and takes several minutes, so agree on the options with the user first: with confirm=false it does nothing and returns pending_confirmation. With confirm=true it returns the artifact_id; poll studio_status until that artifact is completed. Once completed, studio_status gives an audio download_url.

ParameterTypeDescription
confirm *booleanMust be true to start generation. With false the tool only returns pending_confirmation and does nothing
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create
focus_promptstringOptional instruction on what to focus on or emphasise, e.g. "the methodology section"
formatstringFormat: brief, critique, debate, deep_dive. deep_dive is the default two-host discussion
languagestringBCP-47 language code such as en, es or fr; omit for NotebookLM's default
lengthstringLength: default, long, short
source_idsarrayLimit generation to these source IDs (from notebook_get); omit to use every source in the notebook

video_overview_create Create Video Overview

Start generating a Video Overview: a narrated video with visuals that explains the notebook's sources. Uses the user's NotebookLM quota and takes several minutes, so agree on the options with the user first: with confirm=false it does nothing and returns pending_confirmation. With confirm=true it returns the artifact_id; poll studio_status until that artifact is completed. Once completed, studio_status gives a video download_url.

ParameterTypeDescription
confirm *booleanMust be true to start generation. With false the tool only returns pending_confirmation and does nothing
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create
focus_promptstringOptional instruction on what to focus on or emphasise, e.g. "the methodology section"
formatstringFormat: brief, explainer
languagestringBCP-47 language code such as en, es or fr; omit for NotebookLM's default
source_idsarrayLimit generation to these source IDs (from notebook_get); omit to use every source in the notebook
visual_stylestringVisual style: anime, auto_select, classic, custom, heritage, kawaii, paper_craft, retro_print, watercolor, whiteboard

infographic_create Create infographic

Start generating an infographic: a single image that summarises the notebook's sources visually. Uses the user's NotebookLM quota and takes several minutes, so agree on the options with the user first: with confirm=false it does nothing and returns pending_confirmation. With confirm=true it returns the artifact_id; poll studio_status until that artifact is completed. Once completed, studio_status gives an image download_url.

ParameterTypeDescription
confirm *booleanMust be true to start generation. With false the tool only returns pending_confirmation and does nothing
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create
detail_levelstringLevel of detail: concise, detailed, standard
focus_promptstringOptional instruction on what to focus on or emphasise, e.g. "the methodology section"
languagestringBCP-47 language code such as en, es or fr; omit for NotebookLM's default
orientationstringOrientation: landscape, portrait, square
source_idsarrayLimit generation to these source IDs (from notebook_get); omit to use every source in the notebook

slide_deck_create Create slide deck

Start generating a slide deck from the notebook's sources. Uses the user's NotebookLM quota and takes several minutes, so agree on the options with the user first: with confirm=false it does nothing and returns pending_confirmation. With confirm=true it returns the artifact_id; poll studio_status until that artifact is completed. Once completed, studio_status gives a download_url for the deck as a PDF.

ParameterTypeDescription
confirm *booleanMust be true to start generation. With false the tool only returns pending_confirmation and does nothing
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create
focus_promptstringOptional instruction on what to focus on or emphasise, e.g. "the methodology section"
formatstringFormat: detailed_deck, presenter_slides
languagestringBCP-47 language code such as en, es or fr; omit for NotebookLM's default
lengthstringLength: default, short
source_idsarrayLimit generation to these source IDs (from notebook_get); omit to use every source in the notebook

report_create Create report

Start generating a written report from the notebook's sources: a Briefing Doc, Study Guide, Blog Post, or your own brief with report_format "Create Your Own" and custom_prompt. Uses the user's NotebookLM quota and takes several minutes, so agree on the options with the user first: with confirm=false it does nothing and returns pending_confirmation. With confirm=true it returns the artifact_id; poll studio_status until that artifact is completed. This artifact has no download file: the user opens it in the notebook in NotebookLM.

ParameterTypeDescription
confirm *booleanMust be true to start generation. With false the tool only returns pending_confirmation and does nothing
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create
custom_promptstringWhat the report should be, used when report_format is "Create Your Own"
languagestringBCP-47 language code such as en, es or fr; omit for NotebookLM's default
report_formatstringFormat: Briefing Doc, Study Guide, Blog Post, Create Your Own
source_idsarrayLimit generation to these source IDs (from notebook_get); omit to use every source in the notebook

flashcards_create Create flashcards

Start generating a set of study flashcards from the notebook's sources. Uses the user's NotebookLM quota and takes several minutes, so agree on the options with the user first: with confirm=false it does nothing and returns pending_confirmation. With confirm=true it returns the artifact_id; poll studio_status until that artifact is completed. This artifact has no download file: the user opens it in the notebook in NotebookLM.

ParameterTypeDescription
confirm *booleanMust be true to start generation. With false the tool only returns pending_confirmation and does nothing
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create
difficultystringDifficulty: easy, hard, medium (default medium)
source_idsarrayLimit generation to these source IDs (from notebook_get); omit to use every source in the notebook

quiz_create Create quiz

Start generating a multiple-choice quiz from the notebook's sources. Uses the user's NotebookLM quota and takes several minutes, so agree on the options with the user first: with confirm=false it does nothing and returns pending_confirmation. With confirm=true it returns the artifact_id; poll studio_status until that artifact is completed. This artifact has no download file: the user opens it in the notebook in NotebookLM.

ParameterTypeDescription
confirm *booleanMust be true to start generation. With false the tool only returns pending_confirmation and does nothing
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create
difficultystringDifficulty: easy, hard, medium (default medium)
question_countnumberNumber of questions (default 5)
source_idsarrayLimit generation to these source IDs (from notebook_get); omit to use every source in the notebook

studio_status Check Studio artifacts

List the notebook's Studio artifacts. Returns each one's id, type (audio, video, report, flashcards, quiz, infographic, slide_deck), status (pending, generating, completed or failed) and download_url: set for completed audio, video, infographics and slide decks (PDF), null otherwise. It lists older artifacts too: after a *_create call, poll every 30-60 seconds and find yours by its artifact_id.

ParameterTypeDescription
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create

auth_refresh Refresh NotebookLM session

Re-read the NotebookLM page with the saved cookies to refresh the CSRF token and session ID. Returns a confirmation, or an authentication error if the Google session is signed out; then ask the user to run `npx -y @m4ykeldev/notebooklm-mcp auth` in a terminal. Call it once after an auth error, then retry.

auth_save_tokens Save NotebookLM cookies

Manual fallback: save NotebookLM cookies the user pasted, plus an optional CSRF token and session ID, to ~/.notebooklm-mcp/auth.json, replacing what is stored there. Returns a confirmation; the next call uses the new tokens. Prefer the CLI auth command. Use this only when the user hands you cookies, and never echo them back.

ParameterTypeDescription
cookiesstringCookie header string as copied from the browser ("SID=...; HSID=...; ..."); must include SID, HSID, SSID, APISID, SAPISID
csrf_tokenstringCSRF token (SNlM0e); optional, extracted from the page when omitted
session_idstringSession ID (FdrFJe); optional, extracted from the page when omitted

notebook_query Ask the notebook

Ask NotebookLM a question that it answers only from the notebook's sources (all of them, or source_ids). Returns the answer and a conversation_id. The answer text keeps NotebookLM's bracketed citation numbers such as [1], but not which passage each number points to. Pass conversation_id back to ask a follow-up; this server remembers the conversation's history while it keeps running.

ParameterTypeDescription
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create
query *stringThe question, in natural language
conversation_idstringconversation_id returned by a previous notebook_query, to ask a follow-up in the same conversation
source_idsarrayAnswer only from these source IDs (from notebook_get); omit to use every source

research_start Start research

Start a NotebookLM research task that searches the web, or the user's Google Drive, for sources on a topic. Deep mode is more thorough and slower than the default fast mode. Returns a task_id: poll research_status with it, then import the results you want with research_import.

ParameterTypeDescription
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create
query *stringTopic or question to research
modestringMode: deep, fast (default: fast)
sourcestringSource: drive, web (default: web)

research_status Check research

Check research tasks in a notebook: one task, or all of them. Returns each task's status (in_progress, completed, imported, import_failed, or unknown for a state this server doesn't recognise), query, summary and found sources (url, title, description, type). Poll until the status is no longer in_progress; a source's position in this list is the index research_import takes.

ParameterTypeDescription
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create
task_idstringtask_id from research_start; omit to list every research task in the notebook

research_import Import research results

Add results of a finished research task to the notebook as sources. Only web results can be imported: without source_indices it imports every web result and skips Drive ones. NotebookLM fetches each URL and skips any it can't reach, so it returns "Imported X of Y research sources". If none could be fetched the call fails and the task shows import_failed; a retry may succeed.

ParameterTypeDescription
notebook_id *stringNotebook ID, as returned by notebook_list or notebook_create
task_id *stringtask_id from research_start
source_indicesarrayIndices into the task's sources as listed by research_status (omit to import every web result)