Gemini Notebook API: Power-User Guide to MCP Setup, Uploads and Limits

Last updated: December 2, 2026

The Gemini Notebook API is Google’s official REST API and remote MCP server for Gemini Notebook, formerly NotebookLM. In an early access Public Preview, it lets personal Google Accounts create notebooks and add web pages, YouTube videos, text, Markdown and uploaded files. It is free during the preview but cannot query notebooks yet.

Contents

What the Gemini Notebook API does

The API lives at https://notebook.googleapis.com/v1, and the MCP server at https://notebook.googleapis.com/mcp (Google MCP docs). Google labels both an early access Public Preview, so names and behavior may change before general availability.

It reads and creates notebooks in the signed-in user’s own Gemini Notebook account. That makes it a way to feed research material into Gemini Notebook from scripts, pipelines and coding agents, instead of pasting links by hand.

Gemini Notebook is the product Google previously called NotebookLM (Google blog), which is why many searches still say “NotebookLM API”.

If you use the app’s newer outputs, see our Gemini Notebook Sites guide to making and sharing sites. The API does not create those outputs yet.

How to set up the API and MCP server

These steps follow Google’s MCP documentation (Google MCP docs). They use Application Default Credentials, the documented route for local testing.

  1. Use a personal Google Account. Workspace accounts are not supported in the preview and get 403 PERMISSION_DENIED (WORKSPACE_ACCOUNT_NOT_SUPPORTED).
  2. Sign in to Gemini Notebook once. Visit notebook.google.com with that account. Otherwise CreateNotebook fails with 404 NOT_FOUND (Account not found for user.).
  3. Enable the API. Run gcloud services enable notebook.googleapis.com --project="$PROJECT_ID" in a Google Cloud project.
  4. Log in with the notebook scope. Run gcloud auth application-default login with the scopes cloud-platform and https://www.googleapis.com/auth/notebook. A standard gcloud token lacks this scope.
  5. Mint a token. Run gcloud auth application-default print-access-token. Tokens expire after one hour.
  6. Send two headers. Every call needs Authorization: Bearer plus x-goog-user-project with your project ID when you use ADC.
  7. Add the MCP server to your agent. In Claude Code, run claude mcp add gemini-notebook-api --transport http https://notebook.googleapis.com/mcp with both headers. In Cursor, add the same URL and headers under mcpServers in .cursor/mcp.json.

Google also publishes a setup prompt you can paste into a coding agent to do these steps for you (Google MCP docs). For more on MCP in Anthropic’s agent, see our Claude Code guide.

The seven MCP tools

The MCP server uses Streamable HTTP with JSON-RPC 2.0, and Google’s examples use protocol version 2026-07-28. It exposes seven tools that mirror the REST methods:

MCP tool What it does REST equivalent
create_notebook Creates a notebook from a displayName POST /v1/notebooks
get_notebook Reads notebook metadata GET /v1/notebooks/{id}
list_notebooks Lists notebooks; can filter by notebook.is_owner GET /v1/notebooks
update_notebook Renames a notebook PATCH with updateMask=displayName
create_source Adds a web URL, YouTube video, text or Markdown POST .../sources
get_source Returns metadata and state GET .../sources/{id}
list_sources Lists a notebook’s sources GET .../sources
None File upload POST /upload/v1/.../sources:upload

The last row matters: uploads are REST only. An agent that must add PDFs needs a small script or shell step alongside the MCP tools.

Adding sources and uploading files

Each CreateSource request sets exactly one input: web_content with a URL, or text_content with inline text (Google Sources docs). Web pages must be public https:// pages with no login wall or paywall. YouTube videos must be public or unlisted and have captions.

Inline text or Markdown can be up to 500,000 words and 1,000,000 bytes. Google Drive and Google Docs URLs are rejected with 400 INVALID_ARGUMENT.

To add a local file, send it to sources:upload with the file’s MIME type as Content-Type. Supported types include PDF, DOCX, PPTX, ODT, EPUB, RTF, HWP, CSV, plain text, Markdown, audio, 3GPP video and images, up to 200 MiB each. Use uploadType=media and the source.displayName query parameter to name the source, or a two-step resumable upload.

Ingestion is asynchronous. New sources start as PROCESSING, so poll GetSource until the state is ACTIVE or FAILED. Failed sources carry an error object, such as code 7 for a paywall or code 8 when the source limit is exceeded.

The Python client library can upload with resumable=False, but it cannot set the source name, and multipart or resumable client uploads fail with 400. Handling documents in Google’s model API is a different feature; see our Gemini API file slicing guide.

Rate limits and plan quotas

Google says the API is free during the Public Preview, subject to these limits (Google rate limits docs):

  • 100 read and 100 write requests per minute per project.
  • Per user: 20 CreateSource requests and 20 uploads per minute, and 60 requests per minute per method for everything else.
  • 500,000 words per source and 500 characters per display name.

Notebook and source caps follow your Google subscription tier:

Tier Notebooks per user Sources per notebook
Free 100 50
Plus 200 100
Pro 500 300
Ultra 500 600

Over a limit, the API returns 429 RESOURCE_EXHAUSTED. Google recommends exponential backoff with jitter, and upload errors include a RetryInfo delay.

Practical workflows and prompt patterns

  • Research intake. Ask your agent: “Create a notebook named after this project, add each URL in links.txt as a source, then call get_source until every source is ACTIVE and list any that FAILED with their error message.”
  • Docs snapshot. Convert release notes or meeting notes to Markdown and send them as text_content with mime_type set to text/markdown.
  • Paced batches. Keep adds under 20 per minute per user, and check the tier cap before a large import, such as 50 sources on the free tier.
  • Token refresh. Long agent sessions should re-mint the token, since ADC tokens last one hour.

After sources are ACTIVE, open the notebook in the web app to chat, build Studio outputs or make a site. For command-line work against Google’s model API instead, see our Gemini API CLI guide.

What the API cannot do yet

Compared with the Gemini Notebook web app, the API is a narrow intake tool. Google’s roadmap lists these as planned, with no dates (Google roadmap):

  • Google Workspace account support.
  • Deleting notebooks and sources.
  • Adding Google Drive URLs as sources.
  • Retrieving information from a notebook.
  • Generating artifacts.

Until those land, you cannot ask a notebook questions, get cited answers or make Audio Overviews through the API. Because the API cannot delete anything yet, test with a dedicated notebook rather than your main ones.

Frequently asked questions

Is there an official NotebookLM API?

Yes. Gemini Notebook is the new name for NotebookLM, and Google now documents the Gemini Notebook API at notebook.googleapis.com/v1, plus a remote MCP server. Both are in an early access Public Preview for personal Google Accounts.

Is the Gemini Notebook API free?

Yes, during the Public Preview. Google says the API is free to use in the preview, subject to rate limits such as 100 requests per minute per project and per-user limits on adding sources.

Can the Gemini Notebook API answer questions about my sources?

Not yet. The API creates, lists and renames notebooks and adds and checks sources. Retrieving information from a notebook and generating artifacts are listed on Google’s roadmap, with no dates.

Does the Gemini Notebook API work with Google Workspace accounts?

No. During the preview, requests from Workspace accounts fail with 403 PERMISSION_DENIED and the reason WORKSPACE_ACCOUNT_NOT_SUPPORTED. Workspace support is on the roadmap.

Can I upload PDFs through the Gemini Notebook MCP server?

No. File uploads are not an MCP tool. Use the REST UploadSource endpoint, which accepts PDFs, Word, PowerPoint, EPUB, audio, images and other listed types up to 200 MiB per file.

Sources

Related answers

Leave a Comment