Google Docs MCP server

Connect Google Docs to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.

What you can do with the Google Docs MCP server

Ask your agent in plain language. Each of these maps to a real tool on the server.

  • Use the edit document tool in Google Docs
  • Use the get document tool in Google Docs
  • Use the manage named ranges tool in Google Docs
  • Use the merge template tool in Google Docs
  • Use the list documents tool in Google Docs
  • Use the create document tool in Google Docs

How teams use Google Docs with agents

Docs is where agents write for people. The integration creates and edits documents directly, including from Markdown, so a drafted report lands as a formatted Google Doc rather than a wall of text in chat.

Drafts from Markdown

Turn an agent-written outline or report into a formatted document with headings, lists and tables.

Template merges

Fill named ranges in a contract or proposal template with customer details from your CRM.

Edit in place

Apply targeted edits to an existing document, such as updating a section or a table, without rewriting the rest.

Read for context

Fetch a spec or policy document so the agent can answer questions against the current text.

Tools to start with

  • Create Document from Markdown: The quickest way to hand agent output to people.
  • Merge Template: Fills named ranges for repeatable documents.
  • Edit Document: Changes specific content without replacing the file.

Sign-in and permissions

Docs signs in with Google OAuth on the person's own account. The documents scope is classed as sensitive by Google, so the consent screen lists it explicitly, and the agent can only open documents that person can open.

Sign-in options on Metorial: Google OAuth.

Supported Tools

edit_document

Edit Document

Performs one or more editing operations on a Google Docs document. Supports inserting, deleting, and replacing text, formatting, inserting images, tables, page breaks, and creating bullet lists. Operations are executed in order.

get_document

Get Document

Retrieves a Google Docs document by its ID. Returns the document metadata and optionally the full content as both structured JSON and plain text.

manage_named_ranges

Manage Named Ranges

Creates or deletes named ranges in a Google Docs document. Named ranges act as bookmarks that allow referencing specific sections of a document for targeted updates or template operations.

merge_template

Merge Template

Replaces placeholder text in a Google Docs document with dynamic values. Useful for mail merge, generating personalized documents from templates, or populating forms. Each placeholder is replaced with its corresponding value throughout the document.

list_documents

List Documents

Lists Google Docs documents accessible to the user. Can filter by name, folder, or other criteria. Returns document metadata including IDs for use with other tools.

create_document

Create Document

Creates a new empty Google Docs document with the specified title. Returns the document ID which can be used to add content using other tools.

update_document_markdown

Update Document from Markdown

Replaces the full body of an existing native Google Docs document by converting Markdown through a Google Drive multipart upload. The document keeps its Drive file ID and sharing settings.

create_document_markdown

Create Document from Markdown

Creates a native Google Docs document by converting Markdown through a Google Drive multipart upload. Google Drive determines which Markdown structure and formatting it can preserve during import.

Connect Google Docs to your AI client

Every client uses the same Magic MCP URL, and so does any other MCP client. Add it once and sign in with SSO.

  1. Enable Google Docs in Metorial. In your Metorial portal, enable the Google Docs MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
  2. Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
  3. Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
  4. Sign in. Select Add and sign in to load Google Docs tools.

Run Google Docs through the Metorial gateway

One governed layer for every app your agents reach, not a separate connector per tool.

  • Give Google Docs and every other app to your whole team through one MCP gateway, behind your SSO.
  • Scope which teams and agents can use Google Docs tools with role-based access control, and trace every call.
  • Prefer to run it yourself? Metorial is open source and self-hostable.

More integrations teams use with Google Docs

Notion

Create, read, update, and archive pages and databases in a Notion workspace. Manage blocks (paragraphs, lists, headings, embeds, etc.) within pages. Query databases with filters and sorts across rich property types including text, numbers, dates, selects, relations, and formulas. Search across pages and databases by title. Add and read comments on pages and blocks. Upload files to pages. Manage workspace users and retrieve user profiles.

Google Sheets

Create, read, and update spreadsheets and their cell data. Read and write values to individual cells, ranges, or multiple ranges using A1 notation or named ranges. Apply cell formatting including text styles, backgrounds, borders, number formats, and conditional formatting. Manage sheets (tabs) within a spreadsheet—add, delete, copy, rename, and reorder them. Create and manage embedded charts, pivot tables, filter views, data validation rules, protected ranges, named ranges, and merged cells. Perform batch operations to apply multiple updates atomically.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Resolve site users to numeric Person/Group LookupId values. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Retrieve site properties and search for sites across Microsoft 365.

Google Drive

Upload, download, create, copy, move, rename, trash, and permanently delete files and folders in Google Drive. Search for files using complex queries filtering by name, MIME type, owner, modification date, labels, and other metadata. Share files and folders with specific users, groups, or domains with role-based permissions (owner, writer, commenter, reader). Manage shared drives and their members. Export Google Workspace files (Docs, Sheets, Slides) to standard formats like PDF, DOCX, and XLSX. Track file revision history and restore earlier versions. Create, read, update, and delete threaded comments and replies on files. Read label definitions and search files by label. Browse the Drive apps installed for your account. Store app-specific data in a hidden per-user folder.

Confluence

Create, read, update, and delete pages, blog posts, comments, and attachments in Confluence spaces. Manage spaces, permissions, labels, and content restrictions. Search content using Confluence Query Language (CQL). Upload and download file attachments with versioning. Manage users, groups, and group memberships. Create and manage whiteboards, databases, folders, and templates. View and update inline tasks. Access audit logs.

Google Slides

Create, read, edit, and delete Google Slides presentations. Create and manipulate slides with predefined or custom layouts. Insert, style, and replace text across slides, including bulk placeholder replacement for template-based generation. Add and position shapes, text boxes, lines, and images. Embed and refresh charts linked to Google Sheets. Manage speaker notes, duplicate or reorder slides, and perform batch updates combining multiple operations in a single call. Supports automated report and deck generation using templates with placeholder text and image substitution.

Technical notes for Google Docs

Create, read, edit, and format Google Docs documents. Insert and style text, manage tables, add images, create bulleted and numbered lists, and apply paragraph formatting. Use named ranges for template merging and dynamic content generation. Access document structure including headers, footers, and multiple tabs.

Frequently asked questions

Common questions about connecting Google Docs to AI agents with Metorial.

  1. How many tools does the Google Docs MCP server have?
    The Google Docs MCP server exposes 8 tools, including Edit Document, Get Document, Manage Named Ranges. Each one is governed and traced through Metorial.
  2. Google Docs exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
  3. Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Google Docs MCP server through the same Metorial URL.
  4. Use role-based access control to decide which teams, users, and agents can use Google Docs and which of its tools they can call.
  5. Yes. Metorial is open source, so you can run the Google Docs MCP server yourself or use the hosted gateway.

Connect Google Docs to production AI agents

See how Metorial gives your team governed access to Google Docs, with tracing and security controls built in.