iMessage History
io.github.anipottsbuilds由 GitHub 帳號 anipottsbuilds 發布v3.3.2更新於 Oct 24, 2026
Read-only MCP server for searching and reading Apple Messages history on macOS.
概覽
一個唯讀的本機 MCP 伺服器,讓助手在 Mac 上搜尋與讀取 Apple 訊息歷史,包括對話、附件和通訊統計。
- 可以做什麼
- 依詞語、精確文字、詞元或片語搜尋訊息,可依服務、收發方向和日期篩選;依聯絡人、服務、類型、回覆狀態或日期列出對話及最新訊息。讀取完整對話,包含編輯、收回、回應、回覆、已讀回條、群組事件和附件,並可往前翻頁查看較早事件。顯示單一附件,圖片以移除位置和相機中繼資料的 JPEG 回傳。依游標拉取變更,包含新增、編輯、收回和刪除的訊息、成員關係、回應和回條。分析依小時和星期分布的数量、回覆時間、連續紀錄以及誰發起對話,並把姓名、電話號碼或電子郵件解析為 Mac 通訊錄中的聯絡人。
- 適用情境
- 適合希望助手幫你掌握未讀簡訊、尋找某則特定訊息、總結一週對話,或回答回覆速度和傳訊習慣等問題的情境,且需在裝有「訊息」App 的 Mac 上使用。適合想要本機唯讀存取而非雲端服務的使用者。
- 執行需求
- macOS 14 或更新版本;使用 npx 安裝需要 Node.js 24.16 或更新版本(Claude Desktop 自帶執行環境)。執行此伺服器的 App 需要取得「完整磁碟存取權」以讀取訊息資料庫。選用設定包括 IMESSAGE_PRIVACY、IMESSAGE_CONTACTS、IMESSAGE_DB、IMESSAGE_CACHE 和 IMESSAGE_UPDATE_CHECK;使用 HTTP 傳輸另需 IMESSAGE_API_TOKEN 或 IMESSAGE_API_TOKEN_FILE。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 iMessage History,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
imessage-mcp
[npm] [MCP Registry] [CI] [License: MIT]
Search and read your Messages history from Claude, Codex, Cursor, VS Code, and any other MCP client.
[Claude Code catching up on a real conversation about a hackathon through imessage-mcp]
Read-only. Runs on your Mac. No accounts, no cloud service, nothing to compile.
- Finds messages by words, exact text, or phrase across iMessage, SMS, MMS, and RCS
- Reads whole conversations with edits, unsent messages, reactions, replies, and read receipts
- Shows photos people sent you, with location data removed
- Keeps up with new messages through a change feed, and answers counts and response-time questions
Install
Requirements: macOS 14 or newer. Node.js 24.16 or newer for npx installs (Claude Desktop brings its own). Use Node 24 LTS for encrypted cache support. Runtimes without SQLite checkpoint APIs, including Node 25, search in memory and rebuild after a restart; doctor reports this.
Standard config, for any client that reads mcpServers JSON:
Then give the app that runs it Full Disk Access: System Settings > Privacy & Security > Full Disk Access, turn on the app (Claude, your terminal, Cursor, VS Code, ...), then quit it fully and reopen it. Not sure which app? Run npx -y imessage-mcp@latest doctor from that app's terminal and it tells you. Until access is granted, every tool answers with these same steps.
Amp
Claude Code
Or install the plugin: /plugin marketplace add anipotts/imessage-mcp, then /plugin install imessage-mcp@anipotts.
Claude Desktop
Download imessage-mcp.mcpb and double-click it, or install iMessage History from Settings > Extensions if it is listed there. To update a bundle you installed yourself, download the newest one and double-click it again.
Then turn on Claude in Full Disk Access and quit and reopen Claude.
Cline
Add the standard config to cline_mcp_settings.json (docs).
Codex
Or in ~/.codex/config.toml:
Copilot CLI
Run /mcp add, or add the standard config to ~/.copilot/mcp-config.json with "type": "local".
Gemini CLI
Add the standard config to ~/.gemini/settings.json.
Goose
JetBrains (Junie)
Add the standard config to .junie/mcp/mcp.json, or type /mcp in Junie CLI.
Kiro
opencode
In ~/.config/opencode/opencode.json:
Warp, Windsurf, Zed, and others
Add the standard config in the client's MCP settings. Zed uses context_servers with "source": "custom".
If a GUI app reports that npx was not found, it cannot see your Node installation: use the full path from which npx as the command.
Use it
Ask in plain words: "catch me up on my texts", "find the message about the dinner reservation", "how fast does Sam usually reply?". Three prompts are also in your client's prompt menu:
Clients that attach resources can use imessage://conversations and imessage://conversations/{chat_id}.
Tools
Every tool is read-only and marked readOnlyHint. Results use plain ids (message_id, chat_id, attachment_id) you can pass between tools.
Apple can record the same message in several conversations. Search returns that message once with all canonical chat_ids and their conversations labels. A single membership also includes chat_id and conversation; for shared results, pass the relevant id from chat_ids to get_conversation. Only Apple's explicit lookup evidence combines chat aliases. Shared messages do not combine unrelated conversations.
Global and contact message counts deduplicate shared records within the requested scope. Conversation timelines and sequence metrics retain each recorded membership, so adding per-conversation counts can exceed the global count. Sync includes chat_ids on changes and emits message_membership_changed with previous_chat_ids; its changed_at is null because Apple does not timestamp these joins. Logged memberships describe the change when observed; available text, sender and receipt fields describe current source state. Upgrading the index format rebuilds its cache once and invalidates older sync cursors; start a new sync when it returns DATABASE_CHANGED.
Contact names expand to the selected person's addresses. An exact phone number or email scopes only that address, even when Contacts has conflicting labels. resolve_contact still reports ambiguous identity; address scoping does not merge people or include their other addresses. For an address-like group title, search with the conversation_names scope and use the selected chat_id.
Every tool's output schema accepts both its success envelope and the structured error envelope, so strict clients can expose the original reason and recovery hints.
Conversation reads are strict by default. When a body or relationship cannot be recovered completely, the error explains the allow_partial: true retry. Partial results retain completeness, warnings and each event's row_status; inspect these before citing evidence. Narrower dates or around_message_id can avoid an unrelated damaged event. Structural failures still fail closed.
Configuration
Add options to args, for example ["-y", "imessage-mcp@latest", "--privacy", "redacted"].
Privacy and security
- Read-only. The server opens the Messages database read-only and has no tool that sends, edits, reacts, or marks anything read.
- Local. No accounts, telemetry, or analytics. The only network request is an optional version check to the npm registry.
- Your client sees what you ask for. Results go to the MCP client you use and its model provider, under their policies.
--privacy redactedoraggregatelimits what leaves the server. - Search index. Built on your Mac and, when SQLite checkpoint APIs are available, cached encrypted in
~/Library/Caches/imessage-mcp, with a key derived from your Messages database, so it opens only for an app that can already read your messages. Deleting it is always safe.server_statusreports an unavailable or failed cache while searches continue from memory. - Untrusted content. Messages can contain text written to manipulate an AI. The server tells clients to treat all message content as data, never as instructions.
Details: SECURITY.md and PRIVACY.md.
Development
Tests use synthetic data only. See CONTRIBUTING.md.
Dependency PRs use protected auto-merge through a repository-scoped GitHub App, without personal-token renewal. A daily health check detects authentication failures and stalled updates; see maintenance and recovery.
- Retire the unused owner-token copies after the App migration is verified and rollback is no longer needed.
- After extended inactivity, verify that GitHub has not disabled scheduled workflows. Dependency merges do not publish a release.
License
MIT
來源:README.md,提交 a1550ec
工具
0版本歷史
1- v3.3.2最新Oct 24, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分