
Messages
io.github.cardmagic由 GitHub 账号 cardmagic 发布v1.2.0更新于 Oct 24, 2026
Fuzzy search and browse Apple Messages/iMessage from CLI or MCP server
概览
一个本地 MCP 服务器,让助手在 Mac 上模糊搜索和浏览 Apple 信息/iMessage 的历史记录、联系人和会话。
- 可以做什么
- 以模糊、容错方式搜索信息,可按发件人或日期范围筛选,并显示前后文。浏览最近信息、按活跃度排列的联系人,以及带信息数量的会话。打开与某位联系人的完整对话串。查看搜索索引统计。
- 适用场景
- 适合让助手回答关于你自己短信的问题,例如某人就某个计划说了什么、最近谁发来信息、某个对话串里聊了什么,而无需手动复制信息。
- 运行要求
- 仅限 macOS,因为它读取 Apple 信息数据库。需要 Node.js 22+ 和该 npm 包,通过 stdio 在本地运行。必须为终端应用授予完全磁盘访问权限,才能读取信息数据库。
安装
在 SourceWeft 中
- 打开 控制台中的 Messages,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
messages
Fuzzy search and browse Apple Messages (iMessage/SMS) from the command line, as a Claude Code plugin, or as an MCP server.
Features
- Fuzzy search with typo tolerance across all your messages
- Browse recent messages, contacts, and conversations
- Contact resolution - shows names instead of phone numbers
- Context display - see messages before/after each match
- Filter by sender or date range
- Auto-indexing - index automatically rebuilds when new messages are detected
- Multiple interfaces - CLI, MCP server, or Claude Code plugin
Requirements
- macOS (reads from Apple Messages database)
- Node.js 22+
- Full Disk Access permission for your terminal (to read
~/Library/Messages/chat.db)
Installation
Homebrew
npm
Claude Code Plugin (recommended)
Install as a plugin to get skills (auto-invoked) and slash commands:
This gives you:
- Skill: Claude automatically searches messages when you ask about texts/iMessages
- Slash commands:
/messages:search,/messages:recent,/messages:from, and more
MCP Server
For direct MCP tool access without the plugin:
Or install globally first:
From source
Granting Full Disk Access
The tool needs to read your Messages database at ~/Library/Messages/chat.db:
- Open System Settings > Privacy & Security > Full Disk Access
- Click + and add your terminal app (Terminal.app, iTerm, Warp, etc.)
- Restart your terminal
Usage
CLI
Browse Commands
Search Commands
Search Options
Claude Code Plugin
When installed as a plugin, you get:
Skill (auto-invoked): Claude automatically searches messages when you ask things like:
- "What did Mom say about dinner?"
- "Who texted me recently?"
- "Find messages about the trip"
Slash Commands:
MCP Server
When installed as an MCP server, Claude Code can use these tools:
Manual MCP Configuration
For Claude Desktop or VS Code, add to your MCP configuration:
How It Works
-
Auto-Indexing: On first search (or when new messages are detected), the tool automatically:
- Reads your Apple Messages SQLite database
- Builds a SQLite FTS5 full-text search index
- Creates a MiniSearch fuzzy search index
- Resolves contact names from your Address Book
-
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 statistics
License
MIT
来源:README.md,提交 e3fa952
工具
0版本历史
1- v1.2.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分