roshi-google-chat-mcp
Integrates with Google Chat to read, search, sync, export, and manage spaces, threads, messages, members, read state, reactions, and attachments; supports sending messages and Cards v2, webhooks, watch rules, scheduled messages, and privacy redaction.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Roshi Teaching the Sangha: Why Automated Communication Needs Stillness
"When a monastery receives a hundred bells at once, wisdom is not ringing louder—it is knowing which bell to answer, which vow to keep silent, and which record to preserve untouched."
Roshi's Google Chat MCP (roshi-google-chat-mcp) brings the proven local-first architecture of Roshi's Signal MCP and Roshi's Recorder MCP to Google Chat—and expands it into a serene, disciplined Buddha of Automated Communication across both personal @gmail.com and Google Workspace accounts:
Three Ways to Connect (Zero Friction to Enterprise):
oauth(Official Google Chat REST API v1): Full Workspace access—spaces, DMs, threads, members, reactions, binary media upload/download, interactive Cards v2, and read state—with automatic PKCE OAuth 2.0 refresh.web(Zero-GCP Persistent Chrome/Edge Session): Works on personal@gmail.comAND Workspace accounts with zero Google Cloud Console setup, using an isolated browser profile at~/.roshi-google-chat-mcp/accounts/<alias>/browser_profile.service_account& Incoming Webhooks: Chat App / Workspace delegated service accounts (RS256 JWT) plus a private named registry of Incoming Webhooks for zero-OAuth space announcements and alerts.
SHA-256 SQLite FTS5 Vault + Non-Destructive Edit & Delete Shield:
Syncs spaces, threads, members, and SHA-256 hashed attachments into
~/RoshiGoogleChat/vault.db(plus full Google Takeout import!).If a message is edited or deleted remotely in Google Chat, the vault never destroys the original—it preserves
original_text, appendsedit_history, stampsdeleted_remotely_at, and can fire a watch alert.
Tamper-Resistant Privacy Policy & Anti-Oracle Search:
Strict ignore lists (
accounts,spaces,threads,senders,keywords,regexes) and Luhn-validated PII/secret redaction (ssn,credit_card,email,phone,secrets,bank_account,ipv4, custom terms/regexes) locked via CLI (.\gchat-tool.ps1 policy lock).Search queries are re-verified post-redaction so searching for a redacted secret can never act as an oracle.
Declarative Sangha Automation + Scheduled Outbox:
Watch for
message_added,message_edited,message_deleted, ormention_received-> automaticallyreplyin-thread,reactwith emoji,sync,export, forward to awebhook, launch anantigravity_task, or run anycommand(such as Codex) with redactedGCHAT_*env vars.Queue future/delayed messages in a local Scheduled Outbox, send rich Interactive Cards v2, and read a calm cross-account Unread &
@mentionsDigest in one call.
Related MCP server: google-chat-mcp
Install in Seconds
Google Antigravity (one command)
agy plugin install RIAEvangelist/roshi-google-chat-mcpInstalls all 31 MCP tools, the roshi-google-chat-mcp skill, and bundled safety rules, bootstrapping an isolated Python environment automatically on first launch via bootstrap_mcp.py.
Windows / macOS / Linux (local clone)
# Windows (PowerShell)
git clone https://github.com/RIAEvangelist/roshi-google-chat-mcp.git
cd roshi-google-chat-mcp
.\setup.ps1 -InstallPlugin# macOS / Linux
git clone https://github.com/RIAEvangelist/roshi-google-chat-mcp.git
cd roshi-google-chat-mcp
./setup.sh --install-pluginWorks with Every Major AI Client
AI Client / Environment | Integration | Setup |
Google Antigravity (App, CLI, IDE) | Native Plugin (MCP + Skill + Rules) |
|
Claude Code & Claude Desktop | Native Plugin ( |
|
OpenAI Codex (CLI & App) | Native Plugin ( | Add |
Cursor / Windsurf / Zed / Gemini CLI | Standard MCP 2.x stdio server |
|
Docker / Glama | Containerized MCP stdio image |
|
Standalone CLI (No AI required) | PowerShell / Python CLI |
|
MCP Tool Surface (31 Tools)
Category | Tools |
Diagnostics, Auth & Webhooks |
|
Spaces, Members & Read State |
|
Read, Thread, Search & Digest |
|
Vault Sync, Takeout & Export |
|
Send, Cards v2, Edit & React |
|
Lockable Privacy Policy |
|
Watch Triggers & Outbox |
|
Standalone CLI Quick Reference
# Diagnostics & connect accounts
.\gchat-tool.ps1 doctor
.\gchat-tool.ps1 auth login --alias personal --mode web
.\gchat-tool.ps1 auth setup-oauth --enable-gcloud --open-console
.\gchat-tool.ps1 auth setup-oauth --from-downloads --connect --alias work
# Sync, search with ±2 context, digest, and export
.\gchat-tool.ps1 sync --all
.\gchat-tool.ps1 import-takeout "C:\Takeout\Google Chat" --account archive
.\gchat-tool.ps1 search "release checklist" --since 2026-06-01 --until 2026-06-30 --context 2
.\gchat-tool.ps1 digest --since 24h
.\gchat-tool.ps1 export "Engineering" --output "$HOME\GoogleChatExports\Engineering"
.\gchat-tool.ps1 resume-export "$HOME\GoogleChatExports\Engineering" --expand-until-to-now
# Safeguarded sends, webhooks, privacy lock & watcher daemon
.\gchat-tool.ps1 send "Engineering" "Calm waters ahead." --dry-run
.\gchat-tool.ps1 webhook add ops "https://chat.googleapis.com/v1/spaces/.../messages?key=...&token=..."
.\gchat-tool.ps1 policy ignore-add spaces "Attorney*"
.\gchat-tool.ps1 policy preset-on ssn
.\gchat-tool.ps1 policy lock
.\gchat-tool.ps1 watch daemon --interval 15Security & Trust Boundary
Zero credential leakage: OAuth tokens, service-account keys, browser cookies, and Incoming Webhook tokens stay private inside
~/.roshi-google-chat-mcp/(0600on POSIX) and are never returned in tool outputs.Safeguarded mutations:
send_message,send_card_message,send_webhook_message,create_space, andmanage_messagedefault todry_run=True.Tamper-resistant CLI lock:
.\gchat-tool.ps1 policy lockprevents AI agents from removing ignore entries or weakening redaction presets until unlocked from your terminal.Non-destructive chain-of-custody: Local vaults (
~/RoshiGoogleChat/) and exports (~/GoogleChatExports/) live outside repositories and never erase prior versions when messages are edited or deleted remotely.
Verification
python -m unittest discover -s tests -vLicense
MIT — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Gmail, Outlook, Drive, OneDrive and calendars for AI agents. Many accounts, one endpoint, audit log.
Email, calendar and contacts for AI agents: Gmail, Microsoft 365 and IMAP accounts behind one API.
Chat where AI agents are first-class members, with their own identity and permissions.
Chat rooms and instant messaging for your AIs across platforms, with you in the loop.
Related MCP Servers
- -licenseNot gradedqualityDmaintenanceEnables AI assistants to read and send messages in Google Chat spaces using service account authentication.-
- AlicenseNot gradedqualityDmaintenanceEnables reading and searching Google Chat spaces, messages, threads, and members, with optional message sending.MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to work in Google Chat through natural language: find spaces and direct messages, read and send messages, manage threads, reactions, attachments, and memberships while acting as the signed-in user.2096 npmMIT
- AlicenseNot gradedqualityCmaintenanceTurns Google Workspace into 45 MCP tools spanning Gmail, Drive, Calendar, Docs, Sheets, Slides, Chat, Tasks and Contacts, with server-side OAuth and a single bearer token so any AI client can read, send, create, and manage workspace content without a browser or Google SDK.MIT