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

Google Drive

作者:us-all版本 1.15.8i★ –i在你的电脑上运行
注册名称io.github.us-all/google-drive

安装

概览

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

Google Drive + Workspace MCP — Docs, Sheets, Slides, Shared Drives, Labels, Approvals, DWD

PopNx MCP 的三大支柱

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

它能帮你做什么

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

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

安装

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

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, GOOGLE_REFRESH_TOKEN, GOOGLE_APPLICATION_CREDENTIALS, GOOGLE_SERVICE_ACCOUNT_KEY_PATH, GOOGLE_IMPERSONATE_USER, GOOGLE_DRIVE_SCOPES, GOOGLE_DRIVE_ALLOW_WRITE, GD_TOOLS, GD_DISABLE

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

你需要

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

你用的是哪个应用?

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

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

{
  "mcpServers": {
    "google-drive": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/google-drive-mcp"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "your-value",
        "GOOGLE_CLIENT_SECRET": "your-value",
        "GOOGLE_REFRESH_TOKEN": "your-value",
        "GOOGLE_APPLICATION_CREDENTIALS": "your-value",
        "GOOGLE_SERVICE_ACCOUNT_KEY_PATH": "your-value",
        "GOOGLE_IMPERSONATE_USER": "your-value",
        "GOOGLE_DRIVE_SCOPES": "your-value",
        "GOOGLE_DRIVE_ALLOW_WRITE": "your-value",
        "GD_TOOLS": "your-value",
        "GD_DISABLE": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add google-drive --env GOOGLE_CLIENT_ID=your-value --env GOOGLE_CLIENT_SECRET=your-value --env GOOGLE_REFRESH_TOKEN=your-value --env GOOGLE_APPLICATION_CREDENTIALS=your-value --env GOOGLE_SERVICE_ACCOUNT_KEY_PATH=your-value --env GOOGLE_IMPERSONATE_USER=your-value --env GOOGLE_DRIVE_SCOPES=your-value --env GOOGLE_DRIVE_ALLOW_WRITE=your-value --env GD_TOOLS=your-value --env GD_DISABLE=your-value -- npx -y @us-all/google-drive-mcp

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

在 Cursor 中打开

或者自己复制设置

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

{
  "mcpServers": {
    "google-drive": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/google-drive-mcp"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "your-value",
        "GOOGLE_CLIENT_SECRET": "your-value",
        "GOOGLE_REFRESH_TOKEN": "your-value",
        "GOOGLE_APPLICATION_CREDENTIALS": "your-value",
        "GOOGLE_SERVICE_ACCOUNT_KEY_PATH": "your-value",
        "GOOGLE_IMPERSONATE_USER": "your-value",
        "GOOGLE_DRIVE_SCOPES": "your-value",
        "GOOGLE_DRIVE_ALLOW_WRITE": "your-value",
        "GD_TOOLS": "your-value",
        "GD_DISABLE": "your-value"
      }
    }
  }
}

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

在 VS Code 中打开

或者自己复制设置

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

{
  "servers": {
    "google-drive": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@us-all/google-drive-mcp"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "your-value",
        "GOOGLE_CLIENT_SECRET": "your-value",
        "GOOGLE_REFRESH_TOKEN": "your-value",
        "GOOGLE_APPLICATION_CREDENTIALS": "your-value",
        "GOOGLE_SERVICE_ACCOUNT_KEY_PATH": "your-value",
        "GOOGLE_IMPERSONATE_USER": "your-value",
        "GOOGLE_DRIVE_SCOPES": "your-value",
        "GOOGLE_DRIVE_ALLOW_WRITE": "your-value",
        "GD_TOOLS": "your-value",
        "GD_DISABLE": "your-value"
      }
    }
  }
}

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

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

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

需要你填写的值

  • GOOGLE_CLIENT_ID 机密 env
    OAuth client ID. Required for OAuth refresh-token auth method.
  • GOOGLE_CLIENT_SECRET 机密 env
    OAuth client secret. Required for OAuth refresh-token auth method.
  • GOOGLE_REFRESH_TOKEN 机密 env
    OAuth refresh token. Required for OAuth refresh-token auth method.
  • GOOGLE_APPLICATION_CREDENTIALS env
    Path to service account JSON key. Required for SA + DWD auth method (alternative to OAuth).
  • GOOGLE_SERVICE_ACCOUNT_KEY_PATH env
    Alias for GOOGLE_APPLICATION_CREDENTIALS.
  • GOOGLE_IMPERSONATE_USER env
    Workspace user email to impersonate (DWD). Required when using service account auth.
  • GOOGLE_DRIVE_SCOPES env
    Comma-separated OAuth scopes. Defaults are read-only; write mode broadens Drive/Docs scopes as needed.
  • GOOGLE_DRIVE_ALLOW_WRITE env
    Set to 'true' to enable write tools. Default read-only.
  • GD_TOOLS env
    Comma-separated category allowlist. Default: all categories enabled.
  • GD_DISABLE env
    Comma-separated category disablelist.

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

它能做什么

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

基础检查i

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

  • ✓ 通过

    作者与仓库一致

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

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

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

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

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

常见问题

Google Drive 安全吗?

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

它需要哪些密钥或代码?

你需要填写:GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, GOOGLE_REFRESH_TOKEN

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

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

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.15.8)于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 Drive MCP Server

The Workspace power-editing MCP — formula-aware Sheets, full Slides editing, shared-drive audits the read-only Claude.ai connector deliberately won't ship.

98 tools across Drive, Docs, Sheets, Slides, GWS admin, and aggregations. Service Account + Domain-Wide Delegation for org-scale automation. GWS-aware capability detection — features auto-unlock for Workspace accounts.

What it does that others don't

  • Deep Sheets editing — charts, conditional formats, protected ranges, named ranges, data validation, borders, merge, sort, find/replace, formulas, A1-quote-doubling for CJK tab names. The 1st-party Workspace connector reads Sheets as CSV — formulas don't survive.
  • Full Slides editing — presentations, slides, shapes, tables, images, formatting. Not in the connector at all.
  • Shared-Drive admin tooling — list-shared-drives, get-shared-drive, create-shared-drive, list/share/remove permissions, file activity, labels, approvals. Workspace governance surface the connector deliberately doesn't expose.
  • 3 auth modes — OAuth2 (personal or GWS), Service Account + Domain-Wide Delegation (org-scale), Application Default Credentials (auto-detected).
  • Aggregation tools — audit-shared-drive-permissions (single Shared-Drive audit) + audit-external-shares (cross-drive / My-Drive audit with top external-domain concentration view), summarize-spreadsheet (metadata + per-tab sample + named ranges), summarize-doc (file + content + permissions + comments).
  • MCP Prompts (3) — cleanup-shared-with-me, analyze-doc-structure, bulk-format-spreadsheet.
  • GWS-aware — capabilities.ts detects account type on startup; GWS-only tools return clear errors for personal accounts instead of mysterious 403s.

Try this — 5 prompts

Connect the server to Claude Desktop or Claude Code, then paste any of these:

  1. Shared-drive permission audit — *"Audit external shares across all my Shared Drives. List people outside us-all.co.kr who have access to anything. Group by drive, sort by access level."*
  2. Bulk conditional formatting — *"Apply this conditional format to column amount across every sales-* spreadsheet in my drive: red if <0, yellow if 0–100, green if >100."*
  3. Slides from Doc outline — *"Convert this Google Doc's outline into a 12-slide presentation: title slide, then 1 slide per H2 with H3 bullet points, end with a Q&A slide. Use the company template."*
  4. Doc structure analysis — *"Analyze this Doc's structure: heading hierarchy, internal vs external link health, image alt-text coverage. Suggest 3 concrete improvements."*
  5. Cleanup shared-with-me — *"Find files shared with me more than 180 days ago that I never opened. List them with sharer, last modified, and a guess at whether to keep."*

When to use this vs alternatives

Anthropic 1st-party Workspace connectortaylorwilsdon/google_workspace_mcpxing5/mcp-google-sheets@us-all/google-drive-mcp (this)
Stars / availabilityn/a (Claude.ai built-in, Feb 2026)2.3K★836★—
ScopeDrive read + Sheets-as-CSV readGmail+Calendar+Drive+Docs+Sheets+Slides+Forms+Chat+Tasks+Contacts+Apps ScriptSheets onlyDrive + Docs + Sheets + Slides + GWS admin
Sheets formula editing❌ (CSV round-trip loses formulas)✅ basic✅ specialist✅ deep (charts/conditional/named ranges)
Slides editing❌✅❌✅ deep
Shared-drive adminpartial✅❌✅ deep
Folder operations❌✅❌✅
Aggregation tools❌❌❌✅ summarize-spreadsheet, summarize-doc, audit-external-shares
MCP Prompts❌❌❌✅ 4
Auth modesmanaged OAuthOAuth + SA + statelessSA / OAuth / ADCOAuth + SA + DWD + ADC
Transportn/a (Claude.ai-only)stdio + HTTPstdiostdio

Use the 1st-party connector for zero-config Drive read flows in Claude.ai. Use taylorwilsdon if you need the full Workspace surface (Gmail / Calendar / Forms etc.). Use this server for Drive + Docs + Sheets + Slides power-editing, shared-drive governance, and bulk operations the connector can't do.

Install

Claude Desktop
{

"mcpServers": { "google-drive": { "command": "npx", "args": ["-y", "@us-all/google-drive-mcp"], "env": { "GOOGLE_CLIENT_ID": " ", "GOOGLE_CLIENT_SECRET": " ", "GOOGLE_REFRESH_TOKEN": " " } } } }

Claude Code
claude mcp add google-drive -s user -- npx -y @us-all/google-drive-mcp

(Set env vars separately or in .mcp.json.)

Docker
docker run --rm -i --env-file .env ghcr.io/us-all/google-drive-mcp-server
Build from source
git clone https://github.com/us-all/google-drive-mcp-server.git

cd google-drive-mcp-server && pnpm install && pnpm build node dist/index.js

Auth setup

OAuth2 (personal or GWS)
  1. Google Cloud Console → create project
  2. Enable Drive API, Docs API, Sheets API, Slides API, Drive Activity API, Drive Labels API
  3. Create OAuth2 credentials (Desktop App)
  4. Get a refresh token (OAuth2 playground or your own flow)
  5. Set GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, GOOGLE_REFRESH_TOKEN
Service Account + Domain-Wide Delegation (org-scale)
  1. Create a Service Account in Google Cloud Console
  2. Download the JSON key
  3. Workspace Admin Console → Security → API Controls → Domain-Wide Delegation → add the SA's Client ID + grant required scopes
  4. Set GOOGLE_SERVICE_ACCOUNT_KEY_PATH and GOOGLE_IMPERSONATE_USER
Application Default Credentials (zero-config)

gcloud auth application-default login --client-id-file=client_secret.json --scopes=... — auto-detected on startup. Windows ADC paths (%APPDATA%\gcloud\) supported.

Configuration

VariableRequiredDefaultDescription
GOOGLE_CLIENT_IDOAuth2—OAuth2 Client ID
GOOGLE_CLIENT_SECRETOAuth2—OAuth2 Client Secret
GOOGLE_REFRESH_TOKENOAuth2—OAuth2 Refresh Token
GOOGLE_SERVICE_ACCOUNT_KEY_PATHSA—Path to service-account JSON key
GOOGLE_IMPERSONATE_USER❌—GWS user email to impersonate (SA only)
GOOGLE_DRIVE_ALLOW_WRITE❌falseSet true to enable mutations
GOOGLE_DRIVE_SCOPES❌read-only Drive Activity + Docs scopes (or broader Drive/Docs scopes if write enabled)Comma-sep OAuth scopes override
GD_TOOLS❌—Comma-sep allowlist of categories. Biggest token saver.
GD_DISABLE❌—Comma-sep denylist. Ignored when GD_TOOLS is set.
MCP_TRANSPORT❌stdiohttp to enable Streamable HTTP transport
MCP_HTTP_TOKENconditional—Bearer token. Required when MCP_TRANSPORT=http
MCP_HTTP_PORT❌3000HTTP listen port
MCP_HTTP_HOST❌127.0.0.1HTTP bind host (DNS rebinding protection auto-enabled for localhost)
MCP_HTTP_SKIP_AUTH❌falseSkip Bearer auth — e.g. behind a reverse proxy that handles it

Categories (7): drive, sheets, docs, slides, shared-drives, labels, approvals. Plus always-on meta.

When MCP_TRANSPORT=http: POST /mcp (Bearer-auth JSON-RPC) + GET /health (public liveness).

Token efficiency
ScenarioToolsSchema tokensvs default
default (all categories)9618,400—
typical (GD_TOOLS=drive,docs,sheets)6813,700−25%
narrow (GD_TOOLS=drive)254,000−78%

extractFields projection on list-files/get-file/sheets-get-spreadsheet/docs-get-document (with tabsCount, rowCount, columnCount, locale, timeZone defaults). list-files slim default trims ~80% (drops capabilities 40-bool object + contentRestrictions).

GWS detection

capabilities.ts detects account type at startup via about.get() + domain check:

FeaturePersonalGWS Standard+GWS Enterprise
File CRUD / Search / Export✅✅✅
Docs / Sheets / Slides editing✅✅✅
Comments & Revisions✅✅✅
Drive Activity✅✅✅
Shared Drives—✅✅
Labels (classification)—✅✅
Approvals—✅✅
Domain-Wide Delegation—✅✅

GWS-only tools throw GWSFeatureError with a clear message for personal accounts — no mysterious 403s.

MCP Prompts (4)

Workflow templates available via MCP prompts/list:

  • audit-shared-drive-permissions — fleet-wide external-share audit; flag access-level outliers.
  • cleanup-shared-with-me — find untouched stale shares + suggest cleanup.
  • analyze-doc-structure — heading hierarchy + link health + alt-text coverage.
  • bulk-format-spreadsheet — apply consistent format across many sheets/tabs.

MCP Resources

URI-based read-only access:

  • gdrive://file/{fileId}
  • gdrive://spreadsheet/{spreadsheetId}
  • gdrive://document/{documentId}
  • gdrive://presentation/{presentationId}
  • gdrive://folder/{folderId}
  • gdrive://shared-drive/{driveId} (GWS-gated)
  • gdrive://about/me

Tools (98)

7 categories. Use search-tools to discover at runtime; full list collapsed below.

CategoryTools
Sheets (data / structure / formatting / advanced)30
Drive (files / search / folders / permissions / export / comments / revisions / activity)24
Slides (presentation / slide mgmt / content / formatting)20
Docs (document / editing / formatting / elements)13
GWS-only (shared drives / labels / approvals / audit)9
Aggregations (summarize-spreadsheet, summarize-doc, audit-external-shares)3
Meta (search-tools)1

Full tool list

Drive (24)

get-about, list-files, get-file, read-file, create-file, update-file, copy-file, delete-file, search-files, create-folder, move-file, get-folder-tree, list-permissions, share-file, remove-permission, export-file, get-download-link, list-comments, get-comment, create-comment, resolve-comment, list-revisions, get-revision, get-activity

Google Docs (13)

Document: docs-get-document, docs-create-document, docs-get-content, docs-list-tabs Editing: docs-insert-text, docs-delete-range, docs-replace-text, docs-batch-update Formatting: docs-format-text, docs-format-paragraph Elements: docs-insert-table, docs-insert-image, docs-insert-page-break

Google Sheets (30)

Data: sheets-get-spreadsheet, sheets-get-values, sheets-batch-get-values, sheets-update-values, sheets-batch-update-values, sheets-append-values, sheets-clear-values, sheets-batch-clear-values, sheets-create-spreadsheet, sheets-manage-sheets Structure: sheets-insert-dimension, sheets-delete-dimension, sheets-duplicate-sheet, sheets-copy-sheet-to, sheets-copy-paste, sheets-sort-range, sheets-find-replace Formatting: sheets-format-cells, sheets-update-borders, sheets-merge-cells, sheets-unmerge-cells, sheets-auto-resize, sheets-resize-dimensions Advanced: sheets-set-data-validation, `sheets-add-conditi

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

问 PopNx