Fuzzy search and browse Apple Messages/iMessage from CLI or MCP server
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Fuzzy search and browse Apple Messages (iMessage/SMS) from the command line, as a Claude Code plugin, or as an MCP server.
~/Library/Messages/chat.db)Install as a plugin to get skills (auto-invoked) and slash commands:
This gives you:
/messages:search, /messages:recent, /messages:from, and moreFor direct MCP tool access without the plugin:
Or install globally first:
The tool needs to read your Messages database at ~/Library/Messages/chat.db:
| Option | Description |
|---|---|
-f, --from <sender> | Filter by sender name or phone |
-a, --after <date> | Only messages after date (YYYY-MM-DD) |
-l, --limit <n> | Max results (default: 10) |
-c, --context <n> | Messages before/after (default: 2) |
When installed as a plugin, you get:
Skill (auto-invoked): Claude automatically searches messages when you ask things like:
Slash Commands:
| Command | Description |
|---|---|
/messages:search <query> | Fuzzy search with optional filters |
/messages:recent | Show most recent messages |
/messages:contacts | List contacts by activity |
/messages:conversations | List conversations with message counts |
/messages:from "Name" | Messages from a specific person |
/messages:thread "Name" | Full conversation thread |
/messages:browse <cmd> | Alias for browse commands |
When installed as an MCP server, Claude Code can use these tools:
| Tool | Description |
|---|---|
search_messages | Search messages with fuzzy matching |
recent_messages | Get most recent messages |
list_contacts | List contacts by activity |
list_conversations | List conversations with counts |
get_thread | Get conversation thread with a contact |
get_message_stats | Get index statistics |
For Claude Desktop or VS Code, add to your MCP configuration:
Auto-Indexing: On first search (or when new messages are detected), the tool automatically:
Searching: Queries both indexes for best results with typo tolerance
Storage: Index files are stored in ~/.messages/:
index.db - SQLite FTS5 databasefuzzy.json - MiniSearch indexstats.json - Index statisticsMIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/messages)<a href="https://allmcps.com/mcp/messages"><img src="https://allmcps.com/api/badge/messages?style=directory" alt="Messages on AllMCPs" /></a>