Skip to main content

Roshi's Google Messages MCP — Local-First SMS, MMS & RCS with Friends of the Temple

Roshi's Google Messages MCP

Local-first SMS, MMS & RCS for Google Messages (messages.google.com/web).
Warm lantern light across every text thread: pair, sync, import Android SMS backups, search with FTS5, redact 2FA OTPs under a CLI lock, export MMS photo galleries, automate watch triggers, and send SMS/MMS messages with friends of the temple.

Documentation Site · Temple Friends Workflows · 26 MCP Tools Reference · GitHub Repository

Version 0.2.0 Python 3.10+ MCP 2.x stdio Multi-AI Plugin Cross-platform MIT License


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:
    1. web (Live messages.google.com/web Pairing): 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.
    2. Native Android SMS Backup & Restore XML Importer (import_sms_backup): Stream-parses sms-*.xml backups — decoding <sms> and <mms> (including Base64-encoded MMS images, videos, audio, vCards, and group MMS participants) straight into your searchable SHA-256 vault.
    3. 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_history for edited RCS messages and stamps deleted_remotely_at without ever erasing local copies.
    • Smart phone-number resolution (+15551234567, (555) 123-4567, or contact name) plus ±N search context and inclusive until dates.
  • Tamper-Resistant Privacy Lock + Built-In 2FA otp Redaction:
    • 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!), plus ssn, Luhn-validated credit_card, email, phone, secrets, bank_account, and ipv4.
    • 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, or mms_received -> reply, react, sync, export, webhook, antigravity_task, or command with redacted GMESSAGES_* 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/).

Roshi sending SMS and MMS messages with friends of the temple on the evening veranda


Install in Seconds

Google Antigravity (one command)

agy plugin install RIAEvangelist/roshi-google-messages-mcp

Installs all 26 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-plugin

Works with Every Major AI Client

AI Client / Environment Integration Setup
Google Antigravity (App, CLI, IDE) Native Plugin (MCP + Skill + Rules) agy plugin install RIAEvangelist/roshi-google-messages-mcp
Nous Research Hermes / OpenClaw / goose Standard MCP 2.x stdio + full CLI parity command: "python", args: ["bootstrap_mcp.py"] or roshi-gmessages-cli
Claude Code & Claude Desktop Native Plugin (.claude-plugin/) or uvx claude mcp add roshi-google-messages-mcp -- uvx roshi-google-messages-mcp
OpenAI Codex (CLI & App) Native Plugin (.codex-plugin/) or uvx Add [mcp_servers.roshi-google-messages-mcp] to ~/.codex/config.toml
VS Code / GitHub Copilot / Cursor / Windsurf / Zed .vscode/mcp.json or MCP 2.x stdio server command: "uvx", args: ["roshi-google-messages-mcp"]
Docker / Glama Containerized MCP stdio image docker build -t roshi-google-messages-mcp .
Standalone CLI (No AI required) Cross-host PowerShell / Python CLI .\gmessages-tool.ps1 <cmd> or roshi-gmessages-cli <cmd>

Multi-Account Management & Env Selection

Pair multiple phones/accounts (personal, work, Google Fi, offline XML archives) and address any of them by alias, email, phone label, or custom label (case-insensitive):

  • MCP tools: manage_accounts (and backwards-compatible list_accounts) support action="list", "set_default", "add_label", "remove_label", and "remove", returning labels and is_default on every account.
  • Environment selection: Set ROSHI_ACCOUNT=<alias-or-label> or AGY_ACCOUNT=<alias-or-label> (takes precedence over the saved default when account is omitted; works identically across Hermes, Claude Code, Codex, Antigravity, goose, VS Code, and CLI scripts).
  • CLI parity: roshi-gmessages-cli accounts list | default <account> | label <account> <label> | unlabel <account> <label> | remove <account>.

MCP Tool Surface (26 Tools)

Category Tools
Diagnostics & Multi-Account Pairing messages_doctor, connect_account, list_accounts, manage_accounts
Conversations, Contacts, Search & Digest list_conversations, get_conversation, get_messages, search_messages, get_unread_digest, list_contacts, extract_attachment
Vault Sync, XML/Takeout Import & Export sync_conversations, import_sms_backup, import_takeout, export_conversation, resume_export
Safeguarded SMS/MMS/RCS Send & Actions send_message, manage_reaction, manage_conversation
Lockable Privacy Policy & OTP Redaction get_privacy_policy, manage_ignore_list, manage_redaction_rules, test_redaction
Watch Automation & Scheduled Outbox manage_watch_rules, manage_messages_watcher, manage_scheduled_messages

Standalone CLI Quick Reference

# Diagnostics, pairing & unified multi-account management (works identically via roshi-gmessages-cli)
.\gmessages-tool.ps1 doctor
.\gmessages-tool.ps1 auth login --alias personal --mode web
.\gmessages-tool.ps1 accounts list
.\gmessages-tool.ps1 accounts label personal work
.\gmessages-tool.ps1 accounts default work
.\gmessages-tool.ps1 accounts unlabel personal work
.\gmessages-tool.ps1 accounts remove old_phone
# Or select an account per-shell/per-command with ROSHI_ACCOUNT or AGY_ACCOUNT:
$env:ROSHI_ACCOUNT = "work"; .\gmessages-tool.ps1 conversations

# 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 20

Security & Trust Boundary

  • Zero credential leakage: Browser profiles and session cookies stay private inside ~/.roshi-google-messages-mcp/ (0600 on POSIX) and are never returned in tool outputs.
  • Safeguarded mutations: send_message, manage_reaction, and manage_conversation default to dry_run=True.
  • SMS 2FA / OTP protection & CLI lock: Enable the otp preset and run .\gmessages-tool.ps1 policy lock so 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 -v

License

MIT — see LICENSE.

Roshi & TWiN Local MCP Ecosystem (roshi.messages.local)

  • First-Class Open-Source & Local AI Support: Works out of the box with Hermes, OpenClaw, goose, Cline, Continue, VS Code / GitHub Copilot, Ollama / local open-source stacks, Antigravity, Codex, and Claude Code via standard stdio MCP (bootstrap_mcp.py) with zero vendor lock-in.
  • Canonical Local Hostname: roshi.messages.local (zero-config browser alias: roshi.messages.localhost)
  • Server Manager Preference (roshi-server-manager-mcp): Automatically detects and registers with roshi.servers.local (http://127.0.0.1:8790) whenever installed, and proceeds gracefully standalone if you opt not to install it.
  • Agent Board Preference (roshi-agent-board-mcp): Prefers roshi.board.local (http://127.0.0.1:8785, plus optional Git-backed sync boards) for all inter-task, inter-project, inter-agent, inter-system, and cross-machine/team communication, notifications, handoffs, and resource locks.
  • Preferred Sibling Roshi MCPs: roshi-server-manager-mcp, roshi-speech-mcp, roshi-agent-board-mcp

Multi-Host Install (Hermes · VS Code / GitHub Copilot · OpenClaw · goose · Antigravity · Codex · Claude Code)

  • Nous Research Hermes Agent (config.yaml):
    mcp_servers:
      roshi-google-messages-mcp:
        command: python
        args: ["bootstrap_mcp.py"]
    
  • VS Code / GitHub Copilot (.vscode/mcp.json included in this repo):
    {
      "servers": {
        "roshi-google-messages-mcp": {
          "type": "stdio",
          "command": "python",
          "args": ["bootstrap_mcp.py"]
        }
      }
    }
    
  • Official MCP Registry / GitHub MCP Registry / PyPI: io.github.RIAEvangelist/roshi-google-messages-mcp (pip install roshi-google-messages-mcp)

Metadata

Release files for roshi-google-messages-mcp 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for roshi-google-messages-mcp 0.2.0
File Size Uploaded Provenance Actions
roshi_google_messages_mcp-0.2.0.tar.gz 80.8 kB Without provenance Details for roshi_google_messages_mcp-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for roshi-google-messages-mcp 0.2.0
File Interpreter ABI Platform Actions
roshi_google_messages_mcp-0.2.0-py3-none-any.whl Python 3 none any Details for roshi_google_messages_mcp-0.2.0-py3-none-any.whl

Total release size: 155.5 kB

Release files / roshi_google_messages_mcp-0.2.0.tar.gz

Download URL roshi_google_messages_mcp-0.2.0.tar.gz
Size 80.8 kB
Tags Source
SHA-256 checksum
How to use checksums
161714b9c7926672a25eb48ca715a2cda123260d768037e8878c6fa442a088f4
BLAKE2b-256 checksum
How to use checksums
620f584390e5aefa24a482bd2ce9cebbbf2b2c306aa29b6b685d2a1e5c697ce8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / roshi_google_messages_mcp-0.2.0-py3-none-any.whl

Download URL roshi_google_messages_mcp-0.2.0-py3-none-any.whl
Size 74.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c35db794dbc46c07506a774448f7548a2b0abb0876924104854e7c8e01ef87ec
BLAKE2b-256 checksum
How to use checksums
95a2e1bcf6b620a9986b734634ddde24af205a11a4bb1650786ede39b9e3a6ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for roshi-google-messages-mcp 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page