
TL;DR
Apple's Safari MCP server lets AI coding agents inspect pages, capture screenshots, evaluate JavaScript, and run accessibility checks directly in Safari. Complete setup guide with installation, available tools, and practical workflows.
Last updated: July 6, 2026
Apple released the Safari MCP server on July 1, 2026 with Safari Technology Preview 247. This is the first official browser MCP integration from a major browser vendor - and it gives AI coding agents direct access to Safari's Web Inspector capabilities.
| Resource | Link |
|---|---|
| WebKit Blog Announcement | webkit.org/blog/18136 |
| Safari Technology Preview Downloads | developer.apple.com/safari/download |
| MCP Specification | modelcontextprotocol.io/spec |
| Claude Code MCP Docs | docs.anthropic.com/claude-code/mcp |
The Safari MCP server exposes 16 tools that let AI agents interact with Safari browser windows. Instead of manually switching between your terminal and browser to check rendering, inspect computed styles, or verify accessibility, your agent handles it directly.
Core capabilities:
This bridges the gap that has made browser-based debugging awkward with terminal agents. When Claude Code or another MCP-compatible agent needs to verify how code renders in Safari, it can now do that without you alt-tabbing to check.
The server exposes 16 tools:
| Tool | Purpose |
|---|---|
screenshot | Capture page as PNG |
evaluate_javascript | Execute JS and return results |
get_page_content | Extract text as markdown, HTML, or JSON |
page_interactions | DOM actions (click, type, scroll, hover, keypress) |
list_network_requests | Monitor network activity |
get_network_request | Get details for a specific request |
browser_console_messages | Access buffered console logs |
navigate_to_url | Load a URL |
set_viewport_size | Set browser dimensions for responsive testing |
set_emulated_media | Test prefers-color-scheme, print, etc. |
list_tabs | Get open browser tabs |
select_tab | Switch to a specific tab |
new_tab | Open a new tab |
close_tab | Close a tab |
handle_dialog | Accept or dismiss alert/confirm/prompt dialogs |
list_accessible_elements | Get accessibility tree information |
The Safari MCP server requires Safari Technology Preview 247 or later. It does not work with the release version of Safari.
System requirements:
To enable remote automation:
Newsletter
Get the weekly deep dive
Tutorials on Claude Code, AI agents, and dev tools, delivered free every week.
From the archive
Jul 5, 2026 • 6 min read
Jul 5, 2026 • 8 min read
Jul 5, 2026 • 6 min read
Jul 5, 2026 • 5 min read
Add the MCP server with a single command:
claude mcp add safari-mcp-stp -- \
"/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver" \
--mcp
This registers the server and makes Safari tools available in your Claude Code sessions.
For agents that use a config file, add to your mcp.json:
{
"mcpServers": {
"safari-mcp-stp": {
"command": "/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver",
"args": ["--mcp"]
}
}
}
The server binary is bundled inside Safari Technology Preview - no separate installation required.
When building a feature that needs Safari compatibility, your agent can:
This is particularly useful for CSS features that behave differently across browsers - grid layouts, flexbox edge cases, and Safari-specific rendering quirks.
The list_accessible_elements tool surfaces the accessibility tree, which helps catch issues like:
Your agent can run these checks as part of a PR review workflow, flagging accessibility regressions before they ship.
Using evaluate_javascript, agents can pull performance metrics directly:
// Navigation timing
performance.getEntriesByType('navigation')[0].toJSON()
// Largest Contentful Paint
new PerformanceObserver((entryList) => {
console.log(entryList.getEntries())
}).observe({type: 'largest-contentful-paint', buffered: true})
Combined with network request monitoring, this gives agents visibility into page load performance without needing separate tooling.
Screenshot comparison is now possible within agent workflows:
This works well for component libraries where visual consistency matters.
The Safari MCP server runs locally on your machine. It does not make external network calls and does not access your personal Safari browsing data - only tabs opened during the MCP session.
Captured content (screenshots, DOM, network requests) goes directly to the connected agent. Privacy depends on how that agent handles the data. For Claude Code, standard Anthropic data handling policies apply.
Current limitations to be aware of:
For cross-browser automation at scale, Playwright or Puppeteer remain better options. The Safari MCP server is optimized for development-time browser interaction, not CI pipelines.
| Feature | Safari MCP | Playwright |
|---|---|---|
| Safari support | Native | Via WebKit |
| Setup complexity | One command | npm install + config |
| Intended use | Dev-time AI agent interaction | E2E testing and automation |
| Parallelization | No | Yes |
| CI/CD integration | Limited | Full |
| MCP native | Yes | Via third-party servers |
If you are already using Playwright for browser automation, the Safari MCP server adds a native Safari option for development workflows without replacing your test infrastructure.
Browser MCP servers close a loop that has been awkward for AI-assisted development. Terminal agents like Claude Code could edit code but had no direct way to verify browser rendering without manual intervention or external automation setups.
With Safari's official MCP server and similar integrations coming for Chrome and Firefox, agents can participate in the full development cycle: write code, verify rendering, check accessibility, and iterate - all without context switches.
The HN discussion raised valid questions about whether this represents browser vendors embracing AI tooling or just following where developer tools are heading. Either way, the practical benefit is clear: less manual back-and-forth during development.
No. You need Safari Technology Preview 247 or later. The release version of Safari does not include MCP support.
The Safari MCP server is designed for development-time use, not CI. For automated testing, continue using Playwright or other dedicated testing frameworks.
No. Safari Technology Preview is macOS-only, so the MCP server is also macOS-only.
As of July 2026, Safari is the first major browser with an official MCP server. Third-party MCP servers for Chrome exist (using DevTools Protocol), but no official implementations yet.
Yes. Safari Technology Preview is free and the MCP server is included.
No. The current implementation supports one agent connection at a time.
Captured screenshots, DOM content, and network data go directly to the connected agent. The Safari MCP server itself does not store or transmit data externally.
If the agent supports MCP and can be configured with custom MCP servers, yes. Configuration varies by agent - check your agent's MCP documentation for setup details.
Read next
A practical ranked list of MCP servers worth installing first for Claude Code, Cursor, Copilot, Codex, and OpenCode: GitHub, Filesystem, Context7, Playwright, Postgres, Sentry, Supabase, Notion, Slack, and more.
10 min readMCP lets AI agents connect to databases, APIs, and tools. Here is what it is and how to use it in your TypeScript projects.
5 min readA step-by-step guide to building Model Context Protocol servers in TypeScript. Project setup, tool registration, resources, testing with Claude Code, and production patterns.
14 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
Visual testing tool for Model Context Protocol servers. Like Postman for MCP - call tools, browse resources, and view...
View ToolLightweight CLI for discovering and calling MCP servers. Dynamic tool discovery reduces token consumption from 47K to 40...
View ToolCentralized manager for MCP servers. Connect once to localhost:37373 and access all your servers through a single endpoi...
View ToolRegistry and hosting platform for MCP servers. 6,000+ servers indexed. One-command install and configuration via CLI. Su...
View ToolRun any MCP server without running infra. Private endpoints, no DevOps.
View AppEvery coding agent in one window. Stop alt-tabbing between Claude, Codex, and Cursor.
View AppTurn a one-liner into a working Claude Code skill. From idea to installed in a minute.
View AppConfigure Claude Code for maximum productivity -- CLAUDE.md, sub-agents, MCP servers, and autonomous workflows.
AI AgentsStep-by-step guide to building an MCP server in TypeScript - from project setup to tool definitions, resource handling, testing, and deployment.
AI AgentsConfigure model, effort, tools, MCP servers, and invocation scope.
Claude Code
Build MCP Servers with Databutton It's been a huge few months for MCP! In this video, I'll show you how to build and deploy MCP servers using Databutton— all with just natural language....

To try everything Brilliant has to offer—free—for a full 30 days, visit https://brilliant.org/DevelopersDigest/ . You’ll also get 20% off an annual premium subscription. Build and Deploy...

A practical ranked list of MCP servers worth installing first for Claude Code, Cursor, Copilot, Codex, and OpenCode: Git...

MCP lets AI agents connect to databases, APIs, and tools. Here is what it is and how to use it in your TypeScript projec...

A step-by-step guide to building Model Context Protocol servers in TypeScript. Project setup, tool registration, resourc...

GitHub's Agent Finder discovers and invokes Claude, Codex, MCP servers, and skills automatically. Here is how the new AR...

The second half of our agent tooling release: distribution, validation, and ergonomics layered on top of the first six....

Most MCP servers are noise. After shipping 24 apps with Claude Code, these are the five I reach for every time.

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.