io.github.gigabrain-observer/google-docs-mcp-server

Registre officiel Productivité

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

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

PYPI package google-docs-mcp-server
Claude Code
claude mcp add google-docs-mcp-server -e 'SERVICE_ACCOUNT_PATH=<SERVICE_ACCOUNT_PATH>' -e 'SUBJECT_EMAIL=<SUBJECT_EMAIL>' -- uvx google-docs-mcp-server==0.1.1
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "google-docs-mcp-server": {
            "command": "uvx",
            "args": [
                "google-docs-mcp-server==0.1.1"
            ],
            "env": {
                "SERVICE_ACCOUNT_PATH": "<SERVICE_ACCOUNT_PATH>",
                "SUBJECT_EMAIL": "<SUBJECT_EMAIL>"
            }
        }
    }
}

Variables d'environnement

  • SERVICE_ACCOUNT_PATH obligatoire Path to the Google service account JSON key file
  • SUBJECT_EMAIL obligatoire Email of the Workspace user to impersonate via domain-wide delegation

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. Google Docs MCP Server
  2. What it does
  3. Why this exists
  4. Install
  5. Prerequisites
  6. Setup
  7. Environment variables
  8. License

Google Docs MCP Server

A Model Context Protocol server for Google Docs with full tab support — something most existing servers get wrong or skip entirely.

Uses Google service accounts with domain-wide delegation, so it works in Workspace orgs without OAuth consent screens.

What it does

ToolDescription
list_tabsList all tabs (including nested) in a document
read_documentRead one tab or all tabs as markdown with proper heading levels
get_document_infoLightweight metadata: title, ID, link, tab list
create_documentCreate a new doc with optional initial text
append_textAppend text to the end of a specific tab
insert_textInsert text at a character index in a tab
replace_textFind and replace within a tab (or whole doc)
batch_updateFull batchUpdate access — formatting, tables, images, styles
list_documentsSearch Drive for docs by name

All tab-targeting tools accept tab_id or tab_title (case-insensitive). The batch_update tool auto-injects tabId into requests so you don't have to.

Why this exists

Google Docs has supported tabs since late 2024, but most MCP servers either:

  • Ignore tabs entirely (only read the first tab)
  • Don't use includeTabsContent=True, so tab content is invisible
  • Don't handle nested tabs

This server handles all of that correctly and converts content to markdown with proper heading structure.

Install

pip install google-docs-mcp-server

Or run directly with uv:

uvx google-docs-mcp-server

Prerequisites

  • Python 3.11+
  • A Google Cloud service account with domain-wide delegation

Setup

1. Create a GCP service account
  1. Go to Google Cloud Console and create (or select) a project
  2. Enable the Google Docs API and Google Drive API
  3. Create a service account under IAM & Admin > Service Accounts
  4. Create a JSON key and download it
2. Enable domain-wide delegation
  1. In GCP, on the service account details page, enable Domain-wide Delegation and note the Client ID
  2. In Google Workspace Admin > Security > API Controls > Domain-wide Delegation
  3. Add the Client ID with these scopes:
     https://www.googleapis.com/auth/documents
     https://www.googleapis.com/auth/drive.readonly
3. Configure your MCP client

Add to your MCP config (e.g. ~/.claude/mcp.json or .mcp.json):

{
  "mcpServers": {
    "google-docs": {
      "command": "uvx",
      "args": ["google-docs-mcp-server"],
      "env": {
        "SERVICE_ACCOUNT_PATH": "/path/to/your-service-account-key.json",
        "SUBJECT_EMAIL": "you@yourdomain.com"
      }
    }
  }
}

SUBJECT_EMAIL is the Workspace user the service account impersonates.

Environment variables

VariableRequiredDescription
SERVICE_ACCOUNT_PATHYesPath to the service account JSON key file
SUBJECT_EMAILYesEmail of the Workspace user to impersonate

License

MIT

Questions fréquentes

Qu'est-ce que io.github.gigabrain-observer/google-docs-mcp-server ?

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

Comment installer io.github.gigabrain-observer/google-docs-mcp-server ?

Il s'exécute sur votre machine. Dans Claude Code : claude mcp add google-docs-mcp-server -e 'SERVICE_ACCOUNT_PATH=<SERVICE_ACCOUNT_PATH>' -e 'SUBJECT_EMAIL=<SUBJECT_EMAIL>' -- uvx google-docs-mcp-server==0.1.1. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour io.github.gigabrain-observer/google-docs-mcp-server ?

Oui. Il attend SERVICE_ACCOUNT_PATH, SUBJECT_EMAIL, à renseigner dans sa configuration.

io.github.gigabrain-observer/google-docs-mcp-server est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient io.github.gigabrain-observer/google-docs-mcp-server ?

Il est publié par gigabrainobserver. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.