M

MCP Google Multi

by bakissation · io.github.bakissation/mcp-google-multi

Gives MCP clients access to Google Workspace (Gmail, Drive, Calendar, Sheets, Docs, etc.) across multiple Google accounts simultaneously.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-bakissation-mcp-google-multi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-multi"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<VALUE>",
        "GOOGLE_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_ACCOUNTS": "<VALUE>",
        "MASTER_KEY": "<YOUR_VALUE>",
        "GOOGLE_PROFILE": "read-only",
        "GOOGLE_READ_ONLY": "<VALUE>",
        "TOKEN_STORE_PATH": "<VALUE>",
        "GOOGLE_WRITE_DENY": "<VALUE>",
        "GOOGLE_WRITE_ALLOW": "<VALUE>",
        "GOOGLE_ADMIN_ACCOUNTS": "<VALUE>",
        "GOOGLE_OPTIONAL_SCOPES": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-bakissation-mcp-google-multi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-multi"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<VALUE>",
        "GOOGLE_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_ACCOUNTS": "<VALUE>",
        "MASTER_KEY": "<YOUR_VALUE>",
        "GOOGLE_PROFILE": "read-only",
        "GOOGLE_READ_ONLY": "<VALUE>",
        "TOKEN_STORE_PATH": "<VALUE>",
        "GOOGLE_WRITE_DENY": "<VALUE>",
        "GOOGLE_WRITE_ALLOW": "<VALUE>",
        "GOOGLE_ADMIN_ACCOUNTS": "<VALUE>",
        "GOOGLE_OPTIONAL_SCOPES": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-bakissation-mcp-google-multi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-multi"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<VALUE>",
        "GOOGLE_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_ACCOUNTS": "<VALUE>",
        "MASTER_KEY": "<YOUR_VALUE>",
        "GOOGLE_PROFILE": "read-only",
        "GOOGLE_READ_ONLY": "<VALUE>",
        "TOKEN_STORE_PATH": "<VALUE>",
        "GOOGLE_WRITE_DENY": "<VALUE>",
        "GOOGLE_WRITE_ALLOW": "<VALUE>",
        "GOOGLE_ADMIN_ACCOUNTS": "<VALUE>",
        "GOOGLE_OPTIONAL_SCOPES": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-bakissation-mcp-google-multi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-multi"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<VALUE>",
        "GOOGLE_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_ACCOUNTS": "<VALUE>",
        "MASTER_KEY": "<YOUR_VALUE>",
        "GOOGLE_PROFILE": "read-only",
        "GOOGLE_READ_ONLY": "<VALUE>",
        "TOKEN_STORE_PATH": "<VALUE>",
        "GOOGLE_WRITE_DENY": "<VALUE>",
        "GOOGLE_WRITE_ALLOW": "<VALUE>",
        "GOOGLE_ADMIN_ACCOUNTS": "<VALUE>",
        "GOOGLE_OPTIONAL_SCOPES": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-bakissation-mcp-google-multi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-multi"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<VALUE>",
        "GOOGLE_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_ACCOUNTS": "<VALUE>",
        "MASTER_KEY": "<YOUR_VALUE>",
        "GOOGLE_PROFILE": "read-only",
        "GOOGLE_READ_ONLY": "<VALUE>",
        "TOKEN_STORE_PATH": "<VALUE>",
        "GOOGLE_WRITE_DENY": "<VALUE>",
        "GOOGLE_WRITE_ALLOW": "<VALUE>",
        "GOOGLE_ADMIN_ACCOUNTS": "<VALUE>",
        "GOOGLE_OPTIONAL_SCOPES": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-bakissation-mcp-google-multi": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-multi"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<VALUE>",
        "GOOGLE_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_ACCOUNTS": "<VALUE>",
        "MASTER_KEY": "<YOUR_VALUE>",
        "GOOGLE_PROFILE": "read-only",
        "GOOGLE_READ_ONLY": "<VALUE>",
        "TOKEN_STORE_PATH": "<VALUE>",
        "GOOGLE_WRITE_DENY": "<VALUE>",
        "GOOGLE_WRITE_ALLOW": "<VALUE>",
        "GOOGLE_ADMIN_ACCOUNTS": "<VALUE>",
        "GOOGLE_OPTIONAL_SCOPES": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
GOOGLE_CLIENT_ID Yes OAuth Desktop client ID from Google Cloud
GOOGLE_CLIENT_SECRET secret Yes OAuth Desktop client secret from Google Cloud
GOOGLE_ACCOUNTS Yes Comma-separated alias:email pairs, e.g. work:you@co.com,personal:you@gmail.com
MASTER_KEY secret Yes Base64-encoded 32-byte key to encrypt token store (e.g. openssl rand -base64 32)
GOOGLE_PROFILE No Write policy: read-only (default), safe-writes, or full-writes Default: read-only
GOOGLE_READ_ONLY No Set to 'true' to hard-disable all writes
TOKEN_STORE_PATH No Override path for encrypted token directory (default: ~/.config/mcp-google-multi/tokens)
GOOGLE_WRITE_DENY No Glob overrides to deny specific write tools, e.g. '*:delete*'
GOOGLE_WRITE_ALLOW No Glob overrides to allow specific write tools, e.g. 'calendar:*, sheets:update*'
GOOGLE_ADMIN_ACCOUNTS No Aliases granted Workspace admin scopes
GOOGLE_OPTIONAL_SCOPES No Extra scope bundles: 'forms', 'chat', or comma-separated

Similar servers