Google Workspace
概览
作者提供的说明(英文原文)
Give AI agents access to Gmail, Calendar, Drive, and more — multi-account, manifest-driven
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 聊天与邮件
安装
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 Google Workspace 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "google-workspace": { "command": "npx", "args": [ "-y", "@aaronsb/google-workspace-mcp" ], "env": { "GOOGLE_CLIENT_ID": "your-value", "GOOGLE_CLIENT_SECRET": "your-value" } } } }只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
退出 Claude 再重新打开
试一试
用 Google Workspace 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Google Workspace,或回答中出现 Google Workspace 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Google Workspace
Google Workspace 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 Google Workspace 的应用
- 需要 Google Workspace 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要 Google Workspace 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Node.js(只需一次)
- 需要 Google Workspace 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Node.js(只需一次)
- 需要 Google Workspace 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Node.js(只需一次)
B · 聊天与邮件 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Inbox Zero✓ ChatGPT
- Agent-Native Chat✓ ChatGPT
- draw.io✓ ChatGPT
可连接 Claude Code,但需要先准备
需要 Google Workspace 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Node.js(只需一次)
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add google-workspace --env GOOGLE_CLIENT_ID=your-value --env GOOGLE_CLIENT_SECRET=your-value -- npx -y @aaronsb/google-workspace-mcp按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Claude Code 中输入 /mcp
应能看到 Google Workspace 在列表中并显示已连接
试一试
用 Google Workspace 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Google Workspace,或回答中出现 Google Workspace 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Google Workspace 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Node.js(只需一次)
填写你的密钥
在 Google Workspace 的设置中,GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 Google Workspace 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Google Workspace,或回答中出现 Google Workspace 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Google Workspace 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Node.js(只需一次)
填写你的密钥
在 Google Workspace 的设置中,GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 Google Workspace 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Google Workspace,或回答中出现 Google Workspace 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add google-workspace --env GOOGLE_CLIENT_ID=your-value --env GOOGLE_CLIENT_SECRET=your-value -- npx -y @aaronsb/google-workspace-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"google-workspace": {
"command": "npx",
"args": [
"-y",
"@aaronsb/google-workspace-mcp"
],
"env": {
"GOOGLE_CLIENT_ID": "your-value",
"GOOGLE_CLIENT_SECRET": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"google-workspace": {
"command": "npx",
"args": [
"-y",
"@aaronsb/google-workspace-mcp"
],
"env": {
"GOOGLE_CLIENT_ID": "your-value",
"GOOGLE_CLIENT_SECRET": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"google-workspace": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@aaronsb/google-workspace-mcp"
],
"env": {
"GOOGLE_CLIENT_ID": "your-value",
"GOOGLE_CLIENT_SECRET": "your-value"
}
}
}
}需要你填写的值
GOOGLE_CLIENT_IDenvGoogle OAuth 2.0 Client ID (Desktop application)GOOGLE_CLIENT_SECRETenvGoogle OAuth 2.0 Client Secret
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月12日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 aaronsb 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于昨天
- ✓ 通过
有许可证
使用 Apache-2.0
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“聊天与邮件”中的其他服务器比较i
- 星标数多于此分类中其他 1962 个服务器的 99%
- 发布到注册中心的时间比此分类中其他 1962 个服务器的 94% 更新
- 基础检查结果等于或优于此分类中其他 1962 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Google Workspace 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于昨天,最新版本(4.9.1)于昨天进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:Inbox Zero, Agent-Native Chat, draw.io
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Agent-Native Chat
Minimal chat-first app with durable threads, actions, and the app-agent loop
draw.io
Create draw.io diagrams in chat from Mermaid or XML, shown live and interactive. 10,000+ shapes.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Google Workspace MCP Server
Give your AI agent real access to Google Workspace — Gmail, Calendar, Drive, Docs, Sheets, Tasks, Meet and Contacts — from one MCP server, across as many accounts as you have.
Search your mail, check your calendar, write a doc, file a task — in conversation, as yourself.
Install
First, you need Google OAuth credentials — the one prerequisite common to every path:
- Go to console.cloud.google.com/apis/credentials
- Create an OAuth 2.0 Client ID, application type Desktop app
- Enable the APIs you want (Gmail, Calendar, Drive, Sheets, Docs, Tasks, Meet — and People API for contacts, which is what Google calls it in the console)
- Keep the Client ID and Client Secret handy — you'll paste them in below
Then pick the path that matches how you work. All three run the same server.
Node 22.12 or newer. (Node 18 and 20 are both end-of-life.)
📦 → 🤖 Claude Desktop — one-click .mcpb install (recommended)
Download `google-workspace-mcp.mcpb` from the latest release, then drag it onto the Claude Desktop window, or double-click it.
Claude Desktop opens an install dialog with three fields:
| Field | |
|---|---|
| Google OAuth Client ID | required — from the step above |
| Google OAuth Client Secret | required — from the step above |
| Workspace Directory | optional — where attachments, downloads and exports land. Defaults to ~/.local/share/google-workspace-mcp/workspace/. Give it a dedicated folder — not your home, Documents, Desktop, or a Google Drive folder. |
Paste, hit Save, done. No JSON to edit, no Node to install, no paths to get right — the bundle carries the server and every dependency.
One bundle covers every platform — macOS (Intel and Apple Silicon), Linux (x64 and ARM64), and Windows. There is nothing to choose: the server is pure JavaScript, so there is no platform-specific payload to pick between.
*Cross-platform note:*
.mcpbfiles install via Claude Desktop's bundled handler. If double-clicking doesn't trigger Claude on your system, drag the file onto the Claude Desktop window instead, or right-click → "Open with…" and pick Claude Desktop (then "always open with" if your OS offers). Behavior varies: macOS usually auto-associates, Windows may need a one-time association, Linux varies by desktop environment.
Claude Code — one command
claude mcp add google-workspace \
-e GOOGLE_CLIENT_ID=your-client-id \ -e GOOGLE_CLIENT_SECRET=your-client-secret \ -- npx -y @aaronsb/google-workspace-mcp
That's it — no file to edit. Verify with /mcp.
Other MCP clients
Add an entry to the client's MCP config file (for Claude Desktop by hand, that's claude_desktop_config.json; for Claude Code, .mcp.json):
{
"mcpServers": { "google-workspace": { "command": "npx", "args": ["-y", "@aaronsb/google-workspace-mcp"], "env": { "GOOGLE_CLIENT_ID": "your-client-id", "GOOGLE_CLIENT_SECRET": "your-client-secret" } } } }
Or install it globally and point at the binary directly:
npm install -g @aaronsb/google-workspace-mcp
How it fits together
flowchart LR
human["🧑 You ask in plain language"] agent["🤖 Your AI agent Claude Desktop, Claude Code…"] server["⚙️ This MCP server picks the right account, builds the real request"] keys[("🔑 Your accounts OAuth tokens, kept on your own machine")] google["☁️ Google Gmail · Calendar · Drive · Docs Sheets · Tasks · Meet · Contacts"]
human -->|"“what's on my calendar?”"| agent agent -->|"tool call"| server server <-->|"which account?"| keys server -->|"real API call, as you"| google google -->|"your data"| server server -->|"shaped for an agent
- what to do next"| agent agent -->|"an answer"| human
classDef person fill:#475569,color:#ffffff,stroke:#94a3b8 classDef robot fill:#2d7d9a,color:#ffffff,stroke:#4a5568 classDef ours fill:#7c3aed,color:#ffffff,stroke:#8b5cf6 classDef secrets fill:#2d8e5e,color:#ffffff,stroke:#4a5568 classDef external fill:#f6821f,color:#1a1a1a,stroke:#d97706
class human person class agent robot class server ours class keys secrets class google external
Your credentials never leave your machine. The server holds an OAuth token per account, on your own disk, and calls Google *as you* — there is no middleman service, no account of ours, nothing to sign up for. Add as many accounts as you like (personal and work, side by side); the server routes each request to the right one.
What it can do
12 tools across 8 Google services, plus multi-account handling, per-account read-only access, bulk execution, content authoring, and a file sandbox.
| Tool | What It Does |
|---|---|
manage_email | Gmail — search, read (plain or sanitized HTML), send, reply / reply-all, forward, triage, trash, drafts (list / delete), labels, threads, attachments |
manage_calendar | Calendar — list, agenda, get, create, quickAdd (natural language), update, delete, calendars, freebusy |
manage_drive | Drive — search, get, upload, download, copy, rename / move, delete, export, permissions, comments, view images |
manage_sheets | Sheets — read / write ranges (row-numbered output), append, clear, manage tabs, copy / duplicate / rename |
manage_docs | Docs — get, create, append, insert text, find-and-replace |
manage_tasks | Tasks — list / create / update / complete tasks and task lists |
manage_meet | Meet — create and configure meeting spaces, see who is in a call now, browse past conferences, participants, transcripts, recordings, smart notes |
manage_contacts | Contacts — look people up in your saved contacts, the addresses you have only corresponded with, and your organization's directory; create, update and delete contacts |
manage_accounts | Multi-account lifecycle — add accounts, manage credentials and scopes |
manage_scratchpad | Compose / edit multi-line content (line- or JSON-path-addressed), attach files, send to any target; JSON mode live-syncs to Docs / Sheets |
manage_workspace | File operations in the workspace sandbox (exchange point for attachments, downloads, exports) |
bulk_operations | Do many things in one call — chain different operations in sequence with $N.field references, or apply one operation to many resources in a single Google request (queue_operations still works as an alias) |
Every response carries next-steps guidance, so the agent always knows what it can do next.
One ask, many steps
The useful part isn't any single operation — it's that your agent can string them together.
You ask for one thing. The agent works out that it needs four API calls, in order, each one feeding the next:
sequenceDiagram
autonumber participant H as 🧑 You participant A as 🤖 Your agent participant S as ⚙️ MCP server participant G as ☁️ Google
H->>A: "file the invoice from Acme and remind me to pay it Friday" A->>S: find the email S->>G: search Gmail G-->>S: the message S-->>A: found it — and here's what you can do next A->>S: save the attachment S->>G: download it A->>S: put it in Drive S->>G: upload A->>S: create a task, due Friday S->>G: Google Tasks A-->>H: Done. Invoice filed, task set for Friday.
Two things make this work. Every response tells the agent what it can do next, so it isn't guessing at the next step. And bulk_operations lets it run a whole chain in one call, feeding each result into the next — so "find the invoice, file it, remind me" is a single round trip rather than four.
When the work is *the same* operation over many things, it can go further and use one Google request for all of them:
bulk_operations { mode: 'batch', tool: 'manage_email', operation: 'trash',
items: ['msg1', 'msg2', 'msg3', … ] }
Two hundred messages trashed in one round trip instead of two hundred. This is narrow on purpose — it works only where Google publishes a method for it, which today is contacts (create, update, delete, get) and Gmail (trash, label changes). Ask for it anywhere else and the answer names the operations that can, and points you back at sequential mode, which works everywhere.
Ask for what's missing
This server exposes 95 operations, reaching 79 of the 257 methods Google publishes across those eight APIs. It is a curated subset on purpose: an agent has to *choose* among these, and every method it must weigh is one it can pick wrongly. A tool with 257 operations isn't more capable than one with 95 — it's harder to use correctly.
But that judgement was made without you.
→ [Browse every method Google publishes](docs/api-surface.md)
Every method is listed — what it does, whether we expose it, and a Request link that opens a pre-filled issue. The descriptions are Google's own, quoted verbatim, and the page is generated from the same specification the client is built from, so it can't drift from reality.
That page also lists three whole APIs this server doesn't touch yet — Chat, Slides and Forms — for the same reason: *not targeted* is a decision, not a fact of nature.
A good request names the task, not the method:
*"I want the agent to file incoming invoices into a folder automatically."*
That can be evaluated. It might turn out an existing operation already does it, or that the right answer is a different method than the one you found. *"Expose users.settings.filters.create"* is a conclusion, not a case — lead with the problem and let the method follow.
Why Apache 2.0, and not open core
Everything is here. There is no paid tier, no "enterprise" build, no feature held back to sell you later. What you install is what exists.
Open core works by keeping the good part back. The free thing is a lead magnet, and the moment your use gets serious you discover the operation you need lives behind a licence. That model would be especially rotten *here*: this is a piece of plumbing between you and your own data, using your own Google credentials, running on your own machine. Nothing about that arrangement should have a paywall in the middle of it, and nothing about it needs a vendor.
Apache 2.0 rather than MIT for two concrete reasons:
- An explicit patent grant. Contributors licence their patent claims along with their code, so using this can't become a patent problem later. MIT is silent on patents, which means the question is merely unanswered rather than settled.
- It's safe to adopt at work. Apache 2.0 is on essentially every corporate allow-list. Fork it, vendor it, ship it inside a commercial product — you don't owe anyone anything, and you don't need to ask.
The one obligation is attribution: keep the notices (NOTICE, LICENSE) with the code. That's it.
Through v3.0.0 this project was MIT-licensed, and that history is preserved rather than erased — MIT-era contributions keep their original notice in LICENSE-MIT, and their authors are credited in NOTICE. Apache 2.0 takes back no