Skip to main content
Glama
anipotts

imessage-mcp

by anipotts

search_messages

Search and filter iMessage conversations by text, contact, date range, attachments, and direction to find specific messages quickly.

Instructions

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNoText to search for (case-insensitive substring match)
contactNoFilter by contact handle (phone/email) or name
date_fromNoStart date (ISO format, e.g. 2024-01-01)
date_toNoEnd date (ISO format, e.g. 2024-12-31)
sent_onlyNoOnly messages sent by you
received_onlyNoOnly messages received
group_chatNoFilter by group chat name or chat_identifier
has_attachmentNoOnly messages with attachments
include_allNoInclude messages from all contacts, even those you've never replied to (default: false)
limitNoMax results (default 50, max 500)
offsetNoPagination offset

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/anipotts/imessage-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server