Skip to content

Google Docs

AllMCP gives your agent full control of Google Docs: create and read documents (including every tab), edit and format text, build tables, lists, images, headers and footnotes, manage sharing, and export to Markdown, PDF, or Word.

All providers How connecting works

Connect your MCP client to the AllMCP endpoint and authenticate with your API key.

https://go.allmcp.co/mcp/

Send your key on every request using either header:

X-API-Key: allmcp_xxx
Authorization: Bearer allmcp_xxx

If you run agents for more than one of your own customers, add ?user_id=... (and optionally ?org_id=...) to the endpoint URL so each customer’s Google connection stays separate.


Google Docs uses OAuth2, so there are no tokens to copy by hand.

  1. Ask your agent to connect Google Docs

    Tell your agent to connect the google_docs provider. It returns a secure Google sign-in link.

  2. Grant access in your browser

    Open the link, sign in to Google, and approve the requested access. That is the only manual step.


Once you are connected, your agent can use the Google Docs tools below.

Find documents in Drive and manage their lifecycle.

ToolDescription
google_docs_list_filesLists the Google Docs files you have access to in Google Drive. Supports name search and pagination.
google_docs_get_file_metadataReturns Drive-level metadata for one document: name, owner, timestamps, and share link.
google_docs_copy_documentDuplicates a whole document into a new, independent file — the usual way to instantiate a template.
google_docs_rename_documentRenames a document.
google_docs_move_documentMoves a document into a different Drive folder.
google_docs_trash_documentMoves a document to the trash. Recoverable.
google_docs_untrash_documentRestores a document from the trash.
google_docs_delete_documentPermanently deletes a document, bypassing the trash. Requires an explicit confirmation flag.

Create documents and read their content.

ToolDescription
google_docs_create_documentCreates a new document, optionally with starting text.
google_docs_get_documentReads a document and returns its title, full text, word count, revision ID, and tab list. Reads every tab by default, and can include headers, footers, and footnotes, a compact outline of element indexes for editing, or the raw element tree.
google_docs_export_as_textExports a document as plain text via the Drive export endpoint.

Export a document to any format Google supports.

ToolDescription
google_docs_export_documentExports a document as Markdown, plain text, PDF, DOCX, ODT, RTF, EPUB, or a zipped web page. Markdown preserves headings, lists, links, and tables.

Grant, audit, and revoke access.

ToolDescription
google_docs_list_permissionsLists everyone who has access to a document.
google_docs_get_permissionReturns one permission’s details by ID.
google_docs_share_documentShares a document with a person, group, domain, or by public link.
google_docs_update_permissionChanges the role on an existing grant.
google_docs_remove_permissionRevokes an existing grant.

Write and edit document content.

ToolDescription
google_docs_insert_textInserts text at a position, or appends it to the end.
google_docs_delete_content_rangeDeletes a range of content.
google_docs_replace_all_textFinds and replaces every occurrence of a string. Supports case sensitivity and regular expressions.
google_docs_insert_page_breakInserts a page break.
google_docs_insert_section_breakInserts a section break, which is what makes per-section margins and multi-column layouts possible.

Format text, paragraphs, and pages.

ToolDescription
google_docs_update_text_styleSets bold, italic, underline, strikethrough, small caps, font, size, colors, links, and superscript on a range.
google_docs_update_paragraph_styleSets heading level, alignment, line spacing, indents, spacing, and shading on paragraphs.
google_docs_update_named_styleRedefines a built-in style such as HEADING_1 across the whole document.
google_docs_update_document_styleSets page margins, page size, orientation, background, and page numbering.
google_docs_update_section_styleSets a section’s columns, margins, and text direction.

Bulleted, numbered, and checkbox lists.

ToolDescription
google_docs_create_paragraph_bulletsTurns paragraphs into list items using any Google bullet or numbering preset.
google_docs_delete_paragraph_bulletsRemoves list formatting while keeping the text.

Build and edit tables.

ToolDescription
google_docs_insert_tableInserts an empty table of a given size.
google_docs_insert_table_rowInserts a row above or below a reference row.
google_docs_insert_table_columnInserts a column left or right of a reference column.
google_docs_delete_table_rowDeletes a table row and its content.
google_docs_delete_table_columnDeletes a table column and its content.
google_docs_merge_table_cellsMerges a rectangular block of cells into one.
google_docs_unmerge_table_cellsSplits merged cells back apart.
google_docs_update_table_cell_styleSets cell background, alignment, padding, and borders.
google_docs_update_table_row_styleSets row height, header flag, and page-break behaviour.
google_docs_update_table_column_propertiesSets column widths, evenly distributed or fixed.
google_docs_pin_table_header_rowsRepeats the first rows of a table at the top of every page it spans.

Insert and replace document images.

ToolDescription
google_docs_insert_inline_imageInserts an image from a publicly reachable URL into the text flow.
google_docs_replace_imageSwaps an existing image’s content in place, keeping its ID, size, and position.
google_docs_delete_positioned_objectDeletes a floating (positioned) object.

Name spans of a document and rewrite them without indexes.

ToolDescription
google_docs_create_named_rangeNames a span of the document so it can be addressed later by name.
google_docs_delete_named_rangeDeletes a named range. The document text is untouched.
google_docs_replace_named_range_contentRewrites a named range’s content — the reliable way to fill template placeholders.

Headers, footers, and footnotes.

ToolDescription
google_docs_create_headerCreates a page header and returns its segment ID.
google_docs_delete_headerDeletes a header and its content.
google_docs_create_footerCreates a page footer and returns its segment ID.
google_docs_delete_footerDeletes a footer and its content.
google_docs_create_footnoteInserts a footnote reference and returns the footnote’s segment ID.

Manage a document’s tabs.

ToolDescription
google_docs_list_tabsLists every tab with its ID, title, and position.
google_docs_add_document_tabAdds a new tab, optionally nested under another.
google_docs_delete_tabDeletes a tab, its content, and every tab nested under it. Requires an explicit confirmation flag.
google_docs_update_document_tab_propertiesRenames a tab or moves it among its siblings.

Smart chips.

ToolDescription
google_docs_insert_personInserts a person smart chip that shows a live profile.
google_docs_insert_rich_linkInserts a smart chip that shows a linked file’s live title and icon.
google_docs_insert_dateInserts a date chip that renders in each reader’s locale.

The escape hatch.

ToolDescription
google_docs_batch_updateSends any combination of Google’s 40 batchUpdate request types as one atomic edit, with optional revision-guarded writes.

Just describe what you want in plain language — your agent picks the right tools.

Read the Google Doc at https://docs.google.com/document/d/1BxiMVs0.../edit