The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Google Drive Comments MCP listing page.
A focused Model Context Protocol server (and standalone CLI) for reading comments on Google Drive files — Docs, Sheets, and Slides. Two tools, read-only OAuth scope, no extra surface area.
Built because the hosted Google Drive connectors expose file content and search, but not the comment threads — the review discussion, the anchored quotes, the resolve/reopen history. This server fills that gap for any MCP client (Claude Code, Claude Desktop, Cursor, Cline, etc.), and also works as a plain CLI.
drive_search_files, drive_get_comments. That's the whole API.docs.google.com/document/d/… link or a bare file ID.drive.readonly).DRIVE_MCP_CREDENTIALS, DRIVE_MCP_TOKEN, DRIVE_MCP_SCOPES.You need a Google Cloud OAuth client. The server runs entirely on your machine; nothing leaves it.
drive.readonly is a restricted scope.A browser window opens for OAuth consent. The refresh token is cached at ~/.config/google-drive-comments-mcp/token.json.
Verify:
Then:
Read the open comments on this doc and summarize what reviewers are asking for: https://docs.google.com/document/d/…
~/Library/Application Support/Claude/claude_desktop_config.json (Mac):
(Use the absolute path from which google-drive-comments-mcp if it isn't on Claude Desktop's $PATH.)
drive_search_files(query, max_results=10)Search Drive. Plain strings are auto-wrapped as a filename search; raw Drive query syntax passes through.
drive_get_comments(file, include_resolved=True)Read all comments on a file. file accepts a Docs/Sheets/Slides/Drive URL or a bare file ID.
quoted_text is the document text the comment is anchored to — useful context for understanding what each comment refers to.
| Variable | Default | What |
|---|---|---|
DRIVE_MCP_CREDENTIALS | ~/.config/google-drive-comments-mcp/credentials.json | OAuth client secret JSON |
DRIVE_MCP_TOKEN | ~/.config/google-drive-comments-mcp/token.json | Cached refresh token |
DRIVE_MCP_SCOPES | https://www.googleapis.com/auth/drive.readonly | OAuth scopes (comma-separated) |
XDG_CONFIG_HOME | ~/.config | Standard XDG override |
If you also run a sibling tool (e.g. gmail-attachments-mcp) and want a single OAuth consent for both, point both tools at the same credential + token files (via the env vars above, or symlinks) and authorize once with the combined scopes:
A token granted a superset of scopes satisfies each tool's narrower request.
drive.readonly. It cannot edit, comment, or delete — only read file metadata, content, and comments.drive.readonly grants read access to all your Drive files, not just the one you query. There is no per-file read scope that also exposes comments. Treat the cached token like a password (it's written 0600).HttpError 403: Google Drive API has not been used in project … before or it is disabled
Enable the Drive API on the project that owns your OAuth client, then retry.
No valid Google token from Claude Desktop / cron
Run google-drive-comments-mcp setup once in a terminal where a browser can open. Subsequent runs reuse the cached token.
Comments come back empty on a file you know has comments
Confirm you authorized the account that can actually see the file, and that the file genuinely has comments (suggestions are not comments). Resolved comments are included unless you pass --open-only / include_resolved=false.
There are no API keys and no shipped secrets. The server authenticates to your Google account with an OAuth client you create, and caches a refresh token locally. The author has zero access to your data.
drive.readonly) can't be redistributed in a shared app, and an unverified shared app is capped at 100 users. "Bring your own OAuth client" is the standard pattern for personal-data MCP servers.~/.config/google-drive-comments-mcp/token.json (mode 0600). Delete it to revoke locally; revoke fully at myaccount.google.com/permissions.Part of a small family of focused, local MCP servers for Google Workspace data the hosted connectors don't expose:
They can share one OAuth login or stay isolated — see each repo's setup.
MIT. See LICENSE.