mac_messages_mcp
by carterlasalle·★ 284·Score 52
A Python MCP server that bridges macOS Messages app with LLMs for secure querying and analysis of iMessage conversations.
Overview
The mac_messages_mcp provides comprehensive access to macOS Messages database through MCP protocol. It features smart message sending that automatically routes between iMessage and SMS/RCS based on recipient capabilities, advanced message filtering by contacts and group chats, fuzzy search functionality, and progressive attachment handling to efficiently manage media files. The server implements robust security with proper macOS permissions handling and includes extensive integration options for Claude Desktop, Cursor, and Docker environments.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this MCP server when you need to integrate macOS Messages functionality into AI workflows, especially if you work with a mix of iMessage and Android contacts.
When NOT to choose this
Don't choose this if you need cross-platform message management beyond macOS, as it's limited to Apple's Messages app database.
Tools this server exposes
8 tools extracted from the READMEtool_get_recent_messagesReads recent messages from the macOS Messages app
tool_fuzzy_search_messagesSearches through message content with intelligent matching
tool_send_messageSends a message via iMessage or SMS/RCS based on recipient availability
tool_find_contactFinds contacts and returns phone numbers in E.164 format
tool_get_chatsRetrieves list of chats for filtering conversations
tool_check_imessage_availabilityChecks if a recipient has iMessage before sending
tool_search_attachmentsSearches for attachments by date, contact, and MIME type
tool_get_attachmentRetrieves an attachment file by its ID
Comparable tools
Installation
Installation
Prerequisites
- macOS (tested on macOS 11+)
- Python 3.10+
- uv package manager
Quick Install
uv pip install mac-messages-mcpClaude Desktop Integration
Add to claude_desktop_config.json:
{
"mcpServers": {
"messages": {
"command": "uvx",
"args": [
"mac-messages-mcp"
]
}
}
}Full Disk Access Permission
⚠️ This application requires **Full Disk Access** permission for your terminal or application to access the Messages database.
To grant Full Disk Access:
- Open **System Preferences/Settings** > **Security & Privacy/Privacy** > **Full Disk Access**
- Click the lock icon to make changes
- Add your terminal app (Terminal, iTerm2, etc.) or Claude Desktop/Cursor to the list
- Restart your terminal or application after granting permission
FAQ
- Does this work with Android users?
- Yes, the server automatically falls back to SMS/RCS when communicating with Android users who don't have iMessage.
- How are attachments handled?
- The server uses progressive disclosure - discovery of attachments is cheap through message search, while fetching is deliberate and supports various MIME types with special handling for images (HEIC converted to PNG).
Compare mac_messages_mcp with
Last updated · Auto-generated from public README + GitHub signals.