Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyWeb and browser

Safari MCP

Lets your AI agent control your real Safari browser on macOS: open pages, click, fill forms and take screenshots.

235 stars on GitHubby achiya-automationLicense MITUpdated 20 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add safari -- npx -y safari-mcp

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Open my GitHub notifications in Safari and summarize them.
Fill in the form on this page with my details, then show me a snapshot before submitting.

What it is

Safari MCP drives the Safari you already use, with your logins and cookies kept. It runs in the background and needs no Chrome, Puppeteer or Playwright. The readme says it offers 98 tools and works only on macOS.

What it can do

  • safari_snapshot: read the page as an accessibility tree
  • safari_click: click an element
  • safari_new_tab: open a tab owned by the agent
  • safari_switch_tab: move to another tab

When to use

  • β€ΊWhen you want your agent to work in sites where you are already logged in
  • β€ΊWhen you want browser automation without a second browser heating up your Mac
  • β€ΊWhen you want several agents to share one Safari without fighting over tabs

What you need

A Mac with Safari, Node.js 20 or newer, and two Safari settings turned on: Show features for web developers, and Allow JavaScript from Apple Events.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free and open source?

It is published on npm under the MIT license. The readme lists no price.

Does it work on Windows or Linux?

No. It is macOS only.

Does it use my logins?

Yes. It drives your real Safari, so cookies and sessions stay available.

Can it touch the tabs I already have open?

By default it only uses tabs it opened itself. Setting SAFARI_MCP_ALLOW_USER_TABS=1 lets an explicit tab switch adopt one of yours.

Can several agents use it at once?

Yes, through a shared HTTP daemon started with SAFARI_MCP_HTTP=1, where each session gets its own tab state.

Which clients does it work with?

The readme gives setup for Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Cline, Continue, Goose, LM Studio and Zed.

If it does not work

  • β€ΊTurn on Show features for web developers and Allow JavaScript from Apple Events in Safari settings.
  • β€ΊMake sure Node.js 20 or newer is installed.
  • β€ΊIf a tool says tab safety refused the action, use safari_new_tab or safari_switch_tab first.

5 new skills a week. 1 minute to read.