Google Chat MCP

v1.1.2
io.github.A1-x-Tech/mcp-google-chat Checked 4 hours ago Published 26 days ago

MCP server for the Google Chat API: spaces, messages, threads, reactions and memberships.

Values you need

VariableWhat it is
GOOGLE_CHAT_CLIENT_IDoptional Google OAuth2 client id (refresh-token flow).
GOOGLE_CHAT_CLIENT_SECREToptional secret Google OAuth2 client secret (refresh-token flow). Treat it as a secret.
GOOGLE_CHAT_REFRESH_TOKENoptional secret Google OAuth2 refresh token, exchanged for access tokens automatically. Treat it as a secret.
GOOGLE_CHAT_ACCESS_TOKENoptional secret Static OAuth2 access token (~1h lifetime) — alternative to the refresh-token trio, e.g. a service-account (Chat app) token or for testing.
GOOGLE_CHAT_OAUTH_PORToptional 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_CHAT_API_BASEoptional API root override. Default: https://chat.googleapis.com
GOOGLE_CHAT_TIMEOUT_MSoptional Per-request timeout in milliseconds. Default: 60000
GOOGLE_CHAT_MAX_RETRIESoptional Retries on transient errors (429 always; 5xx/network for reads). Default: 3

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-google-chat -- npx -y mcp-google-chat@1.1.2
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-google-chat": {
      "args": [
        "-y",
        "mcp-google-chat@1.1.2"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-google-chat": {
      "args": [
        "-y",
        "mcp-google-chat@1.1.2"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mcp-google-chat": {
      "args": [
        "-y",
        "mcp-google-chat@1.1.2"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-google-chat]
command = "npx"
args = ["-y", "mcp-google-chat@1.1.2"]

For AI agents

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: auth_status, setup_instructions, set_client, start_login, finish_login, logout, list_spaces, get_space, ….
  4. 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