# Google Docs MCP Server

> **Google Docs MCP Server** is a hosted, multitenant Model Context Protocol (MCP) server run by **MewCP** (https://mewcp.com), giving AI agents managed access to Google Docs.
>
> MewCP takes care of all MCP infrastructure for you — credential storage, OAuth flows,
> token refresh, and production-grade auto-scaling — so your AI agents can connect to
> third-party services and run freely without you managing any MCP server yourself.
>
> Server page:  https://mewcp.com/mcp/google-docs
> MewCP docs:   https://docs.mewcp.com
> All servers:  https://mewcp.com/servers (JSON: https://mewcp.com/api/servers)
> About MewCP:  https://mewcp.com/llms.txt

---

## About

Create, edit, and manage Google Docs documents through AI agents. Read document content, insert and replace text, format paragraphs, headings and tables, manage document structure, and collaborate on Google Docs programmatically.

---

## Details

- Server ID: `google-docs`
- Version: 1.0.0
- Tools: 31
- Authentication: OAuth, managed by MewCP
- Calls served: 196
- Transport: http

---

## Access

The gateway URL below serves your **entire MewCP toolset**, not this server on its
own. Pasting a config snippet is not enough — Google Docs has to be in the toolset
first. In order:

1. Add Google Docs to your toolset at https://mewcp.com/mcp/google-docs
2. Connect your Google Docs account (OAuth); MewCP stores the credential and attaches it to each call
3. Add the gateway URL to your client (see Connect below). It signs in with OAuth
   the first time it connects, so there is no key to copy.

Once connected, an agent does **not** see this server's tools as top-level tools.
It sees four meta-tools and reaches everything through them:

- `search(query)` — find tools by keyword across the toolset
- `get_schema(tools)` — full description and arguments for the tools you picked
- `manage_connections(requests?)` — connection status and account aliases, plus
  links the user opens to add an app or connect an account
- `call_tool(app_maskedId, tool_name, args, alias?)` — execute

If Google Docs isn't in the toolset or connected yet, `manage_connections` with
app_maskedId `google-docs` returns a link that adds it and connects an account.

So the list below is what `search` can return for this server, not a set of
callable tool names on their own.

---

## Tools (31)

Descriptions are truncated to 160 characters; call `get_schema`
for the full text and the argument schema. Where a tool is annotated, its type
is shown — treat `destructive` as irreversible.

- `get_document` _(read)_ — Gets the latest version of a Google Docs document and returns the full structural JSON: documentId, title, revisionId, and every tab (child tabs nested under…
- `get_document_text` _(read)_ — Returns a compact text rendering of a Google Docs document for locating edit positions, instead of the full structural JSON: per tab (child tabs listed right…
- `create_document` _(write)_ — Creates a blank Google Docs document with the given title and returns only its documentId, title, revisionId and tabs (tabId, title, index); the new body is…
- `batch_update_document` _(destructive)_ — DESTRUCTIVE — REQUIRES EXPLICIT USER CONFIRMATION BEFORE CALLING. Applies a list of raw Docs API batchUpdate requests to a document in one atomic call; the…
- `insert_text` _(write)_ — Inserts text at a UTF-16 index, or at the end of the body, a header, footer or footnote with at_end, and returns the batch update reply (documentId,…
- `delete_content_range` _(destructive)_ — DESTRUCTIVE — REQUIRES EXPLICIT USER CONFIRMATION BEFORE CALLING. Permanently deletes the content between start_index and end_index (UTF-16, end exclusive) in…
- `replace_all_text` _(destructive)_ — DESTRUCTIVE — REQUIRES EXPLICIT USER CONFIRMATION BEFORE CALLING. Replaces every match of find_text (substring by default, optionally case-sensitive or a…
- `update_text_style` _(write)_ — Updates the character style (bold, italic, underline, strikethrough, small caps, font size, font family and weight, text and background color, link,…
- `update_paragraph_style` _(write)_ — Updates the paragraph style (named style such as HEADING_1, alignment, line spacing, space above/below, indents, direction, keep-with-next,…
- `create_paragraph_bullets` _(write)_ — Turns every paragraph the UTF-16 index range overlaps into a bulleted or numbered list item using a bullet preset, and returns the batch update reply. Each…
- `insert_page_break` _(write)_ — Inserts a page break followed by a newline at a UTF-16 index, or at the end of the body with at_end, and returns the batch update reply. Page breaks go only in…
- `delete_paragraph_bullets` _(write)_ — Removes the bullets or numbering from every paragraph the UTF-16 index range overlaps, keeping each paragraph's nesting level as indentation, and returns the…
- `insert_table` _(write)_ — Inserts an empty table with the given rows and columns at a UTF-16 index, or at the end of the body, a header or footer with at_end, and returns the batch…
- `insert_table_row` _(write)_ — Inserts an empty row above or below the row of a reference cell (above or below the whole merged cell if it is merged) in the table starting at…
- `delete_table_row` _(destructive)_ — DESTRUCTIVE — REQUIRES EXPLICIT USER CONFIRMATION BEFORE CALLING. Permanently deletes the row a reference cell spans, with all its content, from the table…
- `insert_table_column` _(write)_ — Inserts an empty column to the left or right of the column of a reference cell (of the whole merged cell if it is merged) in the table starting at…
- `delete_table_column` _(destructive)_ — DESTRUCTIVE — REQUIRES EXPLICIT USER CONFIRMATION BEFORE CALLING. Permanently deletes the column a reference cell spans, with all its content, from the table…
- `merge_table_cells` _(write)_ — Merges a range of cells (starting cell plus row and column span) in the table starting at table_start_index into one cell, and returns the batch update reply.…
- `update_table_cell_style` _(write)_ — Updates the style (background color, content alignment, padding, border color, width and dash style) of a range of table cells, or of every cell when row_span…
- `insert_inline_image` _(write)_ — Inserts an image from a public URL as an inline object at a UTF-16 index, or at the end of the body, a header or footer with at_end, and returns the new…
- `create_header` _(write)_ — Creates an empty default header and applies it to the section that begins at the given section break, or to the whole document style when no section break (or…
- `create_footer` _(write)_ — Creates an empty default footer and applies it to the section after the given section break, or to the whole document style when no section break (or the first…
- `add_document_tab` _(write)_ — Adds a new empty tab to a document, at the given position among its siblings (later tabs shift up by one) and optionally nested under a parent tab, and returns…
- `delete_tab` _(destructive)_ — DESTRUCTIVE — REQUIRES EXPLICIT USER CONFIRMATION BEFORE CALLING. Permanently deletes a tab from a document together with all of its child tabs and everything…
- `update_document_tab_properties` _(write)_ — Updates a document tab's title, position among its siblings, parent tab or emoji icon, and returns the batch update reply. Only the properties you set are…
- `insert_comment` _(write)_ — Adds a new comment thread anchored to a UTF-16 index range of a document, optionally assigned to a user by email, and returns the created thread (commentId,…
- `add_comment_reply` _(write)_ — Adds a reply post to an existing comment thread or suggestion thread, and returns the created post (postId, content, commentAction, author, createTime) with…
- `update_comment_post` _(write)_ — Replaces the text of one post (head post or reply) in a comment thread or suggestion thread, and returns the batch update reply. Fails with 400 if the…
- `delete_comment` _(destructive)_ — DESTRUCTIVE — REQUIRES EXPLICIT USER CONFIRMATION BEFORE CALLING. Permanently deletes a comment thread, including its head post and every reply, and returns…
- `accept_suggestion` _(write)_ — Accepts a suggestion, applying the suggested change to the document, and returns the batch update reply with the accepted IDs in…
- `reject_suggestion` _(write)_ — Rejects a suggestion, discarding the suggested change, and returns the batch update reply with the rejected IDs in suggestionResponses[].rejectedSuggestionIds.…

---

## Connect

- URL: https://gateway.mewcp.com/personal/mcp
- Transport: Streamable HTTP (remote). Nothing to install.
- Sign-in: OAuth. On first connect the client opens a browser window to sign in
  to MewCP and approve access. No API key.
- Headless clients (SDKs, servers without a browser) send an API key instead:
  `Authorization: Bearer <API_KEY>`, key from https://mewcp.com/dashboard/api-keys

Agents setting themselves up: follow https://mewcp.com/SKILL.md

Step-by-step guide per client:

- Claude Desktop: https://mewcp.com/mcp/google-docs/connect/claude
- ChatGPT: https://mewcp.com/mcp/google-docs/connect/chatgpt
- Grok: https://mewcp.com/mcp/google-docs/connect/grok
- DeepSeek Harness: https://mewcp.com/mcp/google-docs/connect/dsh
- Mistral Vibe: https://mewcp.com/mcp/google-docs/connect/mistral-vibe
- VS Code: https://mewcp.com/mcp/google-docs/connect/vscode
- Cursor: https://mewcp.com/mcp/google-docs/connect/cursor
- Codex: https://mewcp.com/mcp/google-docs/connect/codex
- Claude Code: https://mewcp.com/mcp/google-docs/connect/claude-code
- OpenCode: https://mewcp.com/mcp/google-docs/connect/opencode
- OpenClaw: https://mewcp.com/mcp/google-docs/connect/openclaw
- Antigravity: https://mewcp.com/mcp/google-docs/connect/antigravity
- Hermes: https://mewcp.com/mcp/google-docs/connect/hermes
- Kimi Code: https://mewcp.com/mcp/google-docs/connect/kimi-code
- Grok Build: https://mewcp.com/mcp/google-docs/connect/grok-build
- Devin Desktop: https://mewcp.com/mcp/google-docs/connect/devin-desktop
- Zed: https://mewcp.com/mcp/google-docs/connect/zed
- Muse Code: https://mewcp.com/mcp/google-docs/connect/muse-code
- Cline: https://mewcp.com/mcp/google-docs/connect/cline
- Kilo Code: https://mewcp.com/mcp/google-docs/connect/kilo-code
- Kiro: https://mewcp.com/mcp/google-docs/connect/kiro
- Junie: https://mewcp.com/mcp/google-docs/connect/junie
- Amp: https://mewcp.com/mcp/google-docs/connect/amp
- Qwen Code: https://mewcp.com/mcp/google-docs/connect/qwen-code
- Goose: https://mewcp.com/mcp/google-docs/connect/goose
- Python: https://mewcp.com/mcp/google-docs/connect/python
- TypeScript: https://mewcp.com/mcp/google-docs/connect/typescript