google-chat-mcp
google-chat-mcp
MCP-сервер для Google Chat. Позволяет Claude (Code / Desktop) или любому MCP-клиенту просматривать ваши пространства, читать и искать сообщения, получать ветки и участников, а также — по желанию — отправлять сообщения от вашего имени.
По умолчанию доступен только для чтения. Работает локально через stdio. Refresh-токен хранится с правами 0600 в ~/.google-chat-mcp/.
Инструменты
Инструмент | Входные данные | Примечания |
|
| Отсортировано по последней активности. У личных сообщений нет имени, если не указан |
|
| Сначала новые. |
|
| Сканирование на стороне клиента; Chat API не имеет полнотекстового поиска. Окно по умолчанию 14 дней, ≤500 сообщений на пространство. |
|
| Все ответы, сначала старые. |
|
| Пользователи и роли, имена/электронные письма через People API. |
|
| Регистрируется только при |
Имена отправителей берутся из каталога People API (directory.readonly). Если этот API отключен или пользователь внешний, вы получите users/<id> вместо этого — всё остальное продолжает работать.
Related MCP server: Google Chat MCP Server
Настройка
Требуется учетная запись Google Workspace. Аккаунты потребителей @gmail.com не могут вызывать Chat API (403).
1. Проект Google Cloud (однократно, ~10 мин)
console.cloud.google.com → создайте/выберите проект.
APIs & Services → Library → включите Google Chat API и People API.
Вкладка Google Chat API → Configuration → заполните Имя приложения, URL аватара, Описание; интерактивные функции выключены; видимость для вашего домена. Сохраните.
Загвоздка: Chat API отклоняет все OAuth-вызовы с
403, пока эта форма не сохранена, даже для read-only авторизации пользователя.Экран согласия OAuth → Внутренний → добавьте области доступа:
https://www.googleapis.com/auth/chat.spaces.readonlyhttps://www.googleapis.com/auth/chat.messages.readonlyhttps://www.googleapis.com/auth/chat.memberships.readonlyhttps://www.googleapis.com/auth/directory.readonlyhttps://www.googleapis.com/auth/chat.messages.create(только если нуженsend_message)
Credentials → Create credentials → OAuth client ID → Desktop app → скачайте JSON. Не храните его ни в одном репозитории.
2. Вход
export GOOGLE_CHAT_CLIENT_SECRET_PATH=/path/to/client_secret.json
npx google-chat-mcp login # browser opens → sign in with your Workspace account
npx google-chat-mcp whoami # sanity check3. Регистрация в Claude Code
claude mcp add google-chat \
-e GOOGLE_CHAT_CLIENT_SECRET_PATH=/path/to/client_secret.json \
-- npx -y google-chat-mcpClaude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"google-chat": {
"command": "npx",
"args": ["-y", "google-chat-mcp"],
"env": { "GOOGLE_CHAT_CLIENT_SECRET_PATH": "/path/to/client_secret.json" }
}
}
}Окружение
Переменная | По умолчанию | Назначение |
| — | JSON десктопного OAuth-клиента. На macOS используется резервный элемент Keychain |
|
| Кэш refresh-токена. |
|
|
|
Примечания по квотам
Chat API: ~60 запросов/мин/пользователь. Списки пространств и участников кэшируются на 5 минут в процессе; разрешенные имена пользователей кэшируются на диске в ~/.google-chat-mcp/users.json. search_messages — самый затратный — ограничьте его с помощью spaces и since.
Разработка
pnpm install
pnpm dev login
pnpm typecheck && pnpm lint && pnpm buildNode ≥ 22. TypeScript strict, ESM, сборка tsup.
Лицензия
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityCmaintenanceProvides MCP (Model Control Protocol) tools for accessing and interacting with Google Chat spaces and messages through OAuth2 authentication.523MIT
- AlicenseAqualityAmaintenanceEnables interaction with Google Chat via MCP using the internal Dynamite API, allowing listing spaces, reading and sending messages, and managing DMs. No Google Cloud Console setup required.13MIT
- AlicenseNot gradedqualityDmaintenanceConnects Claude to Google Chat for searching messages, spaces, and DMs, automatically resolving user IDs to real display names.MIT
- AlicenseNot gradedqualityCmaintenanceEnables interaction with Google Chat through MCP, allowing listing spaces and messages, searching messages, and sending messages. Supports local and remote transports.52Apache 2.0
Related MCP Connectors
Manage Gmail messages, threads, labels, drafts, and settings from your workflows. Send and organiz…
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
Schedule and manage Google Calendar events directly from your workspace. Check availability, view…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jawaidgadiwala/google-chat-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server