
Google Workspace MCP
io.github.Servosity由 GitHub 账号 Servosity 发布v0.1.5更新于 Nov 5, 2026
Cross-client Google Workspace admin: 2SV gaps, license waste, sharing drift, safe offboarding.
概览
面向多租户 Google Workspace 管理的本地 MCP 服务器与命令行工具,让助手跨客户租户审计两步验证缺口、许可证浪费、共享漂移与离职处理。
- 可以做什么
- 跨所有已注册租户运行报表:两步验证缺口、闲置许可证、离职人员、整体态势、共享漂移、高风险 OAuth 应用与登录告警
- 查看和管理用户、群组、组织单位、域名与别名,常规写入可先做试运行预览
- 执行凭据与安全操作,如备份验证码、两步验证设置、令牌吊销、强制登出与管理员角色分配
- 预览并执行离职处理流程,以及许可证、转移、经销商和设备相关操作
- 将单个租户同步到本地 SQLite 镜像,并用搜索、分析和原始 SQL 工具查询
- 适用场景
- 适合管理多个 Google Workspace 组织的托管服务商或管理员,希望助手直接回答跨客户问题,例如谁未启用两步验证、哪里浪费了许可证、哪些离职账号未清理干净,而不必逐个登录管理控制台。
- 运行要求
- 以本地进程运行在用户机器上(仅桌面端),可通过 .mcpb 包或项目安装脚本安装,后者同时提供用于注册租户的 google-workspace-cli。每个客户需要一个启用全域委派的 Google Cloud 服务账号,并开启 Admin SDK、Enterprise License Manager(可选 Cloud Identity 或 Reseller)API。可选环境变量包括用于单一组织的 GOOGLE_WORKSPACE_TOKEN、GOOGLE_WORKSPACE_TENANT、GOOGLE_WORKSPACE_MCP_READ_ONLY、GOOGLE_WORKSPACE_NO_LOCAL_DATA,以及 HTTP 传输用的 GOOGLE_WORKSPACE_MCP_HTTP_TOKEN。
安装
在 SourceWeft 中
- 打开 控制台中的 Google Workspace MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Google Workspace + AI - for Claude, the ChatGPT desktop app, GitHub Copilot, Gemini CLI, and any agent that speaks MCP
Unofficial. Community-built Claude Code Skill and MCP server for the Google Workspace API. Not affiliated with, endorsed by, or sponsored by Google LLC.
[Google Workspace demo - animated preview]
▶ Watch the 30-second demo - demo data is simulated; every command shown exists in the real CLI.
Cross-client Google Workspace admin: 2SV gaps, license waste, sharing drift, safe offboarding. Works with the AI you already use - Claude Desktop, Codex, Claude Code, Claude Cowork, and GitHub Copilot, no code required - plus the ChatGPT desktop app and Gemini CLI. Free, open source, runs on your laptop. Built for MSP owners.
Works with your agent
The agents MSP owners use most (self-serve, works today):
Also for ChatGPT and the Microsoft and Google stacks
Big install base, but an honest heads-up: Gemini CLI runs the local binary you just installed, while Microsoft 365 Copilot and the Gemini app need a remote server, which msp-skills does not support yet.
Skill-native agents (also covered): Hermes and OpenClaw read this skill's
SKILL.mddirectly and speak MCP - see their install sections below. Also works with Cursor, Windsurf, Cline, Continue.dev, and Zed via MCP. Full per-tool wire-up: docs/which-agent.md.
Run more than one agent? Install across all 51+ supported agents in one command:
npx skills add Servosity/msp-skills@latest(requires Node.js, then run the per-skill installer for the CLI/MCP binaries). See docs/which-agent.md.
Install in 60 seconds
Fastest for Claude Desktop - one-click .mcpb
Download Google Workspace MCP (.mcpb) - then open Claude Desktop > Settings > Extensions and select the file. One click, no JSON, no shell. Client tenants are registered with the CLI (tenants add is CLI-only), so install it too (Path B below). (Browse every Google Workspace release on the releases page.)
Prefer the Claude Code plugin? Add the marketplace once, then install - works immediately, no directory listing required:
Path A - paste one prompt into your AI agent (recommended)
Copy this into Claude Code, Codex CLI, or Claude Cowork:
Install the Google Workspace Skill and MCP server from Servosity/msp-skills in this agent workspace. If this workspace uses a POSIX shell (macOS, Linux, WSL, or Bash), run
bash <(curl -fsSL https://raw.githubusercontent.com/Servosity/msp-skills/main/skills/google-workspace/install.sh). If it uses Windows PowerShell, runiwr -useb https://raw.githubusercontent.com/Servosity/msp-skills/main/skills/google-workspace/install.ps1 | iex. Then authenticate per the README and rungoogle-workspace-cli --helpto explore.
The same prompt works in any agent that can run shell.
Path B - run the installer yourself
Windows (PowerShell):
macOS / Linux:
The installer drops both google-workspace-cli (the CLI) and google-workspace-mcp (the MCP server) into your user bin path. Claude Code, Codex, and Cowork discover the Skill via SKILL.md in this directory.
Verify:
Upgrade to the latest version
The installer always fetches the current release - re-run it to upgrade:
macOS / Linux:
Windows (PowerShell):
Claude Desktop .mcpb users: download the latest .mcpb (top of this section) and re-select it in Settings > Extensions. Claude Code plugin users: /plugin update google-workspace@msp-skills.
Add to Claude Desktop, the ChatGPT desktop app, GitHub Copilot, Gemini CLI, or another MCP client
After the installer runs, see mcp-install.md and docs/which-agent.md for the per-agent wire-up - one section per agent, including the GitHub Copilot servers key and the ChatGPT desktop app. Claude Desktop's Settings > Extensions panel is the simplest path; the MCP config block (for users who prefer editing JSON) is documented in mcp-install.md.
Install for Hermes
From the Hermes CLI:
Inside a Hermes chat session:
Hermes speaks MCP natively, so it can also use the google-workspace-mcp server directly - same install path, same env vars.
Install for OpenClaw
Tell your OpenClaw agent (copy this):
Install the google-workspace skill from https://github.com/servosity/msp-skills/tree/main/skills/google-workspace. The skill defines how its required CLI (
google-workspace-cli) can be installed via theopenclaw:frontmatter block.
OpenClaw isn't generally available yet; the frontmatter wiring is pre-shipped and will activate the moment OpenClaw launches.
Authenticate
Each client is a tenant: a Google Cloud service account with domain-wide delegation that impersonates that client's super admin. Set one up per client:
-
In a Google Cloud project, enable the Admin SDK API and the Enterprise License Manager API (plus the Cloud Identity API if you will use the
policyprofile, and the Google Workspace Reseller API for your reseller domain), create a service account, and download its JSON key. (Google Cloud organizations created since May 2024 block key creation by default; an org admin has to allow it for that project.) -
Register the client. The key is copied into the CLI's config directory with owner-only permissions (mode 0600 on macOS and Linux; on Windows the file inherits the config folder's permissions), so delete the downloaded original afterwards:
-
Paste the printed Client ID and scopes into the client's Admin console > Security > Access and data control > API controls > Domain-wide delegation (
google-workspace-cli tenants scopes acmeprints them again). -
Confirm Google issues a token for every scope you delegated:
The default read scope profile covers every report. Profiles combine with commas, and only full includes read: use --scopes full for offboarding writes (it also authorizes every user write, including deleting users and granting super admin), --scopes read,policy (or full,policy) to add the current 2SV, Drive sharing, and Gmail forwarding policy to posture, and register your own reseller domain with --reseller --scopes reseller (it is excluded from --all-tenants). --scopes policy on its own replaces read and leaves the reports nothing to read. Pick a client per command with --tenant <name> (or GOOGLE_WORKSPACE_TENANT), or fan out with --all-tenants.
Managing a single organization? Set GOOGLE_WORKSPACE_TOKEN to an OAuth access token that carries the Admin SDK scopes instead of registering tenants; the reports then run against that one organization. Once tenants are registered the token is no longer used: a command run without --tenant (when more than one tenant is registered) refuses instead of acting on the token's organization.
google-workspace-cli tenants test --all-tenants is the real credential check: it mints a token per scope for every registered client, reads each client's customer record and domains, and exits non-zero when any delegation is missing. It cannot tell you whether the License Manager or Cloud Identity APIs are enabled (the first report that needs them will), and with no tenants registered it has nothing to check. doctor probes one real read endpoint with the selected tenant's token (--tenant <name>, or the only registered tenant) or the single-org token and reports a rejected or wrong-host credential as ERROR, but it exits 0 unless you pass --fail-on error.
What this skill does
Full command reference: guide.md. For the AI-agent operating contract (--agent, --dry-run, when to confirm before mutating), see AGENTS.md.
What makes this different
Most Google Workspace MCP servers, such as taylorwilsdon/google_workspace_mcp, work inside one organization's Gmail, Drive, and Docs. GAM, the tool most MSPs use for Workspace administration, keeps one config section per client and can loop a command over every section into one CSV, but you write the loop, the query, and any join across users, licenses, admin roles, and audit logs yourself, for each question.
This skill keeps a registry of client tenants, each with its own service account and least-privilege scope profile, and fans one question out across all of them in parallel. mfa-gaps, stale-licenses, leavers, posture, sharing-drift, oauth-apps, and login-alerts already do those joins per client and return one ranked table; a client it could not read is listed in fetch_failures, never silently dropped. For deeper single-client work, sync pulls one tenant into a local SQLite mirror (kept separate per tenant) for search, analytics, and the MCP server's sql tool.
The pain this closes
On r/msp's "Google Workspace Management" thread (June 2026), the original poster asked for "a CIPP equivalent for the GW side." An MSP managing about 10 Workspace tenants out of roughly 250 clients called it "a manual process for the most part," and the most common answer was multi-tenant GAM: "you just GAM select company to switch companies." Microsoft gives MSPs GDAP and CIPP; Google gives them a separate Admin console per client. So the questions an owner asks across the whole book - who lacks 2SV, where licenses are wasted, which leavers were never fully cleaned up - become a loop of logins, exports, and spreadsheet joins. Leavers cost real money: Google bills a suspended account the same as an active one.
This skill closes that gap:
google-workspace-cli mfa-gaps --all-tenants- every account without 2SV across every client, unenrolled admins first.google-workspace-cli stale-licenses --all-tenants- Workspace and paid Education edition seats on suspended, never-signed-in, or idle accounts, ready to reclaim (--productsreplaces the defaultGoogle-Apps,101031, so list them too:--products Google-Apps,101031,Google-Vault).google-workspace-cli leavers --all-tenants- suspended accounts still holding a license, groups, an admin role, OAuth tokens, or an unfinished Drive transfer.google-workspace-cli offboard "[email protected]" --successor "[email protected]"- the offboarding runbook, previewed with live reads before anything changes, with suspend last because backup-code cleanup fails on a suspended account.google-workspace-cli posture --all-tenants- one row per client for the QBR.
See pain-point.md for the longer narrative.
Frequently asked questions
Does this work with ChatGPT?
Yes, in the ChatGPT desktop app. It runs MCP servers locally (STDIO), the way google-workspace-mcp runs, and shares MCP configuration with Codex (OpenAI): add google-workspace-mcp under Settings > MCP servers as a STDIO server, or add it once to Codex's ~/.codex/config.toml. ChatGPT on the web is not supported by msp-skills yet: it needs a remote server. If your team works there, a hosted gateway is the better pick; check that your AI app is on the gateway's setup list. Setup steps: mcp-install.md.
Does this work with Codex, Cursor, Windsurf, Cline, Copilot, or Gemini?
Yes - all of them speak MCP. Cross-tool install commands are in the matrix above and the deep-dive in docs/which-agent.md.
Do I need to know how to code?
No. The recommended install is to paste one sentence into Claude Code or Codex - your agent reads SKILL.md and does the install. The fallback is a one-line installer per OS (bash or PowerShell). Neither path requires writing code. You register each client once with google-workspace-cli tenants add (see Authenticate above).
Is my Google Workspace data safe?
Your data stays on your machine. The CLI and MCP server are local binaries. The SQLite mirror sits in a directory under your user account. The AI agent only sees what the CLI returns - typically a query result, not raw bulk data. Each client's service-account key is copied into the CLI's config directory with owner-only permissions (mode 0600 on macOS and Linux; on Windows the file inherits the config folder's permissions) and used only to mint short-lived tokens from Google; keys are never bundled into this repo or transmitted anywhere by MSP Skills.
Do I need to be a Google partner or reseller?
No. Each client tenant is just a service account that the client's own super admin authorizes for domain-wide delegation. Reseller status only matters for the Reseller API commands (reseller-customers, subscriptions), which run against your own reseller domain registered with --reseller --scopes reseller.
Can an agent change my clients' Google Workspace, or only read?
Only what you authorize per client. The default read scope profile covers every report, but Google has no read-only scope for OAuth tokens and app passwords, and none for license assignments, so that profile can still revoke tokens, sign users out, read backup codes, turn off 2SV, and change licenses. Keep those commands human-in-the-loop (see the safety model below). Offboarding writes need --scopes full, and offboard only previews unless you type --yes yourself, which an MCP client cannot pass.
Will this hit Google's API quotas?
The cross-client commands query Google live, so they count against the Admin SDK quota of the Google Cloud project that owns each client's service account. --concurrency caps how many clients run in parallel, --max-scan-pages caps paging, and a client whose calls fail or hit the cap is listed in fetch_failures instead of silently dropped.
Does it replace the Google Admin console?
No. The Admin console stays the place for deep single-client work and for settings the API does not expose. This skill adds the cross-client view the console does not have and lets your AI agent drive it in plain English.
What does it cost?
Free. Apache-2.0 licensed. You pay only for whichever AI agent you use (Claude, ChatGPT, Codex, etc.), and that's billed by your AI provider, not by us.
Safety model
The strongest control is the scope profile you authorize in each client's Admin console - the CLI can only do what that client's domain-wide delegation permits. Full details, including how to lock it down, are in governance.md.
Status
Beta. Validated against the Google Workspace API surface and being validated with MSPs running it live against their own production tenant in our weekly Build Sessions. RSVP at compoundingteams.com/build-sessions.
Standards. Conforms to the open Agent Skills spec (Anthropic, Dec 2025; 40+ agents). MCP-compatible - works with any MCP-capable agent including Hermes. OpenClaw-ready (frontmatter pre-wired, awaiting OpenClaw launch).
Maintained by Servosity. Apache-2.0 licensed. Built with CLI Printing Press. Last updated: 2026-10-13.
来源:skills/google-workspace/README.md,提交 6b7797e
工具
0版本历史
6- v0.1.5最新Nov 5, 2026
- v0.1.4Nov 5, 2026
- v0.1.3Oct 23, 2026
- v0.1.2Oct 22, 2026
- v0.1.1Oct 16, 2026
- v0.1.0Oct 15, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。