MCP Catalogs
首页

MCPSafari

by Epistates·23·综合分 45

原生的 Safari MCP 服务器,为 AI 代理提供 23 个工具来控制 macOS 上的 Safari。

browser-automationdeveloper-toolsproductivity
4
Forks
0
活跃 Issue
本月
最近提交
2 天前
收录于

概述

MCPSafari 是一个全面的 MCP 服务器,将 AI 代理与 macOS 上的 Safari 浏览器连接起来。它提供了标签页管理、导航、页面阅读、表单交互、JavaScript 执行和调试功能。该服务器通过 stdio 与 MCP 客户端通信,并通过 WebSocket 桥接到 Safari 扩展,实现了无需 Chrome 开销的安全浏览器自动化。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:自动化 Safari 中的网页交互和数据提取
:通过模拟用户交互来测试 Web 应用程序
:为 AI 代理添加在 macOS 上的浏览能力
:支持哪些 macOS 版本?
:MCPSafari 与基于 Chrome 的自动化有何不同?

什么时候选它

当你需要在macOS上进行Safari特定的自动化时选择MCPSafari,特别是当你需要原生无障碍功能且希望避免Chrome的资源开销。

什么时候不要选它

如果你需要跨平台浏览器自动化或需要Chrome特定的浏览器扩展和API,不要选择MCPSafari。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • tabs_context

    List all open tabs with IDs, URLs, and titles

  • tabs_create

    Open a new tab, optionally with a URL

  • navigate

    Go to a URL, or use back/forward/reload actions

  • read_page

    Get page content as text, html, or snapshot

  • snapshot

    Accessibility tree with element UIDs for interaction

  • click

    Click by UID, CSS selector, text, or coordinates

  • type_text

    Type into an element with optional clearFirst and submitKey

  • screenshot

    Capture the visible tab area as a PNG image

  • javascript_tool

    Execute arbitrary JS in the page context and return results

  • read_console

    Read console messages with level and regex filtering

  • read_network

    Read captured XHR/fetch requests with type filtering

  • wait

    Wait for a duration, CSS selector, or text to appear

可对比工具

playwright-mcpbrowserless-mcppuppeteer-mcp

安装

Homebrew(推荐)

brew install --cask epistates/tap/mcp-safari

Claude Desktop

添加到 ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "mcp-safari": {
      "command": "mcp-safari"
    }
  }
}

安装后,在 Safari > 设置 > 扩展程序 > MCPSafari 扩展中启用该扩展。

FAQ

支持哪些 macOS 版本?
支持 macOS 14.0 (Sonoma) 或更高版本,需要 Safari 17+。
MCPSafari 与基于 Chrome 的自动化有何不同?
在 Apple Silicon 上使用少 40-60% 的 CPU/热量,保持 Safari 登录/cookies,并为复杂的 UI 提供更好的可访问性树。

MCPSafari 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。