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

Google Docs

作者:pulsemcp版本 0.1.4i★ –i在你的电脑上运行
注册名称com.pulsemcp/google-docs

安装

概览

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

MCP server for Google Docs integration with OAuth2 and service account support.

PopNx MCP 的三大支柱

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

它能帮你做什么

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

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

安装

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

安装之前

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

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

你需要

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

你用的是哪个应用?

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

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

{
  "mcpServers": {
    "google-docs": {
      "command": "npx",
      "args": [
        "-y",
        "google-docs-workspace-mcp-server"
      ],
      "env": {
        "GOOGLE_DOCS_OAUTH_CLIENT_ID": "your-value",
        "GOOGLE_DOCS_OAUTH_CLIENT_SECRET": "your-value",
        "GOOGLE_DOCS_OAUTH_REFRESH_TOKEN": "your-value",
        "GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL": "your-value",
        "GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value",
        "GOOGLE_DOCS_IMPERSONATE_EMAIL": "your-value",
        "GOOGLE_DOCS_ENABLED_TOOLGROUPS": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add google-docs --env GOOGLE_DOCS_OAUTH_CLIENT_ID=your-value --env GOOGLE_DOCS_OAUTH_CLIENT_SECRET=your-value --env GOOGLE_DOCS_OAUTH_REFRESH_TOKEN=your-value --env GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL=your-value --env GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY=your-value --env GOOGLE_DOCS_IMPERSONATE_EMAIL=your-value --env GOOGLE_DOCS_ENABLED_TOOLGROUPS=your-value -- npx -y google-docs-workspace-mcp-server

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

在 Cursor 中打开

或者自己复制设置

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

{
  "mcpServers": {
    "google-docs": {
      "command": "npx",
      "args": [
        "-y",
        "google-docs-workspace-mcp-server"
      ],
      "env": {
        "GOOGLE_DOCS_OAUTH_CLIENT_ID": "your-value",
        "GOOGLE_DOCS_OAUTH_CLIENT_SECRET": "your-value",
        "GOOGLE_DOCS_OAUTH_REFRESH_TOKEN": "your-value",
        "GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL": "your-value",
        "GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value",
        "GOOGLE_DOCS_IMPERSONATE_EMAIL": "your-value",
        "GOOGLE_DOCS_ENABLED_TOOLGROUPS": "your-value"
      }
    }
  }
}

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

在 VS Code 中打开

或者自己复制设置

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

{
  "servers": {
    "google-docs": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "google-docs-workspace-mcp-server"
      ],
      "env": {
        "GOOGLE_DOCS_OAUTH_CLIENT_ID": "your-value",
        "GOOGLE_DOCS_OAUTH_CLIENT_SECRET": "your-value",
        "GOOGLE_DOCS_OAUTH_REFRESH_TOKEN": "your-value",
        "GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL": "your-value",
        "GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value",
        "GOOGLE_DOCS_IMPERSONATE_EMAIL": "your-value",
        "GOOGLE_DOCS_ENABLED_TOOLGROUPS": "your-value"
      }
    }
  }
}

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

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

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

需要你填写的值

  • GOOGLE_DOCS_OAUTH_CLIENT_ID 机密 env
    OAuth2 client ID from Google Cloud Console.
  • GOOGLE_DOCS_OAUTH_CLIENT_SECRET 机密 env
    OAuth2 client secret from Google Cloud Console.
  • GOOGLE_DOCS_OAUTH_REFRESH_TOKEN 机密 env
    Long-lived refresh token obtained from the oauth-setup command.
  • GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL env
    Service account email address for domain-wide delegation.
  • GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY 机密 env
    Service account private key in PEM format.
  • GOOGLE_DOCS_IMPERSONATE_EMAIL env
    Email address to impersonate in Google Workspace.
  • GOOGLE_DOCS_ENABLED_TOOLGROUPS env
    Comma-separated list of tool groups to enable (readonly, readwrite, readwrite_external).

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

它能做什么

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

基础检查i

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

  • ✓ 通过

    作者与仓库一致

    注册名称已通过域名 pulsemcp.com 验证(注册中心会核实域名所有权)

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

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

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

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

常见问题

Google Docs 安全吗?

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

它需要哪些密钥或代码?

你需要填写:GOOGLE_DOCS_OAUTH_CLIENT_ID, GOOGLE_DOCS_OAUTH_CLIENT_SECRET, GOOGLE_DOCS_OAUTH_REFRESH_TOKEN, GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY

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

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

它还在维护吗?

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

哪些应用可以使用它?

支持 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,276MIT6天前更新
安装

MCP Server for Excel

作者:sbroenne

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

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

作者的 README

打开 README

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

Google Docs Workspace MCP Server

An MCP (Model Context Protocol) server that provides Google Docs integration for AI assistants. Supports both personal Google accounts (via OAuth2) and Google Workspace accounts (via service account with domain-wide delegation).

Features

  • Read documents: Fetch full body or just the heading outline of a Google Doc, by document ID or shareable URL
  • Create documents: Create new Google Docs with optional initial content
  • Edit documents:
  • Append text to the end of a document
  • Insert text at a specific index
  • Replace all occurrences of a string
  • Apply raw documents.batchUpdate requests for full structural control
  • Delete documents: Move to Drive trash by default, or permanently delete with an explicit flag
  • Export documents: Export to Markdown, HTML, plain text, PDF, DOCX, ODT, RTF, or EPUB
  • Share documents (gated): Grant read/comment/write access to a user, group, domain, or anyone with a link
  • Two auth methods: OAuth2 for personal accounts, service account for Google Workspace
  • Permission gating: Restrict tools by group via GOOGLE_DOCS_ENABLED_TOOLGROUPS

Installation

npm install google-docs-workspace-mcp-server

Or run directly with npx:

npx google-docs-workspace-mcp-server

Authentication

This server supports two authentication modes. Choose the one that matches your account type.

Option 1: OAuth2 (Personal Google Accounts)

Use this for personal @gmail.com accounts or any Google account without Workspace admin access.

Prerequisites
  1. Go to Google Cloud Console
  2. Create or select a project
  3. Enable the Google Docs API and the Google Drive API
  4. Configure the OAuth consent screen:
  • Choose External user type
  • Add yourself as a test user
  • Publish the app (click "Publish" on the consent screen) to prevent refresh tokens from expiring every 7 days. No full Google verification is needed for personal use.
  1. Create OAuth 2.0 credentials:
  • Choose Desktop app as the application type
  • Important: Create new credentials _after_ publishing the app
  1. Copy the Client ID and Client Secret
Getting a Refresh Token

Run the built-in setup command:

npx google-docs-workspace-mcp-server oauth-setup <client_id> <client_secret>

You can also pass credentials via environment variables:

GOOGLE_DOCS_OAUTH_CLIENT_ID=... GOOGLE_DOCS_OAUTH_CLIENT_SECRET=... npx google-docs-workspace-mcp-server oauth-setup

Port conflict? If port 3000 is already in use, specify a different port:

PORT=3001 npx google-docs-workspace-mcp-server oauth-setup <client_id> <client_secret>

Desktop app credentials automatically allow http://localhost redirects on any port, so no additional Google Cloud Console configuration is needed.

This will open your browser for Google sign-in and print the refresh token. You only need to do this once — the refresh token does not expire (as long as the OAuth consent screen is published).

Environment Variables (OAuth2)
VariableRequiredDescription
GOOGLE_DOCS_OAUTH_CLIENT_IDYesOAuth2 client ID from Google Cloud Console
GOOGLE_DOCS_OAUTH_CLIENT_SECRETYesOAuth2 client secret
GOOGLE_DOCS_OAUTH_REFRESH_TOKENYesRefresh token from the setup script
GOOGLE_DOCS_ENABLED_TOOLGROUPSNoComma-separated list of tool groups (default: all)
Claude Desktop Configuration (OAuth2)
{

"mcpServers": { "google-docs": { "command": "npx", "args": ["google-docs-workspace-mcp-server"], "env": { "GOOGLE_DOCS_OAUTH_CLIENT_ID": "your-client-id.apps.googleusercontent.com", "GOOGLE_DOCS_OAUTH_CLIENT_SECRET": "your-client-secret", "GOOGLE_DOCS_OAUTH_REFRESH_TOKEN": "your-refresh-token" } } } }

Option 2: Service Account (Google Workspace)

Use this for Google Workspace organizations where a domain admin can grant domain-wide delegation.

Prerequisites
  1. Go to Google Cloud Console
  2. Create or select a project
  3. Enable the Google Docs API and the Google Drive API
  4. Create a service account with domain-wide delegation enabled
  5. In Google Workspace Admin Console, grant the service account access to the following scopes:
  • https://www.googleapis.com/auth/documents (read and edit documents)
  • https://www.googleapis.com/auth/drive (full read/write access to the impersonated user's Drive — required to export, read comments on, and manage arbitrary existing docs, including files this app did not create)
  1. Download the JSON key file
Environment Variables (Service Account)
VariableRequiredDescription
GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAILYesService account email address
GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEYYesService account private key (PEM format)
GOOGLE_DOCS_IMPERSONATE_EMAILYesEmail address to impersonate
GOOGLE_DOCS_ENABLED_TOOLGROUPSNoComma-separated list of tool groups to enable (default: all groups)

You can find the client_email and private_key values in your service account JSON key file.

Claude Desktop Configuration (Service Account)
{

"mcpServers": { "google-docs": { "command": "npx", "args": ["google-docs-workspace-mcp-server"], "env": { "GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL": "my-service-account@my-project.iam.gserviceaccount.com", "GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY": "[PopNx MCP ตัดค่าที่หน้าตาเหมือนกุญแจออก]", "GOOGLE_DOCS_IMPERSONATE_EMAIL": "user@yourdomain.com" } } } }

Note: For the private key, you can either:

  1. Use the key directly with \n for newlines (as shown above)
  2. Set the environment variable from a shell that preserves newlines

Tool Groups

The server supports three tool groups for permission-based access control:

GroupTools IncludedRisk Level
readonlyget_document, get_document_outline, export_document, list_commentsLow
readwriteAll readonly tools + create_document, update_document, delete_document, append_text, insert_text, replace_textMedium
readwrite_externalAll readwrite tools + share_documentHigh

By default, all tool groups are enabled. To restrict access, set the GOOGLE_DOCS_ENABLED_TOOLGROUPS environment variable:

# Read-only access (no writes or sharing)

GOOGLE_DOCS_ENABLED_TOOLGROUPS=readonly

Read and write, but no sharing

GOOGLE_DOCS_ENABLED_TOOLGROUPS=readwrite

Full access including sharing (default)

GOOGLE_DOCS_ENABLED_TOOLGROUPS=readwrite_external

Security Note: The share_document tool is in a separate readwrite_external group because it can grant access to users outside your organization, which carries higher risk than purely internal edits.

Available Tools

All tools that take a document_id accept either a raw Google Docs ID (e.g., 1AbCdEf...) or a shareable Docs URL (e.g., https://docs.google.com/document/d/1AbCdEf.../edit). The server extracts the ID automatically.

get_document

Fetch a Google Doc and return its title, outline, and full body.

Parameters:

  • document_id (string, required): Google Docs ID or URL
  • format (string, optional): text (default) for human-readable output, or json for the raw documents.get API resource
get_document_outline

Return only the heading structure of a document — useful for getting your bearings on a long doc without pulling the full body.

Parameters:

  • document_id (string, required): Google Docs ID or URL
create_document

Create a new Google Doc.

Parameters:

  • title (string, required): Document title
  • initial_content (string, optional): Plain text inserted into the new document
update_document

Apply raw documents.batchUpdate requests. This is the escape hatch for any Docs API operation not covered by the more focused tools (e.g., applying paragraph styles, inserting tables, manipulating named ranges).

Parameters:

  • document_id (string, required): Google Docs ID or URL
  • requests (array, required): Array of documents.batchUpdate request objects (API reference)

Example:

{

"document_id": "1AbCdEf...", "requests": [ { "insertText": { "location": { "index": 1 }, "text": "Hello, world!\n" } }, { "updateParagraphStyle": { "range": { "startIndex": 1, "endIndex": 14 }, "paragraphStyle": { "namedStyleType": "HEADING_1" }, "fields": "namedStyleType" } } ] }

append_text

Append text to the end of a document. Resolves the end-of-body index for you.

Parameters:

  • document_id (string, required): Google Docs ID or URL
  • text (string, required): Text to append
insert_text

Insert text at a specific index.

Parameters:

  • document_id (string, required): Google Docs ID or URL
  • index (number, required): Insertion index (must be ≥ 1)
  • text (string, required): Text to insert
replace_text

Find and replace text throughout a document. Reports the number of occurrences replaced.

Parameters:

  • document_id (string, required): Google Docs ID or URL
  • find (string, required): String to find
  • replace (string, required): Replacement string
  • match_case (boolean, optional): Whether matching is case-sensitive (default: false)
delete_document

Move a document to Drive trash by default, or permanently delete it.

Parameters:

  • document_id (string, required): Google Docs ID or URL
  • permanent (boolean, optional): When true, permanently delete instead of trashing (default: false)
export_document

Export a document in a different format.

Parameters:

  • document_id (string, required): Google Docs ID or URL
  • format (string, required): One of markdown, html, txt, pdf, docx, odt, rtf, epub

Text formats (markdown, html, txt) are returned inline. Binary formats (pdf, docx, odt, rtf, epub) are returned base64-encoded.

list_comments

List the comments on a document, including threaded replies and resolved state. Reads the Drive comments.list API and surfaces each comment's author, timestamps, resolved/open state, the anchored quoted text it refers to, the comment body, and any replies (including replies that resolved or reopened the thread).

Parameters:

  • document_id (string, required): Google Docs ID or URL
  • include_resolved (boolean, optional): Include resolved (closed) threads (default: true). Set false to see only open comments.
  • `include_delet

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

问 PopNx