Safari
📇 🏠 🍎 - Native Safari browser automation for AI agents with 80+ tools. No Chrome depende
What is Safari?
Safari is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 📇 🏠 🍎 - native safari browser automation for ai agents with 80+ tools. no chrome depende
📇 🏠 🍎 - Native Safari browser automation for AI agents with 80+ tools. No Chrome depende
This server falls under the Browser Automation category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- MCP protocol support
Use Cases
Maintainer
Works with
Installation
NPM
npx -y safari-mcpManual Installation
npx -y safari-mcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Safari
Safari MCP Server is a native macOS browser automation tool that exposes over 80 tools to MCP-compatible AI agents, enabling them to navigate web pages, interact with forms, take screenshots, manage tabs, intercept network requests, control cookies and local storage, and execute JavaScript — all through Apple's Safari browser via AppleScript without any Chrome or Playwright dependency. Because it integrates natively with macOS, it works seamlessly on Apple Silicon, preserves existing login sessions, and can run in the background while you use your Mac. It is the go-to choice for macOS developers and AI agents that need real-browser automation on Apple hardware.
Prerequisites
- macOS with Safari browser installed (Apple Silicon or Intel)
- Node.js 18 or later
- Safari's 'Allow Remote Automation' enabled under Safari > Develop > Allow Remote Automation
- An MCP-compatible client such as Claude Desktop, Claude Code, Cursor, or VS Code with MCP support
- The Develop menu must be enabled in Safari (Safari > Settings > Advanced > Show features for web developers)
Enable Safari remote automation
Open Safari, go to Safari > Settings > Advanced and enable 'Show features for web developers'. Then open the Develop menu and enable 'Allow Remote Automation'. This is required for the MCP server to control the browser.
Install the safari-mcp package
Install the package globally via npm, or use npx to run it on demand without a global install.
npm install -g safari-mcpAdd the server to your MCP client configuration
Edit your Claude Desktop config at ~/Library/Application Support/Claude/claude_desktop_config.json and add the safari block. No API keys or environment variables are required.
{
"mcpServers": {
"safari": {
"command": "npx",
"args": ["safari-mcp"]
}
}
}Restart your MCP client
Restart Claude Desktop (or your chosen MCP client) to load the Safari MCP server. All 80+ tools will be available to the AI on the next conversation.
Test with a simple navigation command
Ask Claude to navigate to a URL and read the page content to verify the server is connected and Safari automation is working.
Safari Examples
Client configuration
Minimal Claude Desktop config for Safari MCP — no environment variables needed.
{
"mcpServers": {
"safari": {
"command": "npx",
"args": ["safari-mcp"]
}
}
}Prompts to try
Example tasks you can ask Claude once Safari MCP is connected.
- "Navigate to https://news.ycombinator.com and extract the top 10 story titles and URLs"
- "Open a new tab, go to https://example.com/login, fill the username and password fields, and click Sign In"
- "Take a screenshot of the current Safari tab"
- "Get all cookies from the current session on github.com"
- "Start network capture, navigate to https://api.example.com/data, and show me all XHR requests made"
- "Emulate an iPhone 15 screen size and take a screenshot of the current page"Troubleshooting Safari
Safari automation fails with 'Not authorized to send Apple events'
Go to System Settings > Privacy & Security > Automation and ensure your terminal application (Terminal, iTerm2, or whichever app runs npx) has permission to control Safari.
The Develop menu does not appear in Safari
Open Safari > Settings > Advanced and check 'Show features for web developers'. This must be enabled before 'Allow Remote Automation' appears in the Develop menu.
safari_fill does not update React or Vue form fields correctly
Use the safari_evaluate tool to trigger native React/Vue input event setters manually, or use safari_type_text which fires keyboard events that framework listeners detect.
Frequently Asked Questions about Safari
What is Safari?
Safari is a Model Context Protocol (MCP) server that 📇 🏠 🍎 - native safari browser automation for ai agents with 80+ tools. no chrome depende It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Safari?
Install via npm with the command: npx -y safari-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with Safari?
Safari works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Safari free to use?
Yes, Safari is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Safari Alternatives — Similar Browser Automation Servers
Looking for alternatives to Safari? 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 Safari 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 Safari?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.