Google Workspace (gsuite-sdk)

v0.15.0
io.github.PabloAlaniz/gsuite-sdk Checked 2 days ago Published 10 days ago

Gmail, Calendar, Drive, Sheets, Tasks and Contacts for agents, with your own Google login

Values you need

VariableWhat it is
GSUITE_TOKEN_DB_PATHrequired Absolute path to the tokens.db written by `gsuite auth login`
GSUITE_CREDENTIALS_FILEoptional Absolute path to the Google OAuth client JSON (needed to refresh the login)
GSUITE_DEFAULT_TIMEZONEoptional Time zone for dates without an offset, e.g. America/Argentina/Buenos_Aires Default: UTC

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add gsuite-sdk -e 'GSUITE_TOKEN_DB_PATH=<GSUITE_TOKEN_DB_PATH>' -- uvx gsuite-mcp==0.15.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "gsuite-sdk": {
      "args": [
        "gsuite-mcp==0.15.0"
      ],
      "command": "uvx",
      "env": {
        "GSUITE_TOKEN_DB_PATH": "<GSUITE_TOKEN_DB_PATH>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "gsuite-sdk": {
      "args": [
        "gsuite-mcp==0.15.0"
      ],
      "command": "uvx",
      "env": {
        "GSUITE_TOKEN_DB_PATH": "<GSUITE_TOKEN_DB_PATH>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "GSUITE_TOKEN_DB_PATH",
      "id": "gsuite-token-db-path",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "gsuite-sdk": {
      "args": [
        "gsuite-mcp==0.15.0"
      ],
      "command": "uvx",
      "env": {
        "GSUITE_TOKEN_DB_PATH": "${input:gsuite-token-db-path}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.gsuite-sdk]
command = "uvx"
args = ["gsuite-mcp==0.15.0"]
env = { "GSUITE_TOKEN_DB_PATH" = "<GSUITE_TOKEN_DB_PATH>" }

For AI agents

  1. Ask the user for: GSUITE_TOKEN_DB_PATH. 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: auth_status, gmail_search, gmail_read, gmail_send, gmail_reply, gmail_create_draft, gmail_read_thread, gmail_list_labels, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json