Basic information
About safari-mcp Server
Native Safari browser automation for AI agents — 84 tools, zero Chrome overhead.
safari-mcp is a MCP server in the Productivity category listed in the AddMCP.net directory, published by achiya-automation. It exposes 20 tools, including safari_navigate, safari_snapshot, safari_click, safari_fill and more. Supported transport: stdio. Runtime: JavaScript. License: MIT. The repository has 16 GitHub stars. Source code is hosted on github.com. Related topics: ai-agent, applescript, browser-automation, community, macos.
Setup
{
"mcpServers": {
"safari-mcp": {
"command": "npx",
"args": [
"-y",
"safari-mcp"
]
}
}
}
{
"mcpServers": {
"safari-mcp": {
"command": "npx",
"args": [
"-y",
"safari-mcp"
]
}
}
}
{
"servers": {
"safari-mcp": {
"command": "npx",
"args": [
"-y",
"safari-mcp"
]
}
}
}
safari-mcp config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"safari-mcp": {
"command": "npx",
"args": [
"-y",
"safari-mcp"
]
}
}
}
safari-mcp tools
- safari_navigate — Navigate to URL with auto HTTPS and wait for load
- safari_snapshot — Get page state with accessibility tree for element targeting
- safari_click — Click elements by CSS selector, visible text, or coordinates
- safari_fill — Fill input fields with React/Vue/Angular compatibility
- safari_screenshot — Capture screenshots as PNG (viewport or full page)
- safari_read_page — Get page title, URL, and text content
- safari_evaluate — Execute arbitrary JavaScript and return results
- safari_wait_for — Wait for elements, text, or URL changes
- safari_list_tabs — List all tabs with index, title, and URL
- safari_new_tab — Open new tab in background without focus stealing
- safari_get_cookies — Get all cookies from current domain
- safari_set_cookie — Set cookies with all options
- safari_local_storage — Read localStorage data
- safari_upload_file — Upload files via JS DataTransfer without file dialog
- safari_extract_tables — Extract tables as structured JSON
- safari_network — Make network requests via Performance API
- safari_mock_route — Mock network responses by intercepting fetch/XHR
- safari_performance_metrics — Get navigation timing, Web Vitals, and memory stats
- safari_emulate — Emulate mobile devices (iPhone, iPad, Android)
- safari_save_pdf — Export page as PDF document
Overview
What is safari-mcp?
Safari MCP is a Model Context Protocol server for native Safari automation on macOS, providing AI agents with 80 tools for browser control including navigation, form filling, screenshots, network interception, and storage management. It uses your real Safari with all logins, cookies, and sessions, running on WebKit via AppleScript and JavaScript with zero external dependencies like Puppeteer or Playwright.
How to use safari-mcp?
After installing Safari MCP (via npm, Homebrew, or source), enable Safari’s “Show features for web developers” and “Allow JavaScript from Apple Events.” Then add the server configuration to your MCP client (Claude Code, Claude Desktop, Cursor, Windsurf, or VS Code + Continue). The recommended workflow is: take an accessibility snapshot, interact with elements by ref, then verify with another snapshot.
Key features of safari-mcp
- 80 tools for navigation, clicks, forms, screenshots, network, storage, and accessibility
- Zero dependencies — no Puppeteer, Playwright, WebDriver, or Chrome
- Native WebKit on Apple Silicon — ~60% less CPU than Chrome
- Uses your real Safari with all logins, cookies, and sessions
- Background operation — Safari stays in background, never steals focus
- Persistent osascript process — ~5ms per command vs ~80ms
Use cases of safari-mcp
- Automate authenticated web tasks using existing Safari sessions (Gmail, GitHub, Slack)
- Extract structured data from tables, meta tags, images, and links
- Run batch automation scripts with multiple actions in one call
- Test web applications with device emulation, network throttling, and CSS coverage
- Capture performance metrics and network requests for analysis
Frequently asked questions
1 How is Safari MCP different from Playwright or Chrome DevTools MCP?
Safari MCP uses your real Safari browser with all your authenticated sessions, runs natively on WebKit (~60% less CPU on Apple Silicon), has zero dependencies, and operates in the background without stealing window focus. Chrome DevTools MCP heats up your Mac and Playwright launches a clean browser without your logins.
2 What are the prerequisites for Safari MCP?
You need macOS (any version with Safari), Node.js 18+, and Safari settings: “Show features for web developers” enabled, and “Allow JavaScript from Apple Events” enabled.
3 Does Safari MCP send data anywhere?
No. All communication is local (stdio + localhost). There is no telemetry, no analytics, and no data sent to remote servers. macOS system permissions are required for screenshots.
4 How do I target elements with Safari MCP?
Tools accept CSS selectors, visible text, coordinates (x, y), or refs from the accessibility snapshot. The recommended method is to start with safari_accessibility_snapshot to get element refs, then use those refs for precise targeting.
5 Can Safari MCP handle file uploads and clipboard operations?
Yes. safari_upload_file uploads files via JS DataTransfer without a file dialog, and safari_paste_image pastes an image without touching the clipboard. There are also dedicated clipboard read/write tools.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In