a-bonus/google-docs-mcp
The Ultimate Google Docs, Sheets, Drive, Gmail, & Google Calendar MCP Server. This MCP (primarily for use in Claude Desktop) gains full access to your google suite and lets claude do its thing.
What it solves
AI assistants have no built-in way to touch your Google Workspace files. This project is a bridge: a Model Context Protocol (MCP) server that gives AI clients like Claude Desktop or Cursor a standard set of tools to read, edit, and manage a user's Google Docs, Sheets, Drive files, Gmail, and Calendar — always behind the user's OAuth consent.
How it works
You install it locally with npx -y @a-bonus/google-docs-mcp, or deploy it on Google Cloud Run for a team. Setup goes like this:
- In Google Cloud Console, enable the Google Docs, Sheets, Drive, Gmail, and Calendar APIs, then create an OAuth client (Desktop app type).
- Run an
authcommand that opens your browser for Google authorization and stores a refresh token in~/.config/google-docs-mcp/token.json. - Add the server to your MCP client's config (Claude Desktop, Cursor, Windsurf) — the server starts on demand.
Once wired up, the assistant can call dozens of tools:
- Docs: read/append/insert/delete text, find-and-replace, full markdown round-trip (read a doc as markdown, edit it, push it back), text and paragraph styles, tables, images, tabs, page/section breaks, comments, and suggestion mode (edits applied as pending suggestions for review).
- Sheets: read/write ranges, batch writes, append rows, formatting (bold, colors, alignment, borders, freeze, column widths, row heights, auto-fit), dropdown validation, conditional formatting, protection, row grouping, charts, comments/cell notes, and named tables with typed columns.
- Drive: list, search, create (including from templates), move, copy, rename, delete files and folders, plus native Markdown (.md) file support.
- Gmail: search/read/send/trash messages, labels, drafts (compose, list, update, send), and a composite
triageInboxtool that fetches unread mail with heuristic flags (newsletter, meeting, action) for one-shot inbox triage. - Calendar: list/create/update/delete events, plus natural-language quick add ("Lunch with Sarah tomorrow 12pm") parsed by Google.
- Apps Script: create, read, and update the Apps Script behind a Doc or Sheet — enabling custom menus, onEdit triggers, and scheduled jobs — instead of telling the user to paste code manually.
For teams, one remote deployment on Cloud Run uses MCP OAuth 2.1 so each user just adds a URL in their MCP client; the client handles Google sign-in automatically on first connection, with no local token setup.
Who it's for
People who use MCP-capable AI assistants (like Claude Desktop, Cursor, or Windsurf) and work in Google Workspace: developers who want AI-assisted document/spreadsheet/email handling in their editor, teams that want a shared central deployment so everyone gets the same tools, and power users who would rather delegate formatting, triage, and scheduling to an assistant than do it by hand.
Highlights
- One server covering five Google services: Docs, Sheets, Drive, Gmail, and Calendar.
- Full markdown round-trip workflow: read a doc as markdown, edit locally, push changes back with formatting preserved.
- Suggestion mode for Docs edits — changes can land as pending suggestions for human review, not direct edits.
- Gmail inbox triage composite tool with heuristic flags for noise vs. attention.
- Natural-language calendar quick add via Google's own parser.
- Shared team deployment on Cloud Run with MCP OAuth 2.1 — no local installs needed for colleagues.
- Apps Script automation: AI can author the script behind a Doc or Sheet directly.
- Includes an opt-in live integration test that verifies table cloning against the real Google Docs API.
Related
- Project
- Project
- Project
- Project
- Project