Safari

v1.0.0Browser Automationstable

Native Safari browser automation for AI agents. 80 tools via AppleScript — zero overhead, keeps logins, runs silently in background. Drop-in alternative to Chrome DevTools MCP with 40-60% less CPU/heat on Apple Silicon.

ai-agentsai-toolsapple-siliconapplescriptautomation
Share:
71
Stars
0
Downloads
0
Weekly
0/5

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. 80 tools via applescript — zero overhead, keeps logins, runs silently in background. drop-in alternative to chrome devtools mcp with 40-60% less cpu/hea...

Native Safari browser automation for AI agents. 80 tools via AppleScript — zero overhead, keeps logins, runs silently in background. Drop-in alternative to Chrome DevTools MCP with 40-60% less CPU/heat on Apple Silicon.

This server falls under the Browser Automation category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Native Safari browser automation for AI agents. 80 tools via

Use Cases

Native Safari automation for AI agents
Energy-efficient alternative to Chrome on Apple Silicon
LicenseMIT
Languagejavascript
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx safari

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Safari

The Safari MCP server provides native Safari browser automation for AI agents on macOS through AppleScript, exposing 80 tools covering navigation, DOM interaction, data extraction, storage access, screenshots, PDF export, network monitoring, and device emulation. Because it drives Safari directly rather than launching a separate browser instance via Chrome DevTools Protocol, it preserves existing login sessions, runs silently in the background, and uses 40-60% less CPU and battery compared to Chrome-based alternatives — making it well-suited for Apple Silicon Macs. Developers building AI agents that need to browse the web, fill forms, or extract structured data from authenticated sites will find it a low-friction drop-in replacement for Playwright or Puppeteer MCP servers.

Prerequisites

  • macOS (any version that includes Safari) with Node.js 18+ installed
  • Safari setting enabled: Settings > Advanced > Show features for web developers
  • Safari Develop menu setting enabled: Develop > Allow JavaScript from Apple Events
  • System permissions granted: Screen Recording, Automation > Safari, and Accessibility (for native interaction tools)
  • An MCP-compatible client such as Claude Desktop or Cursor
1

Enable Safari developer and JavaScript-from-Apple-Events settings

Open Safari Preferences/Settings. Under Advanced, enable 'Show features for web developers'. Then open the Develop menu and enable 'Allow JavaScript from Apple Events'. This is required for AppleScript-based automation to work.

2

Grant macOS system permissions

Go to System Settings > Privacy & Security and grant the following permissions to Terminal (or your MCP client app): Screen Recording, Automation > Safari, and Accessibility. Restart the app after granting permissions.

3

Install safari-mcp via npm

Install the package globally or use npx to run it on-demand. The global install is useful if you want the binary available system-wide.

npm install -g safari-mcp
# or run on-demand with:
npx safari-mcp
4

Add to Claude Desktop config

Edit your claude_desktop_config.json to register the safari-mcp server. The npx approach runs it on-demand without a global install.

{
  "mcpServers": {
    "safari": {
      "command": "npx",
      "args": ["safari-mcp"]
    }
  }
}
5

Add via Claude Code CLI (alternative)

If you use Claude Code in the terminal, add the server with a single CLI command.

claude mcp add safari -- npx safari-mcp
6

Restart your MCP client and test

Restart Claude Desktop. Ask Claude to navigate to a URL in Safari to verify the 80 automation tools are available and working.

Safari Examples

Client configuration (Claude Desktop)

Add this to ~/Library/Application Support/Claude/claude_desktop_config.json on macOS.

{
  "mcpServers": {
    "safari": {
      "command": "npx",
      "args": ["safari-mcp"]
    }
  }
}

Prompts to try

Use Claude to drive Safari for navigation, data extraction, and form interactions.

- "Navigate to https://news.ycombinator.com and extract the top 10 story titles and their URLs"
- "Take a screenshot of the current Safari tab"
- "Fill in the login form on the current page with my email and password, then click Sign In"
- "Export the current page to PDF and save it to my Downloads folder"
- "Emulate an iPhone 15 screen size and take a screenshot to check mobile layout"

Troubleshooting Safari

AppleScript permission denied or Safari automation not working

Go to System Settings > Privacy & Security > Automation and ensure your terminal or MCP client has permission to control Safari. Also verify that 'Allow JavaScript from Apple Events' is checked in Safari's Develop menu.

Screenshot tool fails with Screen Recording permission error

Open System Settings > Privacy & Security > Screen Recording and add your terminal application or the MCP client. You may need to fully quit and relaunch the app after granting the permission.

Tools appear but interactions have no effect on the browser

Ensure Safari is the active browser and the target tab is open. Some tools require the page to be fully loaded. Use safari_snapshot first to get the current page state and element references before attempting click or fill operations.

Frequently Asked Questions about Safari

What is Safari?

Safari is a Model Context Protocol (MCP) server that native safari browser automation for ai agents. 80 tools via applescript — zero overhead, keeps logins, runs silently in background. drop-in alternative to chrome devtools mcp with 40-60% less cpu/heat on apple silicon. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Safari?

Follow the installation instructions on the Safari GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

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.

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.

Quick Config Preview

{ "mcpServers": { "safari": { "command": "npx", "args": ["-y", "safari"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides