Google Sheets

v1.2.1
io.github.domdomegg/google-sheets-mcp Checked 8 hours ago Published 6 months ago

Allow AI systems to read, write, and query spreadsheet data via Google Sheets.

Values you need

VariableWhat it is
GOOGLE_ACCESS_TOKENrequired secret Google OAuth access token with Sheets scopes.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add google-sheets-mcp -e 'GOOGLE_ACCESS_TOKEN=<GOOGLE_ACCESS_TOKEN>' -- npx -y google-sheets-mcp@1.2.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "google-sheets-mcp": {
      "args": [
        "-y",
        "google-sheets-mcp@1.2.1"
      ],
      "command": "npx",
      "env": {
        "GOOGLE_ACCESS_TOKEN": "<GOOGLE_ACCESS_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "google-sheets-mcp": {
      "args": [
        "-y",
        "google-sheets-mcp@1.2.1"
      ],
      "command": "npx",
      "env": {
        "GOOGLE_ACCESS_TOKEN": "<GOOGLE_ACCESS_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "GOOGLE_ACCESS_TOKEN",
      "id": "google-access-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "google-sheets-mcp": {
      "args": [
        "-y",
        "google-sheets-mcp@1.2.1"
      ],
      "command": "npx",
      "env": {
        "GOOGLE_ACCESS_TOKEN": "${input:google-access-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.google-sheets-mcp]
command = "npx"
args = ["-y", "google-sheets-mcp@1.2.1"]
env = { "GOOGLE_ACCESS_TOKEN" = "<GOOGLE_ACCESS_TOKEN>" }

For AI agents

  1. Ask the user for: GOOGLE_ACCESS_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: spreadsheet_get, spreadsheet_create, values_get, values_batch_get, values_update, values_batch_update, values_append, values_clear, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json