Google Chat MCP

v26.11.14
com.renzojohnson/google-chat-mcp Checked 3 days ago Published 22 days ago

Google Chat MCP server: read spaces and messages, send, edit and delete messages, create spaces.

The server speaks MCP over stdio, so you normally let your AI agent start it, as below. Or add it to .mcp.json in your project (or ~/.claude.json for every project): Add the same block to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

Summary extracted from the README.

Google Chat MCP

npm License: MIT

Google Chat MCP server for Claude Code, Cursor, Copilot and five more AI agents. This is the MCP server from the Google Chat MCP VS Code extension, packaged to run with npx in any MCP client.

Requires Node.js 22 or newer.

npx -y @renzo.johnson/google-chat-mcp

The server speaks MCP over stdio, so you normally let your AI agent start it, as below.

Claude Code

claude mcp add google-chat-mcp -- npx -y @renzo.johnson/google-chat-mcp

Or add it to .mcp.json in your project (or ~/.claude.json for every project):

{
  "mcpServers": {
    "google-chat-mcp": {
      "command": "npx",
      "args": ["-y", "@renzo.johnson/google-chat-mcp"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/service-account.json"
      }
    }
  }
}

Cursor

Add the same block to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

{
  "mcpServers": {
    "google-chat-mcp": {
      "command": "npx",
      "args": ["-y", "@renzo.johnson/google-chat-mcp"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/service-account.json"
      }
    }
  }
}

Credentials

The server signs in to Google in this order:

Option Environment Best for
OAuth user GOOGLE_OAUTH_CLIENT_ID, GOOGLE_OAUTH_CLIENT_SECRET, GOOGLE_OAUTH_REFRESH_TOKEN (all three) Personal Google accounts
Service account or saved credentials GOOGLE_APPLICATION_CREDENTIALS = path to a JSON key Servers, Workspace admins
gcloud none: run gcloud auth application-default login once Developers with the Google Cloud CLI

Setting only some of the three OAuth variables stops the server with an error that names the missing ones. Enable the Google Chat API in your Google Cloud project.

The Google Chat API works with Google Workspace accounts, not personal Gmail accounts. Your Google Cloud project also needs a Chat app configured (APIs & Services > Google Chat API > Configuration); a name and avatar are enough for reading.

Available Tools (7)

Tool What It Does Example Prompt
chat_list_spaces Spaces, group chats and DMs you are in "List my Chat spaces"
chat_get_space One space's details "Tell me about the Design space"
chat_list_messages Messages in a space, filterable by time "What was said in Engineering today?"
chat_get_message One message "Open that message"
chat_list_members Who is in a space "Who is in this space?"

Chat Admin (chat_admin)

One tool, called with an action and its params.

Action Needs confirm: true
send_message(space, text, thread_key?) No
update_message(message, text) No
delete_message(message) Yes
create_space(display_name, description?) No

Safety

Actions that delete, remove, replace or publish need confirm: true in their params. Without it the server changes nothing and returns a warning, so your AI agent has to ask you and then call again with confirm: true.

VS Code

Prefer a setup wizard that registers the server with eight agents for you? Install the Google Chat MCP extension instead (also on the VS Code Marketplace). Use one or the other, not both.


By Renzo Johnson