Safari MCP Server

Safari browser automation for AI agents — native macOS, zero Chrome overhead. 96 tools via AppleScript + JavaScript.

Local serverstdioGo

What is the Safari MCP MCP server?

Safari browser automation for AI agents — native macOS, zero Chrome overhead. 96 tools via AppleScript + JavaScript. That is what the safari mcp mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

Your AI drives the Safari you're already logged into — Gmail, GitHub, Ahrefs, Slack, banking.

  • 97 tools — — navigation, clicks, forms, screenshots, network, storage, accessibility, and more
  • Zero heat — — native WebKit on Apple Silicon, ~60% less CPU than Chrome
  • Your real browser — — keeps all logins, cookies, sessions (Gmail, GitHub, Ahrefs, etc.)
  • Background operation — — Safari stays in the background, no window stealing
  • No browser dependencies — — no Puppeteer, no Playwright, no WebDriver, no Chrome
  • Persistent process — — reuses a single osascript process (~5ms per command vs ~80ms)

Getting it running

safari-mcp on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

The tools it exposes

The server publishes 3 tools. What each one is for:

  • Strategy — Example
  • Coordinates — x: 100, y: 200
  • Prerequisites — The Prerequisites tool exposed by this server

What it needs from you

  • macOS (any version with Safari) - Node.js 18+ - Safari → Settings → Advanced → Show features for web developers ✓ - Safari → Develop → Allow JavaScript from Apple Events

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How it compares

This sits in the browser automation group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Safari MCP's toolset — Strategy, Coordinates, Prerequisites — is a fair guide to whether it matches your workflow. It is maintained by achiya-automation; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
StrategyExample
Coordinatesx: 100, y: 200
PrerequisitesThe Prerequisites tool exposed by this server.

How to install the Safari MCP MCP server

Or edit `~/.mcp.json`:

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

Configuration as documented by the project. Restart the client after saving.

Configuration

  • macOS (any version with Safari) - Node.js 18+ - Safari → Settings → Advanced → Show features for web developers ✓ - Safari → Develop → Allow JavaScript from Apple Events

Example prompts to try

  • Use Safari MCP to Strategy.
  • Use Safari MCP to Coordinates.
  • Use Safari MCP to Prerequisites.

Frequently asked questions

It connects Safari MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 3 tools (Strategy, Coordinates, Prerequisites) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Safari MCP directly.