Gemini Notebook MCP Server
Provides tools for interacting with the Google Gemini Notebook API, including creating and managing notebooks and sources, ingesting web/YouTube/text/Markdown sources, uploading local files up to 200 MiB, and polling source ingestion state.
Supports ingesting YouTube video URLs as sources into Gemini Notebooks, allowing YouTube video content to be added and processed within notebooks.
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.
Gemini Notebook MCP Server
A local Model Context Protocol (MCP) server for the Google Gemini Notebook API (v1).
Compared to Google's hosted remote MCP endpoint, this local server adds:
Local file uploads (
upload_source) up to 200 MiB (PDF, DOCX, PPTX, ODT, EPUB, RTF, HWP, CSV, TXT, Markdown, audio, 3GPP video, and images) — which the hosted remote MCP does not expose.Automatic OAuth 2.0 token refresh via a stored refresh token, avoiding hourly manual bearer token updates.
Source ingestion polling (
wait_for_sourceandwait: true) and automatic429/5xxexponential backoff (honoringRetryInfo.retryDelay).
Tools
Tool | Description |
| Create a new Gemini Notebook container. |
| Get metadata for a notebook ( |
| List notebooks accessible to the authenticated user ( |
| Rename an existing notebook ( |
| Ingest a public web URL, YouTube video URL, plain text, or Markdown source (supports |
| Upload a local file up to 200 MiB into a notebook (supports |
| Get metadata and ingestion state ( |
| List sources in a notebook ( |
| Poll a source until its ingestion state reaches |
Related MCP server: NotebookLM MCP Server
Prerequisites
A personal Google Account that has signed in to Gemini Notebook at least once (Google Workspace accounts are not yet supported during Public Preview).
A Google Cloud project with the Gemini Notebook API (
notebook.googleapis.com) enabled.A Desktop app OAuth 2.0 client JSON downloaded from Google Cloud Console:
Enable the API:
https://console.cloud.google.com/apis/library/notebook.googleapis.comConfigure the OAuth consent screen (
External), add your Gmail under Audience -> Test users, and add thehttps://www.googleapis.com/auth/notebookscope under Data Access.Create a Desktop app client under Clients, download the JSON, and save it as
client_secret.jsonin the repo root (gitignored).
Installation & Authentication
npm install
npm run build
npm run authYou can also run a one-shot local callback server for browser redirects:
node dist/auth-cli.js --listen 8765Tokens are saved locally to tokens.json (0600, gitignored) and refreshed automatically before expiry.
MCP Client Configuration
Use the built-in config writer script to safely merge gemini-notebook into Google, Claude, and generic MCP client configs without overwriting existing servers:
# Google (Antigravity ~/.gemini/config/mcp_config.json + Gemini CLI ~/.gemini/settings.json)
npm run configure -- --target google
# Claude (Claude Code + Claude Desktop)
npm run configure -- --target claude
# Both Google and Claude
npm run configure -- --target google,claude
# Generic MCP JSON (stdout, or write/merge to any path with --output)
npm run configure -- --target generic
npm run configure -- --target generic --output ./mcp.json
# Other supported targets: antigravity, gemini-cli, claude-code, claude-desktop, cursor, vscode, all
# Preview changes without touching disk:
npm run configure -- --target all --dry-runProject-scoped configs are supported via --scope project (e.g., .mcp.json for Claude Code, .gemini/settings.json for Gemini CLI, .cursor/mcp.json for Cursor, .vscode/mcp.json for VS Code).
Manual configuration
Claude Code
claude mcp add -s user gemini-notebook -- node /absolute/path/to/gemini-notebook-mcp/dist/index.jsAntigravity (~/.gemini/config/mcp_config.json) / Gemini CLI / Cursor / Claude Desktop
{
"mcpServers": {
"gemini-notebook": {
"command": "node",
"args": ["/absolute/path/to/gemini-notebook-mcp/dist/index.js"]
}
}
}Optional Environment Variables
NOTEBOOK_CLIENT_SECRET_PATH: custom path toclient_secret.jsonNOTEBOOK_TOKEN_PATH: custom path totokens.jsonNOTEBOOK_ACCESS_TOKEN: static OAuth bearer token overrideNOTEBOOK_USE_ADC=1: usegcloud auth application-default print-access-tokeninstead oftokens.json(pair withNOTEBOOK_PROJECT_IDorGOOGLE_CLOUD_PROJECT)
License
MIT
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
Search, read and cite documents. Add, replace and delete files with write access. OAuth required.
Upload, generate, organize, search, and transform images, videos, and files with AI-powered tools.
Upload, generate, organize, search, and transform images, videos, and files with AI-powered tools.
Generate AI images and videos, quote credit costs, manage media and track batch jobs with OAuth.
Related MCP Servers
- AlicenseBqualityAmaintenanceEnables AI assistants to programmatically interact with Google NotebookLM, allowing them to create and manage notebooks, add sources, query content, generate audio/video, and perform research tasks through natural language commands.5518,759 PyPI6,558MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to programmatically access and control Google NotebookLM, supporting operations like notebook management, source addition, audio generation, and more via natural language.39MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Google NotebookLM notebooks, add sources from URLs, YouTube, Drive, or text, query and summarize content, and generate audio overviews, infographics, and slide decks through natural language.MIT
- AlicenseBqualityBmaintenanceEnables AI assistants to programmatically access and manage Gemini Notebook (formerly Google NotebookLM), including creating notebooks, adding sources, querying content, generating studio content, downloading artifacts, and running batch or cross-notebook workflows through natural language.49MIT