/ Directorio / Playground / google-workspace-mcp
● Comunidad 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 qué usarlo

Características clave

Demo en vivo

Cómo se ve en la práctica

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

Instalar

Elige tu 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
    }
  }
}

Abre Claude Desktop → Settings → Developer → Edit Config. Reinicia después de guardar.

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

Cursor usa el mismo esquema mcpServers que Claude Desktop. La configuración del proyecto prevalece sobre la global.

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

Haz clic en el icono MCP Servers de la barra lateral de Cline y luego en "Edit Configuration".

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

Mismo formato que Claude Desktop. Reinicia Windsurf para aplicar.

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

Continue usa un array de objetos de servidor en lugar de un mapa.

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

Añádelo a context_servers. Zed recarga en caliente al guardar.

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

Un solo comando. Verifica con claude mcp list. Quita con claude mcp remove.

Casos de uso

Usos del mundo real: google-workspace-mcp

Triage your inbox and draft replies

👤 Anyone buried in email ⏱ ~15 min intermediate

Cuándo usarlo: Morning inbox. 200 unread. You want to know what needs a response today.

Requisitos previos
  • Google Cloud OAuth client — console.cloud.google.com > Credentials
Flujo
  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.

Errores comunes
  • 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

Cuándo usarlo: You need 45 minutes next week that works for 5 people across time zones.

Flujo
  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.

Errores comunes
  • 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

Cuándo usarlo: Somebody shared a sensitive folder broadly. You want to know exactly who has access.

Flujo
  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.

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

Combinaciones

Combínalo con otros MCPs para multiplicar por 10

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

Herramientas

Lo que expone este MCP

HerramientaEntradasCuándo llamarCoste
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

Coste y límites

Lo que cuesta ejecutarlo

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

Seguridad

Permisos, secretos, alcance

Ámbitos mínimos: Gmail.readonly + Calendar + Drive — grant only what you use
Almacenamiento de credenciales: Tokens in OS keychain (XDG-compliant); OAuth refresh handled automatically
Salida de datos: Your Google data flows through MCP to your LLM provider
No conceder nunca: Gmail.modify to an unsupervised agent that can also read external URLs

Resolución de problemas

Errores comunes y soluciones

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 otros

AlternativaCuándo usarlaContrapartida
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

Más

Recursos

📖 Lee el README oficial en GitHub

🐙 Ver issues abiertas

🔍 Ver todos los 400+ servidores MCP y Skills