Skip to content
VS Code

Google Docs MCP for VS Code

io.github.a1-x-tech/mcp-google-docs

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

client:VS Code transport:stdio runtime:npm

Install Google Docs MCP in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "google-docs-client-id",
      "description": "GOOGLE_DOCS_CLIENT_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-docs-client-secret",
      "description": "GOOGLE_DOCS_CLIENT_SECRET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-docs-refresh-token",
      "description": "GOOGLE_DOCS_REFRESH_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-docs-access-token",
      "description": "GOOGLE_DOCS_ACCESS_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-docs-oauth-port",
      "description": "GOOGLE_DOCS_OAUTH_PORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-docs-api-base",
      "description": "GOOGLE_DOCS_API_BASE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-docs-drive-api-base",
      "description": "GOOGLE_DOCS_DRIVE_API_BASE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-docs-timeout-ms",
      "description": "GOOGLE_DOCS_TIMEOUT_MS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-docs-max-retries",
      "description": "GOOGLE_DOCS_MAX_RETRIES",
      "password": true
    }
  ],
  "servers": {
    "mcp-google-docs": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@a1-x-tech/mcp-google-docs"
      ],
      "env": {
        "GOOGLE_DOCS_CLIENT_ID": "${input:google-docs-client-id}",
        "GOOGLE_DOCS_CLIENT_SECRET": "${input:google-docs-client-secret}",
        "GOOGLE_DOCS_REFRESH_TOKEN": "${input:google-docs-refresh-token}",
        "GOOGLE_DOCS_ACCESS_TOKEN": "${input:google-docs-access-token}",
        "GOOGLE_DOCS_OAUTH_PORT": "${input:google-docs-oauth-port}",
        "GOOGLE_DOCS_API_BASE": "${input:google-docs-api-base}",
        "GOOGLE_DOCS_DRIVE_API_BASE": "${input:google-docs-drive-api-base}",
        "GOOGLE_DOCS_TIMEOUT_MS": "${input:google-docs-timeout-ms}",
        "GOOGLE_DOCS_MAX_RETRIES": "${input:google-docs-max-retries}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Google Docs MCP in other clients