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.

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

概覽

AI 產生的概覽

在 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。
安裝前請注意
它會向真實聯絡人傳送訊息與附件,並可能開啟「訊息」或跳出 macOS 權限提示。附件只能來自 APPLE_MESSAGES_MCP_ALLOWED_ROOTS(或 Files 的預設資料夾)中的檔案,並會在「訊息」附件目錄保留私有副本。傳送可能逾時或回傳未知的投遞狀態,重試前應先查看對話。範例設定將 APPLE_MESSAGES_MCP_SAFETY_MODE 設為 full_access,即限制最少的模式。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Apple Messages,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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_tools and get_tool_info for 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

Quick start (uvx, from PyPI)

With uv installed:

bash
uvx apple-messages-mcp

No clone, no venv management.

From a clone
bash
git clone https://github.com/JonathanRReed/Apple-MCPs.gitcd Apple-MCPsuv sync --all-packages

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
json
{  "mcpServers": {    "apple-messages": {      "command": "uvx",      "args": ["apple-messages-mcp"],      "env": {        "APPLE_MESSAGES_MCP_SAFETY_MODE": "full_access"      }    }  }}

Running from a clone instead? Use /path/to/Apple-MCPs/AppleMessages-MCP/start.sh as the command with empty args.

Claude Code example
bash
claude mcp add --transport stdio --scope user apple-messages -- uvx apple-messages-mcp

--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 lets messages_send_attachment copy a file where Messages can read it
  • messages_health checks running state through NSRunningApplication, without sending Apple Events or requesting Automation access. Closed Messages reports automation_access_status: "not_probed"; running Messages reports "unknown". Neither means permission was denied.
  • The existing automation_access and send-capability booleans are false when authorization is unverified. Explicit send tools still work when the user has authorized the operation. automation_access_status and automation_access_error_code distinguish 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's AppleMessages-MCP/start.sh) to your MCP client
  • Reload or reconnect the client so the Messages tool surface is loaded into context
  • Call messages_health first
  • If either permission surface is blocked, call messages_permission_guide
  • After changing macOS permissions, call messages_recheck_permissions

Prompting Notes

  • tools/list returns the full Messages tool surface. Context-constrained clients can use search_tools first, then get_tool_info for 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_attachment sends only files inside the allowed folders and returns PATH_NOT_ALLOWED for any other path. Set APPLE_MESSAGES_MCP_ALLOWED_ROOTS to 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 uses APPLE_FILES_MCP_ALLOWED_ROOTS, then the same defaults as Files: Desktop, Documents, Downloads and iCloud Drive, where they exist.
  • messages_send_attachment sends 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 returns ATTACHMENT_NOT_DELIVERED if the file failed and SEND_STATUS_UNKNOWN if 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_attachment and messages_reply_in_conversation accept an optional service_name of iMessage, SMS or RCS. 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 return SERVICE_UNAVAILABLE instead of sending, so a reply in an SMS thread on a Mac without Text Message Forwarding fails until you retry with service_name iMessage or 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 different service_name is rejected with INVALID_INPUT. The response's service_name reports the service actually used.

Related

來源:AppleMessages-MCP/README.md,提交 96b9cdb

工具

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

版本歷史

9
  1. v1.1.7最新Nov 14, 2026
  2. v1.1.6Nov 6, 2026
  3. v1.1.4Oct 29, 2026
  4. v1.1.3Oct 22, 2026
  5. v1.1.2Oct 14, 2026
  6. v1.1.1Oct 13, 2026
  7. v1.1.0Oct 10, 2026
  8. v1.0.5Sep 26, 2026
  9. v1.0.4Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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