Google Docs MCP server: write, read and fill documents in Claude, Codex or Cursor
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
- 1Connect Google Docs (Google sign-in) on its card on Integrations.
- 2Create a key in API & MCP:
tools:readfor reading, addtools:writefor changes andtools:rawfor 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. - 3Add the server to your client with one of the snippets below, run
describe_permissions, thengoogle_docs__list_documents.
# 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}" } } } }The Google Docs tools
| Tool | Kind | What it does |
|---|---|---|
google_docs.list_documents | Read | The Google Docs this app made or was handed (Drive, drive.file): id, title, link, modified time — newest first. |
google_docs.get_document | Read | ONE 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_document | Read | Export a document (Drive files.export) and save the file to the Asset Library: format pdf | docx | txt | md. |
google_docs.raw_get | Read | RAW 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_document | Write | Create 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_content | Write | Add 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_content | Write | Add 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_text | Write | Replace 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_template | Write | Make 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_update | Write | Any 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… |
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_requestsends 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 thetools:rawscope; 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."
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.