google-workspace-mcp
by aaronsb·★ 150·综合分 51
一款生产就绪的 MCP 服务器,提供对 Google Workspace API(包括 Gmail、日历、Drive、表格等)的认证访问。
概述
Google Workspace MCP Server 是一个全面的实现,将 AI 代理与 Google 生产力套件连接起来。它采用清单驱动的工厂方法,将 YAML 配置转换为功能性的 MCP 工具,实现对 15+ 种 Google 服务的访问,约 80 种操作。该服务器因其强大的架构而脱颖而出,利用 Google 官方的 Workspace CLI 作为底层引擎,同时添加特定领域的格式化和针对 AI 消费优化的响应处理。多账户支持和凭证隔离使其适合个人和企业使用场景。
试试问 AI
装完之后,这里有 6 个你可以让 AI 做的事:
什么时候选它
当您需要通过 AI 代理全面、安全地访问 Google Workspace 服务时,选择此 MCP 服务器,尤其是当您已经在使用 Google Workspace API 并希望利用清单驱动的架构进行轻松扩展时。
什么时候不要选它
如果您需要访问非 Google 服务或担心对 Google 生态系统的厂商锁定,请不要选择此服务器,因为它专为 Google Workspace API 设计。
此 server 暴露的工具
从 README 抽取出 11 个工具manage_emailGmail — search, read, send, reply, forward, triage, trash, labels, threads, attachments
manage_calendarCalendar — list, agenda, get, create, quickAdd, update, delete, calendars, freebusy
manage_driveDrive — search, get, upload, download, copy, rename, delete, export, permissions, comments
manage_sheetsSheets — read/write ranges, append, clear, manage tabs, copy/duplicate/rename
manage_docsDocs — get, create, append, insert text, find-and-replace
manage_tasksTasks — list/create/update/complete tasks and task lists
manage_meetMeet — browse past conferences, participants, transcripts, recordings, smart notes
manage_accountsMulti-account lifecycle — add accounts, manage credentials and scopes
manage_scratchpadCompose/edit multi-line content, attach files, send to any target
manage_workspaceFile operations in the workspace sandbox
queue_operationsChain operations sequentially with result references
可对比工具
安装
MCPB 捆绑包(推荐)
从[最新版本](https://github.com/aaronsb/google-workspace-mcp/releases)下载适用于您平台的 .mcpb 捆绑包
npm 安装
npm install @aaronsb/google-workspace-mcpClaude Desktop 配置
添加到 claude_desktop_config.json:
{
"mcpServers": {
"google-workspace": {
"command": "npx",
"args": ["@aaronsb/google-workspace-mcp"],
"env": {
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
}
}先决条件
- Node.js 18+
- 来自 https://console.cloud.google.com/apis/credentials 的 Google Cloud OAuth 凭证
FAQ
- 支持哪些 Google Workspace 服务?
- 当前支持 7 个主要服务:Gmail、日历、Drive、表格、文档、任务和会议,这些服务共有约 80 种操作。完整的 API 覆盖范围记录在 docs/coverage.md 中。
- Google 凭证如何存储和管理?
- 凭证遵循 XDG 基础目录规范,每个账户存储在 ~/.local/share/google-workspace-mcp/credentials/ 中,使用标准的 OAuth 令牌。项目目录中不存储任何秘密。
- 能否同时处理多个 Google 账户?
- 是的,它支持多账户操作,每个账户有凭证隔离,允许代理同时处理个人和工作账户。
google-workspace-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。