sourcebolt

v0.3.3
io.github.candidloom-hub/sourcebolt Checked 4 days ago Published 1 month ago

Fast MCP server for Google NotebookLM: notebooks, sources, cited chat, research.

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

account_settings

Read the account's quota windows, or set the output language when output_language is given. The language setting slot is not live-verified (the call is sent, but Google may ignore or reject it).

ParameterTypeDescription
output_languagestringlanguage code to set, for example en or de; omit to only read

auth_login

Not available through MCP: sign-in needs the local credential store, and cookies should not pass through a chat. Returns UNSUPPORTED_BY_TRANSPORT with the CLI command to run instead (sourcebolt login --import, --browser or --attach).

ParameterTypeDescription
method *stringimport (cookies or file), browser or attach
filestringpath of a cookie export file (method import)
hoststringNotebookLM host, for example notebook.google.com
profilestringaccount profile name

auth_logout

Not available through MCP: the credential store is only reachable from the CLI. Returns UNSUPPORTED_BY_TRANSPORT with the command to run instead (sourcebolt logout).

ParameterTypeDescription
confirmbooleanmust be true to delete the stored session
profilestringaccount profile name

chat_ask

Ask a question about a notebook's sources. Streams partial text as progress notifications. Returns the answer, citations (source, cited text, UTF-16 offsets) and the conversation id. save_as_note also saves the answer as a note (note_id, or note_error when it could not be saved). wait=false returns a job_id; poll with chat_status. Not retried after sending.

ParameterTypeDescription
notebook *stringnotebook id, id prefix (6+ chars) or title
question *stringthe question to ask
conversation_idstringcontinue this conversation; default is the notebook's newest thread
new_conversationbooleanstart a fresh conversation instead of the default thread
save_as_notebooleanalso save the answer as a note, as the web app's Save to note does (the server picks the note title)
sourcesnull | arrayrestrict the answer to these sources (id, id prefix or title); default all sources
waitnull | booleanwait for the answer (default true); false returns a job_id to poll with chat_status

chat_configure

Change a notebook's chat settings: mode (default, learning_guide, or custom with custom_prompt) and response_length (default, longer or shorter). Unset fields keep their value. mode default with response_length default resets the notebook to the web app's defaults.

ParameterTypeDescription
notebook *stringnotebook id, id prefix (6+ chars) or title
custom_promptstringinstructions for mode custom, up to 10000 characters
modestringconversational goal; custom needs custom_prompt
response_lengthstringresponse length

chat_history

Read a notebook conversation (oldest turn first within a page), with cursor paging. format=markdown adds a rendered transcript. Turn layout is not yet live-verified.

ParameterTypeDescription
notebook *stringnotebook id, id prefix (6+ chars) or title
conversation_idstringconversation to read; default is the newest thread
cursorstringnext_cursor of the previous page (older turns)
formatstringjson (default) or markdown
limitintegermax turns per page (default 20)

chat_status

Status and result of a detached chat_ask (wait=false): running, done, failed or cancelled. Jobs live in memory and are dropped an hour after they finish or when the server restarts.

ParameterTypeDescription
job_id *stringjob id returned by chat_ask with wait=false

delete

Delete notebooks, sources, notes, artifacts, chat history, labels or collections. Without confirm:true it only returns a preview of what would be deleted and changes nothing. Items are matched strictly (exact id, unique id prefix or exact title) against a fresh list. source, note and chat_history need notebook; chat_history deletes the whole history of the given conversations; it reaches only the newest 20 conversations of a notebook, and its preview shows their created and updated times and, when the whole history can be read, the first question. Kinds artifact, label and collection are not a…

ParameterTypeDescription
ids *null | arrayids (or exact titles) of the items to delete; for chat_history, conversation ids
kind *stringnotebook, source, note, artifact, chat_history, label or collection
confirmbooleanmust be true to delete; without it only a preview is returned
notebookstringnotebook id, prefix or title; required for every kind except notebook

job_cancel

Cancel a running detached job (chat_ask with wait=false, deep research). For an ask with a known conversation the server-side generation is also stopped, best effort.

ParameterTypeDescription
job_id *stringjob id to cancel

label_list

List a notebook's source labels with emoji and the ids of the sources in each. Collections are not available yet.

ParameterTypeDescription
notebook *stringnotebook id, id prefix (6+ chars) or title
scopestringsource_labels (default); collections are not available yet

label_update

Rename a label, set its emoji, or add/remove sources. Actions auto and create (and notebook collections) are not available yet and return UNSUPPORTED_BY_TRANSPORT. Payload shapes are not live-verified.

ParameterTypeDescription
action *stringrename, set_emoji, add_sources or remove_sources (auto and create are not available yet)
label *stringlabel id or name
notebook *stringnotebook id, id prefix (6+ chars) or title
emojistringemoji for set_emoji
itemsnull | arraysource ids, id prefixes or titles for add_sources / remove_sources
namestringnew name for rename
scopestringsource_labels (default)

note_list

List the notes of a notebook with id, title and content. Deleted notes are not shown.

ParameterTypeDescription
notebook *stringnotebook id, id prefix (6+ chars) or title
include_mind_mapsbooleanaccepted for compatibility; mind maps are not listed yet

note_save

Create a note, or update an existing one (note = id or title). from_turn (save a chat turn as a note) is not available yet and returns UNSUPPORTED_BY_TRANSPORT.

ParameterTypeDescription
notebook *stringnotebook id, id prefix (6+ chars) or title
contentstringnote body
from_turnstringsave a chat turn as a note (not available yet)
notestringexisting note id or title to update; omit to create a new note
titlestringnote title

notebook_create

Create a notebook with a title and optionally add sources in the same call (same items as source_add). The create call is sent once and never retried. emoji is accepted but ignored (no known wire slot). If the rename or the source add fails, the notebook still exists and its id is returned with warnings.

ParameterTypeDescription
title *stringtitle of the new notebook
emojistringnotebook emoji (ignored: no known wire slot yet)
sourcesnull | arraysources to add right after creation; same items as source_add

notebook_list

List NotebookLM notebooks with id, title, source count and ownership. Filter by title and scope. Returns 20 by default; has_more says whether to page with offset. Cached 30 s.

ParameterTypeDescription
limitintegermax notebooks to return (default 20; page with offset)
offsetintegerskip this many notebooks
querystringcase-insensitive filter on notebook titles
refreshbooleanbypass the 30 s cache
scopestringmine, shared or all (default all)

notebook_open

Open one notebook by id or title: its sources with status, summary and suggested questions.

ParameterTypeDescription
notebook *stringnotebook id, id prefix (6+ chars) or title

notebook_update

Rename a notebook (title, verified by read-back) and/or drop it from the recently viewed list (remove_from_recent). emoji, pinned, alias and tags are not available yet and are ignored with a note.

ParameterTypeDescription
notebook *stringnotebook id, id prefix (6+ chars) or title
aliasstringnot available yet (ignored)
emojistringnot available yet (ignored)
pinnednull | booleannot available yet (ignored)
remove_from_recentbooleandrop the notebook from the recently viewed list
tagsnull | arraynot available yet (ignored)
titlestringnew title

research_import

Import research candidates as notebook sources, by urls (from research_status), report, or all. Candidates are matched by URL against a fresh read, so results reordered since research_status still import the intended ones; an unknown URL is NOT_FOUND. Candidates already in the notebook are skipped, so a retry is safe. Reports added, skipped and failed per candidate.

ParameterTypeDescription
job *stringresearch job id from research_start or research_status
notebook *stringnotebook id, id prefix (6+ chars) or title
allbooleanimport every candidate
reportbooleanalso import the deep-research report candidate
urlsnull | arrayURLs of the web candidates to import, as listed by research_status

research_start

Start a web or Drive research job in a notebook (fast or deep). Returns a job handle; poll with research_status, then import with research_import. Queries under 4 words are rejected unless force is true. Mode discover is not yet available (UNSUPPORTED_BY_TRANSPORT).

ParameterTypeDescription
notebook *stringnotebook id, id prefix (6+ chars) or title
query *stringwhat to research; at least 4 words unless force is set
corpusstringweb (default) or drive; deep supports web only
forcebooleanallow a query shorter than 4 words
modestringfast (default) or deep; discover is not yet available

research_status

Check research jobs of a notebook and list their candidates (pick them by url in research_import). With wait_seconds (0-120) polls every 3 s, reporting progress, until the job is done.

ParameterTypeDescription
notebook *stringnotebook id, id prefix (6+ chars) or title
include_reportbooleaninclude the deep-research report text
jobstringresearch job id; omit for all jobs of the notebook
wait_secondsinteger0-120: poll every 3 s until the job is done or time runs out

server_info

Show the sourcebolt version, active Google profile, NotebookLM host, enabled tools and which transport served the last call. No Google call unless include_usage is set.

ParameterTypeDescription
include_usagebooleanalso fetch account tier and quota windows (one Google call)

share_status

Show who a notebook is shared with and whether the link is public.

ParameterTypeDescription
notebook *stringnotebook id, id prefix (6+ chars) or title

share_update

Change notebook sharing: link visibility (public) and per-user roles (viewer, editor, remove). Widening access or removing people requires confirm:true; without it a preview is returned and nothing is sent. The link setting and the user changes are sent as two calls; if only one applies, status is partial and parts says which applied and which failed. Payload shapes are not live-verified. view_level and artifact sharing are not available yet.

ParameterTypeDescription
notebook *stringnotebook id, id prefix (6+ chars) or title
artifactstringshare one artifact instead of the notebook (not available yet)
confirmbooleanrequired to widen access or remove people; without it only a preview is returned
messagestringmessage to include in the notification
notifybooleanemail the added people
publicnull | booleantrue = anyone with the link can view, false = restricted
usersnull | arrayper-user changes
view_levelstringfull or chat_only (not available yet)

source_add

Add sources to a notebook: public URLs (YouTube auto-detected) and pasted text, in one call. Returns a per-item outcome. Drive and file items are not yet available (UNSUPPORTED_BY_TRANSPORT). URLs to private or internal addresses are rejected.

ParameterTypeDescription
items *null | arraysources to add; each item sets exactly one of url, text, drive, file
notebook *stringnotebook id, id prefix (6+ chars) or title

source_list

List a notebook's sources with type and processing status; optionally filter by status.

ParameterTypeDescription
notebook *stringnotebook id, id prefix (6+ chars) or title
statusstringfilter: processing, ready, error, preparing or a raw status number

source_read

Read a source's full text, markdown, or guide (summary and keywords), paged by character offset (max_chars default 20000; see truncated and next_offset).

ParameterTypeDescription
notebook *stringnotebook id, id prefix (6+ chars) or title
source *stringsource id, id prefix or title
max_charsintegermax characters to return (default 20000, cap 200000)
modestringfulltext (default), markdown, or guide (the source guide: summary as text plus keywords)
offsetintegercharacter offset to start from

source_update

Rename a source (title) and/or check whether it is up to date (check_freshness). refresh is not yet available (UNSUPPORTED_BY_TRANSPORT).

ParameterTypeDescription
notebook *stringnotebook id, id prefix (6+ chars) or title
source *stringsource id, id prefix or title
check_freshnessbooleanreport whether the source is up to date
refreshbooleanre-fetch the source (not yet available)
titlestringnew title

studio_generate

Generate a Studio artifact: audio, video, report, interactive_report, slide_deck, mind_map, quiz, flashcards, infographic or data_table. Each kind takes only the option values a live capture has proven (the enums); other values the web app offers return UNSUPPORTED_BY_TRANSPORT naming the option, before any call. Omitted options take the web app's defaults. instructions is optional for audio, video, slide_deck and quiz, required for report, mind_map, flashcards and data_table, and refused by infographic and interactive_report (each as captured). video.generate_later asks for deferred generatio…

ParameterTypeDescription
kind *stringthe artifact kind
notebook *stringnotebook id, id prefix (6+ chars) or title
audionull | objectoptions for kind audio
flashcardsnull | objectoptions for kind flashcards
infographicnull | objectoptions for kind infographic
instructionsstringfree text: audio and video focus, slide deck description and quiz topic (optional); report prompt, data table description, mind map and flashcards topic (required); infographic and interactive_report…
languagestringoutput language code as the web app sends it (default en; cinematic video takes none)
quiznull | objectoptions for kind quiz
reportnull | objectoptions for kind report (required)
slide_decknull | objectoptions for kind slide_deck
sourcesnull | arraysource ids, id prefixes or titles; default all sources (notes cannot be used as sources)
videonull | objectoptions for kind video

studio_list

List a notebook's Studio artifacts (audio, video, report, slide_deck, mind_map, quiz, flashcards, infographic, data_table) with kind and status (pending while queued or generating, then ready or failed). Pass artifact to read one with its interactive content (HTML or mind-map tree) when Google has any.

ParameterTypeDescription
notebook *stringnotebook id, id prefix (6+ chars) or title
artifactstringone artifact id or title; returns it with its interactive content when available
kindstringfilter by kind: audio, video, report, slide_deck, mind_map, quiz, flashcards, infographic, data_table (interactive and unknown for unrecognized rows)
statusstringfilter by status: pending (queued or generating), ready or failed

suggest

Suggested prompts for a surface: chat, report or studio_options. The followups surface is not yet available (UNSUPPORTED_BY_TRANSPORT until a live capture pins it).

ParameterTypeDescription
surface *stringchat, followups, report or studio_options
notebookstringnotebook id, id prefix or title (not needed for studio_options)
querystringsteer chat suggestions toward this topic
sourcesnull | arraylimit to these sources (id, id prefix or title)