
Apple Messages
io.github.JonathanRReed由 GitHub 帳號 JonathanRReed 發布v1.1.7更新於 Nov 14, 2026
Read Messages history on macOS and send or reply through Messages.app.
概覽
在 macOS 上讀取 Apple 訊息歷史,讓助理搜尋對話、傳送訊息與回覆,並透過「訊息」App 傳送檔案附件。
- 可以做什麼
- 列出並分頁瀏覽對話,讀取未讀與最近對話資源
- 搜尋訊息並檢視附件中繼資料
- 傳送新訊息、在既有對話中回覆,並從允許的資料夾傳送檔案附件
- 為上下文受限的用戶端提供工具探索與工具詳細資訊查詢
- 執行健康檢查與權限診斷,並提供權限指引與重新檢查步驟
- 適用情境
- 適合在 Mac 上只處理「訊息」的情境:需要訊息歷史與傳送能力,但不想引入功能包山包海的伺服器,或希望依 App 更細緻地隔離權限。
- 執行需求
- 本機 macOS 程序,可用 uvx 從 PyPI 執行,或從複製的儲存庫執行(需 Python 3.11+)。傳送與回覆需要 macOS 對「訊息」的自動化權限;歷史、搜尋與附件中繼資料需要完整磁碟存取權限。SMS/RCS 需透過配對的 iPhone 開啟簡訊轉發,RCS 需 macOS 15 或更新版本。選用環境變數 APPLE_MESSAGES_MCP_SAFETY_MODE 與 APPLE_MESSAGES_MCP_ALLOWED_ROOTS。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Apple Messages,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Apple Messages MCP
MCP server for Apple Messages on macOS.
Provides access to message history, conversation search, and sending via Messages.app. Requires Automation access for sending, and Full Disk Access for history and reliable file sending.
When to use
- Messages-only workflows
- Message history and sending without the all-in-one server
- Tighter app-level separation for permissions
What It Does
- List conversations with pagination
- Search messages and view attachment metadata
- Send and reply to messages
- Tool discovery helpers
search_toolsandget_tool_infofor context-constrained clients - Unread and recent conversation resources
- Health checks that separate history access from automation failures
- Permission recovery:
messages_permission_guide,messages_recheck_permissions
Install On This Mac
From a clone
This builds one workspace environment with every server's entry point in .venv/bin (for example .venv/bin/apple-messages-mcp). You can also point an MCP client at AppleMessages-MCP/start.sh, which prefers uv run and falls back to a plain venv bootstrap (Python 3.11+ required).
Install In AI Agents
Generic MCP client config
Running from a clone instead? Use /path/to/Apple-MCPs/AppleMessages-MCP/start.sh as the command with empty args.
Claude Code example
--scope user makes the server available in every project. To share it with one repository through its .mcp.json instead, use --scope project.
Transport
stdio is the default and recommended transport. Set APPLE_MESSAGES_MCP_TRANSPORT=streamable-http (with optional APPLE_MESSAGES_MCP_HOST and APPLE_MESSAGES_MCP_PORT) to serve Streamable HTTP instead.
macOS Permissions
- Automation access to Messages is required for send and reply
- Full Disk Access is required for history, search, and attachment metadata from
~/Library/Messages/chat.db, and letsmessages_send_attachmentcopy a file where Messages can read it messages_healthchecks running state throughNSRunningApplication, without sending Apple Events or requesting Automation access. Closed Messages reportsautomation_access_status: "not_probed"; running Messages reports"unknown". Neither means permission was denied.- The existing
automation_accessand send-capability booleans are false when authorization is unverified. Explicit send tools still work when the user has authorized the operation.automation_access_statusandautomation_access_error_codedistinguish skipped checks, unknown authorization, denial, and command failure. An explicit send or reply still checks authorization and may open Messages or show the macOS permission prompt. - Diagnostic subprocesses have a five-second timeout. Explicit automation has a 30-second timeout; check delivery before retrying a send that timed out.
Launch Checklist
- Add
uvx apple-messages-mcp(or a clone'sAppleMessages-MCP/start.sh) to your MCP client - Reload or reconnect the client so the Messages tool surface is loaded into context
- Call
messages_healthfirst - If either permission surface is blocked, call
messages_permission_guide - After changing macOS permissions, call
messages_recheck_permissions
Prompting Notes
tools/listreturns the full Messages tool surface. Context-constrained clients can usesearch_toolsfirst, thenget_tool_infofor the Messages tool they need.- Resolve the recipient via Contacts before any send or reply when the user names a person.
- Confirm the intended person if Contacts returns multiple matches.
messages_send_attachmentsends only files inside the allowed folders and returnsPATH_NOT_ALLOWEDfor any other path. SetAPPLE_MESSAGES_MCP_ALLOWED_ROOTSto a comma-separated list of folders (~means your home folder), or "Folders Messages may send files from" in the Claude Desktop extension settings. Without it, Messages usesAPPLE_FILES_MCP_ALLOWED_ROOTS, then the same defaults as Files: Desktop, Documents, Downloads and iCloud Drive, where they exist.messages_send_attachmentsends a private copy from~/Library/Messages/Attachments/apple-mcp, because Messages can fail to read user folders. Messages keeps using that copy after the send, so copies aren't removed, and deleting one may break that file in the conversation. The tool waits up to 20 seconds for Messages to confirm the transfer and sends any text afterwards. It returnsATTACHMENT_NOT_DELIVEREDif the file failed andSEND_STATUS_UNKNOWNif Messages hasn't confirmed it, so check the conversation before sending again. Without Full Disk Access the copy can't be made, and the file is sent directly.messages_send_message,messages_send_attachmentandmessages_reply_in_conversationaccept an optionalservice_nameofiMessage,SMSorRCS. Without it, new messages go out as iMessage, and one-to-one replies use the service of the thread's latest message: SMS threads stay SMS, and RCS threads use RCS, falling back to SMS. The account is chosen as the first enabled Messages account of that service type. SMS and RCS go through the paired iPhone and need Text Message Forwarding turned on for this Mac. Without a matching account the tools returnSERVICE_UNAVAILABLEinstead of sending, so a reply in an SMS thread on a Mac without Text Message Forwarding fails until you retry withservice_nameiMessageor turn forwarding on. RCS needs macOS 15 or later; on older macOS, RCS threads fall back to SMS. Group replies always use the group's existing service, and a differentservice_nameis rejected withINVALID_INPUT. The response'sservice_namereports the service actually used.
Related
來源:AppleMessages-MCP/README.md,提交 96b9cdb
工具
0版本歷史
9- v1.1.7最新Nov 14, 2026
- v1.1.6Nov 6, 2026
- v1.1.4Oct 29, 2026
- v1.1.3Oct 22, 2026
- v1.1.2Oct 14, 2026
- v1.1.1Oct 13, 2026
- v1.1.0Oct 10, 2026
- v1.0.5Sep 26, 2026
- v1.0.4Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
