
messages
Fuzzy search through Apple Messages (iMessage/SMS) - CLI and MCP server
by io.github.cardmagic
Description
messages is a command-line tool and MCP server for searching and browsing your Apple Messages history, including iMessage and SMS. It runs on macOS and reads the local Messages database. Search is fuzzy and tolerates typos, and results show contact names instead of phone numbers, with the messages before and after each match for context. You can filter by sender or date range, browse recent messages, contacts and conversations, and the index rebuilds automatically when new messages arrive. The tool can be used three ways: as a CLI, as an MCP server that gives an AI assistant direct tool access, or as a Claude Code plugin that adds a skill Claude uses when you ask about texts, plus slash commands such as /messages:search and /messages:recent. You can install it with Homebrew or npm, or build it from source. It needs Node.js 22 or later, and Full Disk Access for your terminal so it can read the chat database at ~/Library/Messages/chat.db.…
Highlights
- Fuzzy search across Apple Messages
- Contact names and message context
- Filter by sender or date
- CLI, MCP server and Claude Code plugin
- Install with Homebrew or npm
Ratings & Reviews
No ratings yet
Be the first to rate messages.
People also visit

hannesrudolph/imessage-query-fastmcp-mcp-server
Safe access to the iMessage database to query and analyze conversations
messages FAQ
What does messages do?
It searches and browses your Apple Messages, including iMessage and SMS, from the command line or through an AI assistant.
What do I need?
A Mac with Node.js 22 or later, and Full Disk Access granted to your terminal so it can read ~/Library/Messages/chat.db.
How do I install it?
Use Homebrew or npm, install the Claude Code plugin for skills and slash commands, or build from source.
Can Claude use it?
Yes. The MCP server gives direct tool access, and the plugin adds a skill that Claude invokes when you ask about texts.
What are the best messages alternatives?
Popular alternatives to messages include hannesrudolph/imessage-query-fastmcp-mcp-server, carterlasalle/macmessagesmcp and imsg. See all messages alternatives

















