Google Docs MCP Server

Allow AI systems to read and edit Google Docs.

Local serverstdioGo

What is the Google Docs MCP server?

Allow AI systems to read and edit Google Docs. That is what the google docs mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

(These are just examples - any workflow that needs document reading or editing can use this. Use in combination with google-drive-mcp for finding files, deleting, comments, and sharing permissions.)

The tools it exposes

The server publishes 8 tools. What each one is for:

  • documents — Full access to read and edit documents
  • document_get_raw — Get full raw JSON structure (all tabs, formatting, headers, footers, styles)
  • document_get_text — Get plain text content of all tabs
  • document_create — Create a new blank document
  • document_batch_update — Apply multiple edits atomically (insert, delete, format, etc.)
  • document_append — Append text to end of document
  • document_insert — Insert text at a specific index
  • document_replace — Find and replace text

Getting it running

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

What it needs from you

Configuration is passed through the environment: GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

How it compares

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Google Docs's toolset — documents, document_get_raw, document_get_text and 5 more — is a fair guide to whether it matches your workflow. It is maintained by domdomegg; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
documentsFull access to read and edit documents
document_get_rawGet full raw JSON structure (all tabs, formatting, headers, footers, styles)
document_get_textGet plain text content of all tabs
document_createCreate a new blank document
document_batch_updateApply multiple edits atomically (insert, delete, format, etc.)
document_appendAppend text to end of document
document_insertInsert text at a specific index
document_replaceFind and replace text

Configuration

VariableDescriptionRequired
GOOGLE_CLIENT_IDConfiguration value read at startup.Optional
GOOGLE_CLIENT_SECRETCredential the server authenticates with.Yes

Example prompts to try

  • Use Google Docs to documents.
  • Use Google Docs to document get raw.
  • Use Google Docs to document get text.

Frequently asked questions

It connects Google Docs to MCP-compatible AI assistants such as Claude and Cursor, exposing 8 tools (documents, document_get_raw, document_get_text, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Google Docs directly.