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

Apple Safari

作者:mgcrea版本 1.42.0i★ 6 (整个仓库的星标)i在你的电脑上运行官方网站 ↗
注册名称io.github.mgcrea/mcp-apple-safari

安装方法

What it does

Read and act on Safari — history, tabs and reading list, writes off by default

  • Connects 在你的电脑上运行
  • Account or key Needs APPLE_SAFARI_COOKIE_HOSTS
  • Category 其他

为什么排在这里

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

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

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

安装

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

用一句话让 AI 帮你安装

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

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

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

第一步:你用哪个 AI?

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

可连接 Claude,但需要先准备

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

让 AI 帮你安装

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

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

这段话不包含你的密钥。如果需要密钥,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 Safari 的密钥

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

    打开 Apple Safari 网站 ↗

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

    SettingsDeveloperEdit Config

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

    {
      "mcpServers": {
        "apple-safari": {
          "command": "npx",
          "args": [
            "-y",
            "@mgcrea/mcp-apple-safari"
          ],
          "env": {
            "APPLE_SAFARI_COOKIE_HOSTS": "your-value"
          }
        }
      }
    }

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

  5. 退出 Claude 再重新打开

  6. 试一试

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

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

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

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

  • APPLE_SAFARI_ALLOW_WRITES 注册可修改数据的工具。默认关闭,由网关决定写入工具是否存在,而不仅仅是拒绝调用。写入功能关闭时,代理无法看到这些工具。
    查看英文原文Register the mutating tools. Off by default, and the gate decides whether the write tools exist at all rather than merely refusing — an agent with writes off cannot see them.
  • APPLE_SAFARI_ALLOW_CODES 返回一次性验证码:apple_safari_page_elements 中的 one-time-code 字段,以及用于查找页面以文本形式显示的验证码的 apple_safari_find_codes。它有独立的开关而非 allowWrites,因为这是一个读取操作。
    查看英文原文Return one-time codes: a one-time-code field in apple_safari_page_elements, and apple_safari_find_codes for a code a page shows as text. Its own gate rather than allowWrites, because it is a read. Cr…
  • APPLE_SAFARI_ALLOW_NETWORK Register apple_safari_network_record, _list and _get, which record what a page you allowed the extension on fetches and read the responses. Its own gate rather than allowWrites, because it is a read;…
  • APPLE_SAFARI_ALLOW_COOKIES Register apple_safari_cookies, which lists the cookies Safari would send to an open page, HttpOnly ones included, through the extension's cookies permission. Its own gate rather than allowWrites, bec…
  • APPLE_SAFARI_DOWNLOAD_DIR apple_safari_network_get 和 apple_safari_cookies 的 saveAs 写入文件的位置。默认为 /Downloads。名称仅保留 basename,除非明确要求,否则不会替换已存在的文件。
    查看英文原文Where saveAs writes a file, for apple_safari_network_get and apple_safari_cookies. Defaults to ~/Downloads. A name is kept to its basename and an existing file is never replaced unless asked.
  • APPLE_SAFARI_NETWORK_CHUNK_CHARS 服务器在读取大型正文时,每个命令向页面请求的字符数。默认值为 262144,已测试可用;Safari 原生消息通道的上限超出此值多少,无法确定。
    查看英文原文Characters of a body the server asks the page for per command when it reads a large body. Defaults to 262144, which was measured to work; how far above that Safari's native-message channel goes is un…

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

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

ChatGPT 暂时无法连接 Apple Safari

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

你可以改用这些方式

A · 使用能连接 Apple Safari 的应用

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

B · 其他 类中能连接 ChatGPT 的其他服务器

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

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

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

让 AI 帮你安装

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

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

这段话不包含你的密钥。如果需要密钥,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 Safari 的密钥

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

    打开 Apple Safari 网站 ↗

  3. 打开终端

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

  4. 粘贴这条命令并按 Enter

    claude mcp add --scope user apple-safari --env APPLE_SAFARI_COOKIE_HOSTS=your-value -- npx -y @mgcrea/mcp-apple-safari

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

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

  5. 在 Claude Code 中输入 /mcp

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

  6. 试一试

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

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

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

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

  • APPLE_SAFARI_ALLOW_WRITES 注册可修改数据的工具。默认关闭,由网关决定写入工具是否存在,而不仅仅是拒绝调用。写入功能关闭时,代理无法看到这些工具。
    查看英文原文Register the mutating tools. Off by default, and the gate decides whether the write tools exist at all rather than merely refusing — an agent with writes off cannot see them.
  • APPLE_SAFARI_ALLOW_CODES 返回一次性验证码:apple_safari_page_elements 中的 one-time-code 字段,以及用于查找页面以文本形式显示的验证码的 apple_safari_find_codes。它有独立的开关而非 allowWrites,因为这是一个读取操作。
    查看英文原文Return one-time codes: a one-time-code field in apple_safari_page_elements, and apple_safari_find_codes for a code a page shows as text. Its own gate rather than allowWrites, because it is a read. Cr…
  • APPLE_SAFARI_ALLOW_NETWORK Register apple_safari_network_record, _list and _get, which record what a page you allowed the extension on fetches and read the responses. Its own gate rather than allowWrites, because it is a read;…
  • APPLE_SAFARI_ALLOW_COOKIES Register apple_safari_cookies, which lists the cookies Safari would send to an open page, HttpOnly ones included, through the extension's cookies permission. Its own gate rather than allowWrites, bec…
  • APPLE_SAFARI_DOWNLOAD_DIR apple_safari_network_get 和 apple_safari_cookies 的 saveAs 写入文件的位置。默认为 /Downloads。名称仅保留 basename,除非明确要求,否则不会替换已存在的文件。
    查看英文原文Where saveAs writes a file, for apple_safari_network_get and apple_safari_cookies. Defaults to ~/Downloads. A name is kept to its basename and an existing file is never replaced unless asked.
  • APPLE_SAFARI_NETWORK_CHUNK_CHARS 服务器在读取大型正文时,每个命令向页面请求的字符数。默认值为 262144,已测试可用;Safari 原生消息通道的上限超出此值多少,无法确定。
    查看英文原文Characters of a body the server asks the page for per command when it reads a large body. Defaults to 262144, which was measured to work; how far above that Safari's native-message channel goes is un…

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

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

可连接 Cursor,但需要先准备

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

让 AI 帮你安装

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

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

这段话不包含你的密钥。如果需要密钥,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 Safari 的密钥

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

    打开 Apple Safari 网站 ↗

  3. 点击这个按钮打开 Cursor

    在 Cursor 中打开

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

  4. 填写你的密钥

    在 Apple Safari 的设置中,APPLE_SAFARI_COOKIE_HOSTS 还是空的,填入你的密钥并保存

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

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

  6. 试一试

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

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

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

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

  • APPLE_SAFARI_ALLOW_WRITES 注册可修改数据的工具。默认关闭,由网关决定写入工具是否存在,而不仅仅是拒绝调用。写入功能关闭时,代理无法看到这些工具。
    查看英文原文Register the mutating tools. Off by default, and the gate decides whether the write tools exist at all rather than merely refusing — an agent with writes off cannot see them.
  • APPLE_SAFARI_ALLOW_CODES 返回一次性验证码:apple_safari_page_elements 中的 one-time-code 字段,以及用于查找页面以文本形式显示的验证码的 apple_safari_find_codes。它有独立的开关而非 allowWrites,因为这是一个读取操作。
    查看英文原文Return one-time codes: a one-time-code field in apple_safari_page_elements, and apple_safari_find_codes for a code a page shows as text. Its own gate rather than allowWrites, because it is a read. Cr…
  • APPLE_SAFARI_ALLOW_NETWORK Register apple_safari_network_record, _list and _get, which record what a page you allowed the extension on fetches and read the responses. Its own gate rather than allowWrites, because it is a read;…
  • APPLE_SAFARI_ALLOW_COOKIES Register apple_safari_cookies, which lists the cookies Safari would send to an open page, HttpOnly ones included, through the extension's cookies permission. Its own gate rather than allowWrites, bec…
  • APPLE_SAFARI_DOWNLOAD_DIR apple_safari_network_get 和 apple_safari_cookies 的 saveAs 写入文件的位置。默认为 /Downloads。名称仅保留 basename,除非明确要求,否则不会替换已存在的文件。
    查看英文原文Where saveAs writes a file, for apple_safari_network_get and apple_safari_cookies. Defaults to ~/Downloads. A name is kept to its basename and an existing file is never replaced unless asked.
  • APPLE_SAFARI_NETWORK_CHUNK_CHARS 服务器在读取大型正文时,每个命令向页面请求的字符数。默认值为 262144,已测试可用;Safari 原生消息通道的上限超出此值多少,无法确定。
    查看英文原文Characters of a body the server asks the page for per command when it reads a large body. Defaults to 262144, which was measured to work; how far above that Safari's native-message channel goes is un…

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

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

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

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

让 AI 帮你安装

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

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

这段话不包含你的密钥。如果需要密钥,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 Safari 的密钥

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

    打开 Apple Safari 网站 ↗

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

    在 VS Code 中打开

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

  4. 填写你的密钥

    在 Apple Safari 的设置中,APPLE_SAFARI_COOKIE_HOSTS 还是空的,填入你的密钥并保存

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

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

  6. 试一试

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

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

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

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

  • APPLE_SAFARI_ALLOW_WRITES 注册可修改数据的工具。默认关闭,由网关决定写入工具是否存在,而不仅仅是拒绝调用。写入功能关闭时,代理无法看到这些工具。
    查看英文原文Register the mutating tools. Off by default, and the gate decides whether the write tools exist at all rather than merely refusing — an agent with writes off cannot see them.
  • APPLE_SAFARI_ALLOW_CODES 返回一次性验证码:apple_safari_page_elements 中的 one-time-code 字段,以及用于查找页面以文本形式显示的验证码的 apple_safari_find_codes。它有独立的开关而非 allowWrites,因为这是一个读取操作。
    查看英文原文Return one-time codes: a one-time-code field in apple_safari_page_elements, and apple_safari_find_codes for a code a page shows as text. Its own gate rather than allowWrites, because it is a read. Cr…
  • APPLE_SAFARI_ALLOW_NETWORK Register apple_safari_network_record, _list and _get, which record what a page you allowed the extension on fetches and read the responses. Its own gate rather than allowWrites, because it is a read;…
  • APPLE_SAFARI_ALLOW_COOKIES Register apple_safari_cookies, which lists the cookies Safari would send to an open page, HttpOnly ones included, through the extension's cookies permission. Its own gate rather than allowWrites, bec…
  • APPLE_SAFARI_DOWNLOAD_DIR apple_safari_network_get 和 apple_safari_cookies 的 saveAs 写入文件的位置。默认为 /Downloads。名称仅保留 basename,除非明确要求,否则不会替换已存在的文件。
    查看英文原文Where saveAs writes a file, for apple_safari_network_get and apple_safari_cookies. Defaults to ~/Downloads. A name is kept to its basename and an existing file is never replaced unless asked.
  • APPLE_SAFARI_NETWORK_CHUNK_CHARS 服务器在读取大型正文时,每个命令向页面请求的字符数。默认值为 262144,已测试可用;Safari 原生消息通道的上限超出此值多少,无法确定。
    查看英文原文Characters of a body the server asks the page for per command when it reads a large body. Defaults to 262144, which was measured to work; how far above that Safari's native-message channel goes is un…

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

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

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

查看所有支持 MCP 的应用 →

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

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

安装在电脑上

Claude Code

claude mcp add --scope user apple-safari --env APPLE_SAFARI_COOKIE_HOSTS=your-value -- npx -y @mgcrea/mcp-apple-safari

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "apple-safari": {
      "command": "npx",
      "args": [
        "-y",
        "@mgcrea/mcp-apple-safari"
      ],
      "env": {
        "APPLE_SAFARI_COOKIE_HOSTS": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "apple-safari": {
      "command": "npx",
      "args": [
        "-y",
        "@mgcrea/mcp-apple-safari"
      ],
      "env": {
        "APPLE_SAFARI_COOKIE_HOSTS": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "apple-safari": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mgcrea/mcp-apple-safari"
      ],
      "env": {
        "APPLE_SAFARI_COOKIE_HOSTS": "your-value"
      }
    }
  }
}

需要你填写的值

  • APPLE_SAFARI_ALLOW_WRITES env
    注册可修改数据的工具。默认关闭,由网关决定写入工具是否存在,而不仅仅是拒绝调用。写入功能关闭时,代理无法看到这些工具。
    查看英文原文Register the mutating tools. Off by default, and the gate decides whether the write tools exist at all rather than merely refusing — an agent with writes off cannot see them.
  • APPLE_SAFARI_ALLOW_CODES env
    返回一次性验证码:apple_safari_page_elements 中的 one-time-code 字段,以及用于查找页面以文本形式显示的验证码的 apple_safari_find_codes。它有独立的开关而非 allowWrites,因为这是一个读取操作。
    查看英文原文Return one-time codes: a one-time-code field in apple_safari_page_elements, and apple_safari_find_codes for a code a page shows as text. Its own gate rather than allowWrites, because it is a read. Cr…
  • APPLE_SAFARI_ALLOW_NETWORK env
    Register apple_safari_network_record, _list and _get, which record what a page you allowed the extension on fetches and read the responses. Its own gate rather than allowWrites, because it is a read;…
  • APPLE_SAFARI_ALLOW_COOKIES env
    Register apple_safari_cookies, which lists the cookies Safari would send to an open page, HttpOnly ones included, through the extension's cookies permission. Its own gate rather than allowWrites, bec…
  • APPLE_SAFARI_COOKIE_HOSTS 机密 必填 env
    Comma-separated registrable domains whose cookies apple_safari_cookies may read, like "yahoo.com"; each covers the domain and its subdomains. Empty, the default, means no site is readable. An entry w…
  • APPLE_SAFARI_DOWNLOAD_DIR env
    apple_safari_network_get 和 apple_safari_cookies 的 saveAs 写入文件的位置。默认为 /Downloads。名称仅保留 basename,除非明确要求,否则不会替换已存在的文件。
    查看英文原文Where saveAs writes a file, for apple_safari_network_get and apple_safari_cookies. Defaults to ~/Downloads. A name is kept to its basename and an existing file is never replaced unless asked.
  • APPLE_SAFARI_NETWORK_CHUNK_CHARS env
    服务器在读取大型正文时,每个命令向页面请求的字符数。默认值为 262144,已测试可用;Safari 原生消息通道的上限超出此值多少,无法确定。
    查看英文原文Characters of a body the server asks the page for per command when it reads a large body. Defaults to 262144, which was measured to work; how far above that Safari's native-message channel goes is un…

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

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

一览

GitHub 星标i
6 (整个仓库的星标)
该仓库包含多个 MCP 条目,星标在排名中只计算一次
每周下载量i
971/周
连接方式
在你的电脑上运行
最新版本i
1.42.0
分类i
其他
发布到注册中心i
2026年11月18日
代码最后更新i
2026年11月18日
作者
mgcrea
软件包
npm: @mgcrea/mcp-apple-safari
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 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 账户 mgcrea 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于昨天

  • ✓ 通过

    有许可证

    使用 MIT

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

已公开的漏洞(OSV.dev)

尚未检查

我们检查什么 → · JSON

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

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

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

讨论

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

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

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

登录后发帖

用户评价

还没有评价

登录后写评价

与“其他”中的其他服务器比较i

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

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

常见问题

Apple Safari 安全吗?

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

它需要哪些密钥或代码?

你需要填写:APPLE_SAFARI_COOKIE_HOSTS

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

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

它还在维护吗?

GitHub 仓库最后更新于昨天,最新版本(1.42.0)于昨天进入注册中心。

哪些应用可以使用它?

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

有什么可以替代它?

同一分类中有:World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu

功能相近的其他选择

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

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

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.

作者:koala73广泛使用★ 9.1万3天前更新

在云端运行✓ 服务方 · worldmonitor.app

openstatus

Manage monitors, status pages, incidents and maintenances in your openstatus workspace.

作者:openstatusHQ广泛使用★ 92742个月前更新

在云端运行✓ 服务方 · openstatus.dev

Strata

MCP server for progressive tool usage at any scale (see https://klavis.ai)

作者:Klavis-AI正在增长★ 582414个月前更新

在云端运行仓库已归档✓ klavis.ai

Jitsu

Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.

作者:jitsucom广泛使用★ 51364个月前更新

在云端运行✓ 服务方 · jitsu.com
与相似项目对比
本项
Apple Safari
World MonitoropenstatusOh My Posh ValidatorStrataJitsu
运行位置需要安装在电脑上在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装
需要密钥是否否否否否
可在 Claude 中按 + 添加否否否否否否
基础检查3/34/44/44/41/44/4
许可证MITAGPL-3.0AGPL-3.0MITApache-2.0MIT
价格登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用

作者的 README

打开 README

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

@mgcrea/mcp-apple-safari

MCP server for the macOS Safari browser: what you have visited, what is open now, and what is on the page in front of you.

{

"mcpServers": { "apple-safari": { "command": "npx", "args": ["-y", "@mgcrea/mcp-apple-safari"] } } }

Three lanes that are not fallbacks for each other

This is the thing to understand before anything else. Every other surface in this bundle has two routes to the same data and the choice is about speed. Safari's lanes see almost disjoint things, and each needs a different permission — so an ungranted Safari server is not a slower Safari server, it is a different and much smaller one.

LaneNeedsAnswers
FileFull Disk Accessthe past: history, bookmarks, the Reading List
Apple Eventsan Automation grant, Safari runningthe present: which tabs are open
Extensionthe extension enabled AND allowed on that sitethe page: its text, its elements, acting on it

The extension lane needs no TCC grant of any kind. Safari consents to it one website at a time, which the user can see and revoke per site.

Tools

Read

ToolWhat
apple_safari_search_historyhistory by text or date range, with visit counts
apple_safari_get_pageone history item by ref
apple_safari_list_tabstabs open right now, optionally enriched from history
apple_safari_list_bookmarksthe bookmark tree
apple_safari_list_reading_listsaved items, and which are unread
apple_safari_read_pagea captured page as text or HTML
apple_safari_page_elementswhat is clickable or typeable on a live page
apple_safari_wait_forwait until some text appears on a page, or leaves it
apple_safari_diagnosticswhich lanes work, and why one does not

Opt-in read — APPLE_SAFARI_ALLOW_CODES

ToolWhat
apple_safari_find_codesa one-time 2FA code in the TEXT of an open page

Opt-in read — APPLE_SAFARI_ALLOW_NETWORK

ToolWhat
apple_safari_network_recordarm, stop, clear or report recording on a page (reload needs writes)
apple_safari_network_listwhat the page fetched: method, URL, status, timing, no bodies
apple_safari_network_getone request's headers and body; saveAs writes a file (needs writes)

Opt-in read — APPLE_SAFARI_ALLOW_COOKIES, and only for sites in APPLE_SAFARI_COOKIE_HOSTS

ToolWhat
apple_safari_cookiesa page's cookies, HttpOnly included, as metadata; saveAs writes named ones

Write — APPLE_SAFARI_ALLOW_WRITES

ToolWhat
apple_safari_open_urlopen a URL, in a new tab or the current
apple_safari_add_reading_list_itemsave a URL for later
apple_safari_close_tabsclose tabs an agent opened, if unmoved
apple_safari_clickclick an element on a live page
apple_safari_filltype into one
apple_safari_scrollscroll a page
apple_safari_submitsubmit the form an element belongs to

Configuration

VariableDefault
APPLE_SAFARI_ALLOW_WRITESoffRegister the seven write tools at all.
APPLE_SAFARI_ALLOW_CODESoffOne-time codes — see below.
APPLE_SAFARI_ALLOW_NETWORKoffNetwork capture — see below.
APPLE_SAFARI_ALLOW_COOKIESoffReading cookies — see below.
APPLE_SAFARI_COOKIE_HOSTSemptySites whose cookies may be read. Empty = none.
APPLE_SAFARI_DOWNLOAD_DIR~/DownloadsWhere saveAs writes.
APPLE_SAFARI_NETWORK_CHUNK_CHARS262144Characters per native message when pulling a body.
APPLE_SAFARI_LIVE_TABSonUse the Apple Events lane. Off = no Apple Event.
APPLE_SAFARI_STOREautoExplicit History.db path.
APPLE_SAFARI_BOOKMARKSautoExplicit Bookmarks.plist path.
APPLE_SAFARI_PAGESautoExplicit extension capture directory.
APPLE_SAFARI_OPENED_TABSautoExplicit record of tabs open_url opened.
APPLE_SAFARI_ACTION_TIMEOUT_MS12000How long an action waits for the page to answer.
APPLE_SAFARI_LIVE_READ_TIMEOUT_MS2500How long read_page waits on the tab. 0 = capture.
APPLE_SAFARI_READING_LIST_CONFIRM_MS1500Beat before re-reading to confirm a Reading List add.
APPLE_SAFARI_INDEX_MODEautoauto \ro \immutable \off.
APPLE_SAFARI_DEFAULT_RANGE_DAYS30Window when only a start is given.
APPLE_SAFARI_MAX_RANGE_DAYS3660Hard ceiling on a single range.
APPLE_SAFARI_MAX_RESULTS—Default page size.
APPLE_SAFARI_EXPOSE_PROMPTSoffRegister prompts and cupertino:// resources.
APPLE_SAFARI_DEBUGoffVerbose logging.
APPLE_SAFARI_ALLOW_CODES

Two things move together when it is on: find_codes is registered, and page_elements returns the value of a one-time-code field. It is a read, and deliberately not folded into ALLOW_WRITES — reaching a read through the write gate would mean granting the right to click a button in order to see a number.

A credential field is withheld either way. A password, a card number or a CVC comes back redacted: "credential" with no value and no setting that returns it. This flag is named for codes and does not widen past them. In both cases hasValue still says whether the field is filled, which is usually what you needed.

It is weaker than the Messages gate of the same name, and worth knowing which. There, off means the tool does not exist and the alternative is sifting whole threads. Here read_page stays ungated, so off removes the targeted field read and the live DOM scan — not every byte of a page.

See docs/passwords.md in the repo for why the Passwords app itself is unreachable by any lane, and why reading a code a _website shows_ is a different question from reading the vault.

APPLE_SAFARI_ALLOW_NETWORK

Registers network_record, network_list and network_get, which show what a page you have allowed the extension on fetched: fetch and XMLHttpRequest calls from the top frame, console errors, and resource-timing entries. It is a read gate and is not folded into ALLOW_WRITES, for the reason ALLOW_CODES is not: the traffic of a signed-in page is session material, and that is a different exposure from a one-time code.

  • Bodies are not redacted, and neither are URLs. Headers named authorization, proxy-authorization, cookie or set-cookie, or containing token, secret, api-key or apikey, come back as . A body has no names to match, so it is returned as the page saw it, and URLs are returned in full, query strings included, so a token in one comes back too. Turn the gate on knowing that.
  • Opt-in per tab, and it expires. Nothing is wrapped until network_record starts, recording survives a reload for 15 minutes by default (120 at most), and stop ends it at once.
  • Two things need `ALLOW_WRITES` as well: reload: true on network_record, which re-runs the page, and saveAs on network_get, which writes into APPLE_SAFARI_DOWNLOAD_DIR (a bare filename, and never over an existing file unless overwrite: true). Each fails with an error naming APPLE_SAFARI_ALLOW_WRITES.
  • What it cannot see: subframes, web and service workers, / bodies and WebSockets. Request ids die when the page reloads or navigates. On a page whose Content-Security-Policy refuses inline scripts there is a fallback that loads the recorder by URL instead. It has not been verified in Safari; if it works it arrives late, so the page's first requests can be missing, and if it does not, hook.injection says "blocked".
  • A file inside an API response: network_get with jsonPath to the field, decode: "base64" and saveAs. The bytes go to disk, not into the conversation.
APPLE_SAFARI_ALLOW_COOKIES and APPLE_SAFARI_COOKIE_HOSTS

Registers cookies, which lists the cookies Safari would send to an open page, HttpOnly ones included, so a signed-in session can be handed to a local tool without copying it out of Safari by hand. It reads through browser.cookies in the extension's background worker, so the values never enter the page's own process.

  • Gated twice. The flag decides whether the tool exists; APPLE_SAFARI_COOKIE_HOSTS decides which sites it may read. A login cookie is the login, so the flag alone would hand any agent any session in the browser. The list is comma-separated registrable domains (yahoo.com), each covering the domain and its subdomains on a label boundary (never notyahoo.com). Empty, the default, refuses every page, and a refusal names the setting. An entry with no dot is ignored; there is no public-suffix list, so do not list one like co.uk.
  • No value inline, ever. The result gives each cookie's name, domain, path, secure, httpOnly, sameSite and expires (null for a session cookie).
  • To get values out: names plus saveAs writes the named cookies into APPLE_SAFARI_DOWNLOAD_DIR as one Cookie header value — A3=…; T=…; Y=…, with no Cookie: prefix and no trailing newline, so a tool that takes a cookie string reads the file as is — mode 0600. A bare filename, never over an existing file unless overwrite: true, and it needs ALLOW_WRITES. A name the page lacks writes nothing and says which.
  • The extension asks for the `cookies` permission. On the install measured, Safar

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