gws-mcp
Provides access to Gmail through the Google Workspace CLI, enabling reading, sending, and managing emails and related Gmail data.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
gws-mcp
MCP server that exposes the Google Workspace CLI (gws) to any MCP-compatible client, giving them full access to 19 Google Workspace services via 5 generic tools.
Why?
Claude's built-in Google connectors cover 3 services (Gmail, Calendar, Drive) with limited write access. This MCP server wraps the full gws CLI, unlocking everything:
Capability | Native Connectors | gws-mcp |
Services | 3 | 19 (Gmail, Calendar, Drive, Sheets, Docs, Slides, Tasks, People, Chat, Classroom, Forms, Keep, Meet, Admin Reports, Events, Model Armor, Workflow) |
Send emails | No (drafts only) | Yes |
Edit Sheets cells | No | Yes |
Edit Docs/Slides | No | Yes |
Tasks, Chat, Forms, Classroom | No | Yes |
Schema introspection | No | Yes |
Dry-run validation | No | Yes |
Plan tier required | Pro+ | Any (self-hosted) |
Related MCP server: SCD MCP Docs
Prerequisites
Python 3.10+
mcppackage:pip install "mcp>=1.0.0"Node.js (required by
gws)
Authenticate gws before first use:
gws auth loginQuickstart
Clone this repo:
git clone https://github.com/danielemoraschi/gws-mcpInstall the MCP dependency:
pip install "mcp>=1.0.0"Configure your MCP client (see below).
Restart your client. The 5
gws_*tools should appear.
Client Setup
The server uses stdio transport. It reads JSON-RPC from stdin and writes to stdout. Any MCP client that can launch a subprocess will work.
Claude Desktop
Add to claude_desktop_config.json (or open it via Settings → Developer → Edit Config):
OS | Path |
macOS |
|
Windows |
|
Linux |
|
{
"mcpServers": {
"gws": {
"command": "python3",
"args": ["/path/to/gws-mcp/server.py"]
}
}
}If you use nvm, Claude Desktop won't inherit its PATH. Set explicit paths:
{
"mcpServers": {
"gws": {
"command": "python3",
"args": ["/path/to/gws-mcp/server.py"],
"env": {
"GWS_NODE_PATH": "/Users/YOUR_USERNAME/.nvm/versions/node/v22.0.0/bin/node",
"GWS_BIN_PATH": "/Users/YOUR_USERNAME/.nvm/versions/node/v22.0.0/bin/gws"
}
}
}
}Any other MCP client
The server speaks MCP over stdio. Launch it as:
python3 /path/to/gws-mcp/server.pyIf your client's environment doesn't have node and gws on the PATH, set GWS_NODE_PATH and GWS_BIN_PATH environment variables before launching.
Tools
The server exposes 5 tools. Claude is instructed to follow a discovery workflow:
# | Tool | Purpose |
1 |
| List all 19 available services with descriptions |
2 |
| Get help for any command or subcommand |
3 |
| Get full API schema for a method (parameters, types, required fields) |
4 |
| Validate a command without executing (shows resolved URL, HTTP method, body) |
5 |
| Execute a command and return parsed JSON |
Discovery workflow: gws_services → gws_help → gws_schema → gws_dry_run → gws_run
Configuration
Environment Variable | Default | Description |
|
| Path to Node.js binary |
|
| Path to gws binary |
The server fails fast at startup with a clear error if either binary cannot be found.
Security
No shell execution — uses
asyncio.create_subprocess_execwith args as a listService allowlist — service names validated before execution
Blocked flags —
--uploadand--outputare rejected (no local file writes via MCP)Timeout — 60-second timeout per command
Output cap — responses truncated at 100 KB
Local auth — uses ambient OAuth tokens from
~/.config/gws/, no credentials in config
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
One MCP endpoint for Claude, GPT & Gemini: 100+ tools + no-code connectors + agent workers.
Read and edit GA4, Search Console and Google Tag Manager from any MCP client. 29 tools.
Discover, plan and run tools across your connected business systems through one OAuth MCP endpoint
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Google Workspace services (Gmail, Calendar, Drive, Docs, Sheets, Chat, Slides, People) through natural language using Claude Desktop, Claude Code CLI, and other MCP clients.491 npm3MIT
- AlicenseNot gradedqualityDmaintenanceEnables MCP clients like Claude Desktop and Cursor to interact with Google Docs, Sheets, and Drive, providing tools for reading, writing, formatting documents, managing spreadsheets, and searching Drive files.MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that exposes 17 Google Workspace APIs (e.g., Gmail, Drive, Calendar) as auto-generated tools for AI assistants, enabling natural language control of Google services.-
- FlicenseNot gradedqualityCmaintenanceMCP server that integrates with multiple Google services, providing Claude with over 50 tools for managing tasks, contacts, calendar, Gmail, documents, spreadsheets, presentations, chat, and meetings.-