
Google Workspace
io.github.aaronsb由 GitHub 账号 aaronsb 发布v4.8.0更新于 Oct 24, 2026
Give AI agents access to Gmail, Calendar, Drive, and more — multi-account, manifest-driven
概览
本地 MCP 服务器,让 AI 助手以多个 Google 账号访问 Gmail、日历、云端硬盘、文档、表格、任务、Meet 和通讯录。
- 可以做什么
- 搜索、阅读、发送、回复、转发、分类和删除 Gmail 邮件,管理草稿、标签、会话和附件。列出、创建、更新和删除日历事件,查询空闲时间并使用自然语言快速添加。搜索、上传、下载、复制、移动、导出和共享云端硬盘文件,读写表格区域和文档文本。管理任务与任务列表,创建 Meet 会议空间并浏览过往会议、记录和转录。查找、创建、更新和删除联系人,添加账号并按账号授予只读权限。可用结果引用串联多个操作,或对多项资源批量执行同一操作,并在本地工作区沙箱中交换文件。
- 适用场景
- 适合希望助手在对话中直接操作自己 Google Workspace 数据的场景,例如整理邮件、查看日程、把附件归档到云端硬盘、起草文档或创建任务,尤其是同时使用个人和工作账号时。
- 运行要求
- 以 stdio 在本地运行;npm 包需要 Node 22.12 或更高版本,也可使用 Claude Desktop 安装包。需要 Google OAuth 2.0 桌面应用凭据,通过 GOOGLE_CLIENT_ID 和 GOOGLE_CLIENT_SECRET 提供,并在 Cloud 项目中启用相应 Google API。每个账号需通过浏览器完成一次 OAuth 授权。可选的工作区目录用于存放附件、下载和导出文件。
安装
在 SourceWeft 中
- 打开 控制台中的 Google Workspace,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Google Workspace MCP Server
[npm version] [Latest release] [Node] [License]
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:
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
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):
Or install it globally and point at the binary directly:
How it fits together
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.
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:
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:
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
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 nothing MIT permitted.
Usage
Add an account (opens a browser for OAuth):
Then use any tool with your account email:
Give an account read-only access
Some accounts should never be written to. Ask for less at consent time and the token itself cannot send, edit or delete — this isn't a rule layered over a broad token:
Google is asked for the read-only variant of each scope, so ticking every box on the consent screen still yields a read-only token. manage_accounts status reports what each account actually holds.
A write from a read-only account is refused before the request leaves, with the account, the operation, and the way back:
Where a service has no read-only scope, you're told which ones and what they'll still be able to do before the browser opens.
Multi-step workflows
Chain operations with result references — the output of one step feeds the next:
One operation, many things
Where Google publishes a method for it, the same operation across many resources costs one request:
Anything shared by the whole batch goes at the top level; items carry only what differs — a bare id is enough when that's all it is.
Where your data lives
Follows the XDG Base Directory Specification:
Credentials are per-account files holding standard OAuth tokens. No secrets are stored in the project directory.
Under the hood
You don't need any of this to use the server. But if you're curious, or you want to add an operation:
The server builds its Google API client from Google's own machine-readable API specifications. Nothing is transcribed by hand, so the surface can't drift from reality, and adding an operation is a YAML edit rather than a code change.
- How it works — the build-time / runtime split, the descriptor, the factory
- API coverage — what's exposed, what isn't, and how to ask for more
- The full API surface — every method Google publishes, plus the three APIs we don't target yet
- Architecture decisions — the ADRs, including why this server owns its Google client outright
License
Apache License 2.0 — see Why Apache 2.0 above.
来源:README.md,提交 14c25e6
工具
0版本历史
4- v4.8.0最新Oct 16, 2026
- v4.6.1Oct 14, 2026
- v4.6.0Oct 1, 2026
- v4.5.1Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分