safari-mcp
Provides tools to control the real Safari browser, including listing tabs, navigating, selecting and closing tabs, reading pages with numbered interactive elements, clicking and typing, scrolling, executing JavaScript, and taking screenshots.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
safari-mcp
MCP server that lets Claude (or any MCP client) drive your real Safari (logged-in tabs included) via AppleScript.
Tools: tabs, navigate, select_tab, close_tab, read_page, click, type_text, scroll, javascript, screenshot.
read_page numbers interactive elements; pass the number as ref to click/type_text.
Setup (once)
Safari > Settings > Advanced > "Show features for web developers".
Safari > Develop > "Allow JavaScript from Apple Events".
System Settings > Privacy & Security > Screen Recording: allow the terminal running Claude Code (for
screenshot).First call triggers an Automation prompt ("control Safari"): allow.
Related MCP server: claudeForSafari
Install
macOS only. Needs uv.
Claude Code plugin (runs the locked uv project shipped in the plugin):
/plugin marketplace add stefanogarzon/safari-mcp
/plugin install safari-mcp@safari-mcpClaude Code without the plugin:
claude mcp add -s user safari -- uvx safari-mcpOther MCP clients (Claude Desktop, Cursor, VS Code):
{ "mcpServers": { "safari": { "command": "uvx", "args": ["safari-mcp"] } } }Develop
uv sync
uv run pytest # tests
uv run ruff check . && uv run pyright srcRelease
Bump version in pyproject.toml, server.json and .claude-plugin/plugin.json, then push a tag vX.Y.Z.
The Release workflow tests, publishes to PyPI (trusted publishing) and to the MCP registry.
Limits
Security: page text goes back to the model, and javascript runs arbitrary code in your logged-in tabs. A malicious page can try prompt injection; review actions on sensitive sites.
Clicks and typing are synthetic DOM events (rare sites ignore them). No console/network capture. For automated tests of our own sites use Playwright WebKit instead.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
A real browser for your agent: screenshots, page checks, Markdown and PDFs.
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
Hosted browser for agents: open pages, search the web, extract data, read PDFs and take screenshots.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables visual web access and browser automation through Safari, with tools for navigation, screenshots, element interaction, and tab management.1719 npmBSD 3-Clause
- AlicenseAqualityBmaintenanceSafari Web Extension + Node.js MCP bridge giving Claude Desktop full control over Safari — navigate, read pages, click elements, fill forms, and manage tabs. No Playwright or WebDriver dependency.4131MIT
- FlicenseNot gradedqualityDmaintenanceProvides browser automation capabilities through Claude Desktop and other MCP clients, enabling navigation, screenshot capture, content extraction, and interactive control.-
- AlicenseNot gradedqualityCmaintenanceMCP server that drives the user's real signed-in Chrome on macOS via AppleScript (Apple Events). 32 tools covering tab/window control, navigation, DOM extraction, form interaction, and arbitrary JS execution. Same engine as the familiar Claude Code skill in the repository.1MIT