google_workspace_mcp

by @taylorwilsdon

Google Workspace MCP Server

Connect Claude Desktop, Claude Code, Cursor, ChatGPT, and VS Code to 12 Google Workspace apps—from Gmail and Drive to Sheets, Docs, Slides, Calendar, and Apps Script—using progressive tool tiers, native OAuth 2.1, and an optional CLI.

Productivity3,581pythonMIT

Server facts

google_workspace_mcp MCP Server

GitHub stars

3,581

Last commit

Nov 24, 2026

Runtime

python

License

MIT

Tech

Runtime
python
Transports
streamable-httpstdio
Remote access
No
Authentication
Google OAuth 2.0 / OAuth 2.1

Activity

GitHub stars
3,581
Last commit
Data as of

Tags

  • ai
  • gmail
  • google calendar
  • google workspace
  • llm
  • llm tools
  • mcp
  • mcp server

Overview

Built-in assistant connectors rarely allow fine-grained editing across Google Docs, Sheets formatting, Slides, Forms, and Apps Script—nor do they let security teams host a shared endpoint inside their own VPC. This independent MIT-licensed Python server (`workspace-mcp`, not affiliated with Google LLC) exposes 120+ tools covering Gmail, Drive, Calendar, Docs, Sheets, Slides, Forms, Tasks, Contacts, Chat, Custom Search, and Apps Script. To prevent context overflow, administrators load `core`, `extended`, or `complete` tiers, filter by service with `--tools`, enforce `--read-only`, or narrow tools per HTTP request via `X-MCP-Toolsets` and `X-MCP-Tools` headers.

Create a Google Cloud Console OAuth client, export `GOOGLE_OAUTH_CLIENT_ID` and `GOOGLE_OAUTH_CLIENT_SECRET`, and run `uvx workspace-mcp --tool-tier core` over stdio or `--transport streamable-http` with OAuth 2.1 (`MCP_ENABLE_OAUTH21=true`) for Claude Connectors, Claude Code (`claude mcp add --transport http`), Cursor, and ChatGPT Developer Mode. Organizations can deploy stateless containers, back OAuth storage with Valkey/Redis, or authenticate via trusted gateways like Cloudflare Access and Pomerium. For terminal scripting, install the bundled `workspace-cli` from the repo with `uv tool install .`—never run `uvx workspace-cli`, which points to an unrelated package.

Install & configure

Requirements

  • Python 3.11+ and uv / uvx (or Docker)
  • Google Cloud Console project with desired Workspace APIs enabled and OAuth client credentials
  • Google Workspace account plus one-time Chat app configuration if enabling Google Chat
Documented launch / install command
uvx workspace-mcp --tool-tier core

Set `GOOGLE_OAUTH_CLIENT_ID` and `GOOGLE_OAUTH_CLIENT_SECRET` (or `GOOGLE_CLIENT_SECRET_PATH`), then launch `uvx workspace-mcp --tool-tier core` for stdio or `--transport streamable-http` with `MCP_ENABLE_OAUTH21=true` for Connectors and Claude Code.

Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Desktop configuration
{
  "mcpServers": {
    "google-workspace": {
      "command": "uvx",
      "args": [
        "workspace-mcp",
        "--tool-tier",
        "core"
      ],
      "env": {
        "GOOGLE_OAUTH_CLIENT_ID": "your-client-id",
        "GOOGLE_OAUTH_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Read the Claude Desktop setup guide

Config file · Project: .cursor/mcp.json

User: ~/.cursor/mcp.json

The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.

Cursor configuration
{
  "mcpServers": {
    "google-workspace": {
      "command": "uvx",
      "args": [
        "workspace-mcp",
        "--tool-tier",
        "core"
      ],
      "env": {
        "GOOGLE_OAUTH_CLIENT_ID": "your-client-id",
        "GOOGLE_OAUTH_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Read the Cursor setup guide

Config file · Workspace: .vscode/mcp.json

For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.

VS Code configuration
{
  "servers": {
    "google-workspace": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "workspace-mcp",
        "--tool-tier",
        "core"
      ],
      "env": {
        "GOOGLE_OAUTH_CLIENT_ID": "your-client-id",
        "GOOGLE_OAUTH_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Read the VS Code setup guide

Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json

Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.

Windsurf configuration
{
  "mcpServers": {
    "google-workspace": {
      "command": "uvx",
      "args": [
        "workspace-mcp",
        "--tool-tier",
        "core"
      ],
      "env": {
        "GOOGLE_OAUTH_CLIENT_ID": "your-client-id",
        "GOOGLE_OAUTH_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Read the Windsurf setup guide

Config file · Project scope: .mcp.json at the repository root

The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Code configuration
{
  "mcpServers": {
    "google-workspace": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "workspace-mcp",
        "--tool-tier",
        "core"
      ],
      "env": {
        "GOOGLE_OAUTH_CLIENT_ID": "your-client-id",
        "GOOGLE_OAUTH_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Read the Claude Code setup guide

Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.

Tools

Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.

ToolWhat it does
search_gmail_messagesQueries Gmail threads and messages using standard search syntax and result limits.
get_drive_file_contentReads Google Drive file contents with configurable paging (`WORKSPACE_MCP_MAX_CONTENT_CHARS`) or full-content retrieval.
create_drive_fileCreates new files in Google Drive, supporting upload URLs when local disk access is disabled.
update_drive_fileUpdates existing Google Drive files with optional remote upload URL support for hosted deployments.

Use cases

  • Triage unread Gmail threads, draft replies, manage labels, and schedule Calendar Focus Time from Claude or Cursor.
  • Edit Google Docs tables, apply Google Sheets conditional formatting, and assemble Slides decks in natural language.
  • Host a centralized, stateless OAuth 2.1 Workspace gateway behind Cloudflare Access, Pomerium, or nginx for an entire company.
  • Script repeatable Workspace workflows in Claude Code or Codex using the repo-installed `workspace-cli`.

Strengths

  • Covers 12 Google Workspace apps (120+ tools) across personal Google accounts and Workspace plans under a permissive MIT license.
  • Progressive tiers (`core`, `extended`, `complete`), `--read-only`, and per-request headers keep agent context windows lean.
  • Enterprise-ready deployment with OAuth 2.1 PKCE, stateless HTTP containers, Valkey/Redis storage, and sensitive-path sandboxing.

Limitations

  • Independent community project (not an official Google release) that requires creating and managing your own Google Cloud OAuth credentials.
  • Google Chat integration requires a paid Workspace account and additional Chat app setup.
  • Connecting LLMs to email and documents carries prompt-injection risks unless write scopes and local file reads are carefully restricted.

google_workspace_mcp setup notes

  • Check GOOGLE_OAUTH_CLIENT_ID, GOOGLE_OAUTH_CLIENT_SECRET in the google_workspace_mcp configuration if startup or authentication fails.
  • google_workspace_mcp's example uses stdio, while its catalog transports are streamable-http / stdio; use the example's connection type.

Frequently asked questions

No. It is an independent MIT-licensed open-source project (`taylorwilsdon/google_workspace_mcp`) using your own Google Cloud OAuth credentials, with traffic routed directly to Google's APIs and no built-in telemetry.

Related MCP servers