MCPSafari
MCPSafari: Native Safari MCP Server for AI Agents
What is MCPSafari?
MCPSafari is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcpsafari: native safari mcp server for ai agents
MCPSafari: Native Safari MCP Server for AI Agents
This server falls under the Browser Automation category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- MCPSafari: Native Safari MCP Server for AI Agents
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx mcpsafariConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use MCPSafari
MCPSafari is a native macOS MCP server that gives AI agents direct, programmatic control over the Safari browser using Apple's Accessibility APIs — no WebDriver or headless browser required. It exposes 23 tools covering tab management, navigation, page reading, DOM interaction (click, type, scroll, form input, drag), JavaScript execution, screenshot capture, and Safari DevTools access (console logs, network requests). Designed for agentic AI workflows on macOS, it enables Claude and other MCP clients to browse the web, fill forms, extract page content, and automate repetitive browser tasks natively.
Prerequisites
- macOS 13 (Ventura) or later with Safari installed
- Apple Silicon or Intel Mac (separate binaries available for each)
- Accessibility permissions granted to the terminal or MCP client application in System Settings > Privacy & Security > Accessibility
- An MCP-compatible client such as Claude Desktop or Claude Code CLI
- Homebrew (optional, for the easiest installation)
Install MCPSafari
Install via Homebrew for the simplest setup, or download the pre-built binary manually for Apple Silicon.
# Homebrew (recommended)
brew install --cask epistates/tap/mcp-safari
# Manual (Apple Silicon)
curl -L -o /usr/local/bin/mcp-safari \
https://github.com/Epistates/MCPSafari/releases/latest/download/MCPSafari-Server-arm64-apple-darwin
chmod +x /usr/local/bin/mcp-safariGrant Accessibility permissions
Open System Settings > Privacy & Security > Accessibility and add your terminal application (Terminal, iTerm2, or the app running Claude Desktop) to the allowed list. This is required for MCPSafari to control Safari.
Add to Claude Code CLI (quickest method)
Register the server with Claude Code using the mcp add command.
claude mcp add --scope user mcp-safari mcp-safariOr configure Claude Desktop
Add the server to your Claude Desktop configuration file at ~/Library/Application Support/Claude/claude_desktop_config.json.
Verify the server is working
Open Safari, then ask Claude to list open tabs or take a screenshot. The typical workflow is: get context with tabs_context, capture the DOM snapshot, interact using element UIDs, then verify with a screenshot.
MCPSafari Examples
Client configuration
Add MCPSafari to Claude Desktop. No environment variables are required — the server controls Safari via macOS Accessibility APIs.
{
"mcpServers": {
"mcp-safari": {
"command": "mcp-safari"
}
}
}Prompts to try
Use these prompts to control Safari and automate web tasks through Claude.
- "Open a new Safari tab and navigate to https://news.ycombinator.com."
- "Take a screenshot of the current Safari tab."
- "Find the search box on this page and type 'MCP server'."
- "Read the main article text from the current page."
- "Click the first link on the page and tell me where it goes."
- "Show me any JavaScript console errors on this page."Troubleshooting MCPSafari
MCPSafari cannot control Safari — accessibility errors or permission denied
Open System Settings > Privacy & Security > Accessibility and ensure the application running the MCP server (e.g., Terminal, Claude Desktop) is in the allowed list. Restart the application after granting permissions.
Element interaction fails — click or type commands do nothing
First call the snapshot tool to get current element UIDs, then use those UIDs in subsequent click/type commands. Stale UIDs from a previous snapshot will not work after page navigation or dynamic DOM updates.
Server binary not found after Homebrew install
Run 'brew link epistates/tap/mcp-safari' to ensure the binary is linked to /usr/local/bin. You can also verify the path with 'which mcp-safari' and update your shell PATH if needed.
Frequently Asked Questions about MCPSafari
What is MCPSafari?
MCPSafari is a Model Context Protocol (MCP) server that mcpsafari: native safari mcp server for ai agents It connects AI assistants to external tools and data sources through a standardized interface.
How do I install MCPSafari?
Follow the installation instructions on the MCPSafari GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with MCPSafari?
MCPSafari works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is MCPSafari free to use?
Yes, MCPSafari is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
MCPSafari Alternatives — Similar Browser Automation Servers
Looking for alternatives to MCPSafari? Here are other popular browser automation servers you can use with Claude, Cursor, and VS Code.
Chrome DevTools MCP
★ 40.6kAI-powered Chrome automation server with natural language element detection. Control Chrome browser through MCP protocol for testing, debugging, and performance analysis. Features 91% accuracy in element location, works with free AI models, and suppo
UI TARS Desktop
★ 34.9k📇 🏠 - Browser automation capabilities using Puppeteer, both support local and remote browser connection.
Playwright
★ 32.8kA production-ready browser automation server that enables AI assistants to interact with web pages using tools for navigation, element interaction, and data extraction. It features a built-in Inspector UI and robust crash recovery for reliable automa
Page Agent
★ 18.0kJavaScript in-page GUI agent. Control web interfaces with natural language.
Chrome
★ 11.7kAn extension-based MCP server that enables AI assistants to control your browser, leveraging existing sessions and login states for automation and content analysis. It provides over 20 tools for semantic tab search, interactive element manipulation,
LAMDA
★ 7.8kThe most powerful Android RPA agent framework, next generation mobile automation.
Browse More Browser Automation MCP Servers
Explore all browser automation servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up MCPSafari in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use MCPSafari?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.