# google-docs-mcp-server

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/gigabrainobserver/google-docs-mcp-server  
**GitHub Stars:** 4  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/google-docs-mcp-server

## Description
Google Docs MCP server with full tab support, markdown extraction, and batch updates.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "google-docs-mcp-server": {
    "command": "uvx",
    "args": ["google-docs-mcp-server"],
    "env": {
      "SERVICE_ACCOUNT_PATH": "",
      "SUBJECT_EMAIL": ""
    }
  }
}
```

**Requires environment variables:** `SERVICE_ACCOUNT_PATH`, `SUBJECT_EMAIL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/google-docs-mcp-server/readme_

