How to search your iMessage history with AI assistance
When to use: You need to find a message from weeks ago but can't remember who sent it or when.
Prerequisites
- Full Disk Access granted — System Settings → Privacy & Security → Full Disk Access → add Terminal or your MCP host
- mac-messages-mcp installed — uvx mac-messages-mcp or uv pip install mac-messages-mcp
Flow
-
Search messagesSearch my messages for conversations about 'dinner reservation' in the last 2 weeks. Show who sent them and the full context.✓ Copied→ Matching messages with sender, timestamps, and surrounding context
-
Get recent from a contactShow me my last 20 messages with John Smith.✓ Copied→ Conversation thread with timestamps
Outcome: Found the specific message or conversation you were looking for.
Pitfalls
- Full Disk Access not granted — The MCP server can't read the Messages database without this permission. Grant it in System Settings.