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 treesafari_click: click an elementsafari_new_tab: open a tab owned by the agentsafari_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
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
dev-browserLets your agent control a real Chrome browser to open pages, fill forms, click buttons, take screenshots and collect data from websites.agent-browserLets your agent open websites, fill in forms, click buttons, take screenshots, and pull data from web pages on your behalf.ego-browserLets your agent open websites, click buttons, fill forms, take screenshots, and pull data from web pages using the ego-browser tool.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.