Google Workspace MCP server security: what it can access
Compare Google’s official Workspace MCP servers with the community server. See scopes, tool tiers, read-only options and how to limit them.
Google runs official remote MCP servers for Workspace, and an independent project, taylorwilsdon/google_workspace_mcp, runs locally with far more tools. Google’s servers are in its Developer Preview Program, use OAuth 2.0 and each product has its own endpoint and scopes. The community server lists 120+ tools across 12 services and says it is not affiliated with Google. Pick the one whose scopes and tools match the job, because Drive, Gmail and Calendar together hold most of a working life.
Google’s official servers
Google’s guide lists one endpoint per product, each ending in /mcp/v1.
| Server | Host |
|---|---|
| Gmail | gmailmcp.googleapis.com |
| Drive | drivemcp.googleapis.com |
| Docs, Sheets, Slides | docsmcp, sheetsmcp, slidesmcp .googleapis.com |
| Calendar | calendarmcp.googleapis.com |
| Chat | chatmcp.googleapis.com |
| People | people.googleapis.com |
| Classroom | classroommcp.googleapis.com |
| Universal Search (Gmail, Drive, Calendar, Chat) | workspacemcp.googleapis.com |
You enable each product API and its MCP service in a Google Cloud project, create a Web application OAuth client and add scopes. Read-only and write scopes are listed separately, so you choose.
| Product | Scopes in the guide |
|---|---|
| Drive | drive.readonly, drive.file |
| Docs | the Drive scopes plus documents.readonly, documents |
| Sheets | the Drive scopes plus spreadsheets.readonly, spreadsheets |
| Calendar | calendar.calendarlist.readonly, calendar.events.freebusy, calendar.events.readonly, calendar.events |
| Chat | readonly scopes plus write-capable ones such as chat.messages.create |
| Universal Search | readonly scopes only |
Sending Chat messages needs a Chat app. Read-only Chat use doesn’t. The reference page for the Universal Search endpoint names one tool, search_corpus, and says other tools can be listed with tools/list. For Gmail’s tools, see the Gmail MCP server guide.
The community server
taylorwilsdon/google_workspace_mcp runs over stdio or streamable HTTP. It covers Gmail (15 tools), Drive (16), Calendar (7), Docs (19), Sheets (14), Slides (6), Forms (6), Tasks (6), Contacts (8), Chat (6), Custom Search (2) and Apps Script (15). It takes your own OAuth client through GOOGLE_OAUTH_CLIENT_ID and GOOGLE_OAUTH_CLIENT_SECRET. The README doesn’t list scopes. It says each service page does.
It has the controls most servers lack.
| Option | Effect |
|---|---|
--tool-tier core, extended, complete | load a smaller or larger set |
--tools gmail drive | load only named services |
--disabled-tools <name> | remove specific tools |
--read-only | read-only mode, combinable with tiers and --tools |
--permissions | per-service permissions |
Two environment variables matter for files. WORKSPACE_MCP_DISABLE_LOCAL_FILES and ALLOWED_FILE_DIRS are named in the README, which links to its docs for the details. Apps Script is a separate service with 15 tools, so leave it out unless you need it.
The risks
Documents, mail and chat messages are written by other people. Text inside a shared doc can instruct the agent. The more services one OAuth grant covers, the more an injected instruction can reach, such as reading a Drive file and mailing it. Everything the agent reads goes to your model provider as context.
Limit it in Claude Code
Allow reads by name and ask before writes. Rules use mcp__<server>__<tool>, and mcp__<server>__* matches every tool of one server.
{
"permissions": {
"allow": ["mcp__workspace__search_gmail_messages", "mcp__workspace__get_drive_file_content"],
"ask": ["mcp__workspace__create_drive_file", "mcp__workspace__update_drive_file"]
}
}Those four tool names are the ones the community README spells out. The README links to its docs site for the full list.
Limit it in Codex
[mcp_servers.workspace]
command = "uvx"
args = ["workspace-mcp", "--tools", "gmail", "drive", "--tool-tier", "core", "--read-only"]Codex also supports enabled_tools and disabled_tools in that table. The README warns against uvx workspace-cli, a different PyPI name that an abandoned package holds.
Checklist
- Install only the services you will use.
- Use read-only scopes first.
- Keep Apps Script and delete tools out.
- Use a test account before your main one.
Checked against the vendor documentation on November 25, 2026. Google Workspace MCP setup · Workspace MCP reference · google_workspace_mcp · Claude Code permissions · Codex MCP
What Excellent covers
Excellent doesn’t inspect MCP servers themselves, so it can’t tell you what a server exposes. Its free scan reads supported logs on the Mac and reports findings for review. It reads the session logs of Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code, which shows what an agent did after it used a server. For a local report without installing an app, run the free scan. Its script uses Python 3.9 or later when your Mac has it and the shell when it doesn’t, reads the logs locally and makes no network requests. See a sample report.
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Commands sent into an already running Codex shell fall outside that check. Agent coverage · Pricing. Pro is US-only for now.


