get_message_stats
Get statistics about the indexed messages including count, date range, and contacts.
Search your own Apple Messages history by text or by sender, pull the full thread with one contact, and see who has messaged you most recently.
LABSCO SUMMARY
Fuzzy matching plus the from, after and context parameters is what separates this from scrolling: you can search on a fragment, restrict it to one sender, and get the surrounding messages back with the hit. get_message_stats is the honest companion to that — it reports the count, date range and contacts in the index, so an empty result can be told apart from a gap in coverage. Every tool reads; nothing in the list sends a message or edits one.
A read-only search layer over an index of the local Apple Messages history, covering both iMessage and SMS.
The Apple Messages history on the machine the server runs on, already indexed. No account and no key are configured, and the tools reach nothing off the machine.
One command — npx -y @cardmagic/messages --mcp
USE CASES
Search on the fragment you remember, narrow it to the sender if you know who it was, and open the thread around the hit to read what came next.
Look at the most recent messages across every conversation and the thread list with its previews, and see where the last message was theirs rather than yours.
Find the contact in the activity-ranked list to confirm the name and how much there is, then read the thread in order.
Check the count, date range and contacts actually indexed before concluding that a conversation was never had.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
get_message_statsGet statistics about the indexed messages including count, date range, and contacts.
get_threadGet the full conversation thread with a specific contact. Shows messages in chronological order.
list_contactsList contacts sorted by recent messaging activity. Shows contact name, message count, and last message date.
list_conversationsList conversations with message counts and last message preview. Shows all chat threads sorted by recent activity.
recent_messagesGet the most recent messages across all conversations. Use this to see "who texted me recently" or get an overview of recent activity.
search_messagesSearch through Apple Messages (iMessage/SMS) with fuzzy matching. Can search by text query, filter by sender, or both. Use "from" to get messages from a specific person.
BEFORE YOU INSTALL
6 tools when we connected.
CONTEXT COST
Rated by the size of the 6 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"messages": {
"command": "npx",
"args": [
"-y",
"@cardmagic/messages",
"--mcp"
]
}
}
}npx -y @cardmagic/messages --mcp