google-messages-mcp
Allows sending, reading, searching, and managing SMS/RCS conversations through Google Messages web interface.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@google-messages-mcpsend a text to Mom saying I'll be home for dinner"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google Messages — App + MCP
Google Messages for web (messages.google.com/web) wrapped as a persistent-session macOS app and an MCP server, so you can text from a desktop window and let Claude send/read/search your messages.
How it works (and the one big caveat)
Google Messages has no official API. The only desktop interface is the phone-paired web client, so everything here drives that web page with Playwright. Practical consequences:
✅ Works for your own account and messages (personal automation).
⚠️ Fragile to UI changes — if Google changes the page HTML, selectors break. They live in one place: the
SELblock insrc/messages.mjs. Use thedebug_snapshottool to see what currently matches, then fix them.⚠️ Your phone is still the SMS/RCS engine; the pairing expires after ~14 days of the phone being offline.
One persistent Chromium profile (in ~/Library/Application Support/google-messages-mcp/profile)
holds your pairing, so you log in once. The same profile is both the app window and the automation target.
The profile can only be opened by one process at a time. When the MCP server is running, its headed window is your app — don't also run
npm run appsimultaneously.
Related MCP server: jons-mcp-imessage
Setup
npm install # installs deps + the Chromium binary (postinstall)First run — pair your phone
npm run appA window opens showing a QR code. On your phone: Google Messages → menu → Device pairing → QR code scanner, scan it, and tick “Remember this computer.” The session now persists.
Use as an MCP server
Point your MCP client at the server. Example Claude Code / Claude Desktop config —
replace /ABSOLUTE/PATH/TO with wherever you cloned this repo (run pwd in the repo root):
{
"mcpServers": {
"google-messages": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/google-messages-app/src/server.mjs"]
}
}
}Note: the app must run with a visible window — the Messages web SPA crashes under headless Chromium, so there is no headless mode.
Tools
Tool | What it does |
| Check if the session is paired; call first if others fail |
| Recent threads (name, snippet, unread) |
| Recent messages in a thread (by name) |
| Send to a contact name or raw phone number |
| Search threads for a query |
| Move a thread to Trash (recoverable) by exact name; refuses on ambiguity |
| Maintenance: dump selector match counts when the UI changes |
Maintenance
When a tool returns empty/odd results, run debug_snapshot. If selector counts are 0, the UI changed —
update the matching entry in the SEL block of src/messages.mjs.
License
GNU AGPL-3.0-or-later. Note the network-use clause: if you run a modified version of this software as a network service, you must make your modified source available to its users.
This server cannot be installed
Maintenance
Latest Blog Posts
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/jaingxyz/google-messages-app'
If you have feedback or need assistance with the MCP directory API, please join our Discord server