MCPSafari
by Epistates·★ 23·综合分 45
原生的 Safari MCP 服务器,为 AI 代理提供 23 个工具来控制 macOS 上的 Safari。
概述
MCPSafari 是一个全面的 MCP 服务器,将 AI 代理与 macOS 上的 Safari 浏览器连接起来。它提供了标签页管理、导航、页面阅读、表单交互、JavaScript 执行和调试功能。该服务器通过 stdio 与 MCP 客户端通信,并通过 WebSocket 桥接到 Safari 扩展,实现了无需 Chrome 开销的安全浏览器自动化。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当你需要在macOS上进行Safari特定的自动化时选择MCPSafari,特别是当你需要原生无障碍功能且希望避免Chrome的资源开销。
什么时候不要选它
如果你需要跨平台浏览器自动化或需要Chrome特定的浏览器扩展和API,不要选择MCPSafari。
此 server 暴露的工具
从 README 抽取出 12 个工具tabs_contextList all open tabs with IDs, URLs, and titles
tabs_createOpen a new tab, optionally with a URL
navigateGo to a URL, or use back/forward/reload actions
read_pageGet page content as text, html, or snapshot
snapshotAccessibility tree with element UIDs for interaction
clickClick by UID, CSS selector, text, or coordinates
type_textType into an element with optional clearFirst and submitKey
screenshotCapture the visible tab area as a PNG image
javascript_toolExecute arbitrary JS in the page context and return results
read_consoleRead console messages with level and regex filtering
read_networkRead captured XHR/fetch requests with type filtering
waitWait for a duration, CSS selector, or text to appear
可对比工具
安装
Homebrew(推荐)
brew install --cask epistates/tap/mcp-safariClaude 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 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。