原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Google Drive Comments MCP

作者:zayansalman版本 0.1.0i★ –i在你的电脑上运行
注册名称io.github.zayansalman/google-drive-comments-mcp

安装

概览

作者提供的说明(英文原文)

Minimal MCP server for reading comments on Google Drive files (Docs, Sheets, Slides). Read-only.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 文档、表格与办公
  • 你需要填写:DRIVE_MCP_TOKEN

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: DRIVE_MCP_CREDENTIALS, DRIVE_MCP_TOKEN, DRIVE_MCP_SCOPES

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "google-drive-comments": {
      "command": "uvx",
      "args": [
        "google-drive-comments-mcp",
        "serve"
      ],
      "env": {
        "DRIVE_MCP_CREDENTIALS": "your-value",
        "DRIVE_MCP_TOKEN": "your-value",
        "DRIVE_MCP_SCOPES": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add google-drive-comments --env DRIVE_MCP_CREDENTIALS=your-value --env DRIVE_MCP_TOKEN=your-value --env DRIVE_MCP_SCOPES=your-value -- uvx google-drive-comments-mcp serve

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "google-drive-comments": {
      "command": "uvx",
      "args": [
        "google-drive-comments-mcp",
        "serve"
      ],
      "env": {
        "DRIVE_MCP_CREDENTIALS": "your-value",
        "DRIVE_MCP_TOKEN": "your-value",
        "DRIVE_MCP_SCOPES": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "google-drive-comments": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "google-drive-comments-mcp",
        "serve"
      ],
      "env": {
        "DRIVE_MCP_CREDENTIALS": "your-value",
        "DRIVE_MCP_TOKEN": "your-value",
        "DRIVE_MCP_SCOPES": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • DRIVE_MCP_CREDENTIALS env
    Path to the Google OAuth client secret JSON. Default: $XDG_CONFIG_HOME/google-drive-comments-mcp/credentials.json.
  • DRIVE_MCP_TOKEN 机密 env
    Path to the cached Google OAuth refresh token. Default: $XDG_CONFIG_HOME/google-drive-comments-mcp/token.json.
  • DRIVE_MCP_SCOPES env
    Comma-separated Google OAuth scopes. Default: https://www.googleapis.com/auth/drive.readonly.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 zayansalman 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“文档、表格与办公”中的其他服务器比较i

  • 星标数多于此分类中其他 3611 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 3611 个服务器的 14% 更新
  • 基础检查结果等于或优于此分类中其他 3611 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Google Drive Comments MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:DRIVE_MCP_TOKEN

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.1.0)于5个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Agent-Native Calendar

Agent-Native Google Calendar - manage events, sync, and public booking

作者:BuilderIO广泛使用★ 76202个月前更新

在云端运行

Excel MCP Server

Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.

作者:haris-musa广泛使用↓ 5万/周★ 4276今天更新

在你的电脑上运行

MCP Server for Excel

Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.

作者:sbroenne正在增长↓ 4321/周★ 8476天前更新

在你的电脑上运行

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

google-drive-comments-mcp

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.

Features

  • 2 MCP tools — drive_search_files, drive_get_comments. That's the whole API.
  • Reads full comment threads — author, content, the anchored quoted text, resolved/open status, and every reply (with resolve/reopen actions).
  • Works across Docs, Sheets, and Slides — the Drive comments API is uniform across file types.
  • Accepts URLs or IDs — paste a docs.google.com/document/d/… link or a bare file ID.
  • Read-only OAuth scope (drive.readonly).
  • Env-var-driven config — DRIVE_MCP_CREDENTIALS, DRIVE_MCP_TOKEN, DRIVE_MCP_SCOPES.

Install

pip install google-drive-comments-mcp

or, with uv:

uv tool install google-drive-comments-mcp

One-time setup (~10 minutes)

You need a Google Cloud OAuth client. The server runs entirely on your machine; nothing leaves it.

  1. Sign in to Google Cloud Console with the account whose Drive comments you want to read.
  2. Create a project (or pick an existing one).
  3. Enable the Drive API: console.cloud.google.com/apis/library/drive.googleapis.com.
  4. Configure the OAuth consent screen under APIs & Services → OAuth consent screen:
  • Google Workspace users: User type = Internal. No app verification is needed even though drive.readonly is a restricted scope.
  • Personal Gmail users: User type = External, and add your own address under "Test users".
  1. APIs & Services → Credentials → + Create credentials → OAuth client ID
  • Application type: Desktop app
  • Download the JSON.
  1. Run setup:
google-drive-comments-mcp setup --import-credentials ~/Downloads/client_secret_*.json

A browser window opens for OAuth consent. The refresh token is cached at ~/.config/google-drive-comments-mcp/token.json.

Verify:

google-drive-comments-mcp status

google-drive-comments-mcp comments "https://docs.google.com/document/d/YOUR_DOC_ID/edit"

Use it from Claude Code

claude mcp add --scope user google-drive-comments google-drive-comments-mcp -- serve

Then:

Read the open comments on this doc and summarize what reviewers are asking for: https://docs.google.com/document/d/…

Use it from Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json (Mac):

{

"mcpServers": { "google-drive-comments": { "command": "google-drive-comments-mcp", "args": ["serve"] } } }

(Use the absolute path from which google-drive-comments-mcp if it isn't on Claude Desktop's $PATH.)

Use it from the shell

# Find a doc

google-drive-comments-mcp search "Q3 strategy"

Read all comments (open + resolved) on a doc by URL or ID

google-drive-comments-mcp comments "https://docs.google.com/document/d/abc123/edit"

Only unresolved comments

google-drive-comments-mcp comments abc123 --open-only

The 2 MCP tools

drive_search_files(query, max_results=10)

Search Drive. Plain strings are auto-wrapped as a filename search; raw Drive query syntax passes through.

[

{ "id": "1AbC…", "name": "Q3 Strategy", "mime_type": "application/vnd.google-apps.document", "modified": "2026-04-20T09:00:00.000Z", "owners": ["Jane Doe"], "web_view_link": "https://docs.google.com/document/d/1AbC…/edit" } ]

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.

{

"file": { "id": "1AbC…", "name": "Q3 Strategy", "mime_type": "…document", "web_view_link": "…", "owners": ["Jane Doe"] }, "open_count": 2, "resolved_count": 1, "comments": [ { "id": "AAAA…", "author": "Jane Doe", "content": "Can we add the unit-economics table here?", "quoted_text": "Our margins improved in Q3.", "resolved": false, "created": "2026-04-21T10:00:00Z", "modified": "2026-04-21T10:00:00Z", "replies": [ { "author": "John Smith", "content": "Added.", "action": "", "created": "2026-04-21T11:00:00Z" } ] } ] }

quoted_text is the document text the comment is anchored to — useful context for understanding what each comment refers to.

Configuration

VariableDefaultWhat
DRIVE_MCP_CREDENTIALS~/.config/google-drive-comments-mcp/credentials.jsonOAuth client secret JSON
DRIVE_MCP_TOKEN~/.config/google-drive-comments-mcp/token.jsonCached refresh token
DRIVE_MCP_SCOPEShttps://www.googleapis.com/auth/drive.readonlyOAuth scopes (comma-separated)
XDG_CONFIG_HOME~/.configStandard XDG override
Sharing one login with other Google MCP tools

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:

DRIVE_MCP_SCOPES="https://www.googleapis.com/auth/gmail.readonly,https://www.googleapis.com/auth/drive.readonly" \

google-drive-comments-mcp setup --reauth

A token granted a superset of scopes satisfies each tool's narrower request.

Security

  • Read-only: the default scope is drive.readonly. It cannot edit, comment, or delete — only read file metadata, content, and comments.
  • Scope breadth: 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).
  • No telemetry: your OAuth client lives in your own Google Cloud project. Nothing leaves your machine.

Troubleshooting

`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.

Authentication — bring your own Google OAuth client

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.

  • Why your own client? Google's restricted scopes (here, 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.
  • What you need: a free Google Cloud project, the Drive API enabled, an OAuth consent screen, and a Desktop OAuth client. Full walkthrough → docs/setup-google-oauth.md.
  • Where your token lives: ~/.config/google-drive-comments-mcp/token.json (mode 0600). Delete it to revoke locally; revoke fully at myaccount.google.com/permissions.
  • No hosted/SaaS option — everything runs locally; your Drive data never touches a third-party server.

More guides

  • docs/setup-google-oauth.md — full OAuth walkthrough + common errors
  • docs/claude-code.md · docs/claude-desktop.md · docs/other-clients.md — per-client setup (Cursor, Cline, Continue, …)
  • examples/ — runnable snippets

Related tools

Part of a small family of focused, local MCP servers for Google Workspace data the hosted connectors don't expose:

  • [gmail-attachments-mcp](https://github.com/zayansalman/gmail-attachments-mcp) — download Gmail attachment bytes to disk
  • google-drive-comments-mcp — read comment threads on Docs/Sheets/Slides *(this repo)*
  • [google-drive-files-mcp](https://github.com/zayansalman/google-drive-files-mcp) — move/organize Drive files

They can share one OAuth login or stay isolated — see each repo's setup.

License

MIT. See LICENSE.

问 PopNx