MCP

Google Docs MCP server: write, read and fill documents in Claude, Codex or Cursor

TL;DR

Google Docs reaches Claude, Codex or Cursor through the Agent Planners MCP endpoint with 4 reads and 6 writes. Agent Planners never shares a file, changes who can open it, deletes or trashes it, moves it to another folder or adds protected ranges — do that in Google Drive. Google Cloud, Google Docs, Google Sheets and Google Slides are open to every workspace: Google has verified the permissions they ask for, and an admin or editor connects each one on its own card.

Is there an MCP server for Google Docs?

Agent Planners hosts marketing MCP at https://www.agentplanners.com/api/mcp. Its app catalog includes 4 Google Docs read tools and 6 write tools. Direct MCP calls require a paid plan. Use tool discovery to check what your connection exposes. With an API key, irreversible changes require review unless an admin exempts a key.

Connect your AI client to the hosted server

  1. 1Connect Google Docs (Google sign-in) on its card on Integrations.
  2. 2Create a key in API & MCP: tools:read for reading, add tools:write for changes and tools:raw for the raw request lane — or sign in from the client with OAuth. To keep a key to this product, choose Only these platforms → Google Docs.
  3. 3Add the server to your client with one of the snippets below, run describe_permissions, then google_docs__list_documents.
bash
# Claude Code
claude mcp add --transport http agent-planners https://www.agentplanners.com/api/mcp \
  --header "Authorization: Bearer $AGENTPLANNERS_API_KEY"

# Codex (signs in with OAuth in the browser)
codex mcp add agent-planners --url https://www.agentplanners.com/api/mcp

# Cursor (~/.cursor/mcp.json)
{ "mcpServers": { "agent-planners": { "url": "https://www.agentplanners.com/api/mcp", "headers": { "Authorization": "Bearer ${env:AGENTPLANNERS_API_KEY}" } } } }
Every client's setup, including OAuth sign-in without a key: MCP setup guide.

The Google Docs tools

ToolKindWhat it does
google_docs.list_documentsReadThe Google Docs this app made or was handed (Drive, drive.file): id, title, link, modified time — newest first.
google_docs.get_documentReadONE document (documents.get): title, the outline (headings with their level), the text, every table as rows, inline image count; long text is cut and says truncated.
google_docs.export_documentReadExport a document (Drive files.export) and save the file to the Asset Library: format pdf | docx | txt | md.
google_docs.raw_getReadRAW Google Docs API read — ONLY when no typed tool covers what the goal needs: { accountId? (the connected Google sign-in; optional when this workspace has exactly one), path (relative to the API, e.g. "documents/{doc…
google_docs.create_documentWriteCreate a NEW, polished Google Doc from structured content: { accountId? (the connected Google sign-in; optional when this workspace has exactly one), title, blocks: an ordered list — { type: title | subtitle | heading…
google_docs.append_contentWriteAdd content at the END of an existing document: { accountId? (the connected Google sign-in; optional when this workspace has exactly one), document (the file's id or its docs.google.com link), blocks: an ordered list …
google_docs.insert_contentWriteAdd content right AFTER a heading of an existing document: { accountId? (the connected Google sign-in; optional when this workspace has exactly one), document (the file's id or its docs.google.com link), afterHeading …
google_docs.replace_textWriteReplace every occurrence of a text in a document (replaceAllText): { accountId? (the connected Google sign-in; optional when this workspace has exactly one), document (the file's id or its docs.google.com link), repla…
google_docs.copy_from_templateWriteMake a NEW document from a template document (Drive files.copy) and fill its {{placeholders}}: { accountId? (the connected Google sign-in; optional when this workspace has exactly one), template (the file's id or its …
google_docs.batch_updateWriteAny Google Docs batchUpdate in Google's own format, for what the typed tools do not cover: { accountId? (the connected Google sign-in; optional when this workspace has exactly one), document (the file's id or its docs…
Over MCP and the REST API the names are google_docs__<tool>.

What waits for a person, whatever the key allows

Ordinary changes follow how the key was minted: they apply inside the workspace's guardrails, or queue for a person. The changes below wait for a person on every key mode and never ride a bulk approval — the only exceptions are a connection of the workspace's own OAuth app and an API key an admin set to apply changes you can't take back.

  • A change that deletes, clears or overwrites content — clearing a whole tab before writing, a find-and-replace with an empty replacement, or a batch update that removes text, rows, columns, tabs, slides, shapes, charts, filters or formatting rules, pastes or cuts over a range, blanks a range, resizes a grid or replaces shapes with images or charts — waits for a person on every lane, auto-approve and API keys included. The exceptions, by the owner's choice: a connection of the workspace's own OAuth app, and an API key an admin set to apply these changes at once.

The raw request lane

  • google_docs__raw_request sends Google Docs API (docs.googleapis.com) requests in Google's own format (method, path, query and body) for any file the connected Google login can open, with the same holds as the typed tools. It needs the tools:raw scope; Drive itself (sharing, deleting, moving files) is refused.

Things to ask

  • "Write this week's paid-media summary as a Google Doc with a KPI table."
  • "Fill our monthly report template with last month's numbers."
  • "Read the brief at this link and list the open questions."
Tested live in the first connected workspace on 2026-11-25, before the release: a formatted document with a table and an image, a spreadsheet with formulas, a filter view and two charts, and a six-slide themed deck; the exported PDFs and thumbnails were checked. Google Docs setup guide · Google Docs platform page

Frequently asked questions

Can an MCP client open a document I made myself?
Yes — give it the document's link. Its own list shows only the documents the app made or was handed.
Can it share or delete a document?
No. Agent Planners never shares, deletes, trashes or moves a file, on any lane.
Connect your AI client to Agent Planners

Start free — 4,400 free credits, one time, no credit card. Direct tool calls require a paid plan and the appropriate connection scopes.

Related reading