Skip to main content
Glama

nblm-mcp

Google NotebookLM(2026년 7월 Gemini Notebook으로 리브랜딩)에 AI 에이전트가 접근할 수 있게 해주는 MCP 서버입니다: 노트북을 나열하고 생성하고, 소스를 관리하고, 해당 소스에서 인용과 함께 답변되는 질문을 하고, 오디오 개요, 브리핑 문서, 퀴즈, 마인드 맵 같은 Studio 아티팩트를 생성합니다.

핵심은 근거 기반(grounding)입니다. NotebookLM은 사용자가 제공한 자료에서만 답변하므로, ask를 호출할 수 있는 에이전트는 추측 대신 사용자 자신의 문서에서 인용된 답변을 얻습니다. 그리고 Gemini가 서버 측에서 읽기를 수행하므로 자체 컨텍스트 토큰이 들지 않습니다.

⚠️ 비공식 — 먼저 읽어주세요

Google에는 NotebookLM용 공개 소비자 API가 없습니다. 이 서버는 notebooklm.google.com UI가 호출하는 동일한 비공개 웹 엔드포인트를 구동하며, MIT 라이선스 notebooklm-py 라이브러리를 통해 사용자 자신의 브라우저 세션 쿠키로 인증합니다.

  • Google과 제휴하거나 보증하지 않습니다.

  • 내부 API는 예고 없이 변경되어 이 서버를 손상시킬 수 있습니다.

  • 사용자 Google 계정의 속도 제한과 일일 Studio 할당량이 적용됩니다.

  • 자동화에 편한 계정을 사용하세요. 개인 프로젝트, 연구, 프로토타입에 가장 적합합니다.

Google은 Gemini Notebook Enterprise용 공식 API를 문서화합니다. 해당 기능이 있는 Workspace/Cloud 조직이라면 이 서버보다 공식 API를 우선 사용하세요.

설치

아직 PyPI에 없습니다 — 이 저장소에서 바로 설치하세요. uvx가 요청 시 빌드하고 실행하므로 수동으로 업데이트할 것이 없습니다:

uvx --from git+https://github.com/Diego-Dev-Moros/nblm-mcp nblm-mcp

Related MCP server: notebooklm-mcp-server

한 번 로그인

로그인에는 auth 추가 기능(Playwright)과 키보드 앞의 사람이 필요합니다:

uvx --from "nblm-mcp[auth] @ git+https://github.com/Diego-Dev-Moros/nblm-mcp" nblm-mcp-login

브라우저 창이 열립니다. 평소처럼 NotebookLM에 로그인하세요. 세션 쿠키는 ~/.notebooklm/ 아래에 저장됩니다(notebooklm-py가 사용하는 것과 동일한 프로필 구조이므로 기존 notebooklm login도 작동합니다). MCP 서버는 자체적으로 로그인하지 않습니다 — MCP 호스트가 제공할 수 없는 대화형 브라우저가 필요합니다.

Playwright에 아직 브라우저가 없으면 먼저 playwright install chromium을 실행하세요.

쿠키는 만료됩니다. 만료되면 도구가 인증 오류를 반환하기 시작합니다. 로그인 명령을 다시 실행하세요.

클라이언트에 연결

Claude Code — -s user를 사용하면 모든 프로젝트에서 사용할 수 있습니다:

claude mcp add notebooklm -s user -- \
  uvx --from git+https://github.com/Diego-Dev-Moros/nblm-mcp nblm-mcp

Claude Desktop — claude_desktop_config.json에 다음을 추가하고 앱을 다시 시작하세요(macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\, Linux: ~/.config/Claude/):

{
  "mcpServers": {
    "notebooklm": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/Diego-Dev-Moros/nblm-mcp", "nblm-mcp"]
    }
  }
}

Claude Desktop은 GUI에서 실행되므로 셸의 PATH를 상속하지 않습니다. 서버가 시작되지 않으면 "uvx"를 절대 경로(which uvx, 일반적으로 ~/.local/bin/uvx)로 바꾸세요.

어느 쪽이든 에이전트에게 auth_status를 호출하도록 요청하여 작동을 확인하세요.

도구

도구

기능

auth_status

실제 요청으로 저장된 세션을 검증합니다. 다시 로그인해야 하는지 알려줍니다.

list_notebooks

계정이 접근할 수 있는 모든 노트북을 ID와 소스 수와 함께 나열합니다.

get_notebook

하나의 노트북과 그 소스, 선택적으로 NotebookLM 자체 요약을 반환합니다.

create_notebook

빈 노트북을 생성합니다.

delete_notebook

노트북과 그 안의 모든 것을 삭제합니다. confirm=true가 필요합니다.

list_sources

노트북의 소스와 처리 상태를 표시합니다.

add_source

URL(웹, YouTube, Drive), 붙여넣은 텍스트 또는 로컬 파일에서 소스 하나를 추가합니다.

delete_source

소스를 제거합니다. confirm=true가 필요합니다.

ask

노트북에 질문합니다. 답변과 소스 제목으로 확인된 인용을 반환합니다.

chat_history

노트북 대화의 과거 질문/답변 턴을 표시합니다.

list_artifacts

생성된 Studio 아티팩트와 상태를 표시합니다 — 실행 중인 생성 작업을 폴링하는 방법이기도 합니다.

generate_artifact

오디오, 비디오, 보고서, study_guide, quiz, flashcards, infographic, slide_deck 또는 mind_map을 생성합니다.

download_artifact

완료된 아티팩트를 서버가 실행 중인 머신의 파일로 다운로드합니다.

동작 참고 사항

  • 파괴적 도구는 게이트가 있습니다. delete_notebook과 delete_source는 confirm=true 없이는 실행을 거부하므로 잘못된 도구 호출이 노트북을 파괴할 수 없습니다.

  • 생성은 느리고 할당량 제한이 있습니다. generate_artifact는 작업이 대기열에 들어가면 즉시 반환하고(wait=false, 기본값) 에이전트에게 list_artifacts를 폴링하라고 알려줍니다. 대신 wait=true를 전달하면 차단됩니다. NBLM_GENERATION_TIMEOUT초까지 기다립니다.

  • 파일 경로는 서버 측입니다. add_source(file_path=...)와 download_artifact는 MCP 서버가 실행 중인 호스트에서 읽고 쓰며, 이는 사용자의 채팅 클라이언트가 실행되는 곳과 반드시 같지는 않습니다.

구성

모두 선택 사항입니다 — .env.example을 참조하세요. 작업 디렉토리에 .env가 있으면 로드됩니다.

변수

기본값

용도

NOTEBOOKLM_PROFILE

활성 프로필

여러 Google 계정에 대해 사용할 저장된 로그인을 지정합니다.

NOTEBOOKLM_STORAGE_PATH

프로필에서 확인

storage_state.json의 명시적 경로.

NBLM_DOWNLOAD_DIR

~/.nblm-mcp/downloads

download_artifact가 기본으로 쓰는 위치.

NBLM_GENERATION_TIMEOUT

600

wait=true일 때 아티팩트를 기다리는 시간(초).

NBLM_SOURCE_TIMEOUT

180

새 소스가 처리를 완료할 때까지 기다리는 시간(초).

개발

uv venv && uv pip install -e ".[dev]"
uv run pytest
uv run ruff check src tests

테스트 스위트는 인메모리 가짜 클라이언트에 대해 도구를 실행합니다 — Google에 접촉하지 않으므로 어디서든 안전하고 빠르게 실행할 수 있습니다.

선행 작업

notebooklm-py가 어려운 부분 — 비공개 batchexecute 프로토콜의 리버스 엔지니어링과 유지보수 —을 담당하고 자체적으로 더 큰 MCP 서버를 제공합니다. 이 프로젝트는 그 라이브러리 위에 더 작고 의견이 반영된 도구 표면입니다: 더 적은 도구, 파괴적 작업에 대한 확인 게이트, 인용이 확인된 답변.

라이선스

MIT — LICENSE를 참조하세요.

Available Tools

13 tools
add_sourceA

Add one source to a notebook, from a URL, pasted text, or a local file.

Pass exactly one of url, text, or file_path.

Inputs: notebook_id (required), url, text, wait, +2 more. Returns: object

askA

Ask a notebook a question and get an answer grounded in its sources.

The answer comes from Gemini reading the notebook's own sources, with citations back to them — use this instead of summarizing the sources yourself when a notebook already holds the material.

Inputs: question (required), notebook_id (required), source_ids, conversation_id. Returns: object

auth_statusA

Check whether this server has a working NotebookLM session.

Call this first when any other tool reports an auth problem. It performs a real (cheap) request, so it distinguishes "no cookies stored" from "cookies stored but expired".

Inputs: no named parameters. Returns: object

chat_historyB

Read past question/answer turns for a notebook's current conversation.

Inputs: notebook_id (required), limit. Returns: object

create_notebookA

Create an empty notebook.

A notebook with no sources cannot answer questions — follow up with add_source before calling ask.

Inputs: title (required). Returns: object

delete_notebookA

Permanently delete a notebook and everything in it.

This cannot be undone and deletes the notebook's sources, chats, and generated artifacts along with it.

Inputs: notebook_id (required), confirm. Returns: object

delete_sourceC

Remove a source from a notebook.

Inputs: source_id (required), notebook_id (required), confirm. Returns: object

download_artifactB

Download a completed Studio artifact to a file on the server host.

Inputs: artifact_id (required), notebook_id (required), output_path. Returns: object

generate_artifactA

Generate a Studio artifact (podcast, report, quiz, mind map...).

Generation runs server-side and is slow — an audio overview commonly takes several minutes — and it consumes the account's daily Studio quota. Prefer the default wait=false and poll with list_artifacts.

Inputs: kind (required), notebook_id (required), wait, language, +7 more. Returns: object

get_notebookC

Get one notebook with its sources.

Inputs: notebook_id (required), include_summary. Returns: object

list_artifactsA

List generated Studio artifacts in a notebook.

Use this to poll a generation started with wait=false: the artifact reports status: completed when it is ready to download.

Inputs: notebook_id (required), kind. Returns: object

list_notebooksA

List the notebooks reachable by the signed-in Google account.

Returns id, title, and source count for each. Use the ids with every other tool — NotebookLM has no lookup by title.

Inputs: no named parameters. Returns: object

list_sourcesB

List the sources in a notebook, with their processing status.

A source that is not ready is still being ingested and will not ground answers yet.

Inputs: notebook_id (required). Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 13 tools

    Disambiguation4/5

    Most tools target a distinct resource+action (notebook CRUD, source add/delete/list, artifact generate/list/download, ask, auth). Minor overlap between get_notebook (returns notebook with sources) and list_sources (sources with processing status), but descriptions clarify the difference.

    Naming Consistency4/5

    Strong verb_noun pattern for most tools (add_source, list_notebooks, create_notebook, list_artifacts, generate_artifact, download_artifact). A few deviations—ask (bare verb), chat_history and auth_status (noun phrases)—but overall readable and predictable.

    Tool Count5/5

    13 tools is well-scoped for the NotebookLM domain, cleanly grouped into notebooks, sources, artifacts, and query/auth concerns. Each tool earns its place with no filler.

    Completeness4/5

    Good CRUD/lifecycle coverage: notebook create/get/list/delete, source add/delete/list, artifact generate/list/download, plus ask, chat_history, and auth_status. Minor gaps like notebook rename/update and source update, but core workflows are covered.

    Related MCP Connectors

    Related MCP Servers