anipotts-imessage-mcp
v1.5.0iMessage MCP server — 26 tools for searching, analyzing, and exploring your entire iMessage history on macOS
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_messages
Full-text search across all iMessages with rich filtering. Supports query text, contact, date range, direction, group chat, and attachment filters. By default, only searches contacts you've messaged. Use include_all to search everything.
| Parameter | Type | Description |
|---|---|---|
contact | string | Filter by contact handle (phone/email) or name |
date_from | string | Start date (ISO format, e.g. 2024-01-01) |
date_to | End date (ISO format, e.g. 2024-12-31) | |
group_chat | string | Filter by group chat name or chat_identifier |
has_attachment | boolean | Only messages with attachments |
include_all | boolean | Include messages from all contacts, even those you've never replied to (default: false) |
limit | number | Max results (default 50, max 500) |
offset | number | Pagination offset |
query | string | Text to search for (case-insensitive substring match) |
received_only | boolean | Only messages received |
sent_only | boolean | Only messages sent by you |
get_conversation
Get a full conversation thread with a specific contact or chat. Supports cursor-based pagination via before_rowid (backward) or after_rowid (forward) for scrolling through history.
| Parameter | Type | Description |
|---|---|---|
after_rowid | number | Cursor: only messages after this ROWID (for catching up on new messages) |
before_rowid | number | Cursor: only messages before this ROWID (for pagination) |
chat_id | string | Chat identifier (e.g. chat123456789) |
contact | string | Contact handle (phone/email) or name |
date_from | string | Start date filter |
date_to | End date filter | |
limit | number | Max messages (default 50, max 500) |
list_contacts
List all contacts with message counts and tier assignments. Supports filtering by tier and minimum message threshold. By default, only shows contacts you've actually messaged (replied to). Use include_all to see all.
| Parameter | Type | Description |
|---|---|---|
include_all | boolean | Include messages from all contacts, even those you've never replied to (default: false) |
limit | number | Max results (default 50, max 500) |
min_messages | number | Minimum message count to include |
sort_by | string | Sort order (default: messages) |
tier | string | Filter by contact tier |
get_contact
Deep info on a specific contact: tier, message stats, yearly breakdown, and recent messages.
| Parameter | Type | Description |
|---|---|---|
contact * | string | Contact handle (phone/email) or name fragment |
resolve_contact
Fuzzy-match a name, phone number, or email to a contact record. Uses multi-level resolution: exact match, digits, fuzzy, and macOS AddressBook.
| Parameter | Type | Description |
|---|---|---|
query * | string | Name, phone number, or email to resolve |
message_stats
Aggregate message statistics with flexible time-series grouping. Returns counts, sent/received splits, and averages grouped by day, week, month, year, hour, or day-of-week. By default excludes contacts you've never replied to.
| Parameter | Type | Description |
|---|---|---|
contact | string | Filter by contact handle |
date_from | string | Start date (ISO) |
date_to | End date (ISO) | |
group_by | string | Time grouping (default: month) |
include_all | boolean | Include messages from all contacts, even those you've never replied to (default: false) |
contact_stats
Deep per-contact analytics: message volumes, response time estimates, conversation patterns, and yearly trends.
| Parameter | Type | Description |
|---|---|---|
contact * | string | Contact handle or name fragment |
date_from | string | Start date |
date_to | End date |
temporal_heatmap
Generate a 7x24 activity heatmap (day-of-week x hour-of-day). Returns message counts for each of the 168 weekly time slots. By default excludes contacts you've never replied to.
| Parameter | Type | Description |
|---|---|---|
contact | string | Filter by contact handle |
date_from | string | Start date |
date_to | End date | |
include_all | boolean | Include messages from all contacts, even those you've never replied to (default: false) |
sent_only | boolean | Only your messages |
list_group_chats
List all group chats with member counts, message volumes, and activity dates. Group chats have multiple participants.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results (default 50, max 500) |
min_messages | number | Minimum message count to include |
sort_by | string | Sort order (default: messages) |
get_group_chat
Detailed info on a specific group chat: all members with per-member message counts, activity timeline, and recent messages.
| Parameter | Type | Description |
|---|---|---|
chat_id | string | Chat identifier (e.g. chat123456789) |
name | string | Group chat display name (fuzzy match) |
list_attachments
Query message attachments (images, videos, audio, documents) with filtering by contact, MIME type, and date range. Returns file metadata, not file contents.
| Parameter | Type | Description |
|---|---|---|
contact | string | Filter by contact handle |
date_from | string | Start date (ISO) |
date_to | End date (ISO) | |
limit | number | Max results (default 50, max 500) |
mime_type | string | Filter by MIME type prefix (e.g. 'image/', 'video/', 'audio/') |
offset | number | Pagination offset |
get_reactions
Tapback/reaction analytics: distribution by type, top reactors, most-reacted messages, emoji breakdown. Queries associated_message_type 2000-2005 for love/like/dislike/laugh/emphasize/question reactions.
| Parameter | Type | Description |
|---|---|---|
contact | string | Filter by contact handle or name |
date_from | string | Start date (ISO) |
date_to | End date (ISO) | |
limit | number | Max results for top lists (default 20) |
reaction_type | string | Filter by specific reaction type |
sent_only | boolean | Only reactions sent by you |
get_read_receipts
Read receipt and delivery timing analytics: per-contact read latency stats, unread patterns, fastest/slowest readers. Queries date_read and date_delivered columns.
| Parameter | Type | Description |
|---|---|---|
contact | string | Filter by contact handle or name |
date_from | string | Start date (ISO) |
date_to | End date (ISO) | |
limit | number | Max contacts to show (default 20) |
get_thread
Reconstruct iMessage reply threads using thread_originator_guid. Returns nested thread trees with parent message and all replies in order.
| Parameter | Type | Description |
|---|---|---|
contact | string | Filter by contact handle or name -- shows threads from conversations with this contact |
limit | number | Max threads to return (default 10) |
message_guid | string | GUID of the thread originator message |
get_edited_messages
Find edited and unsent (retracted) messages. Queries date_retracted and date_edited columns. Returns message list with timestamps and per-contact stats.
| Parameter | Type | Description |
|---|---|---|
contact | string | Filter by contact handle or name |
date_from | string | Start date (ISO) |
date_to | End date (ISO) | |
limit | number | Max results (default 50, max 500) |
type | string | Type of edit to search for (default: both) |
get_message_effects
iMessage expressive send effects and screen effects analytics: slam, loud, gentle, invisible ink, confetti, fireworks, balloons, lasers, etc. Queries expressive_send_style_id.
| Parameter | Type | Description |
|---|---|---|
contact | string | Filter by contact handle or name |
date_from | string | Start date (ISO) |
date_to | End date (ISO) | |
limit | number | Max results for detail lists (default 20) |
on_this_day
Messages from this date in previous years — like 'Memories' for iMessage. Shows what you and your contacts were talking about exactly 1, 2, 3+ years ago today. By default excludes contacts you've never replied to.
| Parameter | Type | Description |
|---|---|---|
contact | string | Filter by contact handle or name |
date | string | Date to look up (ISO format, default: today) |
include_all | boolean | Include messages from all contacts, even those you've never replied to (default: false) |
limit | number | Max messages per year (default 5) |
month_day | string | Month-day to look up (MM-DD format, e.g. '12-25' for Christmas). Defaults to today. |
first_last_message
The very first and very last message ever exchanged with a contact. People use this for sentimental lookups like 'what was the first text I sent my partner?' or 'what was the last thing my grandparent texted me?'
| Parameter | Type | Description |
|---|---|---|
contact * | string | Contact handle (phone/email) or name |
who_initiates
Who starts conversations? After a gap of N hours, the next message is a 'conversation initiation.' Shows per-contact who reaches out first and how often. Answers 'do I always text first?' By default excludes contacts you've never replied to.
| Parameter | Type | Description |
|---|---|---|
contact | string | Filter by contact (omit for global ranking) |
date_from | string | Start date (ISO) |
date_to | End date (ISO) | |
gap_hours | number | Hours of silence before a new conversation (default: 8) |
include_all | boolean | Include messages from all contacts, even those you've never replied to (default: false) |
limit | number | Max contacts to show (default 20) |
min_conversations | number | Minimum conversations to include contact (default: 5) |
streaks
Consecutive-day messaging streaks with contacts. Like Snapchat streaks but for iMessage. Shows longest streak, when it happened, and current streak status. By default excludes contacts you've never replied to.
| Parameter | Type | Description |
|---|---|---|
contact | string | Filter by contact (omit for top streaks across all contacts) |
include_all | boolean | Include messages from all contacts, even those you've never replied to (default: false) |
limit | number | Max contacts (default 20) |
min_streak | number | Minimum streak length in days (default: 3) |
double_texts
Detect double-texting and unanswered message patterns. Finds when you (or a contact) sent multiple consecutive messages without a reply. Shows frequency, longest bursts, and who does it more. Omit contact for a global ranking of who you double-text the most.
| Parameter | Type | Description |
|---|---|---|
contact | string | Contact handle or name (omit for global double-text ranking) |
date_from | string | Start date (ISO) |
date_to | End date (ISO) | |
limit | number | Max burst results (default 20) |
min_consecutive | number | Minimum consecutive messages to count (default: 2) |
conversation_gaps
Find the longest silences in a conversation. Detects periods where you and a contact stopped talking — falling-outs, busy periods, or drifting apart. Shows gap duration and when it happened.
| Parameter | Type | Description |
|---|---|---|
contact * | string | Contact handle or name |
limit | number | Max gaps to return (default 10) |
min_gap_days | number | Minimum gap in days to include (default: 7) |
forgotten_contacts
Find dormant relationships — contacts you used to message but haven't talked to in a long time. Great for reconnecting with people you've lost touch with. By default excludes contacts you've never replied to.
| Parameter | Type | Description |
|---|---|---|
inactive_days | number | Days of inactivity to count as 'forgotten' (default: 365) |
include_all | boolean | Include messages from all contacts, even those you've never replied to (default: false) |
limit | number | Max results (default 20) |
min_messages | number | Minimum past messages to qualify (default: 10) |
yearly_wrapped
Your iMessage Year in Review — like Spotify Wrapped but for texting. Returns a complete summary of a year: total messages, top contacts, busiest day, monthly trends, reactions, group chats, media shared, late-night texting, new contacts, and effects used. By default excludes contacts you've never replied to. Defaults to last year.
| Parameter | Type | Description |
|---|---|---|
include_all | boolean | Include messages from all contacts, even those you've never replied to (default: false) |
year | number | Year to summarize (default: last year) |
check_new_messages
Check for new messages since your last check. First call sets a baseline. Subsequent calls report what arrived since.
| Parameter | Type | Description |
|---|---|---|
contact | string | Filter to a specific contact |
include_text | boolean | Include message text previews (default false) |
limit | number | Max messages to return in detail (default 50) |
reset | boolean | Reset baseline to current latest message |
help
Show the imessage-mcp guide: all 26 tools and usage examples. Call this when you're unsure what's available.