# Google Chat MCP
**English** | [Русский](./README.ru.md)
[](https://www.npmjs.com/package/mcp-google-chat)
[](https://glama.ai/mcp/servers/A1-x-Tech/mcp-google-chat)
[](https://github.com/A1-x-Tech/mcp-google-chat/actions/workflows/ci.yml)
[](./LICENSE)
**A1 Google Chat MCP** lets an AI app work in Google Chat in plain language. Find the right space or direct message, catch up on a conversation, reply in a thread, react with an emoji and manage who is in a space.
It uses the Google Chat API with your Google account and acts as the signed-in user: messages send under your name, and only your own messages and reactions can be edited or deleted. It makes the limits of the Chat API explicit instead of implying that every chat task is possible.
- **14 tools.** Discover spaces and direct messages, read and send messages with thread control, manage emoji reactions, read attachment metadata and manage membership.
- **You act as yourself.** Sends appear under your name; edits and deletes stop at your own messages and reactions.
- **A send is never replayed.** After an ambiguous failure the server does not retry a write — a replayed send would be a duplicate message in a real room.
- **Minimal Google scopes.** The server sends whatever token you minted; grant scopes per task — read-only ones are enough for browsing spaces and messages.
Start with a read-only question:
> Show today’s messages in the team space and summarize what was decided.
[Connect the server](#quick-start) · [Explore use cases](#what-you-can-ask-it-to-do) · [Open technical documentation](#technical-documentation)
---
## See it work in a minute
> **You:** What was discussed in the release space today?
>
> **Assistant:** Lists today’s messages with senders and threads. Nothing changes.
>
> **You:** Reply in the deploy thread that the rollout is finished.
>
> **Assistant:** Shows the target space, the thread and the drafted text, then asks for confirmation before sending.
>
> **You:** Confirm.
>
> **Assistant:** Sends the reply under your name in that thread. It does not touch any other message.
## Contents
- [Quick start](#quick-start)
- [What you can ask it to do](#what-you-can-ask-it-to-do)
- [How the server acts in Chat](#how-the-server-acts-in-chat)
- [What can change](#what-can-change)
- [Getting access](#getting-access)
- [Configuration](#configuration)
- [Data, limits and background work](#data-limits-and-background-work)
- [Technical documentation](#technical-documentation)
- [Support](#support)
## Quick start
You need Node.js 20+, a Google account with access to Google Chat and OAuth credentials from a Google Cloud project with the Google Chat API enabled.
1. [Prepare Google OAuth access](#getting-access).
2. Add the server to your AI app.
3. Ask the read-only question above.
Codex
**In the app:** open **Settings → MCP servers**, select **Add server**, choose **STDIO**, enter the command `npx -y mcp-google-chat@latest` and environment variables `GOOGLE_CHAT_CLIENT_ID`, `GOOGLE_CHAT_CLIENT_SECRET`, `GOOGLE_CHAT_REFRESH_TOKEN`, then select **Save** and **Restart**.
**From the command line:**
```bash
codex mcp add google-chat \
--env GOOGLE_CHAT_CLIENT_ID=your_client_id \
--env GOOGLE_CHAT_CLIENT_SECRET=your_client_secret \
--env GOOGLE_CHAT_REFRESH_TOKEN=your_refresh_token \
-- npx -y mcp-google-chat@latest
```
```bash
codex mcp list
```
[Codex MCP documentation](https://learn.chatgpt.com/docs/extend/mcp?surface=cli)
Claude Code
```bash
claude mcp add \
--env GOOGLE_CHAT_CLIENT_ID=your_client_id \
--env GOOGLE_CHAT_CLIENT_SECRET=your_client_secret \
--env GOOGLE_CHAT_REFRESH_TOKEN=your_refresh_token \
--transport stdio --scope user google-chat \
-- npx -y mcp-google-chat@latest
```
```bash
claude mcp list
```
[Claude Code MCP documentation](https://code.claude.com/docs/en/mcp)
Claude Desktop
The current official path is **Settings → Extensions**. For a custom desktop extension, open **Advanced settings → Extension Developer → Install Extension…**, select a `.mcpb` file and follow the prompts.
This repository currently publishes an npm stdio package and does not contain a `.mcpb` bundle. For Claude Desktop builds that still support local configuration, use the following JSON stdio configuration as a fallback:
```json
{
"mcpServers": {
"google-chat": {
"command": "npx",
"args": ["-y", "mcp-google-chat@latest"],
"env": {
"GOOGLE_CHAT_CLIENT_ID": "your_client_id",
"GOOGLE_CHAT_CLIENT_SECRET": "your_client_secret",
"GOOGLE_CHAT_REFRESH_TOKEN": "your_refresh_token"
}
}
}
}
```
In those builds, save it to `~/Library/Application Support/Claude/claude_desktop_config.json` on macOS or `%APPDATA%\Claude\claude_desktop_config.json` on Windows.
[Claude Desktop MCP documentation](https://support.claude.com/en/articles/10949351-getting-started-with-local-mcp-servers-on-claude-desktop)
Cursor
Add this to `~/.cursor/mcp.json` on macOS/Linux or `%USERPROFILE%\.cursor\mcp.json` on Windows:
```json
{
"mcpServers": {
"google-chat": {
"type": "stdio",
"command": "npx",
"args": ["-y", "mcp-google-chat@latest"],
"env": {
"GOOGLE_CHAT_CLIENT_ID": "your_client_id",
"GOOGLE_CHAT_CLIENT_SECRET": "your_client_secret",
"GOOGLE_CHAT_REFRESH_TOKEN": "your_refresh_token"
}
}
}
}
```
[Cursor MCP documentation](https://cursor.com/docs/mcp)
VS Code
Run **MCP: Open User Configuration** and add:
```json
{
"servers": {
"google-chat": {
"type": "stdio",
"command": "npx",
"args": ["-y", "mcp-google-chat@latest"],
"env": {
"GOOGLE_CHAT_CLIENT_ID": "${input:chat_client_id}",
"GOOGLE_CHAT_CLIENT_SECRET": "${input:chat_client_secret}",
"GOOGLE_CHAT_REFRESH_TOKEN": "${input:chat_refresh_token}"
}
}
},
"inputs": [
{ "type": "promptString", "id": "chat_client_id", "description": "Google OAuth client ID" },
{ "type": "promptString", "id": "chat_client_secret", "description": "Google OAuth client secret", "password": true },
{ "type": "promptString", "id": "chat_refresh_token", "description": "Google OAuth refresh token", "password": true }
]
}
```
Check it with **MCP: List Servers**.
[VS Code MCP documentation](https://code.visualstudio.com/docs/agent-customization/mcp-servers)
You made it to the end!