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., "@iMessage MaxWhat did Nick say about the dinner plans yesterday?"
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.
iMessage Max
An MCP (Model Context Protocol) server for iMessage that lets AI assistants read and search your messages with proper contact resolution.
Features
Contact Resolution - See names instead of phone numbers (resolves via macOS Contacts)
Participant Lookup - Find chats by typing names like
find_chat(participants=["Nick", "Andrew"])Session Grouping - Messages grouped into conversation sessions with gap detection
Token Efficient - Designed for AI consumption with compact responses and pagination
Read-Only Safe - Only reads from chat.db, never modifies your messages
Why This Exists
Most iMessage tools expose raw database structures, requiring 3-5 tool calls per user intent. This MCP provides intent-aligned tools that work the way you'd naturally ask questions:
Installation
Using UV (Recommended)
Using pip
Setup
1. Grant Permissions
The MCP needs two macOS permissions to work properly:
Full Disk Access (Required)
Allows reading ~/Library/Messages/chat.db
Open System Settings → Privacy & Security → Full Disk Access
Click + and add your terminal app (Terminal.app, iTerm, Warp, etc.)
If using Claude Desktop, add the process that runs Python:
For UV: Add
/Users/YOU/.local/share/uv/python/(or find it withwhich python)
Contacts Access (Required for name resolution)
Allows resolving phone numbers to contact names
Open System Settings → Privacy & Security → Contacts
Add the same apps/processes as above
Important: If using UV, you need to add UV itself (
~/.cargo/bin/uvor similar)
2. Configure Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Or if installed via pip:
3. Restart Claude Desktop
The MCP will request Contacts access on first run if not already granted.
Tools
find_chat
Find chats by participants, name, or recent content.
get_messages
Retrieve messages with flexible filtering.
list_chats
Browse recent chats with previews.
search
Full-text search across all messages.
get_context
Get messages surrounding a specific message.
get_active_conversations
Find chats with recent back-and-forth activity.
list_attachments
List attachments with metadata.
get_unread
Get unread messages or summary.
send
Send a message (requires Automation permission for Messages.app).
diagnose
Troubleshoot configuration and permission issues.
Troubleshooting
Contacts showing as phone numbers
Run the diagnose tool to check status:
Fix: Add your Python interpreter or UV to System Settings → Privacy & Security → Contacts.
"Database not found" error
The MCP can't access ~/Library/Messages/chat.db.
Fix: Add your terminal/Python to System Settings → Privacy & Security → Full Disk Access.
Empty message previews
Some messages store text in attributedBody instead of text column. This is handled automatically as of v0.1.0.
MCP not loading in Claude Desktop
Check your config file syntax is valid JSON
Ensure the command path is correct
Restart Claude Desktop completely (Cmd+Q, not just close window)
Development
License
MIT