About Mac Messages Mcp.git
Mac Messages Mcp.git is an MCP server published by carterlasalle in the Developer Tools category: an MCP server that securely interfaces with your iMessage database via the Model Context Protocol (MCP), allowing LLMs to query and analyze iMessage conversations. It includes robust phone number validation, attachment processing, contact management, group chat handling, and full support for sending and receiving messages. Conduid read 18 tools from its source: tool_cancel_scheduled_message, tool_check_addressbook, tool_check_contacts, tool_check_db_access, tool_check_imessage_availability, tool_create_contact and 12 more. It is published to PyPI as mac-messages-mcp and runs with uvx.
The repository has 345 stars and 58 forks, is licensed MIT, and its last commit was on 25 Nov 2026. The latest release is v1.1.0 (1 Sep 2026): MCP tool and resource output derived from Messages and Contacts is serialized at a single untrusted-output boundary (present_untrusted_output). It is the only release Conduid has on record for this repository. It passes all 5 static checks Conduid ran on the repository. Its topics include devtools.
Install
uvx mac-messages-mcppip install mac-messages-mcpgit clone https://github.com/carterlasalle/mac_messages_mcp.gitTools (18)
tool_cancel_scheduled_messageCancel one pending scheduled message| Parameter | Type | Description |
|---|---|---|
| job_id * | string | Job id from tool_schedule_message or the queue listing. |
tool_check_addressbookDiagnose Contacts/AddressBook database accesstool_check_contactsReturn a contact count and a small sampletool_check_db_accessDiagnose access to `~/Library/Messages/chat.db`tool_check_imessage_availabilityCheck likely iMessage availability for a phone number or email| Parameter | Type | Description |
|---|---|---|
| recipient * | string | Phone number or email address to check for iMessage capability. |
tool_create_contactCreate one Contacts.app entry with a phone number| Parameter | Type | Description |
|---|---|---|
| label | string | Phone label, such as "mobile" or "home". |
| name * | string | Full name for the new contact; split on whitespace. |
| phone * | string | Phone number; normalized to E.164 when it parses. |
tool_find_contactFuzzy-match a name in Contacts and return phone numbers| Parameter | Type | Description |
|---|---|---|
| name * | string | Contact name or partial name to fuzzy-match in AddressBook. |
tool_fuzzy_search_messagesSearch message bodies by approximate text match, scoped to a contact or chat; defaults to 30 days, or `hours=0`| Parameter | Type | Description |
|---|---|---|
| chat_id | string | Optional conversation filter from tool_get_chats. |
| contact | string | Optional contact filter: name, phone number, email, or "contact:N" from a previous contact match list. |
| end_date | string | Optional inclusive end date "YYYY-MM-DD" (UTC); replaces the hours window. |
| hours | integer | Number of hours to search backward. Default is 720; use 0 for all available messages. |
| limit | integer | Maximum number of ranked matches to return. |
| search_term * | string | Text to fuzzy-match against message bodies. |
| start_date | string | Optional inclusive start date "YYYY-MM-DD" (UTC); replaces the hours window. |
| threshold | number | Similarity threshold from 0.0 to 1.0. Default is 0.6; lower values are more lenient. |
tool_get_attachmentFetch one attachment by ID, inline when supported or as a local path| Parameter | Type | Description |
|---|---|---|
| attachment_id * | integer | Messages attachment ROWID from tool_search_attachments or an attachment marker in message search results. |
| max_bytes | integer | Maximum inline image payload size in bytes. Larger files return a local filesystem path instead. |
tool_get_chatsList named group chats and their identifierstool_get_recent_messagesRead recent messages, filtered by contact, group chat ID, date range, or unread state; page with `limit`/`offset`| Parameter | Type | Description |
|---|---|---|
| chat_id | string | Optional group chat identifier from tool_get_chats, such as "chat721054478304420871" or "iMessage;-;chat721054478304420871". |
| contact | string | Optional contact filter: contact name, phone number, email address, or "contact:N" from a previous contact match list. |
| end_date | string | Optional inclusive end date "YYYY-MM-DD" (UTC); replaces the hours window. |
| hours | integer | Number of hours to look back from now. Default is 24. |
| limit | integer | Maximum number of messages to return. |
| offset | integer | Number of newest messages to skip, for paging older history. |
| since_rowid | integer | Cursor: return only messages with a greater ROWID, oldest first. Use for incremental reads. |
| start_date | string | Optional inclusive start date "YYYY-MM-DD" (UTC); replaces the hours window. |
| unread_only | boolean | Return only inbound messages still marked unread. |
tool_list_conversationsList every conversation with kind, message count, unread count, and last activity| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum conversations to return. |
| unread_only | boolean | Return only conversations with unread messages. |
tool_list_scheduled_messagesList the in-process scheduled-message queue and its statustool_schedule_messageQueue a message for later delivery while this server process runs| Parameter | Type | Description |
|---|---|---|
| attachment_paths | array | As in tool_send_message. |
| group_chat | boolean | As in tool_send_message. |
| message * | string | Text body to send. May be empty when attachments are given. |
| recipient * | string | Recipient exactly as in tool_send_message. |
| send_at * | string | When to send, ISO 8601, such as 2026-10-07T09:30:00 or 2026-10-07T09:30:00+02:00. A value without an offset is local time. |
tool_search_attachment_contentsSearch inside attachment text/PDF contents by date, contact, and MIME type| Parameter | Type | Description |
|---|---|---|
| contact | string | Optional contact name, phone number, or email filter. |
| end_date | string | Optional inclusive end date in "YYYY-MM-DD" format. |
| limit | integer | Maximum number of matching attachments to return. |
| max_file_bytes | integer | Maximum bytes read from each attachment. |
| mime_type | string | Optional MIME type or prefix filter, such as "text/". |
| query * | string | Text to find inside attachment contents (case-insensitive). |
| start_date | string | Optional inclusive start date in "YYYY-MM-DD" format. |
tool_search_attachmentsFind attachment metadata by date, contact, MIME type, and limit| Parameter | Type | Description |
|---|---|---|
| contact | string | Optional contact name, phone number, or email address filter. |
| end_date | string | Optional inclusive end date in "YYYY-MM-DD" format. |
| limit | integer | Maximum number of attachment metadata rows to return. |
| mime_type | string | Optional MIME type or prefix filter, such as "image/" or "application/pdf". |
| start_date | string | Optional inclusive start date in "YYYY-MM-DD" format. |
tool_send_messageSend one direct or group message through Messages.app, optionally with file attachments and elicitation approval| Parameter | Type | Description |
|---|---|---|
| attachment_paths | array | Optional local file paths to send as attachments before the text. Individual recipients only; refused for group chats, and file transfers have no SMS/RCS fallback. |
| confirm | boolean | When true, ask the human to approve this send through MCP elicitation before anything is sent. Requires a client that supports elicitation; without one nothing is sent. |
| group_chat | boolean | Set true only when recipient is a chat ID from tool_get_chats; false sends to an individual buddy/contact. |
| message * | string | Text body to send through Messages. May be empty when attachment_paths is given. |
| recipient * | string | E.164 phone number with leading '+', bare digits with country code, email address, contact name, contact:N selection, or Messages chat ID when group_chat is true. |
tool_wait_for_new_messagesBlock until a message newer than a ROWID cursor arrives, or the timeout expires| Parameter | Type | Description |
|---|---|---|
| chat_id | string | Optional thread filter, as in tool_get_recent_messages. |
| contact | string | Optional contact filter, as in tool_get_recent_messages. |
| poll_interval | number | Seconds between database polls. |
| since_rowid | integer | Cursor: the highest message ROWID already seen. Only newer messages are returned. |
| timeout_seconds | number | How long to wait before giving up. |
Security checks
Static checks derived from the repository yesterday. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.5K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 11 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- stdiomac_messages_mcp/server.py:1106
- Starts other programs
- 2 callsmac_messages_mcp/messages.py:56, mac_messages_mcp/phone.py:107
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 2 callsmac_messages_mcp/cli.py:151, mac_messages_mcp/messages.py:1352
- Lockfile
- uv.lock
Pattern matches on the source text of 11 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 3.5K words, fetched yesterday. The original in the repository is authoritative.
Read full README