roshi-google-messages-mcp
Imports Android SMS Backup & Restore XML archives and can sync SMS read-only from Android devices over USB or wireless ADB.
Supports Google Account pairing, Google Fi Sync, and importing Google Takeout archives.
Integrates with messages.google.com/web to pair accounts, sync SMS/MMS/RCS conversations, search messages, send texts and media, manage reactions, and export conversation galleries.
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.
Sending SMS & MMS with Friends of the Temple
"A short text from the veranda — a photo of evening tea, a reminder for morning sitting — carries the warmth of the temple across any valley, and deserves a local archive you actually own."
Roshi's Google Messages MCP (roshi-google-messages-mcp) completes the Roshi local-first messaging suite alongside Roshi's Signal MCP and Roshi's Google Chat MCP — bringing full local search, archival, privacy lock, and safeguarded automation to SMS, MMS, and RCS via messages.google.com/web:
Flexible Local-First Connection & Import Paths:
web(Livemessages.google.com/webPairing): Launches an isolated Chrome/Edge profile at~/.roshi-google-messages-mcp/accounts/<alias>/browser_profile. Works with Google Account pairing (emoji tap on Android), QR Code device pairing, and Google Fi Sync (mode="fi"), automatically clicking"Use here"if another tab previously held the lock.Native Android SMS Backup & Restore XML Importer (
import_sms_backup): Stream-parsessms-*.xmlbackups — decoding<sms>and<mms>(including Base64-encoded MMS images, videos, audio, vCards, and group MMS participants) straight into your searchable SHA-256 vault.Takeout / JSON / CSV Importer + Optional Read-Only ADB Sync: Ingest Google Takeout/JSON/CSV archives or pull SMS read-only over USB/wireless
adb.
SHA-256 SQLite FTS5 Vault + Non-Destructive Edit & Delete Shield:
Stores conversations, contacts, SMS/MMS/RCS messages, reactions, and SHA-256 hashed MMS media in
~/RoshiGoogleMessages/vault.db.Preserves
original_text+edit_historyfor edited RCS messages and stampsdeleted_remotely_atwithout ever erasing local copies.Smart phone-number resolution (
+15551234567,(555) 123-4567, or contact name) plus±Nsearch context and inclusiveuntildates.
Tamper-Resistant Privacy Lock + Built-In 2FA
otpRedaction:Ignore lists (
accounts,conversations,contacts,keywords,regexes) with phone-number-aware matching.Redaction presets including
otp(automatically masks SMS login/2FA verification codes so AI agents never read your security codes!), plusssn, Luhn-validatedcredit_card,email,phone,secrets,bank_account, andipv4.Anti-oracle search re-verifies every query post-redaction; lock it from your terminal with
.\gmessages-tool.ps1 policy lock.
Declarative Watch Triggers, Scheduled SMS/MMS Outbox & Resumable Galleries:
Watch for
message_added,message_edited,message_deleted, ormms_received->reply,react,sync,export,webhook,antigravity_task, orcommandwith redactedGMESSAGES_*env vars.Queue future SMS/MMS texts (with photo attachments) in a local scheduled outbox and export crash-safe JSON, Markdown, and searchable HTML galleries (
~/GoogleMessagesExports/).
Related MCP server: openmessage
Install in Seconds
Google Antigravity (one command)
agy plugin install RIAEvangelist/roshi-google-messages-mcpInstalls all 25 MCP tools, the roshi-google-messages-mcp skill, and bundled safety rules, bootstrapping an isolated Python environment automatically via bootstrap_mcp.py.
Windows / macOS / Linux (local clone)
# Windows (PowerShell)
git clone https://github.com/RIAEvangelist/roshi-google-messages-mcp.git
cd roshi-google-messages-mcp
.\setup.ps1 -InstallPlugin# macOS / Linux
git clone https://github.com/RIAEvangelist/roshi-google-messages-mcp.git
cd roshi-google-messages-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 (25 Tools)
Category | Tools |
Diagnostics & Multi-Account Pairing |
|
Conversations, Contacts, Search & Digest |
|
Vault Sync, XML/Takeout Import & Export |
|
Safeguarded SMS/MMS/RCS Send & Actions |
|
Lockable Privacy Policy & OTP Redaction |
|
Watch Automation & Scheduled Outbox |
|
Standalone CLI Quick Reference
# Diagnostics & pair with messages.google.com/web
.\gmessages-tool.ps1 doctor
.\gmessages-tool.ps1 auth login --alias personal --mode web
# Sync, import Android SMS Backup XML, search with ±2 context, and export HTML gallery
.\gmessages-tool.ps1 sync --all
.\gmessages-tool.ps1 import-sms-backup "C:\Backups\sms-2026.xml" --account phone_archive
.\gmessages-tool.ps1 search "evening tea" --protocol MMS --context 2
.\gmessages-tool.ps1 digest --since 24h
.\gmessages-tool.ps1 export "Brother Kenji" --output "$HOME\GoogleMessagesExports\Brother_Kenji"
.\gmessages-tool.ps1 resume-export "$HOME\GoogleMessagesExports\Brother_Kenji" --expand-until-to-now
# Safeguarded SMS/MMS send, 2FA OTP redaction lock & watcher daemon
.\gmessages-tool.ps1 send "+15552345678" "Tea on the veranda at 7!" --attach "C:\Photos\tea.jpg"
.\gmessages-tool.ps1 policy preset-on otp
.\gmessages-tool.ps1 policy ignore-add contacts "+15559990000"
.\gmessages-tool.ps1 policy lock
.\gmessages-tool.ps1 watch daemon --interval 20Security & Trust Boundary
Zero credential leakage: Browser profiles and session cookies stay private inside
~/.roshi-google-messages-mcp/(0600on POSIX) and are never returned in tool outputs.Safeguarded mutations:
send_message,manage_reaction, andmanage_conversationdefault todry_run=True.SMS 2FA / OTP protection & CLI lock: Enable the
otppreset and run.\gmessages-tool.ps1 policy lockso AI agents can never read one-time login codes or weaken privacy rules.Non-destructive chain-of-custody: Local vaults (
~/RoshiGoogleMessages/) and exports (~/GoogleMessagesExports/) live outside repositories and preserve edited and remotely deleted messages untouched.
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
Read SMS and verification codes from your own phone, and set up SMS forwarding, via OAuth.
Send and receive iMessage, SMS, RCS, and WhatsApp, and manage contacts, chats, and numbers.
SMS verification codes from your own Android phone. Outbound SMS needs a tap on the phone.
Explore your Messages SQLite database to browse tables and inspect schemas with ease. Run flexible…
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables sending, reading, searching, and managing SMS/RCS messages through Google Messages web interface, requiring a persistent browser session paired with a phone.AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceMCP server for a local-first messaging workspace that integrates Google Messages, WhatsApp, and Signal. It enables reading, sending, searching messages, and managing conversations through MCP tools.75-
- AlicenseAqualityBmaintenanceEnables AI agents on macOS to securely read and search the local Messages database, catch up on missed messages via a persistent inbox, and send texts or files to allowlisted chats, with optional voice note transcription and text-to-speech.1024 npmMIT
- AlicenseAqualityDmaintenanceEnables an agent to read the user's local Messages.app database on macOS, listing chats and threads and searching iMessage/SMS history entirely on localhost, with optional AppleScript sending gated behind an explicit flag. Access is read-only and scoped-shut by default, and replies can be optionally sent when send mode is enabled.4MIT