macOS-only MCP server that exposes iMessage chat

io.github.adelaidasofia由 GitHub 帳號 adelaidasofia 發布v0.1.0更新於 Oct 24, 2026

macOS-only MCP server that exposes iMessage chat.db to Claude and exports per-chat history to an…

發布方自己的服務:OnlyMCP

已驗證STDIO僅桌面檔案與儲存溝通與協作

概覽

AI 產生的概覽

僅限 macOS 的在地 MCP 伺服器,讓助理讀取 chat.db 中的 iMessage 對話紀錄、搜尋訊息,並把對話匯出到 Obsidian 儲存庫。

可以做什麼
  • 瀏覽與讀取對話:列出會話、列出訊息、取得會話、討論串或訊息上下文,以及列出附件
  • 透過增量全文索引搜尋聯絡人與歷史訊息
  • 查看未讀訊息,並把某個會話標記為已讀
  • 把某個會話的歷史匯出成 Obsidian 儲存庫中依聯絡人或群組命名的筆記,含中繼資料、表情回應、回覆與語音留言轉錄
  • 透過 AppleScript 草擬外送訊息,並在另外確認後才真正送出
適用情境
適合在 Mac 上讓助理查閱過去的 iMessage 對話、找出某位聯絡人說過什麼,或把對話保存成可搜尋的 Obsidian 筆記。只對使用蘋果「訊息」應用程式、且系統為 macOS 的使用者有意義。
執行需求
僅支援 macOS,以在地程序執行,可透過 MCP 外掛套件安裝或手動寫入專案設定。需要給 Claude 應用程式授予「完整磁碟存取權」才能讀取訊息資料庫;手動安裝還需用 uv 準備 Python 環境。語音留言轉錄依賴在地已安裝的 Whisper 模型,詳細步驟與環境變數見專案的安裝說明。
安裝前請注意
它會讀取本機完整的訊息資料庫,助理因此能看到私密對話與聯絡人資訊。送出屬於寫入操作:訊息會先被草擬,需再呼叫確認才會送出,但一旦確認就會真正傳給對方。外掛首次載入時會向作者網站送出一次匿名安裝訊號,可設定 MYCELIUM_NO_PING=1 退出。匯出的筆記包含訊息內容與電話號碼。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 macOS-only MCP server that exposes iMessage chat,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

imessage-mcp

[License] [GitHub stars] [Last commit] [Open issues] [PyPI version] [PyPI downloads] [Built by Mycelium AI]

macOS-only MCP server that exposes iMessage history to Claude and exports per-chat conversations into an Obsidian vault. Mirrors the whatsapp-mcp pattern: same hook, same launchd cadence, same vault shape.

Architecture

  • Direct read of ~/Library/Messages/chat.db (SQLite, opened mode=ro&immutable=1). No bridge daemon.
  • Voice-note transcription via Whisper local-cpp (reuses the model already installed for whatsapp-mcp).
  • FTS5 incremental search index at ~/.claude/imessage-mcp/search.db.
  • Vault export per chat into 🤖 AI Chats/iMessage/<Contact>.md and 🤖 AI Chats/iMessage/Groups/<Group>.md.
  • Send pathway via AppleScript with draft+confirm pattern (no auto-send).

Tool surface

Read: healthcheck, list_chats, list_messages, get_chat, search_contacts, search_messages, get_message_context, get_unread, get_thread, list_attachments, mark_chat_read, export_to_vault.

Write: send_message (drafts an AppleScript send), confirm_send (commits).

Install

Open Claude Code, paste:

/plugin marketplace add adelaidasofia/imessage-mcp/plugin install imessage-mcp@imessage-mcp

Then grant Full Disk Access to Claude.app (required for chat.db read) and restart Claude Code. Full setup details and env vars in SETUP.md.

Legacy install (manual .mcp.json registration)

See SETUP.md. The short version: grant Full Disk Access to Claude.app, run uv sync, register in vault .mcp.json, restart Claude Code.

Vault export shape

yaml
---type: imessage-chatcontact: "Jane Doe"phone: "+15555550123"service: iMessagechat_guid: "iMessage;-;+15555550123"message_count: 412first_message: 2024-08-12last_message: 2026-05-06last_sync: 2026-05-07---

Body sections per date with reactions, edits, replies, voice-note transcripts, and attachment wikilinks.

Related MCPs

Same author, same architecture pattern (FastMCP, draft+confirm on writes where applicable, vault auto-export, MIT):

Telemetry

This plugin sends a single anonymous install signal to myceliumai.co the first time it loads in a Claude Code session on a given machine.

What is sent:

  • Plugin name (e.g. slack-mcp)
  • Plugin version (e.g. 0.1.0)

What is NOT sent:

  • No user identifiers, names, emails, tokens, or API keys
  • No file paths, message content, or anything from your work
  • No IP address is stored after dedup processing

Why: Helps the maintainer know which plugins people actually install, so attention goes to the ones that get used.

Opt out: Set the environment variable MYCELIUM_NO_PING=1 before launching Claude Code. The hook will skip the network call entirely. Already-pinged installs leave a sentinel at ~/.mycelium/onboarded-<plugin> — delete it if you want to reset state.

License

MIT.


Built by Adelaida Diaz-Roa. Full install or team version at diazroa.com.

來源:README.md,提交 d754e4e

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Only-Mcp 整合