google-chat-mcp
Connects Claude to Google Chat for searching messages, spaces, and DMs, automatically resolving user IDs to real display names.
README
google-chat-mcp
An MCP (Model Context Protocol) server that connects Claude to your Google Chat workspace — search spaces, DMs, and full message history. All sender and member names are automatically resolved to real display names via the Google People/Directory API.
Each user authenticates with their own Google account. No shared credentials files, no admin access required.
What you can do with it
- Search your full message history across all spaces and DMs
- Ask Claude questions like "what did the team decide about X?", "find the doc Sarah shared in the eng channel", "what were we discussing last week about the API?"
- Browse spaces, read recent messages, see who's in a given space — with real names, not user IDs
- Ask "who have I spoken to in the last 3 days?" and get a named list
- Works with Cursor, Claude Code, Claude Desktop, and Cowork
Setup
Quick install (one command)
git clone https://github.com/ROKT/google-chat-mcp-yash.git && cd google-chat-mcp-yash && pipx install -e . && google-chat-mcp setup --client-id YOUR_CLIENT_ID --client-secret YOUR_CLIENT_SECRET
Replace YOUR_CLIENT_ID and YOUR_CLIENT_SECRET with the values from 1Password or a teammate.
Don't have pipx? Run
brew install pipxfirst.
What setup does
- Saves your credentials locally to
~/.config/google-chat-mcp/env.json - Automatically configures
~/.cursor/mcp.json - Opens a browser for Google OAuth — sign in with your Rokt account
That's it. Reload Cursor (Cmd+Shift+P → Developer: Reload Window) and start chatting.
Interactive setup (if you prefer)
google-chat-mcp setup
# Prompts for Client ID and Client Secret interactively
Usage
Once connected, just ask Claude naturally:
| What you want | What to ask |
|---|---|
| Search history | "Search my Google Chat for any messages about the Q4 budget" |
| Find a decision | "What did we decide about the API versioning policy?" |
| Find a doc that was shared | "Did anyone share a link to the new design doc in the product channel?" |
| Recent activity | "What was discussed in the engineering space last week?" |
| Who's in a space | "Who's in the #data-platform space?" |
| Browse spaces | "Show me all my Google Chat spaces" |
| Recent conversations | "Who have I spoken to in the last 3 days?" |
| Send a message | "Send 'heading out for lunch' to my DM with Caroline" |
Available MCP tools
Read
| Tool | Description |
|---|---|
gchat_list_spaces |
List all spaces, group chats, and DMs |
gchat_search_messages |
Search messages across all or specific spaces |
gchat_get_space_messages |
Get recent messages from one space |
gchat_get_space_members |
List members of a space (with real display names) |
gchat_get_space |
Get details of a specific space |
gchat_get_message |
Get a single message by resource name |
gchat_get_member |
Get details of a specific member |
Write
| Tool | Description |
|---|---|
gchat_send_message |
Send a text message to a space or DM |
gchat_delete_message |
Delete a message |
All tools return real display names for senders and members — no raw user IDs.
Other MCP clients
The setup command auto-configures Cursor. For other clients, add manually:
Claude Code
Add to ~/.claude/settings.json:
{
"mcpServers": {
"google-chat": {
"command": "google-chat-mcp",
"args": ["serve"]
}
}
}
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"google-chat": {
"command": "google-chat-mcp",
"args": ["serve"]
}
}
}
For Claude Code and Claude Desktop, the
servecommand automatically loads saved credentials from~/.config/google-chat-mcp/env.json— noenvblock needed.
Cowork
Copy skill/SKILL.md to your Cowork skills folder.
Commands
google-chat-mcp setup # One-time setup (saves creds, configures Cursor, authenticates)
google-chat-mcp auth # Re-authenticate with Google
google-chat-mcp serve # Start MCP server (called automatically by MCP clients)
google-chat-mcp logout # Revoke cached token
OAuth Scopes
| Scope | Purpose |
|---|---|
chat.spaces.readonly |
List spaces and DMs |
chat.messages.readonly |
Read message history |
chat.messages.create |
Send new messages |
chat.messages |
Delete messages |
chat.memberships.readonly |
Read space membership |
directory.readonly |
Resolve user IDs → real names via Google People API |
Troubleshooting
No credentials found — Run google-chat-mcp setup to save your credentials.
Connection closed in Cursor — Run which google-chat-mcp and check the path matches what's in ~/.cursor/mcp.json. Re-run google-chat-mcp setup to fix.
Error 403 — Your Google Workspace may restrict Chat or People API access. Ask your admin.
Token expired — Run google-chat-mcp auth to refresh.
Force re-authentication — google-chat-mcp logout && google-chat-mcp auth
Privacy & security
- All authentication is handled by Google OAuth 2.0 — your password is never stored
- Read and write scopes are requested — Claude can search messages and send on your behalf (always with your confirmation)
- Your token is stored locally at
~/.config/google-chat-mcp/token.json - OAuth client credentials are stored locally at
~/.config/google-chat-mcp/env.json - Nothing is sent to any third-party server — the MCP server runs entirely on your machine
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。