Google Messages MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GMSG_BROWSER | No | Browser to use: chromium (Playwright build), chrome (installed Google Chrome) or msedge. Profile is tied to the browser; switching means re-pairing. Try chrome if Google refuses sign-in in the Chromium build. | chromium |
| GMSG_HEADLESS | No | 0 = run normal operations in a visible window. | 1 |
| GMSG_PROFILE_DIR | No | Persistent browser profile directory. Changing it means re-pairing. | ~/.google-messages-mcp/profile (%USERPROFILE%\.google-messages-mcp\profile on Windows) |
| GMSG_BROWSER_PATH | No | Explicit browser .exe for the manual sign-in window. | auto |
| GMSG_SIGNIN_WATCH | No | Sign-in window gets --remote-debugging-port=0 so the server can see when pairing finishes and close it. 0 = no port; close the window yourself. | 1 |
| GMSG_AUTO_USE_HERE | No | Auto-click "Use here" on the "open in another tab" dialog. 0 = return SESSION_IN_USE instead. | 1 |
| GMSG_NAV_TIMEOUT_MS | No | Navigation timeout in milliseconds. | 45000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| gmsg_statusA | Browser up?, paired?, page URL, last error. check=true launches the browser (headless) if needed to determine pairing; default only reports current state without launching. |
| gmsg_pairA | Pair this server's browser profile with the phone (needs the user). method "auto" (default): opens a VISIBLE browser on the pairing page; if Google offers a QR code it turns on "Remember this computer", saves the QR to ~/.google-messages-mcp/qr.png and returns it as an image (scan: Messages app > profile picture > Device pairing > QR code scanner). If no QR is offered (current Google behaviour: Google-account sign-in only), it opens a plain non-automated browser window on the same profile for the user to sign in by hand and approve on the phone; the server detects completion and closes it. Waits up to wait_seconds (default 120); wait_seconds=0 returns right away (then call gmsg_pair again to keep waiting, or gmsg_status check=true). Relay the returned instructions to the user. |
| gmsg_list_conversationsB | List recent conversations: name, snippet, timestamp text, unread flag, conversation_id. |
| gmsg_read_conversationA | Read messages from one conversation (by conversation_id or name). Returns direction (incoming/outgoing), text, timestamp, aria label, status. Scrolls up to load older messages up to limit. |
| gmsg_searchA | Find conversations whose name, snippet or number contains the query (scans the loaded conversation list, scrolling to load up to |
| gmsg_send_messageA | Two-step send. Call 1 (no confirm_token): resolves the recipient and returns a preview plus a confirm_token valid 5 minutes, bound to the exact recipient and text; NOTHING is sent. Show the preview to the user. Call 2 with the same recipient fields, identical text and confirm_token: actually sends, then verifies the outgoing bubble and reports status. Recipient: exactly one of conversation_id, name, phone_number (new numbers go through Start chat). |
| gmsg_archive_conversationsA | Two-step archive. Call 1 (no confirm_token): resolves targets (conversation_ids, or all_in_inbox=true which scrolls the whole inbox) and returns {count, targets:[{conversation_id,name}]} plus a confirm_token valid 5 minutes, single use, bound to the sorted id list; NOTHING is archived. Call 2 with the same selector (same conversation_ids, or all_in_inbox=true) and the token: archives each conversation one by one via its item menu and returns {archived:[ids], failed:[{id,reason}]}; a per-item failure never aborts the batch. Archived conversations are recoverable with gmsg_unarchive_conversations. |
| gmsg_unarchive_conversationsA | Two-step unarchive, operating from the Archived view (drawer > Archived dialog, which lists names only, no ids). Only ids archived through gmsg_archive_conversations are known (remembered by name in ~/.google-messages-mcp/archived-map.json); unknown ids fail with NOT_FOUND. Call 1 (no confirm_token): verifies each name is present in the archived list and returns {count, targets} plus a 5-minute single-use confirm_token bound to the sorted id list; nothing changes. Call 2 with the same conversation_ids and token: unarchives each, returns {unarchived:[ids], failed:[{id,reason}]}. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 8 tools
Each tool targets a distinct action on a distinct resource: send, list, read, search, archive, unarchive, pair, status. The archive/unarchive pair are clearly opposite operations, and search vs. list are distinguished (query-based scan vs. recent conversations). Status (read state) vs. pair (initiate pairing) are separated by explicit descriptions.
All tools share the gmsg_ prefix and snake_case, giving a predictable namespace. Minor deviation: several tools are bare verbs/nouns (gmsg_status, gmsg_pair, gmsg_search) rather than verb_noun, but the convention remains readable and consistent in style.
Eight tools is well within the sweet spot and each earns its place: core messaging (send/list/read/search), lifecycle management (archive/unarchive), and setup/diagnostics (pair/status). Nothing appears redundant or padded.
The core read/send/search workflow plus archive lifecycle and pairing is covered, including two-step confirmation for destructive actions. Gaps remain: no way to list archived conversations directly (unarchive requires remembered ids), and no delete-conversation, mark read/unread, or media/attachment sending.