imessage-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CONTACTS_DB_DIR | No | Override the AddressBook base directory used for Contacts name lookup. | ~/Library/Application Support/AddressBook |
| IMESSAGE_DB_PATH | No | Override the Messages database file to read. | ~/Library/Messages/chat.db |
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 |
|---|---|
| list_chatsA | List recent iMessage/SMS conversations, newest activity first. Returns chat id, name (group display name, else participant contact names, else handles), participant handles with their Contacts names (participant_names), last message time and message count. Use the chat id with read_messages, get_conversation. |
| read_messagesA | Read messages newest-first, optionally filtered by chat id, contact (name, phone or email) and date range. Returns timestamp, sender (me or handle), sender_name from Contacts for incoming messages, text, is_from_me and attachment count. Tapbacks and group events are excluded. |
| search_messagesA | Case-insensitive substring search over message text, newest first. Also decodes attributedBody for messages whose plain text is empty. Optional contact (name, phone or email) and date filters are applied in SQL. Incoming messages include sender_name from Contacts. The scan is capped; the result says if the cap was hit, meaning the search was not exhaustive. |
| get_conversationA | Return the most recent messages of one chat in chronological order (oldest first). Use 'before' (ISO date) to page back into older context. |
| get_unreadA | List incoming messages that Messages marks as unread, newest first. The unread flag comes from chat.db and may not match the Messages app exactly. |
| list_contacts_handlesA | List phone numbers, emails and other Messages handles with their Contacts name (if any) and how many messages each has, most active first. Optional query matches a substring of the handle id or of a contact name. |
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 6 tools
Most tools are clearly separated by resource and intent: list_chats for conversation inventory, get_unread for the unread queue, search_messages for text lookup, list_contacts_handles for handle/contact inventory. The only mild overlap is read_messages versus get_conversation, since both return message content; descriptions clarify that one is filtered newest-first and the other is per-chat chronological, so confusion is limited.
All six names follow a predictable verb_noun pattern in snake_case: list_chats, get_unread, read_messages, search_messages, get_conversation, list_contacts_handles. The verbs (list/get/read/search) are used sensibly and consistently with their semantics.
Six tools is a well-scoped set for an iMessage read/inspection server, with each tool covering a distinct access pattern (chat list, unread, message read, search, conversation context, contacts). Nothing feels redundant or padded.
The read-side surface is fairly comprehensive: chats, unread messages, message history, search, conversation paging, and contact/handle mapping. However, there is no send-message or reply operation, no explicit attachment retrieval despite attachment counts being reported, and no way to mark messages read, which are notable gaps for a messaging server.