TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/jacob-bd/notebooklm-mcp-cli/llms.txt
Use this file to discover all available pages before exploring further.
notebooklm-mcp binary is the MCP server process that your AI tool launches (or connects to) when you use NotebookLM tools. Most users run it with the default stdio transport and zero extra configuration — the nlm setup add <tool> command handles everything automatically. This page covers the full set of options for users who need HTTP transport, remote deployment, enterprise URL overrides, or manual JSON configurations.
Server Options
The following flags can be passed to thenotebooklm-mcp binary directly. Each flag also has a corresponding environment variable (see the next section).
| Flag | Description | Default |
|---|---|---|
--transport | Transport protocol: stdio, http, or sse | stdio |
--host | Host to bind for HTTP/SSE transport | 127.0.0.1 |
--port | Port for HTTP/SSE transport | 8000 |
--path | MCP endpoint path for HTTP transport | /mcp |
--stateless | Stateless HTTP sessions (avoids MCP SDK double-response bug) | true |
--debug | Enable verbose debug logging | false |
--query-timeout | Query timeout in seconds | 120.0 |
Environment Variables
All server options can be set via environment variables. These are read at startup and can be placed in your shell profile, a.env file, or inside the AI tool’s MCP server config block.
| Variable | Description | Default |
|---|---|---|
NOTEBOOKLM_MCP_TRANSPORT | Transport type: stdio, http, or sse | stdio |
NOTEBOOKLM_MCP_HOST | Host to bind for HTTP/SSE | 127.0.0.1 |
NOTEBOOKLM_MCP_PORT | Port for HTTP/SSE | 8000 |
NOTEBOOKLM_MCP_PATH | MCP endpoint path for HTTP | /mcp |
NOTEBOOKLM_MCP_STATELESS | Stateless HTTP sessions (true/false) | true |
NOTEBOOKLM_MCP_DEBUG | Enable debug logging (true/false) | false |
NOTEBOOKLM_HL | Interface language and default artifact language (BCP-47 code, e.g. en, fr, ja) | en |
NOTEBOOKLM_QUERY_TIMEOUT | Query timeout in seconds | 120.0 |
NOTEBOOKLM_BASE_URL | Override the NotebookLM base URL for enterprise or workspace deployments | https://notebooklm.google.com |
NOTEBOOKLM_BL | Build label override. Usually auto-extracted from the NotebookLM page — only set this if auto-extraction fails. | (auto) |
NOTEBOOKLM_ALLOW_EXTERNAL_BIND | Allow binding HTTP/SSE to non-loopback addresses. Set to 1 to enable (security risk). | (unset) |
NOTEBOOKLM_CONVERSATION_MAX_TURNS | Maximum number of turns to keep in the in-process conversation history cache. | (unbounded) |
NOTEBOOKLM_CONVERSATION_MAX_CONVS | Maximum number of concurrent conversations to keep in the in-process cache. | (unbounded) |
Setting
NOTEBOOKLM_HL changes both the NotebookLM UI language and the default language used for studio artifacts (audio, video, reports, etc.). You can override the language per-artifact with the language parameter on studio_create.HTTP Transport
Use HTTP transport when you need to connect to the server over a network connection — for example, from a remote machine, a container, or a tool that only supports HTTP-based MCP.Health Endpoint
When running with HTTP or SSE transport, the server exposes a health check endpoint at/health:
Multi-User / Remote Setup
To run the MCP server on a remote machine and connect to it from your local AI tool:-
On the remote machine, start the server bound to all interfaces with HTTP transport:
Place this behind an SSH tunnel, VPN, or reverse proxy with authentication — the server itself has no auth layer.
- On the local machine, configure your AI tool to connect to the remote URL. Consult your AI tool’s documentation for its remote MCP connection format.
-
Use
GET /healthto verify the server is reachable before connecting your AI tool.
Manual JSON Configs
If you prefer to configure your AI tool by editing JSON files directly (instead of usingnlm setup add), use the configurations below. Run which notebooklm-mcp to find the full binary path if needed.
- Claude Code
- Claude Desktop
- Cursor
- Windsurf
- GitHub Copilot
- Gemini CLI
- uvx (no install)
Register via the Claude CLI (recommended):Or add manually to your Claude Code MCP settings:
Context Window Management
The MCP server exposes 39 tools. Each tool registration consumes a small but non-trivial amount of your AI assistant’s context budget, and this cost is paid on every request whether or not you use NotebookLM in that session. Best practices:- Disable when not in use. In Claude Code, type
@notebooklm-mcpin the chat to toggle the server on or off without restarting. - Use unified tools.
source_add,studio_create, anddownload_artifacteach handle multiple operations. Prefer these over chaining multiple single-purpose calls — you save both context and round-trips. - Poll wisely. Studio artifacts take 1–5 minutes to generate. Don’t call
studio_statusin a tight loop; a 15–30 second poll interval is sufficient. - Scope your queries. Pass
source_idstonotebook_queryto limit the AI’s grounding context to only the sources that are relevant to your question.