Google Docs, Sheets und Gmail per Assistent bearbeiten
MCP-Server für Google Docs, Google Calendar, Gmail · lesen und schreiben und senden · MIT
Löscht und versendetWas der Baustein im Konto darf
Verbindet einen Assistenten mit Google Docs, Sheets, Drive, Gmail und Calendar. Er liest und bearbeitet Dokumente und Tabellen, verwaltet Dateien, schreibt Mail-Entwürfe und kann Termine anlegen.
Was der Server kann
- Google-Docs-Dokumente lesen, Text einfügen, ändern, löschen und formatieren, auch Tabellen, Bilder und Tabs.
- Google-Sheets-Daten lesen, in mehrere Bereiche gleichzeitig schreiben und Zeilen gruppieren.
- Drive-Dateien kopieren, verschieben, umbenennen und in den Papierkorb legen.
- Gmail-Nachrichten und Entwürfe lesen, Entwürfe anlegen, ändern und senden sowie Mails direkt versenden.
- Den Posteingang nach ungelesenen Mails durchgehen und vorsortieren.
- Kalendertermine lesen, anlegen, ändern und löschen.
- Werkzeugsätze per Gruppe (`docs`, `drive`, `sheets`, `gmail`, `calendar` und weitere) begrenzen.
Einsatz in Marketing und Vertrieb
- Content
- Ein Redaktionsplan in Google Sheets wird gelesen, zu jedem Thema ein Dokument aus einer Vorlage kopiert und mit einem Briefing-Text befüllt.
- E-Mail-Marketing
- Antworten auf einen Versand im Posteingang werden gesichtet und als Entwürfe vorbereitet. Gesendet wird erst nach Freigabe.
- Reporting
- Kennzahlen werden in mehrere Bereiche eines Reporting-Sheets geschrieben, ein Dokument mit Auswertung entsteht daneben.
Einrichtung
- In der Google Cloud Console ein Projekt anlegen, die APIs für Docs, Sheets, Drive, Gmail und Calendar aktivieren und einen OAuth-Client vom Typ Desktop-App erzeugen.
- Die Zustimmungsseite einrichten (Scopes `gmail.modify` und `calendar.events` ergänzen) und die eigene Adresse als Testnutzer eintragen.
- Mit `GOOGLE_CLIENT_ID`, `GOOGLE_CLIENT_SECRET` und `npx -y @a-bonus/google-docs-mcp auth` im Browser anmelden.
- Den Server mit `npx -y @a-bonus/google-docs-mcp` in die Client-Konfiguration eintragen.
Grenzen
- Löschen kann dauerhaft sein (`permanent=true`), Entwürfe löschen ist endgültig.
- Alternativ lässt sich der Server für ein Team in Cloud Run betreiben, dann mit OAuth 2.1 pro Nutzer.
- Die Zustimmungsseite im Testmodus lässt nur eingetragene Testnutzer zu.
- `sendEmail` verschickt nur Nur-Text; Anhänge werden beim Lesen nicht heruntergeladen.
Einordnung der Redaktion
Aufgaben: Präsentationen. Allgemein nutzbar, etwa für Büro, Daten und Dokumente.
Beschreibung des Anbieters
MCP server for Google Docs, Sheets, Drive, Gmail, and Calendar
Eckdaten
Werkzeuge
readDocumentLiest ein Google-Dokument, als Text oder JSON.
Reads the content of a Google Document. Returns plain text by default.…
Angabe des Anbieters · Beleg 33modifyTextErsetzt Text, stellt Text voran oder wandelt ihn im Dokument um.
Combines text replacement/insertion and formatting in one atomic operation. Can insert text at a position, replace a range or found text, apply formatting, or any combination.…
Angabe des Anbieters · Beleg 12insertTableFügt eine leere Tabelle an einer Stelle ein.
Inserts an empty table with the specified number of rows and columns at a character index in the document.
Angabe des Anbieters · Beleg 19copyFileKopiert eine Datei in Drive.
Creates a copy of a file or document in Google Drive. Returns the new copy's ID and URL.
Angabe des Anbieters · Beleg 7batchWriteSchreibt in mehrere Tabellenbereiche mit einem Aufruf.
Writes data to multiple ranges in a single API call. More efficient than multiple separate writeSpreadsheet calls when updating several ranges at once.
Angabe des Anbieters · Beleg 31createDraftLegt einen Gmail-Entwurf an, ohne zu senden.
Creates a Gmail draft (does NOT send). Use this for AI-composed emails that the user should review before sending.…
Angabe des Anbieters · Beleg 27sendDraftVersendet einen bestehenden Entwurf.
Sends an existing Gmail draft. After sending, the draft is removed and the message appears in Sent. This is the second half of the compose-review-send flow that pairs with createDraft.
Angabe des Anbieters · Beleg 13sendEmailVersendet eine Nur-Text-Mail aus dem verbundenen Konto.
Sends a plain-text email from the authenticated Gmail account.…
Angabe des Anbieters · Beleg 14triageInboxHolt ungelesene Mails mit Inhalt und sortiert sie vor.
Composite tool: fetches the user's most recent unread Gmail messages with full content and heuristic categorization in a single call.…
Angabe des Anbieters · Beleg 29deleteFileLegt eine Datei in den Papierkorb oder löscht sie endgültig.
Moves a file or folder to the trash, or permanently deletes it. Set permanent=true for irreversible deletion.
Angabe des Anbieters · Beleg 20addTabAdds a new tab to a Google Docs document. Optionally set the tab title, position, parent tab (for nesting), and icon emoji. Returns the new tab's ID and properties.
Angabe des Anbieters · Beleg 5renameTabRenames a tab in a Google Docs document. Use listDocumentTabs to get tab IDs first.
Angabe des Anbieters · Beleg 6moveFileMoves a file or folder to a different Drive folder. By default adds the new parent while keeping existing parents; set removeFromAllParents=true for a true move.
Angabe des Anbieters · Beleg 8getDraftFetches a single Gmail draft by ID with full headers and body. Use listDrafts to discover draft IDs.
Angabe des Anbieters · Beleg 9cloneTableClones a source Google Docs table into a target document, preserving text, column widths, row styles, cell styles, and pinned header rows where supported.
Angabe des Anbieters · Beleg 10insertTextInserts text at a specific character index within a document. Use readDocument with format='json' to determine the correct index.
Angabe des Anbieters · Beleg 11getTableGets detailed information about a specific table including its columns, range, and properties. Use the table name or ID returned by listTables.
Angabe des Anbieters · Beleg 15deleteRangeDeletes content within a character range [startIndex, endIndex) from a document. Use readDocument with format='json' to determine index positions.
Angabe des Anbieters · Beleg 16findElementLocates elements in a Google Document.…
Angabe des Anbieters · Beleg 17insertImageInserts an inline image into a Google Document. Provide either a publicly accessible URL or a local file path. Local files are automatically uploaded to Google Drive before insertion.
Angabe des Anbieters · Beleg 18renameFileRenames a file or folder in Google Drive. Returns the updated file info.
Angabe des Anbieters · Beleg 21getMessageFetches a single Gmail message by ID with headers, decoded plain-text body, HTML body, and a list of attachments (metadata only). Use listMessages to discover message IDs.
Angabe des Anbieters · Beleg 22listDraftsLists Gmail drafts for the authenticated user. Returns draft IDs along with the recipient, subject, snippet, and date for each. Use sendDraft, updateDraft, or deleteDraft to act on a returned draft.
Angabe des Anbieters · Beleg 23listLabelsLists all Gmail labels for the authenticated user, including system labels (INBOX, SENT, STARRED, UNREAD, etc.) and custom user-created labels.…
Angabe des Anbieters · Beleg 24groupRowsCreates collapsible row groups in a Google Sheet using the Sheets API addDimensionGroup request. Each group specifies a range of rows (1-based, inclusive) to collapse.
Angabe des Anbieters · Beleg 25insertPersonInserts a Google Docs person smart chip at a specific paragraph location using an email address.
Angabe des Anbieters · Beleg 26deleteDraftPermanently deletes a Gmail draft. This is irreversible — the draft is removed entirely, not moved to Trash. Use when an AI-composed draft was rejected or replaced.
Angabe des Anbieters · Beleg 28updateDraftReplaces the contents of an existing Gmail draft. The new contents fully overwrite the old draft (this is a full replace, not a patch). Use this when iterating on an AI-composed draft before sending.
Angabe des Anbieters · Beleg 30listTablesLists all tables in a spreadsheet or specific sheet. Use this to discover table names and IDs before performing table operations.
Angabe des Anbieters · Beleg 32createFolderCreates a new folder in Google Drive. Optionally places it inside an existing parent folder.
Angabe des Anbieters · Beleg 34
Voraussetzungen
BASE_URL· Umgebungsvariable · erforderlich · Beleg 35ALLOWED_DOMAINS· Umgebungsvariable · optional · Beleg 35TOKEN_STORE· Umgebungsvariable · erforderlich · Beleg 35GCLOUD_PROJECT· Umgebungsvariable · erforderlich · Beleg 35GOOGLE_IMPERSONATE_USER· Umgebungsvariable · optional · Beleg 35GOOGLE_MCP_PROFILE· Umgebungsvariable · optional · Beleg 35
12 Umgebungsvariablen laut Anbieter
MCP_TRANSPORT· Umgebungsvariable · Beleg 36GOOGLE_CLIENT_ID· Umgebungsvariable · Beleg 36GOOGLE_CLIENT_SECRET· Umgebungsvariable · Beleg 36JWT_SIGNING_KEY· Umgebungsvariable · Beleg 36TOKEN_ENCRYPTION_KEY· Umgebungsvariable · Beleg 36PORT· Umgebungsvariable · Beleg 36MCP_TOOL_GROUPS· Umgebungsvariable · Beleg 37APPS_SCRIPT_DEPLOYMENT_ID· Umgebungsvariable · Beleg 18REFRESH_TOKEN_TTL· Umgebungsvariable · Beleg 35MCP_STATELESS· Umgebungsvariable · Beleg 35GOOGLE_DOCS_MCP_DOWNLOAD_ROOTS· Umgebungsvariable · Beleg 35SERVICE_ACCOUNT_PATH· Umgebungsvariable · Beleg 35
Installation
npx -y @a-bonus/google-docs-mcpRechte
- 5 von 30 Werkzeugen können löschen und versenden, etwa sendDraft, sendEmail, deleteFile.
- 16 von 30 Werkzeugen legen Daten an oder ändern sie, etwa modifyText, insertTable, copyFile.
- Der Anbieter deklariert: lesen, schreiben und senden.
Lass löschende, sendende und ausführende Werkzeuge nur nach Bestätigung je Aktion laufen und verbinde zuerst ein Testkonto.
Google-OAuth mit Client-ID und Client-Secret; das Refresh-Token liegt lokal in `~/.config/google-docs-mcp/token.json`. Der Server liest, schreibt, löscht und versendet Mails.
- Zugriffe laut Paketangaben
- lesen, schreiben, senden
- Authentifizierung
- —
- Transport
- —
- Technische Prüfung
- Ungeprüft
Quellen (38)
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- Abgerufen und Felder geprüft: 2026-10-04; technische Prüfung: ungeprüft