Advanced Google Workspace MCP Server - Gmail, Calendar, Drive, Docs, Sheets, Slides, Forms, Tasks, Chat, Search with bidirectional sync
Project description
Google Workspace MCP Advanced
Production-ready MCP server for Google Workspace.
google-workspace-mcp-advanced gives MCP clients broad Google Workspace coverage with safe-by-default write operations, Markdown-to-Google-Docs support, and Drive sync workflows.
Why This Project
- 11 service domains: Gmail, Drive, Calendar, Docs, Sheets, Chat, Forms, Slides, Tasks, Search, Apps Script
- 100+ tools for read and write operations
- Dry-run defaults for mutating operations
- Strong Markdown rendering for Google Docs (kitchen-sink validated)
- Persistent OAuth sessions and resilient auth storage
Quick Start
1. Install uv
# macOS (Homebrew)
brew install uv
# Windows (winget)
winget install --id=astral-sh.uv -e
# Windows (PowerShell installer)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
# Linux/macOS (official installer)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Verify
uv --version
2. Run the MCP server from PyPI (recommended)
# Stable channel (latest release)
uvx google-workspace-mcp-advanced --transport stdio
# Pinned deterministic version (recommended for teams)
uvx google-workspace-mcp-advanced==1.0.10 --transport stdio
3. Add MCP client config
{
"mcpServers": {
"google-workspace": {
"command": "uvx",
"args": ["google-workspace-mcp-advanced==1.0.10", "--transport", "stdio"],
"env": {
"USER_GOOGLE_EMAIL": "your.email@company.com"
}
}
}
}
4. Use client-specific setup guides
5. Authenticate on first run
- Start the server from your MCP client.
- Run any Google tool (for example, list calendars or list Drive files).
- In
stdiomode (default), complete the device flow:- open the verification URL,
- enter the user code,
- retry your tool call.
- if device flow is unsupported for your OAuth client type, the server falls back to callback flow automatically.
- In
streamable-http, complete callback auth by opening the OAuth URL shown by the server.- for MCP-hosted/manual completion workflows, use
complete_google_authwith the browser callback URL.
- for MCP-hosted/manual completion workflows, use
- Credentials are saved in
~/.config/google-workspace-mcp-advanced/credentials/. - Legacy directory
~/.config/gws-mcp-advanced/is still supported for migration.
Single-MCP Multi-Client Mode
Use one MCP entry with multiple OAuth clients (for example private + enterprise tenants) via:
auth_clients.jsonunderWORKSPACE_MCP_CONFIG_DIR- deterministic routing by
script_clients,account_clients, anddomain_clients - setup tools:
setup_google_auth_clients,import_google_auth_client - completion tool:
complete_google_auth
Guide:
Local Development Mode
Use repository-local execution when building or testing unreleased changes.
{
"mcpServers": {
"google-workspace-dev": {
"command": "uv",
"args": [
"run",
"--project",
"/path/to/google-workspace-mcp-advanced",
"google-workspace-mcp-advanced",
"--transport",
"stdio"
],
"env": {
"USER_GOOGLE_EMAIL": "your.email@company.com"
}
}
}
}
Service Coverage
| Service | Example Capabilities |
|---|---|
| Gmail | search, read, draft, send, labels, filters |
| Drive | search, read, upload, permissions, ownership transfer |
| Calendar | list/create/modify/delete events |
| Docs | create/update docs, markdown insertion, table and image handling |
| Sheets | read/write ranges, formatting, conditional formatting |
| Chat | list spaces, read/send messages |
| Forms | create forms, read responses, update publish settings |
| Slides | create presentations, batch updates |
| Tasks | task lists and task lifecycle management |
| Search | programmable search endpoint support |
| Apps Script | project metadata/content, versions, deployments, processes, metrics, and safe-by-default mutators |
Safety Model
- Mutating tools default to
dry_run=True. - You must pass
dry_run=Falseto execute real changes. - This reduces accidental writes during assistant experimentation.
Common Runtime Commands
# Run locally from repo
uv run google-workspace-mcp-advanced --transport stdio
# HTTP transport
uv run google-workspace-mcp-advanced --transport streamable-http
# Single-user mode
uv run google-workspace-mcp-advanced --single-user
# Load specific service groups only
uv run google-workspace-mcp-advanced --tools gmail drive calendar
Required Environment Variables
| Variable | Required | Description |
|---|---|---|
USER_GOOGLE_EMAIL |
Yes | Target Google account email |
GOOGLE_OAUTH_CLIENT_ID |
Yes for legacy single-client mode | OAuth client ID |
GOOGLE_OAUTH_CLIENT_SECRET |
Yes for legacy single-client mode | OAuth client secret |
WORKSPACE_MCP_CONFIG_DIR |
No | Config/credential directory override |
WORKSPACE_MCP_AUTH_FLOW |
No | Auth interaction mode: auto (default), device, or callback |
Migration from Legacy Name
If you previously ran the project as gws-mcp-advanced, follow:
Documentation
- User docs: docs/INDEX.md
- Client setup hub: docs/setup/MCP_CLIENT_SETUP_GUIDE.md
- Migration guide: docs/setup/MIGRATING_FROM_GWS_MCP_ADVANCED.md
- Authentication model: docs/setup/AUTHENTICATION_MODEL.md
- Single-MCP multi-client auth setup: docs/setup/MULTI_CLIENT_AUTH_SETUP.md
- Apps Script setup and limitations: docs/setup/APPS_SCRIPT_SETUP.md
- Apps Script capabilities and workflows: docs/setup/APPS_SCRIPT_USER_GUIDE.md
- Apps Script + clasp workflows: docs/setup/APPS_SCRIPT_CLASP_GUIDE.md
- Claude Code setup: docs/setup/CLAUDE_CODE_MCP_SETUP.md
- Cursor setup: docs/setup/CURSOR_MCP_SETUP.md
- OpenCode setup: docs/setup/OPENCODE_MCP_SETUP.md
- Gemini CLI setup: docs/setup/GEMINI_CLI_MCP_SETUP.md
- Cadence workflow user guide: docs/setup/LIVE_CADENCE_WORKFLOW.md
- Distribution/release guide: docs/DISTRIBUTION_RELEASE.md
- Release notes: docs/RELEASE_NOTES.md
- Comparison with upstream: docs/COMPARISON.md
Contributor docs live in AGENTS.md and agent-docs/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file google_workspace_mcp_advanced-1.0.10.tar.gz.
File metadata
- Download URL: google_workspace_mcp_advanced-1.0.10.tar.gz
- Upload date:
- Size: 248.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5ebc97a4e3b80b4dcf0fbe69170a1e8fcd63f52faa4826a495c32902d8f72b7
|
|
| MD5 |
6b68076a2bb02f92e4dfd7a9310b04ad
|
|
| BLAKE2b-256 |
058b248552960c2ff3926e0be5448f52d22711f2a11c60c97a58362e0aa336b8
|
Provenance
The following attestation bundles were made for google_workspace_mcp_advanced-1.0.10.tar.gz:
Publisher:
release-pypi.yml on Skeptomenos/google-workspace-mcp-advanced
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
google_workspace_mcp_advanced-1.0.10.tar.gz -
Subject digest:
a5ebc97a4e3b80b4dcf0fbe69170a1e8fcd63f52faa4826a495c32902d8f72b7 - Sigstore transparency entry: 1114771093
- Sigstore integration time:
-
Permalink:
Skeptomenos/google-workspace-mcp-advanced@7f6d8bc8729cb1c08ff2fc43bd23b44f35d75800 -
Branch / Tag:
refs/tags/v1.0.10 - Owner: https://github.com/Skeptomenos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@7f6d8bc8729cb1c08ff2fc43bd23b44f35d75800 -
Trigger Event:
push
-
Statement type:
File details
Details for the file google_workspace_mcp_advanced-1.0.10-py3-none-any.whl.
File metadata
- Download URL: google_workspace_mcp_advanced-1.0.10-py3-none-any.whl
- Upload date:
- Size: 290.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f3171dbe04c830545b4d41efc284f1f2d4f263d65f41e410f02913ebdabd2a9
|
|
| MD5 |
12351ab72a84fa978de3fd18a375706d
|
|
| BLAKE2b-256 |
6f9e9381174abd1ec9da88f9c29a9cff54f4d4685c4a0f407bf7600d65e17631
|
Provenance
The following attestation bundles were made for google_workspace_mcp_advanced-1.0.10-py3-none-any.whl:
Publisher:
release-pypi.yml on Skeptomenos/google-workspace-mcp-advanced
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
google_workspace_mcp_advanced-1.0.10-py3-none-any.whl -
Subject digest:
7f3171dbe04c830545b4d41efc284f1f2d4f263d65f41e410f02913ebdabd2a9 - Sigstore transparency entry: 1114771114
- Sigstore integration time:
-
Permalink:
Skeptomenos/google-workspace-mcp-advanced@7f6d8bc8729cb1c08ff2fc43bd23b44f35d75800 -
Branch / Tag:
refs/tags/v1.0.10 - Owner: https://github.com/Skeptomenos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@7f6d8bc8729cb1c08ff2fc43bd23b44f35d75800 -
Trigger Event:
push
-
Statement type: