Safari DevTools MCP logo

Safari DevTools MCP

Inspect, debug, automate, and navigate live Safari sessions on macOS through MCP tools for AI coding agents.

Install Safari DevTools MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "safari-devtools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "safari-devtools-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio safari-devtools-mcp -- npx -y safari-devtools-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

npx -y safari-devtools-mcp

r notsup Unsupported platform for safari-devtools-mcp@1.8.1: wanted {"os":"darwin"} (current: {"os":"linux"}) npm error notsup Valid os: darwin npm error notsup Actual os: linux npm notice npm notice New major version of npm available! 10.9.9 -> 12.2.3 npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.3 npm notice To update run: npm install -g npm@12.2.3 npm notice npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-12-02T00_31_18_475Z-debug-0.log

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Safari DevTools MCP MCP server connects AI coding agents to a live Safari browser on macOS for debugging, inspection, navigation, and browser automation. It uses WebDriver for browser control and AppleScript for managing Safari tabs across windows, exposing 45 MCP tools for console logs, network traffic, JavaScript, page content, screenshots, cookies, and storage. Reach for it when Safari or WebKit behavior needs to be tested directly rather than in a Chromium-based browser. Safari remote automation must be enabled, and the server requires macOS with Node.js 18 or newer.

Use cases

  • Debug Safari console errors and JavaScript stack traces
  • Inspect Fetch, XHR, and resource requests
  • Test page navigation and tab workflows in Safari
  • Audit accessibility trees and page metadata
  • Read and modify browser cookies and storage

Key features

  • Console and network debugging
  • JavaScript evaluation
  • Accessibility-tree snapshots with stable UIDs
  • Safari tab and navigation control
  • Screenshot and page-content capture
  • Cookie and Web Storage management

Tools45

What Safari DevTools MCP lets your agent do. Expand a tool for its parameters.

Self-reported~705 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

26/26 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · safari-devtools-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
npm downloads259Package downloads in the last 30 days.
Last commit7mo agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.
Tools exposed45Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Safari DevTools MCP works

What the Safari DevTools MCP MCP server does

Safari DevTools MCP MCP server gives an AI coding agent access to a live Safari session on macOS. It covers browser debugging, page inspection, navigation, screenshots, and state management through MCP tools. The server is intended for Safari-specific development work, including investigating console errors, examining requests, checking rendered content, and testing behavior in a real WebKit browser.

The project exposes 45 tools. Debugging tools list and inspect console messages, capture Fetch, XHR, and resource requests, execute JavaScript, and clear collected console or network data. Page inspection tools return visible text, HTML, links, metadata, accessibility-tree snapshots, and computed CSS values. Navigation tools manage tabs, URLs, reloads, history, waits, scrolling, dialogs, and browser window size.

How it works

The server uses WebDriver for browser capabilities that are not available through scripting alone. Accessibility-tree snapshots provide stable element UIDs for targeting elements after page updates. WebDriver-based inspection also supports request and response details, including headers, bodies, and timing, as well as element-level screenshots.

AppleScript handles Safari tab management across windows. Agents can list open pages, select a tab, open a new one, navigate, or close a tab. The server also includes session recovery that detects inactive SafariDriver sessions and reconnects transparently.

Clients that support MCP prompts can use the included workflows. These cover general Safari usage, accessibility debugging, Safari-specific WebKit issues, and performance analysis involving navigation timing, Core Web Vitals, and resource waterfalls.

Setup and configuration

Safari DevTools MCP MCP server requires macOS, Safari with remote automation enabled, and Node.js 18 or later. Node.js 22 or newer is recommended. In Safari settings, enable the web developer features, turn on Allow Remote Automation in the Develop menu, and authorize SafariDriver with sudo safaridriver --enable.

The standard configuration runs the package through npx:

config.json
{
  "mcpServers": {
    "safari-devtools": {
      "command": "npx",
      "args": ["-y", "safari-devtools-mcp@latest"]
    }
  }
}

The package can also be built from source with npm install && npm run build, then started with Node against the generated entry point. Add --slim to the package arguments when shorter tool descriptions are useful for context-limited models or long conversations.

Tools and capabilities

  • Inspect console logs by severity and retrieve stack traces and arguments.
  • Monitor network requests and inspect complete request and response data.
  • Run JavaScript in the browser and capture full-page or element screenshots.
  • Read accessibility snapshots, visible page text, HTML, links, metadata, and computed styles.
  • Manage Safari tabs, navigation, scrolling, waits, dialogs, and window size.
  • Read, write, and delete cookies, localStorage, and sessionStorage.

Limitations and notes

Safari DevTools MCP MCP server is restricted to macOS because Safari and SafariDriver are Apple-only. It requires a Safari session with remote automation enabled. Browser content, console output, and network traffic are exposed to the MCP client, so sensitive sites and credential entry should be avoided while a session is active.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Safari DevTools MCP

Safari DevTools MCP is an MCP server that connects AI coding agents to a live Safari browser on macOS. Its main tools inspect console messages and network traffic, evaluate JavaScript, manage tabs, navigate pages, capture screenshots, read DOM content, and manage cookies and browser storage.

Install it by adding an MCP configuration that runs `npx -y safari-devtools-mcp@latest`. You can also clone the repository, run `npm install && npm run build`, and configure the client to execute the generated Node.js entry point.

It requires macOS, Safari with remote automation enabled, and Node.js 18 or newer. Enable web developer features, turn on Allow Remote Automation from Safari’s Develop menu, and authorize SafariDriver with `sudo safaridriver --enable`.

Yes, Safari DevTools MCP works with Cursor through its MCP settings. Add the standard server configuration using `npx` and `safari-devtools-mcp@latest`.

Yes, it can list network requests and retrieve full request and response details, including headers and bodies. The server monitors Fetch, XHR, and other resource loads.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSafari DevTools MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/safari-devtools-mcp?style=directory)](https://allmcps.com/mcp/safari-devtools-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/safari-devtools-mcp"><img src="https://allmcps.com/api/badge/safari-devtools-mcp?style=directory" alt="Safari DevTools MCP on AllMCPs" /></a>