Skip to main content
Glama
Google Workspace MCP Server

Google Workspace MCP Server

by aaronsb

Google Workspace MCP-Server

Ermöglichen Sie KI-Agenten den vollständigen Zugriff auf Google Workspace – Gmail, Kalender, Drive und mehr – über einen einzigen MCP-Server, der das Routing von Anmeldeinformationen für mehrere Konten, die Formatierung von Antworten für die KI-Verarbeitung und kontextbezogene Anleitungen übernimmt.

Basiert auf Googles offiziellem Workspace CLI (gws), wodurch die API-Abdeckung mit Google mitwächst. Der Server verwendet eine manifestgesteuerte Factory, die deklaratives YAML in voll funktionsfähige MCP-Tools umwandelt – das Hinzufügen einer neuen Google API-Operation ist eine Konfigurationsänderung, keine Codeänderung.

Warum dieser MCP-Server?

Für Benutzer: Eine einzige Installation gibt Ihrem KI-Agenten echten, authentifizierten Zugriff auf Ihre Google-Konten. Durchsuchen Sie E-Mails, überprüfen Sie Ihren Kalender, verwalten Sie Drive-Dateien, verketten Sie mehrstufige Workflows – alles durch natürliche Konversation.

Für Teams: Die Unterstützung mehrerer Konten bedeutet, dass Ihr Agent gleichzeitig über private und geschäftliche Konten hinweg arbeiten kann, mit Isolierung der Anmeldeinformationen pro Konto und XDG-konformer Speicherung.

Für Entwickler: Die Factory-Architektur bedeutet, dass die Abdeckung schnell erweitert werden kann. Googles Workspace CLI unterstützt bereits über 15 Dienste und Hunderte von API-Operationen. Das Manifest kuratiert, welche davon verfügbar gemacht werden, Patches fügen domänenspezifische Formatierungen hinzu und die Standardeinstellungen erledigen den Rest.

Related MCP server: google-mcp

Was ist verfügbar?

5 Tools, über 32 Operationen in 3 Kerndiensten:

Tool

Operationen

Was es tut

manage_email

search, read, send, reply, replyAll, forward, triage, trash, untrash, modify, labels, threads, getThread

Vollständiges Gmail – Suchen, Lesen, Verfassen, Thread-Verwaltung, Label-Verwaltung

manage_calendar

list, agenda, get, create, quickAdd, update, delete, calendars, freebusy

Kalender-CRUD, Erstellung von Ereignissen in natürlicher Sprache, Verfügbarkeitsprüfungen

manage_drive

search, get, upload, download, copy, delete, export, listPermissions, share, unshare

Dateiverwaltung, Google Docs-Export, Freigaben und Berechtigungen

manage_accounts

list, authenticate, remove, status, refresh, scopes

Multi-Account-Lebenszyklus – Konten hinzufügen, Anmeldeinformationen und Scopes verwalten

queue_operations

—

Verketten von Operationen nacheinander mit $N.field Ergebnisreferenzen

Jede Antwort enthält Anleitungen für nächste Schritte – der Agent weiß immer, was er als Nächstes tun kann.

Funktionsweise

                          ┌─────────────────────────┐
MCP Client ──stdio──▶     │  manifest.yaml           │
                          │  (52 operations declared) │
                          └────────┬────────────────┘
                                   │
                          ┌────────▼────────────────┐
                          │  Factory Generator       │
                          │  schemas + handlers      │
                          └────────┬────────────────┘
                                   │
                    ┌──────────────┼──────────────┐
                    ▼              ▼              ▼
              ┌──────────┐  ┌──────────┐  ┌──────────┐
              │  Gmail   │  │ Calendar │  │  Drive   │
              │  Patch   │  │  Patch   │  │  Patch   │
              └────┬─────┘  └────┬─────┘  └────┬─────┘
                   │             │             │
                   └──────┬──────┘──────┬──────┘
                          ▼             ▼
                    Account Router ──▶ gws CLI ──▶ Google APIs

Die Factory liest ein YAML-Manifest und generiert beim Start MCP-Tool-Schemas und Request-Handler. Patches fügen bei Bedarf domänenspezifisches Verhalten hinzu – Gmail-Such-Hydrierung, Kalenderformatierung, Erkennung von Drive-Dateitypen. Operationen ohne Patches erhalten automatisch sinnvolle Standardeinstellungen.

Die zugrunde liegende Engine ist Googles @googleworkspace/cli – eine Rust-Binärdatei, die die gesamte Google Workspace API-Oberfläche umschließt. Der MCP-Server kuratiert, welche Operationen verfügbar gemacht werden, und formatiert die Antworten für die KI-Verarbeitung.

Installation

MCPB-Bundle (Claude Desktop und andere MCP-Clients)

Laden Sie das .mcpb-Bundle für Ihre Plattform von der neuesten Version herunter:

Plattform

Datei

macOS (Apple Silicon)

google-workspace-mcp-darwin-arm64.mcpb

macOS (Intel)

google-workspace-mcp-darwin-x64.mcpb

Linux x64

google-workspace-mcp-linux-x64.mcpb

Linux ARM64

google-workspace-mcp-linux-arm64.mcpb

Windows x64

google-workspace-mcp-windows-x64.mcpb

Ziehen Sie in Claude Desktop die .mcpb-Datei in die App – Sie werden zur Eingabe Ihrer Google OAuth-Anmeldeinformationen aufgefordert, dann sind Sie startklar. Andere MCP-Clients, die .mcpb-Erweiterungen unterstützen, können es auf die gleiche Weise installieren. Das Bundle enthält alles: den Server, die gws-Binärdatei und alle Abhängigkeiten.

Claude Code / npm

npm install @aaronsb/google-workspace-mcp

Oder führen Sie es direkt aus:

npx @aaronsb/google-workspace-mcp

Voraussetzungen

  1. Node.js 18+

  2. Google Cloud OAuth-Anmeldeinformationen – erstellen Sie diese unter console.cloud.google.com/apis/credentials:

    • Erstellen Sie eine OAuth 2.0-Client-ID (Desktop-Anwendung)

    • Aktivieren Sie die gewünschten APIs (Gmail, Kalender, Drive, Sheets, etc.)

  3. Umgebungsvariablen festlegen:

export GOOGLE_CLIENT_ID="your-client-id"
export GOOGLE_CLIENT_SECRET="your-client-secret"

MCP-Client-Konfiguration

Claude Desktop

Fügen Sie dies zu claude_desktop_config.json hinzu:

{
  "mcpServers": {
    "google-workspace": {
      "command": "npx",
      "args": ["@aaronsb/google-workspace-mcp"],
      "env": {
        "GOOGLE_CLIENT_ID": "your-client-id",
        "GOOGLE_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Claude Code

Fügen Sie dies zu .mcp.json hinzu:

{
  "mcpServers": {
    "google-workspace": {
      "command": "npx",
      "args": ["@aaronsb/google-workspace-mcp"],
      "env": {
        "GOOGLE_CLIENT_ID": "your-client-id",
        "GOOGLE_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Verwendung

Fügen Sie ein Konto hinzu (öffnet den Browser für OAuth):

manage_accounts { "operation": "authenticate" }

Verwenden Sie dann ein beliebiges Tool mit Ihrer Konto-E-Mail-Adresse:

manage_email    { "operation": "triage", "email": "you@gmail.com" }
manage_calendar { "operation": "agenda", "email": "you@gmail.com" }
manage_drive    { "operation": "search", "email": "you@gmail.com", "query": "quarterly report" }

Mehrstufige Workflows

Verketten Sie Operationen mit Ergebnisreferenzen – die Ausgabe eines Schrittes speist den nächsten:

{
  "operations": [
    { "tool": "manage_email", "args": { "operation": "search", "email": "you@gmail.com", "query": "from:boss subject:review" }},
    { "tool": "manage_email", "args": { "operation": "read", "email": "you@gmail.com", "messageId": "$0.messageId" }}
  ]
}

Erweiterung der Abdeckung

Der Server erkennt Operationen aus der gws CLI, die bereits über 15 Google-Dienste unterstützt (Sheets, Docs, Tasks, People, Chat und mehr). Das Hinzufügen von Abdeckung ist eine Manifest-Bearbeitung:

make manifest-discover   # Find all 287+ available operations
make manifest-lint       # Validate the curated manifest
make test                # Verify everything works

Neue Operationen erhalten automatisch eine Standardformatierung. Fügen Sie nur dann einen Patch hinzu, wenn Sie eine domänenspezifische Darstellung benötigen.

Datenspeicherung

Folgt der XDG Base Directory Specification:

Daten

Speicherort

Kontoregister

~/.config/google-workspace-mcp/accounts.json

Anmeldeinformationen

~/.local/share/google-workspace-mcp/credentials/

Anmeldeinformationen sind kontospezifische Dateien mit Standard-OAuth-Tokens. Im Projektverzeichnis werden keine Geheimnisse gespeichert.

Lizenz

MIT

Available Tools

13 tools
bulk_operationsA

Do many things in one call, two ways. mode:'queue' (default) runs different operations in sequence, chaining results with $N.field — works for every tool. mode:'batch' does ONE operation across many resources in a single Google request — far fewer round trips, but only where Google publishes a batch method.

Inputs: mode, tool, email, items, +3 more.

manage_accountsA

Manage Google Workspace account lifecycle: list, authenticate, check status, refresh credentials, update scopes, or remove accounts.

Inputs: operation (required), email, access, category, +3 more.

manage_calendarC

List events, view agenda, check availability, or manage calendar events.

Inputs: email (required), operation (required), end, days, +19 more.

manage_contactsA

Search, read, create, update and delete Google Contacts: your saved contacts, the addresses you have corresponded with but never saved, and your organization's directory.

Inputs: email (required), operation (required), name, notes, +9 more.

manage_docsC

Read, write, insert, and find-replace text in Google Docs documents.

Inputs: email (required), operation (required), text, index, +6 more.

manage_driveB

Search, upload, download, share, comment on, or manage files in Google Drive.

Inputs: email (required), operation (required), name, role, +20 more.

manage_emailC

Search, read, send, forward, or manage emails in a Google Workspace account. Supports Gmail search syntax.

Inputs: email (required), operation (required), cc, to, +34 more.

manage_meetB

Browse past Google Meet conferences, participants, transcripts, recordings, and AI-generated smart notes. Requires Workspace Business Standard+ for transcripts/recordings.

Inputs: email (required), operation (required), space, filter, +8 more.

manage_scratchpadA

Compose, edit, and deliver text content. Use for any multi-line content: emails, documents, descriptions. Compose in the scratchpad, edit by line or JSON path, attach files, then send to any target. For short one-liners, use the service tool directly instead.

Inputs: operation (required), keep, path, email, +16 more.

manage_sheetsB

Read, write, and manage Google Sheets spreadsheets.

Inputs: email (required), operation (required), index, range, +9 more.

manage_tasksC

Manage task lists and tasks in Google Tasks.

Inputs: email (required), operation (required), due, notes, +6 more.

manage_workspaceB

Manage files and directories in the workspace sandbox. Supports nested paths (e.g. "reports/q1/summary.csv"). The workspace is the exchange point for file operations (attachments, downloads, exports).

Inputs: operation (required), path, source, content, +2 more.

queue_operationsA

RENAMED to bulk_operations, which does the same thing. This name still works and will be removed in a future release. Do many things in one call, two ways. mode:'queue' (default) runs different operations in sequence, chaining results with $N.field — works for every tool. mode:'batch' does ONE operation across many resources in a single Google request — far fewer round trips, but only where Google publishes a batch method.

Inputs: mode, tool, email, items, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 13 tools

    Disambiguation4/5

    Each manage_* tool maps to a distinct Google service (Contacts, Email, Drive, Meet, Accounts, Calendar, Docs, Sheets, Tasks), so boundaries are mostly clear. The only real confusion is queue_operations being an exact duplicate alias of bulk_operations, and mild overlap between manage_workspace (sandbox files) and manage_drive, which the descriptions do resolve.

    Naming Consistency4/5

    Twelve of thirteen tools follow a clean manage_<resource> pattern, which is very predictable. bulk_operations/queue_operations deviate from the verb_noun convention, but they are a coherent pair and still readable.

    Tool Count5/5

    13 tools is squarely in the well-scoped range for a multi-service Workspace server, with roughly one tool per major product plus two cross-cutting orchestration tools. No tool feels redundant except the deliberate deprecated alias.

    Completeness4/5

    Coverage spans the core Workspace surface: mail, calendar, contacts, drive, docs, sheets, tasks, meet, and account lifecycle, plus bulk orchestration. Notable gaps remain—no Slides, Chat, Forms, or Keep—but core workflows are fully reachable.

    Maintenance

    ActivityActive
    ResponsivenessUsually handled

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI assistants to securely manage Google Workspace services (Gmail, Calendar, Drive, Sheets, Contacts) with persistent multi-account OAuth. Uses OS keychain for credential storage with health monitoring and granular business rules for enterprise security.
      -
    • A
      license
      B
      quality
      C
      maintenance
      Multi-account Google MCP server providing read access to Gmail and Calendar via stdio. Supports secure authentication for personal and work accounts with OAuth and keychain token storage.
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables natural language control over Google Workspace (Gmail, Drive, Calendar, Sheets, Slides, Tasks) through secure OAuth 2.1 authentication, with vault-level security and multi-user isolation.
      7
      -