Home › Productivity › a1-x-tech/mcp-google-docs

a1-x-tech/mcp-google-docs

MCP server for the Google Docs API: read and edit documents, styles, tables, images, comments.

TypeScript Cloud
★ 0 stars Last pushed 2026-11-21 License: MIT

Topics: Workplace & Productivity

Connect

Review any command before running it. Package names and URLs come from the server's own registry entry.

Package (npm 1.1.2)

npx -y @a1-x-tech/mcp-google-docs@1.1.2

Or add to your MCP client config:

{
  "mcpServers": {
    "mcp-google-docs": {
      "command": "npx",
      "args": [
        "-y",
        "@a1-x-tech/mcp-google-docs@1.1.2"
      ],
      "env": {
        "GOOGLE_DOCS_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_DOCS_REFRESH_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_DOCS_ACCESS_TOKEN": "<YOUR_VALUE>"
      }
    }
  }
}
  • GOOGLE_DOCS_CLIENT_ID — Google OAuth2 client id (refresh-token flow).
  • GOOGLE_DOCS_CLIENT_SECRET secret — Google OAuth2 client secret (refresh-token flow). Treat it as a secret.
  • GOOGLE_DOCS_REFRESH_TOKEN secret — Google OAuth2 refresh token, exchanged for access tokens automatically. Treat it as a secret.
  • GOOGLE_DOCS_ACCESS_TOKEN secret — Static OAuth2 access token (~1h lifetime) — alternative to the refresh-token trio, mostly for testing.
  • GOOGLE_DOCS_OAUTH_PORT — Fixed port for the loopback listener of the in-chat login (127.0.0.1 + PKCE). Set it when the client runs over SSH port forwarding; otherwise a free port is picked per login.
  • GOOGLE_DOCS_API_BASE — Docs API root override.
  • GOOGLE_DOCS_DRIVE_API_BASE — Drive API root override (markdown import/export, document export, comments).
  • GOOGLE_DOCS_TIMEOUT_MS — Per-request timeout in milliseconds.
  • GOOGLE_DOCS_MAX_RETRIES — Retries on transient errors (429 always; 5xx/network for reads).

Related servers

Listed in punkpeye/awesome-mcp-servers (MIT)

Data from the Official MCP Registry