/ Diretório / Playground / google-workspace-mcp
● Comunidade aaronsb ⚡ Instantâneo

google-workspace-mcp

por aaronsb · aaronsb/google-workspace-mcp

Gmail + Calendar + Drive + multi-account management in one MCP, built on Google's official Workspace CLI — 287 operations across 15+ services.

aaronsb/google-workspace-mcp exposes 5 aggregated tools (manage_email, manage_calendar, manage_drive, manage_accounts, queue_operations) that together cover 287+ operations across Google Workspace. Built on Google's official gws CLI with a manifest-driven factory — it's official-adjacent without being first-party.

Por que usar

Principais recursos

Demo ao vivo

Como fica na prática

google-workspace-2.replay ▶ pronto
0/0

Instalar

Escolha seu cliente

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "google-workspace-2": {
      "command": "npx",
      "args": [
        "-y",
        "google-workspace-mcp"
      ],
      "_inferred": true
    }
  }
}

Abra Claude Desktop → Settings → Developer → Edit Config. Reinicie após salvar.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "google-workspace-2": {
      "command": "npx",
      "args": [
        "-y",
        "google-workspace-mcp"
      ],
      "_inferred": true
    }
  }
}

Cursor usa o mesmo esquema mcpServers que o Claude Desktop. Config de projeto vence a global.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "google-workspace-2": {
      "command": "npx",
      "args": [
        "-y",
        "google-workspace-mcp"
      ],
      "_inferred": true
    }
  }
}

Clique no ícone MCP Servers na barra lateral do Cline, depois "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "google-workspace-2": {
      "command": "npx",
      "args": [
        "-y",
        "google-workspace-mcp"
      ],
      "_inferred": true
    }
  }
}

Mesmo formato do Claude Desktop. Reinicie o Windsurf para aplicar.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "google-workspace-2",
      "command": "npx",
      "args": [
        "-y",
        "google-workspace-mcp"
      ]
    }
  ]
}

O Continue usa um array de objetos de servidor em vez de um map.

~/.config/zed/settings.json
{
  "context_servers": {
    "google-workspace-2": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "google-workspace-mcp"
        ]
      }
    }
  }
}

Adicione em context_servers. Zed recarrega automaticamente ao salvar.

claude mcp add google-workspace-2 -- npx -y google-workspace-mcp

Uma linha só. Verifique com claude mcp list. Remova com claude mcp remove.

Casos de uso

Usos do mundo real: google-workspace-mcp

Triage your inbox and draft replies

👤 Anyone buried in email ⏱ ~15 min intermediate

Quando usar: Morning inbox. 200 unread. You want to know what needs a response today.

Pré-requisitos
  • Google Cloud OAuth client — console.cloud.google.com > Credentials
Fluxo
  1. Authenticate
    Authenticate my Gmail account via OAuth.✓ Copiado
    → OAuth flow completes
  2. Classify
    Go through unread emails from last 24h. Bucket into: urgent reply, FYI, newsletter, spam-like. Count each bucket.✓ Copiado
    → Counts + sample subjects per bucket
  3. Draft replies
    For the 'urgent reply' bucket, draft short replies (don't send). Show me drafts for approval.✓ Copiado
    → Drafts ready for review

Resultado: 30 minutes of inbox triage in 5.

Armadilhas
  • LLM hallucinates commitments in drafts — Never have it send directly — always draft + human review

Find a meeting slot across 5 attendees

👤 Anyone scheduling meetings ⏱ ~5 min beginner

Quando usar: You need 45 minutes next week that works for 5 people across time zones.

Fluxo
  1. Check availability
    Find a 45-min slot next week that works for me + these 4 attendees [emails]. Exclude lunch hours in each TZ.✓ Copiado
    → Candidate slots
  2. Create event
    Book the best slot as 'Weekly sync' with a Google Meet link; invite all.✓ Copiado
    → Event created with video link

Resultado: Meeting scheduled without the Doodle dance.

Armadilhas
  • Free/busy API only shows free/busy, not priorities — Ask each person before hard-booking optional slots

Audit a Drive folder's sharing permissions

👤 Ops / compliance ⏱ ~30 min intermediate

Quando usar: Somebody shared a sensitive folder broadly. You want to know exactly who has access.

Fluxo
  1. Enumerate
    List all files under /Shared drives/Contracts/2025 with their sharing settings. Flag anything with 'anyone with link' or 'public'.✓ Copiado
    → File list with exposure flags
  2. Remediate
    For each public file, change to 'restricted' and notify the owner. Show me the diff before executing.✓ Copiado
    → Per-file change plan

Resultado: Drive posture improved in one pass.

Armadilhas
  • Revoking may break active external workflows — Announce before revoking; use a grace period

Combinações

Combine com outros MCPs para 10× de alavancagem

google-workspace-2 + notion

Mirror Google Docs to Notion weekly

For each Doc created in /Shared/Team this week, export as Markdown and create Notion page in 'Team Docs'.✓ Copiado

Ferramentas

O que este MCP expõe

FerramentaEntradasQuando chamarCusto
manage_email action: 'search'|'read'|'send'|'reply'|'label'|..., ... Any Gmail op 1 Gmail API call
manage_calendar action: 'list'|'create'|'update'|'delete'|'freebusy'|..., ... Any Calendar op 1 Calendar API call
manage_drive action: 'search'|'upload'|'download'|'share'|'export'|..., ... Any Drive op 1 Drive API call
manage_accounts action: 'add'|'remove'|'switch'|'list' Multi-account switching free
queue_operations steps[] Chain ops that depend on each other (e.g. create doc, share it) sum of steps

Custo e limites

O que custa rodar

Cota de API
Gmail: 1B units/day (most ops 5-50 units). Calendar/Drive: generous quotas.
Tokens por chamada
Drive list results can be big — paginate
Monetário
Free; Google Workspace license required for business accounts
Dica
Cache account metadata. Gmail search is quota-heavy; scope with label/date filters.

Segurança

Permissões, segredos, alcance

Escopos mínimos: Gmail.readonly + Calendar + Drive — grant only what you use
Armazenamento de credenciais: Tokens in OS keychain (XDG-compliant); OAuth refresh handled automatically
Saída de dados: Your Google data flows through MCP to your LLM provider
Nunca conceda: Gmail.modify to an unsupervised agent that can also read external URLs

Solução de problemas

Erros comuns e correções

invalid_grant during OAuth

Client ID / redirect URI mismatch. Confirm the redirect URI registered in GCP matches what the MCP uses.

Quota exceeded

Backoff + batch. Gmail send has a daily cap; Drive has per-user/per-second limits.

Verificar: Google Cloud Console > APIs > Quotas
Tokens expired despite refresh

Refresh token revoked — re-auth. Common when account password changed or security event triggered.

Alternativas

google-workspace-mcp vs. outros

AlternativaQuando usarTroca
Official Google Workspace MCP (when/if shipped)Google ships a first-party MCPWould be more authoritative; for now this is the strongest community option
Zapier/Composio hosted Google Workspace toolsYou want hosted + no OAuth setupMiddleware fees; less control

Mais

Recursos

📖 Leia o README oficial no GitHub

🐙 Ver issues abertas

🔍 Ver todos os 400+ servidores MCP e Skills