Skip to content

Safari (background) for Grok

io.github.alexzai007/safari-background-mcp

Drives your real Safari (with your logins) in the background: never steals focus, ~15 ms per call.

client:Grok transport:stdio runtime:npm

Install Safari (background) in Grok

.mcp.json (in your project root)

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

{
  "mcpServers": {
    "safari-background-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "safari-background-mcp"
      ],
      "env": {
        "SAFARI_MCP_TOOLS": "<SAFARI_MCP_TOOLS>",
        "SAFARI_MCP_AGENT_WINDOW": "<SAFARI_MCP_AGENT_WINDOW>",
        "SAFARI_MCP_STATE": "<SAFARI_MCP_STATE>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

Safari (background) in other clients