google-docs-mcp MCP工具 是 AI Skill Hub 本期精选MCP工具之一。综合评分 8.2 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
google-docs-mcp MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
google-docs-mcp MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/a-bonus/google-docs-mcp
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"google-docs-mcp-mcp--": {
"command": "npx",
"args": ["-y", "google-docs-mcp"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 google-docs-mcp MCP工具 执行以下任务... Claude: [自动调用 google-docs-mcp MCP工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"google-docs-mcp_mcp__": {
"command": "npx",
"args": ["-y", "google-docs-mcp"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效

Connect Claude Desktop, Cursor, or any MCP client to your Google Docs, Google Sheets, Google Drive, Gmail, and Google Calendar.
---
Deploy once for your team -- no local installs required. The server uses MCP OAuth 2.1 so your MCP client handles authentication automatically.
gcloud run deploy google-docs-mcp \
--source . \
--region europe-west3 \
--port 8080 \
--allow-unauthenticated \
--set-env-vars "^|^MCP_TRANSPORT=httpStream|BASE_URL=https://your-service.run.app|GOOGLE_CLIENT_ID=...|GOOGLE_CLIENT_SECRET=...|TOKEN_STORE=firestore|JWT_SIGNING_KEY=your-secret-key"
Then each user just adds the URL to their MCP client -- no npx, no tokens, no local setup:
{
"mcpServers": {
"google-docs": {
"type": "streamableHttp",
"url": "https://your-service.run.app/mcp"
}
}
}
Your MCP client will prompt for Google sign-in on first connection. See Remote Deployment for details.
---
Deploy the server centrally on Google Cloud Run (or any container host) so your team can use it without local installs. The server uses MCP OAuth 2.1 with FastMCP's built-in GoogleProvider -- MCP clients handle the auth flow automatically.
Visit the server root URL (/) for setup instructions and a ready-to-copy client config.
{BASE_URL}/oauth/callbackgcloud run deploy google-docs-mcp \
--source . \
--region europe-west3 \
--port 8080 \
--allow-unauthenticated \
--set-env-vars "^|^MCP_TRANSPORT=httpStream|BASE_URL=https://your-service.run.app|ALLOWED_DOMAINS=yourdomain.com|GOOGLE_CLIENT_ID=...|GOOGLE_CLIENT_SECRET=...|TOKEN_STORE=firestore|JWT_SIGNING_KEY=your-secret-key"
Note: The^|^prefix changes the env var delimiter from,to|becauseALLOWED_DOMAINScontains commas.
Merging changes to main does not automatically update your Cloud Run service. Each deployment is independent — you need to redeploy manually when you want new features or fixes.
To update:
git pull origin main
2. Redeploy to Cloud Run:
gcloud run deploy your-service-name --source . --region your-region
Your existing environment variables are preserved — no need to pass --set-env-vars again.
When to redeploy:
You can check your current version against the latest release on the releases page.
---
<details> <summary>Step-by-step Google Cloud Console instructions</summary>
For remote deployment, create an OAuth client of type Web application (not Desktop app). Use Desktop app only for local stdio usage.
1. Go to Google Cloud Console: Open console.cloud.google.com 2. Create or Select a Project: Click the project dropdown > "NEW PROJECT". Name it (e.g., "MCP Docs Server") and click "CREATE". 3. Enable APIs: - Navigate to "APIs & Services" > "Library" - Search for and enable: Google Docs API, Google Sheets API, Google Drive API, Gmail API, Google Calendar API 4. Configure OAuth Consent Screen: - Go to "APIs & Services" > "OAuth consent screen" - Choose "External" and click "CREATE" - Fill in: App name, User support email, Developer contact email - Click "SAVE AND CONTINUE" - Add scopes: documents, spreadsheets, drive, gmail.modify, calendar.events - Click "SAVE AND CONTINUE" - Add your Google email as a Test User - Click "SAVE AND CONTINUE" 5. Create Credentials: - Go to "APIs & Services" > "Credentials" - Click "+ CREATE CREDENTIALS" > "OAuth client ID" - Application type: "Desktop app" - Click "CREATE" - Copy the Client ID and Client Secret
</details>
---
| Variable | Description |
|---|---|
MCP_TRANSPORT | Set to httpStream to enable remote mode (default: stdio) |
BASE_URL | Public URL of the deployed server (required for OAuth redirects) |
GOOGLE_CLIENT_ID | OAuth client ID (Web application type) |
GOOGLE_CLIENT_SECRET | OAuth client secret |
MCP_TOOL_GROUPS | Optional comma-separated tool groups to register: docs, drive, sheets, utils, gmail, calendar, or all |
ALLOWED_DOMAINS | Comma-separated list of allowed Google Workspace domains (optional) |
PORT | HTTP port (default: 8080) |
TOKEN_STORE | Set to firestore for persistent token storage (default: in-memory) |
JWT_SIGNING_KEY | Fixed signing key so tokens survive restarts (auto-generated if not set) |
REFRESH_TOKEN_TTL | Refresh token lifetime in seconds (default: 2592000 / 30 days) |
GCLOUD_PROJECT | GCP project ID for Firestore (required when TOKEN_STORE=firestore) |
The server supports a full round-trip markdown workflow:
readDocument with format='markdown'replaceDocumentWithMarkdownSupported: headings, bold, italic, strikethrough, links, bullet/numbered lists, horizontal rules.
GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET are set in the env block of your MCP config.npx @a-bonus/google-docs-mcp and check stderr for errors.gmail.modify, calendar.events) are added to the consent screen.npx @a-bonus/google-docs-mcp auth~/.config/google-docs-mcp/token.json and re-authorize if upgrading — Gmail and Calendar scopes were added in later versions, so existing tokens must be refreshed.listTabs to see available tab IDs.tabId for single-tab documents.Cmd+Shift+R on macOS, Ctrl+Shift+R on Windows/Linux). The second request hits a now-warm instance and the OAuth flow proceeds normally.--min-instances=1 on your Cloud Run service to keep one instance always warm (gcloud run services update <service> --region <region> --min-instances=1). Costs ~$2–3/month for the memory reservation.JWT_SIGNING_KEY is auto-generated on each container start, so redeploys invalidate all previously issued sessions.JWT_SIGNING_KEY env var on the Cloud Run service so it survives restarts: gcloud run services update <service> --region <region> --update-env-vars JWT_SIGNING_KEY=$(openssl rand -hex 32). Sessions minted after this change will survive future redeploys.tools/list very often. FastMCP otherwise recomputes JSON Schema for every tool on every request, which can pin a CPU core per process. This server precomputes the payload once before stdio starts and replaces the tools/list handler with a cached snapshot. If you still see sustained load, capture a few seconds with sample <pid> 1 10 (macOS) or node --cpu-prof and report it.---
功能完整的Google生态集成方案,MCP架构设计规范,适合企业级自动化需求。代码质量和文档完善度较高,社区活跃度良好。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,google-docs-mcp MCP工具 在MCP工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | google-docs-mcp |
| 原始描述 | 开源MCP工具:The Ultimate Google Docs, Sheets, Drive, Gmail, & Google Calendar MCP Server. Th。⭐537 · TypeScript |
| Topics | 谷歌集成MCP服务器自动化TypeScript开源 |
| GitHub | https://github.com/a-bonus/google-docs-mcp |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-05-18 · 更新时间:2026-05-19 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端