Skip to main content

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

  • 10 service domains: Gmail, Drive, Calendar, Docs, Sheets, Chat, Forms, Slides, Tasks, Search
  • 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

# 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.1 --transport stdio

3. Add MCP client config

{
  "mcpServers": {
    "google-workspace": {
      "command": "uvx",
      "args": ["google-workspace-mcp-advanced==1.0.1", "--transport", "stdio"],
      "env": {
        "USER_GOOGLE_EMAIL": "your.email@company.com"
      }
    }
  }
}

4. Use client-specific setup guides

5. Authenticate on first run

  1. Start the server from your MCP client.
  2. Run any Google tool (for example, list calendars or list Drive files).
  3. In stdio mode (default), complete the device flow:
    • open the verification URL,
    • enter the user code,
    • retry your tool call.
  4. In streamable-http, complete callback auth by opening the OAuth URL shown by the server.
  5. Credentials are saved in ~/.config/gws-mcp-advanced/credentials/.

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

Safety Model

  • Mutating tools default to dry_run=True.
  • You must pass dry_run=False to 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 OAuth client ID
GOOGLE_OAUTH_CLIENT_SECRET Yes 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

Documentation

Contributor docs live in AGENTS.md and agent-docs/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

google_workspace_mcp_advanced-1.0.1.tar.gz (216.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

google_workspace_mcp_advanced-1.0.1-py3-none-any.whl (256.3 kB view details)

Uploaded Python 3

File details

Details for the file google_workspace_mcp_advanced-1.0.1.tar.gz.

File metadata

File hashes

Hashes for google_workspace_mcp_advanced-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2af5ee0186b2c9c90f42620521b38d6de4f6f4a4744fd926eb94538d841cf768
MD5 218094dfc94ef5720a98232fb6bb72dc
BLAKE2b-256 2c1a50c96c5d942e88b0030bf715e4380c63945d363f4cc7d5ea21889c71ad4b

See more details on using hashes here.

Provenance

The following attestation bundles were made for google_workspace_mcp_advanced-1.0.1.tar.gz:

Publisher: release-pypi.yml on Skeptomenos/google-workspace-mcp-advanced

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file google_workspace_mcp_advanced-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for google_workspace_mcp_advanced-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eff0ccd3e639ebe7efb9a7a711daf2030533662ab091c2278dc99308dcd064ea
MD5 41bc4eca1f88a05693a3fefda37cc977
BLAKE2b-256 49410604c1c7d3f4ac8034bed00fdddb148a0a7d34dd92b0316bc833c57e668c

See more details on using hashes here.

Provenance

The following attestation bundles were made for google_workspace_mcp_advanced-1.0.1-py3-none-any.whl:

Publisher: release-pypi.yml on Skeptomenos/google-workspace-mcp-advanced

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page