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

Gdocs Comments MCP

作者:stanislawherjan1版本 0.1.1i★ –i在你的电脑上运行
注册名称io.github.stanislawherjan1/gdocs-comments-mcp

安装

概览

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

Add inline, range-anchored comments to Google Docs - the one comment op the Google APIs can't do.

PopNx MCP 的三大支柱

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

它能帮你做什么

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

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

安装

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

安装之前

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

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

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

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

{
  "mcpServers": {
    "gdocs-comments": {
      "command": "npx",
      "args": [
        "-y",
        "gdocs-comments-mcp"
      ],
      "env": {
        "GDOCS_COMMENTS_PROFILE_DIR": "your-value",
        "GDOCS_COMMENTS_CDP_URL": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add gdocs-comments --env GDOCS_COMMENTS_PROFILE_DIR=your-value --env GDOCS_COMMENTS_CDP_URL=your-value -- npx -y gdocs-comments-mcp

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

在 Cursor 中打开

或者自己复制设置

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

{
  "mcpServers": {
    "gdocs-comments": {
      "command": "npx",
      "args": [
        "-y",
        "gdocs-comments-mcp"
      ],
      "env": {
        "GDOCS_COMMENTS_PROFILE_DIR": "your-value",
        "GDOCS_COMMENTS_CDP_URL": "your-value"
      }
    }
  }
}

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

在 VS Code 中打开

或者自己复制设置

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

{
  "servers": {
    "gdocs-comments": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "gdocs-comments-mcp"
      ],
      "env": {
        "GDOCS_COMMENTS_PROFILE_DIR": "your-value",
        "GDOCS_COMMENTS_CDP_URL": "your-value"
      }
    }
  }
}

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

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

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

需要你填写的值

  • GDOCS_COMMENTS_PROFILE_DIR env
    Browser profile location (default ~/.gdocs-comments-mcp/profile)
  • GDOCS_COMMENTS_CDP_URL env
    Attach to an existing browser over CDP instead of managing a profile

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

它能做什么

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

基础检查i

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

  • ✓ 通过

    作者与仓库一致

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

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

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

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

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

常见问题

Gdocs Comments MCP 安全吗?

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

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

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

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

它还在维护吗?

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

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

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

替代选择

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

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

Agent-Native Calendar

作者:BuilderIO

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

在云端运行★ 7,620MIT2个月前更新
安装

Excel MCP Server

作者:haris-musa

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

在你的电脑上运行★ 4,276MIT7天前更新
安装

MCP Server for Excel

作者:sbroenne

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

在你的电脑上运行★ 847MIT4天前更新
安装

作者的 README

打开 README

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

gdocs-comments-mcp

Inline, range-anchored comments for Google Docs — the one comment operation the Google APIs can't do.

= 18">

Quickstart · Scope · Tools · Configuration · How it works · Troubleshooting · Server deployment · FAQ

You're building an AI process around Google Docs — an agent that reviews drafts, audits contracts, gives editorial feedback. The natural way to deliver that feedback is how humans do it: a comment pinned to the exact sentence it's about, not a wall of text dumped at the end of the doc or into chat.

Then you hit the wall: the Google APIs can't create anchored comments. The Docs API has no comment endpoints at all, and the Drive API accepts an anchor field only to have the Docs editor ignore it — the comment shows up as a general, whole-document comment.

This MCP server closes that gap. Your agent calls add_comment with a text fragment and a comment; the server posts it through a real, logged-in Google Docs session, so it lands anchored to that exact text — just as if a human had selected it and pressed Ctrl+Alt+M:

Why not the official APIs?

This server does one thing: add a comment to a Google Doc. The interesting case is the anchored one — a comment pinned to a specific text range — which no Google API can do.

Add a comment…Google Docs APIGoogle Drive APIthis server
unanchored (whole document)❌✅✅
anchored to a text range❌❌✅

The Docs API has no comment endpoints at all. The Drive API's comments.create accepts an anchor field, but the Docs editor ignores it — the comment renders as an unanchored, whole-document comment. The editor's own anchor format (kix.*) is undocumented and can't be produced externally (Drive API docs, issuetracker #292610078, open since 2016). Driving the editor UI is the only way — so this server does exactly that, and nothing else. (Listing, replying, resolving, and deleting comments already work over the Drive API — use a Drive-based tool for those.)

What this does — and what it doesn't

This server is deliberately one narrow thing. Read this before wiring it in.

✅ It does: add comments to a Google Doc — anchored to a specific text range (the part no API can do), or unanchored on the whole document.

❌ It does NOT:

You want to…Use instead
Read the document's content (so an agent can decide what to comment on, or get the exact text to anchor to)Google Docs API (documents.get) or a Docs-reading MCP
Export the doc (text / markdown / PDF)Google Drive API (files.export)
List / reply to / resolve / delete commentsGoogle Drive API (comments.*) — faster, no browser

Important: this tool never returns document content — its output is structured-only ({ ok, anchored, occurrence_used, verified }), by design, so a malicious doc can't inject instructions into your agent. That means the agent is writing *blind*: to review a doc intelligently, pair this with a read capability (Docs API documents.get) and feed the exact quoted text back in as find_text. The two use different auth — this server drives a logged-in browser session (no OAuth), while the Docs/Drive APIs need an OAuth token or service account — but they can run against the same Google account.

Quickstart

One command — signs you in (opens a browser once), then registers the server with Claude Code:

npx -y gdocs-comments-mcp setup

That's it — skip to Use it below. Prefer to do it by hand, or use another client? The manual steps are below.

Manual setup

1. Log in once — opens a browser window; the Google session is saved to a local profile (~/.gdocs-comments-mcp/profile):

npx -y gdocs-comments-mcp login

2. Add the server to your MCP client:

# Claude Code

claude mcp add gdocs-comments -- npx -y gdocs-comments-mcp

Other MCP clients — after login, add the config for your client:

Claude Desktop / Cowork

Add to claude_desktop_config.json (Settings → Developer → Edit Config):

{

"mcpServers": { "gdocs-comments": { "command": "npx", "args": ["-y", "gdocs-comments-mcp"] } } }

</details>

Project-level .mcp.json (shared with your team via git)

Create .mcp.json in the project root — Claude Code, Cowork, and most MCP clients pick it up:

{

"mcpServers": { "gdocs-comments": { "command": "npx", "args": ["-y", "gdocs-comments-mcp"] } } }

Note: every user of the project still runs npx gdocs-comments-mcp login once on their own machine — sessions are personal and never shared through git.

Cursor

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):

{

"mcpServers": { "gdocs-comments": { "command": "npx", "args": ["-y", "gdocs-comments-mcp"] } } }

</details>

VS Code (GitHub Copilot)

Add to .vscode/mcp.json:

{

"servers": { "gdocs-comments": { "type": "stdio", "command": "npx", "args": ["-y", "gdocs-comments-mcp"] } } }

</details>

3. Use it — ask your agent:

Add a comment to https://docs.google.com/document/d/1AbC…/edit — anchor it to "quarterly numbers" and say "Update this before Friday".

The agent calls add_comment and gets back:

{ "ok": true, "anchored": true, "occurrence_used": 1, "verified": true }

…and the comment is sitting on the highlighted phrase in the doc, from the account you logged in with.

No Playwright browser download is needed — by default the server drives your installed Google Chrome via playwright-core.

Tools

add_comment
ParamRequiredDescription
doc✅Document id or full docs.google.com/document/d/ /edit URL
comment_text✅Comment body (plain text, newlines OK)
find_text—Exact, single-line text fragment to anchor to (must match the doc text). Omit to add a general, unanchored comment on the whole document.
occurrence—Anchor to the N-th match when find_text appears multiple times (default 1)

Returns { ok, anchored, occurrence_used, verified } — verified: true means the posted comment was observed in the page after submitting. If find_text is given but not found, the call fails with TEXT_NOT_FOUND and nothing is posted.

The tool never returns document content, so a malicious doc can't inject instructions into your agent through it.

check_connection

Probes the Google session; returns { connected, mode }. If connected: false, run npx gdocs-comments-mcp login again.

Scope note: this server does *one* thing — creating anchored comments. Listing, replying, resolving, and deleting comments all work fine through the Drive API (comments.*), which is faster and needs no browser — use a Drive-based MCP for those.

CLI

npx gdocs-comments-mcp login    # one-time interactive Google sign-in

npx gdocs-comments-mcp status # is the saved session still valid? npx gdocs-comments-mcp logout # delete the saved session/profile

Configuration

All optional, via environment variables:

Env varDefaultPurpose
GDOCS_COMMENTS_PROFILE_DIR~/.gdocs-comments-mcp/profileWhere the logged-in browser profile lives (set a different dir per Google account)
GDOCS_COMMENTS_BROWSER_CHANNELchromechrome \msedge \chromium (bundled; needs npx playwright install chromium)
GDOCS_COMMENTS_HEADLESStrueSet false to watch the automation work
GDOCS_COMMENTS_IDLE_CLOSE_MIN10Close the managed browser after N idle minutes (0 = keep open)
GDOCS_COMMENTS_CDP_URL—Attach to an existing browser over CDP instead of managing a profile (see below)
GDOCS_COMMENTS_AUDIT_LOGoffJSONL audit log (hashes only, no content)

Troubleshooting

ErrorWhat it meansFix
NOT_CONNECTEDNo saved Google session yetnpx gdocs-comments-mcp login
SESSION_EXPIREDThe saved session lapsed (idle sessions die after ~1–2 weeks)npx gdocs-comments-mcp login again
TEXT_NOT_FOUNDfind_text doesn't occur in the doc (or occurrence > number of matches)Pass a fragment that matches the doc text exactly — nothing was posted
NO_BROWSERNo Chrome/Edge/Chromium foundInstall Google Chrome, or npx playwright install chromium + GDOCS_COMMENTS_BROWSER_CHANNEL=chromium
PROFILE_LOCKEDAnother process holds the profile (usually a running server + a login/status attempt)Stop one of them, or use a second GDOCS_COMMENTS_PROFILE_DIR
Comment lands but verified: falseThe post-submit check couldn't see the comment (can be a false negative on long comments)Check the doc; rerun with GDOCS_COMMENTS_HEADLESS=false to watch

First run on a new machine? npx gdocs-comments-mcp status tells you exactly where you stand.

Running on a server / datacenter IP

On a residential machine the default profile mode just works. On datacenter IPs, Google's anti-fraud rejects a freshly launched browser process reusing a saved session — it bounces to accounts.google.com/confirmidentifier. Relaunching from a profile does not work there.

What does work: keep the exact browser the operator logged into alive, and let this server attach to it:

  1. Start a long-lived Chrome/Chromium (under Xvfb if headless) with --remote-debugging-port=9333 and log in to Google inside it once.
  2. Run the MCP server with GDOCS_COMMENTS_CDP_URL=http://127.0.0.1:9333.

The server then drives that live session over CDP and never launches its own browser. Keep the session warm by navigating it to docs.google.com every few hours, or an idle session expires after ~1–2 weeks.

How it works

Because the APIs can't anchor a comment, the server does exactly what a person would: it drives the real Google Docs editor. Here's the full path of one add_comment call.

1. Attach to a logged-in browser. In the default *profile mode*, the server owns a persistent Chromium profile (your installed Google C

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx