achiya-automation/safari-mcp logo

achiya-automation/safari-mcp

Free

原生 Safari 浏览器自动化,专为 macOS 设计。通过 AppleScript + JavaScript 提供 80 个工具,零 Chrome 开销,保留登录状态,后台静默运行。

FreeFree tier
Type
Open Source
Company
achiya-automation

About achiya-automation/safari-mcp

Safari MCP is a native Safari browser automation tool for AI agents, providing 97 tools via AppleScript and JavaScript. It runs silently in the background, keeps existing logins and sessions, and offers a drop-in alternative to Chrome DevTools MCP with 40-60% less CPU usage on Apple Silicon. It requires no additional browsers like Chrome, Puppeteer, or Playwright, and operates with ~5ms per command by reusing a single osascript process. Built for macOS only, it enables AI coding agents to interact with the user's actual Safari browser, supporting frameworks like React, Vue, and Angular.

Key Features

97 tools covering navigation, clicks, forms, screenshots, network, storage, accessibility, and more
Zero heat — native WebKit on Apple Silicon with ~60% less CPU than Chrome
Uses the user's real Safari browser, keeping all logins, cookies, and sessions (Gmail, GitHub, Ahrefs, Slack, banking)
Background operation — Safari stays in the background, no window stealing
No browser dependencies — no Puppeteer, Playwright, WebDriver, or Chrome required
Persistent process reuses a single osascript process for ~5ms per command vs ~80ms
Framework-compatible with React, Vue, Angular
Drop-in alternative to Chrome DevTools MCP

Pros & Cons

Pros
  • Native WebKit on Apple Silicon with ~60% less CPU than Chrome
  • Keeps all logins, cookies, and sessions from the user's real Safari browser
  • Background operation without window stealing
  • Fast ~5ms per command via persistent osascript process
  • Open source and free to use
  • No additional browser dependencies (no Puppeteer, Playwright, WebDriver, Chrome)
  • Framework-compatible with React, Vue, Angular
  • Drop-in alternative to Chrome DevTools MCP
Cons
  • macOS only, not cross-platform
  • Requires Safari browser (default on macOS but not available on other operating systems)
  • Relies on AppleScript/JavaScript injection which may have limitations with complex web apps
  • May require granting accessibility permissions to Safari
  • Cannot run in headless mode for CI/CD environments

Best For

AI coding agents that need to interact with logged-in web services like Gmail, GitHub, Slack, or bankingAutomating web workflows without spinning up a separate browser instanceReplacing Chrome DevTools MCP for lower CPU and heat on Apple Silicon MacsBypassing Cloudflare and bot detection that blocks headless scrapersBuilding browser-based automation tools for macOS development environments

FAQ

What is Safari MCP?
Safari MCP is a native Safari browser automation tool for AI agents, providing 97 tools via AppleScript and JavaScript. It runs silently in the background, keeps existing logins, and offers a drop-in alternative to Chrome DevTools MCP with lower CPU usage.
Does Safari MCP work on Windows or Linux?
No, Safari MCP is macOS only and requires the Safari browser that ships with macOS.
Is Safari MCP free?
Yes, it is open source and free to use.
How does Safari MCP compare to Chrome DevTools MCP?
Safari MCP drives the real Safari browser you are already logged into, with no additional browser dependencies. It uses native WebKit on Apple Silicon, resulting in 40-60% less CPU and heat compared to Chrome DevTools MCP.
Does it require any extra software?
No, Safari MCP requires no Puppeteer, Playwright, WebDriver, or Chrome. It relies only on Safari's built-in AppleScript and JavaScript capabilities.