原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Apple Icloud MCP

作者:chrischall版本 0.5.0i★ 0i在你的电脑上运行代码仓库 ↗
注册名称io.github.chrischall/apple-icloud-mcp

安装方法

What it does

Unofficial: Apple Music, iCloud Calendar/Contacts/Mail, Apple Maps and WeatherKit, no Mac needed

  • Connects 在你的电脑上运行
  • Account or key Needs APPLE_KEY_ID, APPLE_PRIVATE_KEY, APPLE_MUSIC_USER_TOKEN, APPLE_MUSIC_WEB_USER_TOKEN, ICLOUD_APP_PASSWORD, MCP_CONFIRM_SECRET
  • Category 旅行、地图与天气

为什么排在这里

列表按使用分(满分 100)排序,由以下部分组成

热度9/80GitHub 星标或每周下载量:较大的计 60,较小的计 20
新鲜度12/1230 天内有发布或代码更新得满分
仍在响应0/8上次检查时云端端点有响应
使用分21/100

质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 5 (只用于“上升中”标签)

安装

选择你使用的 AI 应用,然后复制设置。

用一句话让 AI 帮你安装

请帮我安装 Apple Icloud MCP。按照 https://mcp.popnx.com/i/chrischall-apple-icloud-mcp.md 操作,先把命令给我看,等我同意后再运行。

粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文

通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude,但需要先准备

需要 Apple Icloud MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用

让 AI 帮你安装

把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Claude 安装 MCP server Apple Icloud MCP,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "apple-icloud": { "command": "npx", "args": [ "-y", "apple-icloud-mcp" ], "env": { "APPLE_KEY_ID": "your-value", "APPLE_PRIVATE_KEY": "your-value", "APPLE_MUSIC_USER_TOKEN": "your-value", "APPLE_MUSIC_WEB_USER_TOKEN": "your-value", "ICLOUD_APP_PASSWORD": "your-value", "MCP_CONFIRM_SECRET": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) APPLE_KEY_ID, APPLE_PRIVATE_KEY, APPLE_MUSIC_USER_TOKEN, APPLE_MUSIC_WEB_USER_TOKEN, ICLOUD_APP_PASSWORD, MCP_CONFIRM_SECRET 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Apple Icloud MCP 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Apple Icloud MCP 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    获取密钥的方法见下方开发者的 README

  3. 打开电脑版 Claude 应用的设置文件

    SettingsDeveloperEdit Config

  4. 粘贴这些设置并保存文件

    {
      "mcpServers": {
        "apple-icloud": {
          "command": "npx",
          "args": [
            "-y",
            "apple-icloud-mcp"
          ],
          "env": {
            "APPLE_KEY_ID": "your-value",
            "APPLE_PRIVATE_KEY": "your-value",
            "APPLE_MUSIC_USER_TOKEN": "your-value",
            "APPLE_MUSIC_WEB_USER_TOKEN": "your-value",
            "ICLOUD_APP_PASSWORD": "your-value",
            "MCP_CONFIRM_SECRET": "your-value"
          }
        }
      }
    }

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 退出 Claude 再重新打开

  6. 试一试

    用 Apple Icloud MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 Apple Icloud MCP,或回答中出现 Apple Icloud MCP 的工具名称,就表示连接成功

25 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • APPLE_TEAM_ID 您的 Apple Developer Team ID(10 个字符)。Apple Music(官方 API)、Apple Maps 和 WeatherKit 需要此项
    查看英文原文Your Apple Developer Team ID (10 characters). Needed for Apple Music (official API), Apple Maps and WeatherKit.
  • APPLE_PRIVATE_KEY_PATH 仅限本地安装:指向 .p8 文件的路径,用于替代 APPLE_PRIVATE_KEY。
    查看英文原文Local installs only: a path to the .p8 file instead of APPLE_PRIVATE_KEY.
  • APPLE_MUSIC_KEY_ID 针对 Apple Music 的 APPLE_KEY_ID 每服务覆盖设置(可选,需与 APPLE_MUSIC_PRIVATE_KEY 搭配使用)
    查看英文原文Optional per-service override of APPLE_KEY_ID for Apple Music (pair with APPLE_MUSIC_PRIVATE_KEY).
  • APPLE_MUSIC_PRIVATE_KEY 针对 Apple Music 的 APPLE_PRIVATE_KEY 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_PRIVATE_KEY for Apple Music.
  • APPLE_MAPS_KEY_ID 针对 Apple Maps 的 APPLE_KEY_ID 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_KEY_ID for Apple Maps.
  • APPLE_MAPS_PRIVATE_KEY 针对 Apple Maps 的 APPLE_PRIVATE_KEY 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_PRIVATE_KEY for Apple Maps.
  • APPLE_WEATHERKIT_KEY_ID 针对 WeatherKit 的 APPLE_KEY_ID 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_KEY_ID for WeatherKit.
  • APPLE_WEATHERKIT_PRIVATE_KEY 针对 WeatherKit 的 APPLE_PRIVATE_KEY 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_PRIVATE_KEY for WeatherKit.
  • APPLE_WEATHERKIT_SERVICE_ID 仅限 WeatherKit:为 WeatherKit 注册的 Services ID(例如 com.example.weather)。
    查看英文原文WeatherKit only: the Services ID registered for WeatherKit (e.g. com.example.weather).
  • APPLE_MUSIC_DEVELOPER_TOKEN 可选:预先生成的 Apple Music 开发者令牌(JWT),用于替代由上述密钥签发的令牌。
    查看英文原文Optional: a pre-minted Apple Music developer token (JWT) instead of signing one from the key above.
  • APPLE_MUSIC_WEB_DEVELOPER_TOKEN 可选覆盖网页播放器开发者令牌(通常会自动从 music.apple.com 读取)。
    查看英文原文Optional override for the web-player developer token (normally read automatically from music.apple.com).
  • APPLE_MUSIC_STOREFRONT 两位字母的 Apple Music 商店代码(例如 us、gb)。默认:您账户的商店,否则为 us。
    查看英文原文Two-letter Apple Music storefront (e.g. us, gb). Default: your account's storefront, else us.
  • ICLOUD_USERNAME 您的 Apple ID 电子邮件,用于 iCloud Calendar、Contacts 和 Mail
    查看英文原文Your Apple ID email, for iCloud Calendar, Contacts and Mail.
  • ICLOUD_MAIL_ADDRESS 您的 @icloud.com 地址,仅当您的 Apple ID 邮箱不是 iCloud 地址时使用(Mail 需要)。
    查看英文原文Your @icloud.com address, only if your Apple ID email is not an iCloud address (needed for Mail).
  • ICLOUD_DEFAULT_CALENDAR 未指定时,新事件存入的日历(默认:第一个可写的事件日历)。
    查看英文原文Calendar new events go to when none is named (default: the first writable event calendar).
  • APPLE_WRITE_MODE "none" = read-only tools; "additive" = also create/append, never modify, delete or send; "all" = everything (default). Unrecognized values fail closed to "none".
  • APPLE_SERVICES 要启用的服务列表,用逗号分隔(music、calendar、contacts、mail、maps、weather、itunes)。默认:全部。
    查看英文原文Comma-separated services to enable (music, calendar, contacts, mail, maps, weather, itunes). Default: all.
  • DISPLAY_TZ 用于显示时间以及未带偏移量的日期的 IANA 时区(例如 America/New_York)。在托管服务器上设置此项,因为其默认运行于 UTC。
    查看英文原文IANA time zone (e.g. America/New_York) for displayed times and for dates you give without an offset. Set this on a hosted server, which runs in UTC.
  • APPLE_UNITS "metric" (default) or "imperial" units for weather (Maps distances always show both).
  • APPLE_STATE_CACHE 设置为 false 可使 $MCP_DATA_DIR/.apple-icloud-mcp 下不写入任何内容:不保存网页播放器令牌或 iCloud 发现缓存,被拒绝密码的锁定及已使用的确认令牌仅在内存中保留。
    查看英文原文Set to false to write nothing under $MCP_DATA_DIR/.apple-icloud-mcp: no web-player token or iCloud discovery cache, and the rejected-password latch and spent confirmation tokens then last only as lon…
  • APPLE_REQUEST_TIMEOUT_MS 每次请求的超时时间(毫秒)(默认 30000)
    查看英文原文Per-request timeout in milliseconds (default 30000).
  • APPLE_DEBUG_LOG 设置为 1 可将每条上游请求行记录到 stderr(凭据已隐去)。
    查看英文原文Set to 1 to log every upstream request line to stderr (credentials redacted).
  • MCP_CONFIRM_MODE 在没有确认提示的客户端(如 claude.ai)上,需要确认的写入操作(发送邮件、删除、移除曲目、邀请)的行为方式:"ask-user"(默认:显示预览并提供 confirmToken,模型必须获得您的同意)。
    查看英文原文How confirm-gated writes (send mail, deletes, removing tracks, invitations) behave on a client with no prompt, like claude.ai: "ask-user" (default: preview + confirmToken, the model must get your OK)…
  • MCP_CONFIRM_ELICITATION "off" never shows a confirmation prompt, so every client gets the MCP_CONFIRM_MODE flow. Set it for a client that says it can prompt but never does (the gated call hangs, e.g. opencode 2.0.x). Any ot…
  • MCP_CONFIRM_TTL_SECONDS confirmToken 的有效期(秒,默认 600)。
    查看英文原文Lifetime of a confirmToken in seconds (default 600).

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 Apple Icloud MCP

Apple Icloud MCP 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器

你可以改用这些方式

A · 使用能连接 Apple Icloud MCP 的应用

  • 需要 Apple Icloud MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
  • 需要 Apple Icloud MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
  • 需要 Apple Icloud MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
  • 需要 Apple Icloud MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)

B · 旅行、地图与天气 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code,但需要先准备

需要 Apple Icloud MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)

让 AI 帮你安装

把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Claude Code 安装 MCP server Apple Icloud MCP,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user apple-icloud --env APPLE_KEY_ID=your-value --env APPLE_PRIVATE_KEY=your-value --env APPLE_MUSIC_USER_TOKEN=your-value --env APPLE_MUSIC_WEB_USER_TOKEN=your-value --env ICLOUD_APP_PASSWORD=your-value --env MCP_CONFIRM_SECRET=your-value -- npx -y apple-icloud-mcp 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) APPLE_KEY_ID, APPLE_PRIVATE_KEY, APPLE_MUSIC_USER_TOKEN, APPLE_MUSIC_WEB_USER_TOKEN, ICLOUD_APP_PASSWORD, MCP_CONFIRM_SECRET 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Apple Icloud MCP 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Apple Icloud MCP 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    获取密钥的方法见下方开发者的 README

  3. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  4. 粘贴这条命令并按 Enter

    claude mcp add --scope user apple-icloud --env APPLE_KEY_ID=your-value --env APPLE_PRIVATE_KEY=your-value --env APPLE_MUSIC_USER_TOKEN=your-value --env APPLE_MUSIC_WEB_USER_TOKEN=your-value --env ICLOUD_APP_PASSWORD=your-value --env MCP_CONFIRM_SECRET=your-value -- npx -y apple-icloud-mcp

    按 Enter 前,把“your-value”改成你的密钥

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 Claude Code 中输入 /mcp

    应能看到 Apple Icloud MCP 在列表中并显示已连接

  6. 试一试

    用 Apple Icloud MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 Apple Icloud MCP,或回答中出现 Apple Icloud MCP 的工具名称,就表示连接成功

25 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • APPLE_TEAM_ID 您的 Apple Developer Team ID(10 个字符)。Apple Music(官方 API)、Apple Maps 和 WeatherKit 需要此项
    查看英文原文Your Apple Developer Team ID (10 characters). Needed for Apple Music (official API), Apple Maps and WeatherKit.
  • APPLE_PRIVATE_KEY_PATH 仅限本地安装:指向 .p8 文件的路径,用于替代 APPLE_PRIVATE_KEY。
    查看英文原文Local installs only: a path to the .p8 file instead of APPLE_PRIVATE_KEY.
  • APPLE_MUSIC_KEY_ID 针对 Apple Music 的 APPLE_KEY_ID 每服务覆盖设置(可选,需与 APPLE_MUSIC_PRIVATE_KEY 搭配使用)
    查看英文原文Optional per-service override of APPLE_KEY_ID for Apple Music (pair with APPLE_MUSIC_PRIVATE_KEY).
  • APPLE_MUSIC_PRIVATE_KEY 针对 Apple Music 的 APPLE_PRIVATE_KEY 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_PRIVATE_KEY for Apple Music.
  • APPLE_MAPS_KEY_ID 针对 Apple Maps 的 APPLE_KEY_ID 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_KEY_ID for Apple Maps.
  • APPLE_MAPS_PRIVATE_KEY 针对 Apple Maps 的 APPLE_PRIVATE_KEY 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_PRIVATE_KEY for Apple Maps.
  • APPLE_WEATHERKIT_KEY_ID 针对 WeatherKit 的 APPLE_KEY_ID 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_KEY_ID for WeatherKit.
  • APPLE_WEATHERKIT_PRIVATE_KEY 针对 WeatherKit 的 APPLE_PRIVATE_KEY 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_PRIVATE_KEY for WeatherKit.
  • APPLE_WEATHERKIT_SERVICE_ID 仅限 WeatherKit:为 WeatherKit 注册的 Services ID(例如 com.example.weather)。
    查看英文原文WeatherKit only: the Services ID registered for WeatherKit (e.g. com.example.weather).
  • APPLE_MUSIC_DEVELOPER_TOKEN 可选:预先生成的 Apple Music 开发者令牌(JWT),用于替代由上述密钥签发的令牌。
    查看英文原文Optional: a pre-minted Apple Music developer token (JWT) instead of signing one from the key above.
  • APPLE_MUSIC_WEB_DEVELOPER_TOKEN 可选覆盖网页播放器开发者令牌(通常会自动从 music.apple.com 读取)。
    查看英文原文Optional override for the web-player developer token (normally read automatically from music.apple.com).
  • APPLE_MUSIC_STOREFRONT 两位字母的 Apple Music 商店代码(例如 us、gb)。默认:您账户的商店,否则为 us。
    查看英文原文Two-letter Apple Music storefront (e.g. us, gb). Default: your account's storefront, else us.
  • ICLOUD_USERNAME 您的 Apple ID 电子邮件,用于 iCloud Calendar、Contacts 和 Mail
    查看英文原文Your Apple ID email, for iCloud Calendar, Contacts and Mail.
  • ICLOUD_MAIL_ADDRESS 您的 @icloud.com 地址,仅当您的 Apple ID 邮箱不是 iCloud 地址时使用(Mail 需要)。
    查看英文原文Your @icloud.com address, only if your Apple ID email is not an iCloud address (needed for Mail).
  • ICLOUD_DEFAULT_CALENDAR 未指定时,新事件存入的日历(默认:第一个可写的事件日历)。
    查看英文原文Calendar new events go to when none is named (default: the first writable event calendar).
  • APPLE_WRITE_MODE "none" = read-only tools; "additive" = also create/append, never modify, delete or send; "all" = everything (default). Unrecognized values fail closed to "none".
  • APPLE_SERVICES 要启用的服务列表,用逗号分隔(music、calendar、contacts、mail、maps、weather、itunes)。默认:全部。
    查看英文原文Comma-separated services to enable (music, calendar, contacts, mail, maps, weather, itunes). Default: all.
  • DISPLAY_TZ 用于显示时间以及未带偏移量的日期的 IANA 时区(例如 America/New_York)。在托管服务器上设置此项,因为其默认运行于 UTC。
    查看英文原文IANA time zone (e.g. America/New_York) for displayed times and for dates you give without an offset. Set this on a hosted server, which runs in UTC.
  • APPLE_UNITS "metric" (default) or "imperial" units for weather (Maps distances always show both).
  • APPLE_STATE_CACHE 设置为 false 可使 $MCP_DATA_DIR/.apple-icloud-mcp 下不写入任何内容:不保存网页播放器令牌或 iCloud 发现缓存,被拒绝密码的锁定及已使用的确认令牌仅在内存中保留。
    查看英文原文Set to false to write nothing under $MCP_DATA_DIR/.apple-icloud-mcp: no web-player token or iCloud discovery cache, and the rejected-password latch and spent confirmation tokens then last only as lon…
  • APPLE_REQUEST_TIMEOUT_MS 每次请求的超时时间(毫秒)(默认 30000)
    查看英文原文Per-request timeout in milliseconds (default 30000).
  • APPLE_DEBUG_LOG 设置为 1 可将每条上游请求行记录到 stderr(凭据已隐去)。
    查看英文原文Set to 1 to log every upstream request line to stderr (credentials redacted).
  • MCP_CONFIRM_MODE 在没有确认提示的客户端(如 claude.ai)上,需要确认的写入操作(发送邮件、删除、移除曲目、邀请)的行为方式:"ask-user"(默认:显示预览并提供 confirmToken,模型必须获得您的同意)。
    查看英文原文How confirm-gated writes (send mail, deletes, removing tracks, invitations) behave on a client with no prompt, like claude.ai: "ask-user" (default: preview + confirmToken, the model must get your OK)…
  • MCP_CONFIRM_ELICITATION "off" never shows a confirmation prompt, so every client gets the MCP_CONFIRM_MODE flow. Set it for a client that says it can prompt but never does (the gated call hangs, e.g. opencode 2.0.x). Any ot…
  • MCP_CONFIRM_TTL_SECONDS confirmToken 的有效期(秒,默认 600)。
    查看英文原文Lifetime of a confirmToken in seconds (default 600).

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor,但需要先准备

需要 Apple Icloud MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)

让 AI 帮你安装

把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Cursor 安装 MCP server Apple Icloud MCP,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "apple-icloud": { "command": "npx", "args": [ "-y", "apple-icloud-mcp" ], "env": { "APPLE_KEY_ID": "your-value", "APPLE_PRIVATE_KEY": "your-value", "APPLE_MUSIC_USER_TOKEN": "your-value", "APPLE_MUSIC_WEB_USER_TOKEN": "your-value", "ICLOUD_APP_PASSWORD": "your-value", "MCP_CONFIRM_SECRET": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) APPLE_KEY_ID, APPLE_PRIVATE_KEY, APPLE_MUSIC_USER_TOKEN, APPLE_MUSIC_WEB_USER_TOKEN, ICLOUD_APP_PASSWORD, MCP_CONFIRM_SECRET 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Apple Icloud MCP 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Apple Icloud MCP 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    获取密钥的方法见下方开发者的 README

  3. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  4. 填写你的密钥

    在 Apple Icloud MCP 的设置中,APPLE_KEY_ID, APPLE_PRIVATE_KEY, APPLE_MUSIC_USER_TOKEN, APPLE_MUSIC_WEB_USER_TOKEN, ICLOUD_APP_PASSWORD, MCP_CONFIRM_SECRET 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 Cursor 中以 Agent 模式打开 AI 聊天

  6. 试一试

    用 Apple Icloud MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 Apple Icloud MCP,或回答中出现 Apple Icloud MCP 的工具名称,就表示连接成功

25 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • APPLE_TEAM_ID 您的 Apple Developer Team ID(10 个字符)。Apple Music(官方 API)、Apple Maps 和 WeatherKit 需要此项
    查看英文原文Your Apple Developer Team ID (10 characters). Needed for Apple Music (official API), Apple Maps and WeatherKit.
  • APPLE_PRIVATE_KEY_PATH 仅限本地安装:指向 .p8 文件的路径,用于替代 APPLE_PRIVATE_KEY。
    查看英文原文Local installs only: a path to the .p8 file instead of APPLE_PRIVATE_KEY.
  • APPLE_MUSIC_KEY_ID 针对 Apple Music 的 APPLE_KEY_ID 每服务覆盖设置(可选,需与 APPLE_MUSIC_PRIVATE_KEY 搭配使用)
    查看英文原文Optional per-service override of APPLE_KEY_ID for Apple Music (pair with APPLE_MUSIC_PRIVATE_KEY).
  • APPLE_MUSIC_PRIVATE_KEY 针对 Apple Music 的 APPLE_PRIVATE_KEY 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_PRIVATE_KEY for Apple Music.
  • APPLE_MAPS_KEY_ID 针对 Apple Maps 的 APPLE_KEY_ID 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_KEY_ID for Apple Maps.
  • APPLE_MAPS_PRIVATE_KEY 针对 Apple Maps 的 APPLE_PRIVATE_KEY 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_PRIVATE_KEY for Apple Maps.
  • APPLE_WEATHERKIT_KEY_ID 针对 WeatherKit 的 APPLE_KEY_ID 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_KEY_ID for WeatherKit.
  • APPLE_WEATHERKIT_PRIVATE_KEY 针对 WeatherKit 的 APPLE_PRIVATE_KEY 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_PRIVATE_KEY for WeatherKit.
  • APPLE_WEATHERKIT_SERVICE_ID 仅限 WeatherKit:为 WeatherKit 注册的 Services ID(例如 com.example.weather)。
    查看英文原文WeatherKit only: the Services ID registered for WeatherKit (e.g. com.example.weather).
  • APPLE_MUSIC_DEVELOPER_TOKEN 可选:预先生成的 Apple Music 开发者令牌(JWT),用于替代由上述密钥签发的令牌。
    查看英文原文Optional: a pre-minted Apple Music developer token (JWT) instead of signing one from the key above.
  • APPLE_MUSIC_WEB_DEVELOPER_TOKEN 可选覆盖网页播放器开发者令牌(通常会自动从 music.apple.com 读取)。
    查看英文原文Optional override for the web-player developer token (normally read automatically from music.apple.com).
  • APPLE_MUSIC_STOREFRONT 两位字母的 Apple Music 商店代码(例如 us、gb)。默认:您账户的商店,否则为 us。
    查看英文原文Two-letter Apple Music storefront (e.g. us, gb). Default: your account's storefront, else us.
  • ICLOUD_USERNAME 您的 Apple ID 电子邮件,用于 iCloud Calendar、Contacts 和 Mail
    查看英文原文Your Apple ID email, for iCloud Calendar, Contacts and Mail.
  • ICLOUD_MAIL_ADDRESS 您的 @icloud.com 地址,仅当您的 Apple ID 邮箱不是 iCloud 地址时使用(Mail 需要)。
    查看英文原文Your @icloud.com address, only if your Apple ID email is not an iCloud address (needed for Mail).
  • ICLOUD_DEFAULT_CALENDAR 未指定时,新事件存入的日历(默认:第一个可写的事件日历)。
    查看英文原文Calendar new events go to when none is named (default: the first writable event calendar).
  • APPLE_WRITE_MODE "none" = read-only tools; "additive" = also create/append, never modify, delete or send; "all" = everything (default). Unrecognized values fail closed to "none".
  • APPLE_SERVICES 要启用的服务列表,用逗号分隔(music、calendar、contacts、mail、maps、weather、itunes)。默认:全部。
    查看英文原文Comma-separated services to enable (music, calendar, contacts, mail, maps, weather, itunes). Default: all.
  • DISPLAY_TZ 用于显示时间以及未带偏移量的日期的 IANA 时区(例如 America/New_York)。在托管服务器上设置此项,因为其默认运行于 UTC。
    查看英文原文IANA time zone (e.g. America/New_York) for displayed times and for dates you give without an offset. Set this on a hosted server, which runs in UTC.
  • APPLE_UNITS "metric" (default) or "imperial" units for weather (Maps distances always show both).
  • APPLE_STATE_CACHE 设置为 false 可使 $MCP_DATA_DIR/.apple-icloud-mcp 下不写入任何内容:不保存网页播放器令牌或 iCloud 发现缓存,被拒绝密码的锁定及已使用的确认令牌仅在内存中保留。
    查看英文原文Set to false to write nothing under $MCP_DATA_DIR/.apple-icloud-mcp: no web-player token or iCloud discovery cache, and the rejected-password latch and spent confirmation tokens then last only as lon…
  • APPLE_REQUEST_TIMEOUT_MS 每次请求的超时时间(毫秒)(默认 30000)
    查看英文原文Per-request timeout in milliseconds (default 30000).
  • APPLE_DEBUG_LOG 设置为 1 可将每条上游请求行记录到 stderr(凭据已隐去)。
    查看英文原文Set to 1 to log every upstream request line to stderr (credentials redacted).
  • MCP_CONFIRM_MODE 在没有确认提示的客户端(如 claude.ai)上,需要确认的写入操作(发送邮件、删除、移除曲目、邀请)的行为方式:"ask-user"(默认:显示预览并提供 confirmToken,模型必须获得您的同意)。
    查看英文原文How confirm-gated writes (send mail, deletes, removing tracks, invitations) behave on a client with no prompt, like claude.ai: "ask-user" (default: preview + confirmToken, the model must get your OK)…
  • MCP_CONFIRM_ELICITATION "off" never shows a confirmation prompt, so every client gets the MCP_CONFIRM_MODE flow. Set it for a client that says it can prompt but never does (the gated call hangs, e.g. opencode 2.0.x). Any ot…
  • MCP_CONFIRM_TTL_SECONDS confirmToken 的有效期(秒,默认 600)。
    查看英文原文Lifetime of a confirmToken in seconds (default 600).

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code,但需要先准备

需要 Apple Icloud MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)

让 AI 帮你安装

把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 VS Code 安装 MCP server Apple Icloud MCP,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "apple-icloud": { "type": "stdio", "command": "npx", "args": [ "-y", "apple-icloud-mcp" ], "env": { "APPLE_KEY_ID": "your-value", "APPLE_PRIVATE_KEY": "your-value", "APPLE_MUSIC_USER_TOKEN": "your-value", "APPLE_MUSIC_WEB_USER_TOKEN": "your-value", "ICLOUD_APP_PASSWORD": "your-value", "MCP_CONFIRM_SECRET": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) APPLE_KEY_ID, APPLE_PRIVATE_KEY, APPLE_MUSIC_USER_TOKEN, APPLE_MUSIC_WEB_USER_TOKEN, ICLOUD_APP_PASSWORD, MCP_CONFIRM_SECRET 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Apple Icloud MCP 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 Apple Icloud MCP 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    获取密钥的方法见下方开发者的 README

  3. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  4. 填写你的密钥

    在 Apple Icloud MCP 的设置中,APPLE_KEY_ID, APPLE_PRIVATE_KEY, APPLE_MUSIC_USER_TOKEN, APPLE_MUSIC_WEB_USER_TOKEN, ICLOUD_APP_PASSWORD, MCP_CONFIRM_SECRET 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 VS Code 中以 Agent 模式打开 AI 聊天

  6. 试一试

    用 Apple Icloud MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 Apple Icloud MCP,或回答中出现 Apple Icloud MCP 的工具名称,就表示连接成功

25 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • APPLE_TEAM_ID 您的 Apple Developer Team ID(10 个字符)。Apple Music(官方 API)、Apple Maps 和 WeatherKit 需要此项
    查看英文原文Your Apple Developer Team ID (10 characters). Needed for Apple Music (official API), Apple Maps and WeatherKit.
  • APPLE_PRIVATE_KEY_PATH 仅限本地安装:指向 .p8 文件的路径,用于替代 APPLE_PRIVATE_KEY。
    查看英文原文Local installs only: a path to the .p8 file instead of APPLE_PRIVATE_KEY.
  • APPLE_MUSIC_KEY_ID 针对 Apple Music 的 APPLE_KEY_ID 每服务覆盖设置(可选,需与 APPLE_MUSIC_PRIVATE_KEY 搭配使用)
    查看英文原文Optional per-service override of APPLE_KEY_ID for Apple Music (pair with APPLE_MUSIC_PRIVATE_KEY).
  • APPLE_MUSIC_PRIVATE_KEY 针对 Apple Music 的 APPLE_PRIVATE_KEY 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_PRIVATE_KEY for Apple Music.
  • APPLE_MAPS_KEY_ID 针对 Apple Maps 的 APPLE_KEY_ID 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_KEY_ID for Apple Maps.
  • APPLE_MAPS_PRIVATE_KEY 针对 Apple Maps 的 APPLE_PRIVATE_KEY 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_PRIVATE_KEY for Apple Maps.
  • APPLE_WEATHERKIT_KEY_ID 针对 WeatherKit 的 APPLE_KEY_ID 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_KEY_ID for WeatherKit.
  • APPLE_WEATHERKIT_PRIVATE_KEY 针对 WeatherKit 的 APPLE_PRIVATE_KEY 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_PRIVATE_KEY for WeatherKit.
  • APPLE_WEATHERKIT_SERVICE_ID 仅限 WeatherKit:为 WeatherKit 注册的 Services ID(例如 com.example.weather)。
    查看英文原文WeatherKit only: the Services ID registered for WeatherKit (e.g. com.example.weather).
  • APPLE_MUSIC_DEVELOPER_TOKEN 可选:预先生成的 Apple Music 开发者令牌(JWT),用于替代由上述密钥签发的令牌。
    查看英文原文Optional: a pre-minted Apple Music developer token (JWT) instead of signing one from the key above.
  • APPLE_MUSIC_WEB_DEVELOPER_TOKEN 可选覆盖网页播放器开发者令牌(通常会自动从 music.apple.com 读取)。
    查看英文原文Optional override for the web-player developer token (normally read automatically from music.apple.com).
  • APPLE_MUSIC_STOREFRONT 两位字母的 Apple Music 商店代码(例如 us、gb)。默认:您账户的商店,否则为 us。
    查看英文原文Two-letter Apple Music storefront (e.g. us, gb). Default: your account's storefront, else us.
  • ICLOUD_USERNAME 您的 Apple ID 电子邮件,用于 iCloud Calendar、Contacts 和 Mail
    查看英文原文Your Apple ID email, for iCloud Calendar, Contacts and Mail.
  • ICLOUD_MAIL_ADDRESS 您的 @icloud.com 地址,仅当您的 Apple ID 邮箱不是 iCloud 地址时使用(Mail 需要)。
    查看英文原文Your @icloud.com address, only if your Apple ID email is not an iCloud address (needed for Mail).
  • ICLOUD_DEFAULT_CALENDAR 未指定时,新事件存入的日历(默认:第一个可写的事件日历)。
    查看英文原文Calendar new events go to when none is named (default: the first writable event calendar).
  • APPLE_WRITE_MODE "none" = read-only tools; "additive" = also create/append, never modify, delete or send; "all" = everything (default). Unrecognized values fail closed to "none".
  • APPLE_SERVICES 要启用的服务列表,用逗号分隔(music、calendar、contacts、mail、maps、weather、itunes)。默认:全部。
    查看英文原文Comma-separated services to enable (music, calendar, contacts, mail, maps, weather, itunes). Default: all.
  • DISPLAY_TZ 用于显示时间以及未带偏移量的日期的 IANA 时区(例如 America/New_York)。在托管服务器上设置此项,因为其默认运行于 UTC。
    查看英文原文IANA time zone (e.g. America/New_York) for displayed times and for dates you give without an offset. Set this on a hosted server, which runs in UTC.
  • APPLE_UNITS "metric" (default) or "imperial" units for weather (Maps distances always show both).
  • APPLE_STATE_CACHE 设置为 false 可使 $MCP_DATA_DIR/.apple-icloud-mcp 下不写入任何内容:不保存网页播放器令牌或 iCloud 发现缓存,被拒绝密码的锁定及已使用的确认令牌仅在内存中保留。
    查看英文原文Set to false to write nothing under $MCP_DATA_DIR/.apple-icloud-mcp: no web-player token or iCloud discovery cache, and the rejected-password latch and spent confirmation tokens then last only as lon…
  • APPLE_REQUEST_TIMEOUT_MS 每次请求的超时时间(毫秒)(默认 30000)
    查看英文原文Per-request timeout in milliseconds (default 30000).
  • APPLE_DEBUG_LOG 设置为 1 可将每条上游请求行记录到 stderr(凭据已隐去)。
    查看英文原文Set to 1 to log every upstream request line to stderr (credentials redacted).
  • MCP_CONFIRM_MODE 在没有确认提示的客户端(如 claude.ai)上,需要确认的写入操作(发送邮件、删除、移除曲目、邀请)的行为方式:"ask-user"(默认:显示预览并提供 confirmToken,模型必须获得您的同意)。
    查看英文原文How confirm-gated writes (send mail, deletes, removing tracks, invitations) behave on a client with no prompt, like claude.ai: "ask-user" (default: preview + confirmToken, the model must get your OK)…
  • MCP_CONFIRM_ELICITATION "off" never shows a confirmation prompt, so every client gets the MCP_CONFIRM_MODE flow. Set it for a client that says it can prompt but never does (the gated call hangs, e.g. opencode 2.0.x). Any ot…
  • MCP_CONFIRM_TTL_SECONDS confirmToken 的有效期(秒,默认 600)。
    查看英文原文Lifetime of a confirmToken in seconds (default 600).

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 Apple Icloud MCP 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

安装在电脑上

Claude Code

claude mcp add --scope user apple-icloud --env APPLE_KEY_ID=your-value --env APPLE_PRIVATE_KEY=your-value --env APPLE_MUSIC_USER_TOKEN=your-value --env APPLE_MUSIC_WEB_USER_TOKEN=your-value --env ICLOUD_APP_PASSWORD=your-value --env MCP_CONFIRM_SECRET=your-value -- npx -y apple-icloud-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "apple-icloud": {
      "command": "npx",
      "args": [
        "-y",
        "apple-icloud-mcp"
      ],
      "env": {
        "APPLE_KEY_ID": "your-value",
        "APPLE_PRIVATE_KEY": "your-value",
        "APPLE_MUSIC_USER_TOKEN": "your-value",
        "APPLE_MUSIC_WEB_USER_TOKEN": "your-value",
        "ICLOUD_APP_PASSWORD": "your-value",
        "MCP_CONFIRM_SECRET": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "apple-icloud": {
      "command": "npx",
      "args": [
        "-y",
        "apple-icloud-mcp"
      ],
      "env": {
        "APPLE_KEY_ID": "your-value",
        "APPLE_PRIVATE_KEY": "your-value",
        "APPLE_MUSIC_USER_TOKEN": "your-value",
        "APPLE_MUSIC_WEB_USER_TOKEN": "your-value",
        "ICLOUD_APP_PASSWORD": "your-value",
        "MCP_CONFIRM_SECRET": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "apple-icloud": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "apple-icloud-mcp"
      ],
      "env": {
        "APPLE_KEY_ID": "your-value",
        "APPLE_PRIVATE_KEY": "your-value",
        "APPLE_MUSIC_USER_TOKEN": "your-value",
        "APPLE_MUSIC_WEB_USER_TOKEN": "your-value",
        "ICLOUD_APP_PASSWORD": "your-value",
        "MCP_CONFIRM_SECRET": "your-value"
      }
    }
  }
}

需要你填写的值

  • APPLE_TEAM_ID env
    您的 Apple Developer Team ID(10 个字符)。Apple Music(官方 API)、Apple Maps 和 WeatherKit 需要此项
    查看英文原文Your Apple Developer Team ID (10 characters). Needed for Apple Music (official API), Apple Maps and WeatherKit.
  • APPLE_KEY_ID 机密 必填 env
    在 Certificates, Identifiers & Profiles → Keys 中创建的私钥的 Key ID,且已启用 Media Services (MusicKit)、MapKit JS 和/或 WeatherKit
    查看英文原文Key ID of a private key created in Certificates, Identifiers & Profiles → Keys with Media Services (MusicKit), MapKit JS and/or WeatherKit enabled.
  • APPLE_PRIVATE_KEY 机密 必填 env
    该密钥的 .p8 文件内容(PEM;接受使用 \n 转义的单行值和 base64)
    查看英文原文Contents of that key's .p8 file (PEM; one-line values with \n escapes and base64 are accepted).
  • APPLE_PRIVATE_KEY_PATH env
    仅限本地安装:指向 .p8 文件的路径,用于替代 APPLE_PRIVATE_KEY。
    查看英文原文Local installs only: a path to the .p8 file instead of APPLE_PRIVATE_KEY.
  • APPLE_MUSIC_KEY_ID 机密 env
    针对 Apple Music 的 APPLE_KEY_ID 每服务覆盖设置(可选,需与 APPLE_MUSIC_PRIVATE_KEY 搭配使用)
    查看英文原文Optional per-service override of APPLE_KEY_ID for Apple Music (pair with APPLE_MUSIC_PRIVATE_KEY).
  • APPLE_MUSIC_PRIVATE_KEY 机密 env
    针对 Apple Music 的 APPLE_PRIVATE_KEY 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_PRIVATE_KEY for Apple Music.
  • APPLE_MAPS_KEY_ID 机密 env
    针对 Apple Maps 的 APPLE_KEY_ID 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_KEY_ID for Apple Maps.
  • APPLE_MAPS_PRIVATE_KEY 机密 env
    针对 Apple Maps 的 APPLE_PRIVATE_KEY 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_PRIVATE_KEY for Apple Maps.
  • APPLE_WEATHERKIT_KEY_ID 机密 env
    针对 WeatherKit 的 APPLE_KEY_ID 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_KEY_ID for WeatherKit.
  • APPLE_WEATHERKIT_PRIVATE_KEY 机密 env
    针对 WeatherKit 的 APPLE_PRIVATE_KEY 每服务覆盖设置(可选)
    查看英文原文Optional per-service override of APPLE_PRIVATE_KEY for WeatherKit.
  • APPLE_WEATHERKIT_SERVICE_ID env
    仅限 WeatherKit:为 WeatherKit 注册的 Services ID(例如 com.example.weather)。
    查看英文原文WeatherKit only: the Services ID registered for WeatherKit (e.g. com.example.weather).
  • APPLE_MUSIC_DEVELOPER_TOKEN 机密 env
    可选:预先生成的 Apple Music 开发者令牌(JWT),用于替代由上述密钥签发的令牌。
    查看英文原文Optional: a pre-minted Apple Music developer token (JWT) instead of signing one from the key above.
  • APPLE_MUSIC_USER_TOKEN 机密 必填 env
    用于您音乐库的 Music User Token(官方 API),通过一次性的 MusicKit 登录获取:npx apple-icloud-mcp music-auth。若没有 Apple 开发者密钥,请向所有者索取开发者令牌(music-auth…
    查看英文原文Music User Token for your library (official API), from a one-time MusicKit sign-in: `npx apple-icloud-mcp music-auth`. Without the Apple Developer key, ask the owner for a developer token (music-auth…
  • APPLE_MUSIC_WEB_USER_TOKEN 机密 必填 env
    可选启用的网页播放器模式(无需开发者账户,可解锁 rename/delete/remove/reorder):来自已登录 music.apple.com 标签页的 media-user-token Cookie。
    查看英文原文Opt-in web-player mode (no developer account needed; unlocks rename/delete/remove/reorder): the media-user-token cookie from a signed-in music.apple.com tab.
  • APPLE_MUSIC_WEB_DEVELOPER_TOKEN 机密 env
    可选覆盖网页播放器开发者令牌(通常会自动从 music.apple.com 读取)。
    查看英文原文Optional override for the web-player developer token (normally read automatically from music.apple.com).
  • APPLE_MUSIC_STOREFRONT env
    两位字母的 Apple Music 商店代码(例如 us、gb)。默认:您账户的商店,否则为 us。
    查看英文原文Two-letter Apple Music storefront (e.g. us, gb). Default: your account's storefront, else us.
  • ICLOUD_USERNAME env
    您的 Apple ID 电子邮件,用于 iCloud Calendar、Contacts 和 Mail
    查看英文原文Your Apple ID email, for iCloud Calendar, Contacts and Mail.
  • ICLOUD_APP_PASSWORD 机密 必填 env
    An app-specific password from appleid.apple.com → Sign-In and Security → App-Specific Passwords (NOT your Apple ID password).
  • ICLOUD_MAIL_ADDRESS env
    您的 @icloud.com 地址,仅当您的 Apple ID 邮箱不是 iCloud 地址时使用(Mail 需要)。
    查看英文原文Your @icloud.com address, only if your Apple ID email is not an iCloud address (needed for Mail).
  • ICLOUD_DEFAULT_CALENDAR env
    未指定时,新事件存入的日历(默认:第一个可写的事件日历)。
    查看英文原文Calendar new events go to when none is named (default: the first writable event calendar).
  • APPLE_WRITE_MODE env
    "none" = read-only tools; "additive" = also create/append, never modify, delete or send; "all" = everything (default). Unrecognized values fail closed to "none".
  • APPLE_SERVICES env
    要启用的服务列表,用逗号分隔(music、calendar、contacts、mail、maps、weather、itunes)。默认:全部。
    查看英文原文Comma-separated services to enable (music, calendar, contacts, mail, maps, weather, itunes). Default: all.
  • DISPLAY_TZ env
    用于显示时间以及未带偏移量的日期的 IANA 时区(例如 America/New_York)。在托管服务器上设置此项,因为其默认运行于 UTC。
    查看英文原文IANA time zone (e.g. America/New_York) for displayed times and for dates you give without an offset. Set this on a hosted server, which runs in UTC.
  • APPLE_UNITS env
    "metric" (default) or "imperial" units for weather (Maps distances always show both).
  • APPLE_STATE_CACHE env
    设置为 false 可使 $MCP_DATA_DIR/.apple-icloud-mcp 下不写入任何内容:不保存网页播放器令牌或 iCloud 发现缓存,被拒绝密码的锁定及已使用的确认令牌仅在内存中保留。
    查看英文原文Set to false to write nothing under $MCP_DATA_DIR/.apple-icloud-mcp: no web-player token or iCloud discovery cache, and the rejected-password latch and spent confirmation tokens then last only as lon…
  • APPLE_REQUEST_TIMEOUT_MS env
    每次请求的超时时间(毫秒)(默认 30000)
    查看英文原文Per-request timeout in milliseconds (default 30000).
  • APPLE_DEBUG_LOG env
    设置为 1 可将每条上游请求行记录到 stderr(凭据已隐去)。
    查看英文原文Set to 1 to log every upstream request line to stderr (credentials redacted).
  • MCP_CONFIRM_MODE env
    在没有确认提示的客户端(如 claude.ai)上,需要确认的写入操作(发送邮件、删除、移除曲目、邀请)的行为方式:"ask-user"(默认:显示预览并提供 confirmToken,模型必须获得您的同意)。
    查看英文原文How confirm-gated writes (send mail, deletes, removing tracks, invitations) behave on a client with no prompt, like claude.ai: "ask-user" (default: preview + confirmToken, the model must get your OK)…
  • MCP_CONFIRM_ELICITATION env
    "off" never shows a confirmation prompt, so every client gets the MCP_CONFIRM_MODE flow. Set it for a client that says it can prompt but never does (the gated call hangs, e.g. opencode 2.0.x). Any ot…
  • MCP_CONFIRM_TTL_SECONDS env
    confirmToken 的有效期(秒,默认 600)。
    查看英文原文Lifetime of a confirmToken in seconds (default 600).
  • MCP_CONFIRM_SECRET 机密 必填 env
    confirmTokens 的签名密钥。默认每个进程随机生成;设置后,重启或重新部署前签发的令牌仍可使用(已使用的令牌记录在磁盘上,因此无法重放)。
    查看英文原文Signing key for confirmTokens. Random per process by default; set it so a token issued just before a restart or redeploy still works (spent tokens are recorded on disk, so none can be replayed).

说明为自动翻译,变量名保持原样;不确定时请查看原文。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
350/周
连接方式
在你的电脑上运行
最新版本i
0.5.0
发布到注册中心i
2026年11月12日
代码最后更新i
2026年11月15日
作者
chrischall
软件包
npm: apple-icloud-mcp
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月19日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 chrischall 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于4天前

  • ✓ 通过

    有许可证

    使用 MIT

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

已公开的漏洞(OSV.dev)

OSV.dev 中没有 apple-icloud-mcp@0.5.0 的记录

只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月15日

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章

如果你是作者,可把这段代码贴到 README。徽章会链接回本页。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/chrischall-apple-icloud-mcp.svg)](https://mcp.popnx.com/en/servers/chrischall-apple-icloud-mcp)

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

用户评价

还没有评价

登录后写评价

与“旅行、地图与天气”中的其他服务器比较i

  • 星标数多于此分类中其他 2002 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 2002 个服务器的 84% 更新
  • 基础检查结果等于或优于此分类中其他 2002 个服务器的 99%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Apple Icloud MCP 安全吗?

它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:APPLE_KEY_ID, APPLE_PRIVATE_KEY, APPLE_MUSIC_USER_TOKEN, APPLE_MUSIC_WEB_USER_TOKEN, ICLOUD_APP_PASSWORD, MCP_CONFIRM_SECRET

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于4天前,最新版本(0.5.0)于7天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Mu, Award Travel Finder, Killbottleneck, Whimsical, HasData Google Maps

功能相近的其他选择

同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Mu

News, web search, mail, markets, weather, places, files, calendar, contacts. 67 tools, one endpoint.

作者:micro正在增长★ 4404个月前更新

在云端运行✓ micro.mu

Killbottleneck

Free-to-self-host goal and process maps for humans and AI agents, with REST API and MCP.

作者:tengolabs起步阶段↓ 328/周★ 1412天前更新

在你的电脑上运行✓ 服务方 · killbottleneck.com

Whimsical

Create and edit flowcharts, mind maps, wireframes, and docs in Whimsical, or search your workspace.

作者:WhimsicalCode起步阶段★ 112个月前更新

在云端运行✓ 服务方 · whimsical.com

HasData Google Maps

Google Maps places, reviews, contributor history, photos and posts as JSON. No Google Cloud.

作者:HasData起步阶段↓ 107/周★ 102个月前更新

电脑或云端✓ 服务方 · hasdata.com
与相似项目对比
本项
Apple Icloud MCP
MuAward Travel FinderKillbottleneckWhimsicalHasData Google Maps
运行位置需要安装在电脑上在云端运行,无需安装在云端运行,无需安装需要安装在电脑上在云端运行,无需安装云端或安装在电脑上都可以
需要密钥是否否是否是
可在 Claude 中按 + 添加否否否否是否
基础检查3/34/43/33/34/45/5
许可证MITAGPL-3.0MITMITMITMIT
价格登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

apple-icloud-mcp

A Model Context Protocol server that connects Claude to Apple's web services: Apple Music (your playlists, library and the catalog), iCloud Calendar, Contacts and Mail, Apple Maps, WeatherKit, and the iTunes Search API.

It talks to Apple over the network through Apple's own web APIs and standard protocols (CalDAV, CardDAV, IMAP/SMTP), so — unlike Mac-only Apple integrations such as apple-swift-mcp — it runs anywhere: Linux, Windows, a container, or hosted on mcp-host as a claude.ai connector. The two complement each other: apple-swift-mcp drives the Mac's own apps (Calendar, Reminders, Contacts, Mail, Messages, Notes, Photos, Maps, and Music.app playlists), while apple-icloud-mcp reaches Apple's web services from anywhere and adds the Apple Music catalog, WeatherKit and iTunes.

[!NOTE]

Unofficial. This project is not affiliated with, endorsed by or sponsored by Apple Inc. Apple, iCloud,

Apple Music, Apple Maps and WeatherKit are trademarks of Apple Inc., used here only to name the services it

connects to.

[!WARNING]

AI-developed project. This codebase was entirely built and is actively maintained by

Claude Code. No human has audited the implementation. Review all code

and tool permissions before use.

[!IMPORTANT]

Not yet verified against a live Apple account. Every request shape comes from Apple's documentation or

Apple's own web client and is covered by tests against faithful fakes, but the build environment had no

Apple credentials. The first real run is the real verification — run apple_healthcheck first, and see

docs/APPLE-API.md for what each call relies on.

What you can do

  • *"Make a playlist called Road Trip 2026 with twenty upbeat 80s songs"*
  • *"Add the top 5 songs from Taylor Swift's latest album to my Workout playlist"*
  • *"Remove duplicates from my Chill playlist and sort it by artist"* (web-player mode)
  • *"What have I been listening to on heavy rotation?"* / *"Show my Apple Music Replay for this year"*
  • *"What's on my calendar next week?"* / *"Find me a free hour on Thursday afternoon"*
  • *"Move my dentist appointment to Friday at 3pm"*
  • *"What's Jane's phone number?"* / *"Add Bob Lee from Acme with bob@acme.com to my contacts"*
  • *"Any unread email from my landlord?"* / *"Reply to the last message from Sam saying I'll be there"*
  • *"How long will it take to drive to the airport at 5pm?"* / *"Coffee shops near Union Square"*
  • *"Will it rain in Chicago tomorrow?"*
  • *"Find the podcast Hard Fork and list its latest episodes"* / *"What are the top albums in the UK right now?"*

Services and what each needs

Every service is optional: each one switches on when its credentials are present, and apple_healthcheck tells you which are working.

ServiceWhat you getCredentialCost
Apple Music (official API)Catalog search, charts, your library, playlists (create, add tracks, folders), history, recommendations, Replay, ratings, favoritesApple Developer key + a Music User TokenApple Developer Program ($99/yr) + Apple Music subscription
Apple Music (web-player mode, opt-in, unofficial)Everything above plus rename/delete playlists, remove/reorder/sort/dedupe tracks, move to folders, remove from libraryThe media-user-token cookie from music.apple.comApple Music subscription only
iCloud Calendar (CalDAV)List/search events (recurring ones expanded), create/update/delete with correct time zones and recurrence, free-time finderApple ID + app-specific passwordFree
iCloud Contacts (CardDAV)Search, read, create, update (per-email/phone edits), delete, groupsApple ID + app-specific passwordFree
iCloud Mail (IMAP/SMTP)List mailboxes, search, read (without marking read), send and reply, flag, moveApple ID + app-specific passwordFree
Apple Maps (Maps Server API)Geocode, reverse geocode, place search, directions, ETAs, signed map-image URLsApple Developer keyFree up to 25,000 calls/day
WeatherKitCurrent conditions, hourly/daily forecast, next-hour precipitation, severe-weather alertsApple Developer key + Services IDFree up to 500,000 calls/month
iTunes Search + chartsSearch/lookup songs, albums, podcasts (with episodes), apps, books, audiobooks; top chartsNoneFree

Requirements

  • Node.js 22 or later (the hosted runner uses Node 26).
  • Whatever the services you want need (table above).

Acknowledgement of Terms

By using this MCP server, you acknowledge and agree to the following:

1. It accesses your own Apple accounts only, with credentials you supply. It cannot reach anyone else's data, and on a shared deployment each person's Apple ID stays in their own process.

2. Apple's terms govern your use, just as they govern your direct use of Apple's services — in particular the Apple Media Services Terms, the iCloud Terms and Conditions and, for the developer-key services, the Apple Developer Program License Agreement. The iCloud Terms say you may not *"interfere with or disrupt the Service (including accessing the Service through any automated means, like scripts or web crawlers)"*. The iCloud paths here use the mechanism Apple provides for third-party apps — app-specific passwords over CalDAV, CardDAV and IMAP/SMTP — at the pace of a person using an assistant. Apple Music web-player mode is different: it uses Apple's private web-player API with your browser session, which Apple has said may be blocked at any time. It is off unless you turn it on. Terms read by the maintainer 2026-09-26.

3. Personal use only. This project is not affiliated with, endorsed by, or sponsored by Apple Inc. "Apple", "Apple Music", "iCloud" and related marks are Apple's. Do not share your credentials, and do not use this to bulk-extract data.

4. Writes are real. Creating a calendar event with attendees makes iCloud email them invitations; sending mail sends it; deleting a playlist or contact deletes it. Those actions ask for confirmation first (see Confirmation), and APPLE_WRITE_MODE can remove write tools entirely.

5. You accept full responsibility for the consequences, technical (rate limits, a locked account after repeated failed sign-ins) and otherwise.

This is the maintainer's good-faith summary, not legal advice, and it does not modify or supersede Apple's actual terms.

Installation

Claude Code
claude mcp add apple -- npx -y apple-icloud-mcp

then set the variables for the services you want (see Setting up credentials) in the server's env, for example in .mcp.json:

{

"mcpServers": { "apple": { "command": "npx", "args": ["-y", "apple-icloud-mcp"], "env": { "ICLOUD_USERNAME": "you@icloud.com", "ICLOUD_APP_PASSWORD": "abcd-efgh-ijkl-mnop", "DISPLAY_TZ": "America/New_York" } } } }

Claude Desktop

Install the .mcpb bundle from the latest release and fill in the settings it asks for, or add the same npx entry to claude_desktop_config.json.

From source
git clone https://github.com/chrischall/apple-icloud-mcp.git && cd apple-icloud-mcp

npm install && npm run build cp .env.example .env # fill in what you need npm run dev

Setting up credentials

iCloud Calendar, Contacts and Mail — an app-specific password
  1. Sign in at appleid.apple.com → Sign-In and Security → App-Specific Passwords → generate one (two-factor authentication must be on).
  2. Set ICLOUD_USERNAME (your Apple ID email) and ICLOUD_APP_PASSWORD (the xxxx-xxxx-xxxx-xxxx password). Your normal Apple ID password does not work here.
  3. If your Apple ID is not an @icloud.com / @me.com address, also set ICLOUD_MAIL_ADDRESS to your iCloud Mail address (Mail only).

Changing your Apple ID password revokes every app-specific password — the usual reason a working setup suddenly returns "credentials rejected". After a definitive rejection the server stops sending that password — for 24 hours or until you change it, across restarts too (it records a digest of the rejected pair, never the password) — because repeated failed sign-ins can lock an Apple ID.

Reminders are not available: since iOS 13, iCloud Reminders no longer sync over CalDAV (see Not supported).

Apple Developer key — Apple Music (official), Apple Maps, WeatherKit

These three need a paid Apple Developer Program membership.

  1. In Certificates, Identifiers & Profiles, create the identifiers for the services you want: a Media ID (Apple Music), a Maps ID (Apple Maps), and a Services ID for WeatherKit.
  2. Under Keys, create a key and tick Media Services (MusicKit), MapKit JS and/or WeatherKit. One key can carry all three. Download the .p8 (you only get one chance).
  3. Set APPLE_TEAM_ID, APPLE_KEY_ID and APPLE_PRIVATE_KEY (the .p8 contents — multi-line PEM, a one-line value with \n escapes, or base64 all work). For WeatherKit also set APPLE_WEATHERKIT_SERVICE_ID. Separate keys per service are supported with APPLE_MUSIC_KEY_ID / APPLE_MUSIC_PRIVATE_KEY, APPLE_MAPS_… and APPLE_WEATHERKIT_….

The server signs short-lived tokens itself (12 hours for Apple Music, 1 hour for Maps and WeatherKit).

Apple Music — your library (official API): a Music User Token

Catalog search works with the developer key alone. Your library and playlists also need a Music User Token, which Apple only issues through an interactive MusicKit sign-in in a browser. With the developer key set, run:

npx apple-icloud-mcp music-auth

It opens a page on 127.0.0.1, you click Sign in with Apple Music, and it prints APPLE_MUSIC_USER_TOKEN=…. Put that value in APPLE_MUSIC_USER_TOKEN. It lasts about six months, is tied to the developer key that minted it, and changing your Apple ID password revokes it.

Someone without the developer key (another person on a shared deployment) never needs the .p8. The key's owner runs npx apple-icloud-mcp music-auth --print-developer-token --days 7 and sends them the short-lived token it prints; they run APPLE_MUSIC_DEVELOPER_TOKEN= npx apple-icloud-mcp music-auth on their own machine, sign in, and keep the user token it prints. The developer token expires on its own; the user token keeps working with the server's key.

Apple Music — web-player mode (opt-in, unofficial)

Apple's official API cannot rename or delete playlists, remove or reorder tracks, or remove anything from your library. Apple's own web player can. Web-player mode uses that same private API with your browser session:

  1. Sign in at music.apple.com in a desktop browser.
  2. Open the developer tools → Application/Storage → Cookies → https://music.apple.com and copy the value of the `media-user-token` cookie.
  3. Set it as `AP

只显示了开头部分;其余内容请在仓库中阅读