Skip to content
Zed

Apple Safari for Zed

io.github.mgcrea/mcp-apple-safari

Read and act on Safari — history, tabs and reading list, writes off by default

client:Zed transport:stdio runtime:npm

Install Apple Safari in Zed

~/.config/zed/settings.json · windows: %APPDATA%\Zed\settings.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "context_servers": {
    "mcp-apple-safari": {
      "command": "npx",
      "args": [
        "-y",
        "@mgcrea/mcp-apple-safari"
      ],
      "env": {
        "APPLE_SAFARI_ALLOW_WRITES": "<APPLE_SAFARI_ALLOW_WRITES>",
        "APPLE_SAFARI_ALLOW_CODES": "<APPLE_SAFARI_ALLOW_CODES>",
        "APPLE_SAFARI_ALLOW_NETWORK": "<APPLE_SAFARI_ALLOW_NETWORK>",
        "APPLE_SAFARI_ALLOW_COOKIES": "<APPLE_SAFARI_ALLOW_COOKIES>",
        "APPLE_SAFARI_COOKIE_HOSTS": "<APPLE_SAFARI_COOKIE_HOSTS>",
        "APPLE_SAFARI_DOWNLOAD_DIR": "<APPLE_SAFARI_DOWNLOAD_DIR>",
        "APPLE_SAFARI_NETWORK_CHUNK_CHARS": "<APPLE_SAFARI_NETWORK_CHUNK_CHARS>"
      }
    }
  }
}

Merge this into your existing settings object — do not replace the file. Zed docs

Apple Safari in other clients