Purpose: This project is a Model Context Protocol (MCP) server for AI agents that wraps Google Workspace's Gmail, Calendar, Drive, Sheets, Docs, Slides, Tasks, and Contacts into a curated set of tools for MCP-capable clients to call. It is built on the official Google Workspace CLI (gws). The official gws CLI removed its built-in MCP server in v0.8.0 because exposing 200-400 tools caused context bloat; this project takes a curated approach, letting users choose which services to expose and registering only high-value, narrowly scoped operations.
Main capabilities: 67 tools in total, with 61 registered by default. Tool count per service: drive 24, sheets 5, calendar 6, docs 3, slides 5, gmail 6, tasks 12, people 6 (people requires additional configuration). Each tool declares all four MCP annotation hints: readOnlyHint, destructiveHint, idempotentHint, openWorldHint, making it easier for clients to judge side effects and retry safety. There is no standalone send-email tool; gmail_drafts_create only creates drafts and never sends automatically, and the only outbound email is calendar invitation/update notifications, controlled via sendUpdates and defaulting to none.
Usage: First install and authenticate the gws CLI: npm install -g @googleworkspace/cli && gws auth login. Configure the server in Claude Code's .mcp.json or Claude Desktop's claude_desktop_config.json. You can use --read-only to register only 26 tools (no writes to Google), and use --gws-path or GWS_BINARY to specify the binary path. You can trim registration via the service list to reduce context cost; the default registry is about 46 KB (about 11.8K tokens), and about 52 KB (about 13.2K tokens) after adding people.
Limitations and notesItems: The project is in maintenance mode, is stable, and only accepts security fixes; no new features are planned. The scopes of the authentication token may be broader than the capabilities the server actually exposes; it is recommended to deselect unneeded permissions in the gws auth login selector, or use -s to limit services. Adding Contacts requires incremental authorization with gws-mcp-server auth login -s people, and the People API must be enabled in your own GCP project. On Linux there is no system keychain, and the encryption key is written as a file under ~/.config/gws/, so that directory should be treated as a password file. --read-only constrains the agent, not the token itself. Update-type tools use patch semantics and require explicitly passing empty values to clear fields. Adding new tools requires editing src/services.ts, and error mapping is in src/errors.ts.