
终极的谷歌文档、表格、云端硬盘、Gmail 和谷歌日历 MCP 服务器。这个 MCP(主要用于 Claude Desktop)可以完全访问你的 Google 套件,让 Claude 自行运行。
概览
将Claude桌面、光标或任何MCP客户端连接到您的Google Docs、Google Sheets、Google Drive、Gmail和Google Calendar。 1. 进入 Google Cloud 控制台 2.创建或选择一个项目 3.启用 , , , 4.配置(外部,将您的邮箱添加为测试用户,并将 gmail.modify 和 calendar.events 范围与文档/表格/云端的范围并列)5.创建一个(桌面应用类型)6.从确认界面复制 和 需要更多细节吗?请参见本页底部的逐步说明。 这会打开你的浏览器进行 Google 授权。批准后,刷新令牌会保存到 ~/.config/google-docs-mcp/token.json。 当你的MCP客户端需要服务器时,服务器会自动启动。 只需为团队部署一次——无需本地安装。服务器使用 MCP OAuth 2.1,因此你的 MCP 客户端会自动处理认证。
概述(AI 翻译)
将Claude桌面、光标或任何MCP客户端连接到您的Google Docs、Google Sheets、Google Drive、Gmail和Google Calendar。
快速启动
1.创建 Google Cloud OAuth 客户端
- 进入谷歌云控制台
- 创建或选择项目
- 启用Google Docs API、Google Sheets API、Google Drive API、Gmail API 和Google Calendar API
- 配置OAuth同意界面(外部,将你的邮箱添加为测试用户,并将
gmail.modify和calendar.events范围与文档/表格/驱动器范围一起添加) - 创建OAuth客户端ID(桌面应用类型)
- 从确认界面复制客户端ID和客户端秘密
需要更多细节吗?请参见本页底部的逐步说明。
2.授权
这会打开你的浏览器进行 Google 授权。批准后,刷新令牌会保存到 ~/.config/google-docs-mcp/token.json。
3.添加到您的MCP客户端
Claude桌面 / 光标 / 风帆冲浪:
当你的MCP客户端需要服务器时,服务器会自动启动。
远程部署(云运行)
只需为团队部署一次——无需本地安装。服务器使用 MCP OAuth 2。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Google Docs, Sheets, Drive, Gmail & Calendar MCP Server
Connect Claude Desktop, Cursor, or any MCP client to your Google Docs, Google Sheets, Google Drive, Gmail, and Google Calendar.
Quick Start
1. Create a Google Cloud OAuth Client
- Go to the Google Cloud Console
- Create or select a project
- Enable the Google Docs API, Google Sheets API, Google Drive API, Gmail API, and Google Calendar API
- Configure the OAuth consent screen (External, add your email as a test user, and add the
gmail.modifyandcalendar.eventsscopes alongside the Docs/Sheets/Drive scopes) - Create an OAuth client ID (Desktop app type)
- Copy the Client ID and Client Secret from the confirmation screen
Need more detail? See step-by-step instructions at the bottom of this page.
2. Authorize
GOOGLE_CLIENT_ID="your-client-id" \
GOOGLE_CLIENT_SECRET="your-client-secret" \
npx -y @a-bonus/google-docs-mcp auth
This opens your browser for Google authorization. After you approve, the refresh token is saved to ~/.config/google-docs-mcp/token.json.
3. Add to Your MCP Client
Claude Desktop / Cursor / Windsurf:
{
"mcpServers": {
"google-docs": {
"command": "npx",
"args": ["-y", "@a-bonus/google-docs-mcp"],
"env": {
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
}
}
The server starts automatically when your MCP client needs it.
Remote Deployment (Cloud Run)
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.
What Can It Do?
Tools across Google Docs, Sheets, and Drive:
Google Docs
| Tool | Description |
|---|
安装
npx -y @a-bonus/google-docs-mcp配置
{
"mcpServers": {
"google-docs": {
"command": "npx",
"args": ["-y", "@a-bonus/google-docs-mcp"],
"env": {
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
}
}