Google Docs MCP Server logo

Google Docs MCP Server

Reads, searches, creates, and updates Google Docs, including nested tabs and Markdown extraction.

Install Google Docs MCP Server

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "google-docs-mcp-server": {
      "command": "uvx",
      "args": [
        "google-docs-mcp-server"
      ],
      "env": {
        "SERVICE_ACCOUNT_PATH": "YOUR_VALUE_HERE",
        "SUBJECT_EMAIL": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx google-docs-mcp-server

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The google-docs-mcp-server MCP server connects MCP clients to Google Docs through a Google Workspace service account with domain-wide delegation. It lists nested tabs, reads tabs as Markdown, creates documents, edits text, searches Drive, and exposes batch updates for formatting and other document operations. Use it when an agent needs reliable access to documents with tabs in a Workspace organization without an OAuth consent flow.

Use cases

  • Read every tab in a Google Doc as Markdown
  • Search Google Drive for documents by name
  • Create documents with initial text
  • Update text in a selected document tab
  • Apply formatting and table changes through batch updates

Key features

  • Nested Google Docs tab support
  • Markdown extraction with heading levels
  • Tab-aware text editing
  • Google Drive document search
  • Batch updates for formatting, tables, images, and styles
  • Service-account authentication with domain-wide delegation

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

Not checked yetLast checked

We have not completed a health check for this listing yet.

0/96 checks healthy over the last 25d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · google-docs-mcp-server (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
Last commit9mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How Google Docs MCP Server works

What the google-docs-mcp-server MCP server does

The google-docs-mcp-server MCP server gives an MCP client tools for reading and modifying Google Docs. It handles documents with tabs, including nested tabs, rather than limiting access to a document's first tab. Document content can be returned as Markdown with heading levels preserved.

The server supports both lightweight inspection and document changes. Agents can retrieve a document's title, ID, link, and tab list; search Google Drive for documents by name; create a document with optional starting text; and append, insert, or replace text in a selected tab.

How it works

Authentication uses a Google Cloud service account configured for domain-wide delegation. The service account impersonates the Workspace user supplied through SUBJECT_EMAIL, allowing the server to access documents under that user's authority without an OAuth consent-screen flow.

Tab-aware operations accept either a tab ID or a tab title. Titles are matched case-insensitively. The read_document operation can target one tab or return all tabs. For lower-level document changes, batch_update exposes Google Docs batch update requests and automatically adds the selected tabId where needed.

Setup and configuration

The google-docs-mcp-server MCP server requires Python 3.11 or later, a Google Cloud service account, and domain-wide delegation. In Google Cloud, enable the Google Docs API and Google Drive API, create the service account, and download its JSON key. Enable domain-wide delegation for the account and authorize its client ID in Google Workspace Admin.

The authorized scopes are:

  • https://www.googleapis.com/auth/documents
  • https://www.googleapis.com/auth/drive.readonly

Install the package with pip install google-docs-mcp-server, or run it with uvx google-docs-mcp-server. Configure the MCP client to start the command and provide these environment variables:

  • SERVICE_ACCOUNT_PATH: path to the service account JSON key
  • SUBJECT_EMAIL: Workspace user to impersonate

Tools and capabilities

Available tools include:

  • list_tabs for listing all tabs, including nested tabs
  • read_document for Markdown extraction from one or all tabs
  • get_document_info for title, ID, link, and tab metadata
  • create_document for creating a document with optional initial text
  • append_text and insert_text for adding content
  • replace_text for replacements within a tab or the full document
  • batch_update for formatting, tables, images, styles, and other batch requests
  • list_documents for searching Drive by document name

Limitations and notes

The server depends on Google Workspace domain-wide delegation rather than a user-facing OAuth login. Its setup therefore requires administrative access to authorize the service account and a Workspace identity to impersonate. The configured Drive scope is read-only, while document changes use the Google Docs API scope. The material does not describe sharing, permissions management, or non-Google document formats.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Google Docs MCP Server

google-docs-mcp-server is an MCP server that connects AI clients to Google Docs through a Google Workspace service account with domain-wide delegation. Its main tools list tabs, read documents as Markdown, create documents, append or insert text, replace text, apply batch updates, retrieve metadata, and search Drive for documents.

Install it with `pip install google-docs-mcp-server` or run it directly with `uvx google-docs-mcp-server`. The server requires Python 3.11 or later and must be configured in an MCP client with its required environment variables.

Configure a Google Cloud service account with domain-wide delegation, enable the Google Docs and Drive APIs, and authorize the required scopes in Google Workspace Admin. Set `SERVICE_ACCOUNT_PATH` to the JSON key and `SUBJECT_EMAIL` to the Workspace user being impersonated.

Use `list_tabs` to enumerate all tabs, including nested tabs, then use `read_document` for one tab or the complete document. Tab-targeting tools accept either `tab_id` or a case-insensitive `tab_title`.

Yes. Use `batch_update` to access Google Docs batch updates for formatting, tables, images, styles, and other supported requests. The tool automatically injects `tabId` into requests when a tab is selected.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGoogle Docs MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/google-docs-mcp-server?style=directory)](https://allmcps.com/mcp/google-docs-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/google-docs-mcp-server"><img src="https://allmcps.com/api/badge/google-docs-mcp-server?style=directory" alt="Google Docs MCP Server on AllMCPs" /></a>