/safari:safarifrom safari
Control the user's Safari browser on macOS — open tabs, read pages, click, fill forms, scroll, run JavaScript, take screenshots. Use when the user asks to do something "in Safari" / "用 Safari" / "在 Safari 里", or wants a web task done in their real, logged-in Safari rather than another browser.
Ships in safari. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The safari MCP server controls the user's real Safari through Apple Events. It
shares their cookies and logins, so act as carefully as you would at their keyboard.
tab_open with the URL. Open your own tab instead of
navigating one the user already has open, unless they point you at it
(tabs_list shows what is open; tab_select adopts an existing tab).get_page_text to read content, read_page for the interactive
elements with [ref_N] ids, find to search for one element by text.click, type, press_key, scroll with a ref. type with
submit: true presses Enter.read_page / find again before the next
action. Use wait_for when content loads late.Every result starts with [window W · tab N] title — URL. That is the working
tab — calls without window_id/tab keep using it. Safari has no stable tab
ids, so if the title/URL is not what you expect (the user moved or closed tabs),
run tabs_list and pass window_id/tab explicitly.
| Need | Tool |
|---|---|
| Read an article, search results, a table | get_page_text (optionally with selector) |
| Know what can be clicked or filled | read_page (filter: "all" adds headings and text) |
| Locate one control | find |
| Check layout, images, a canvas | screenshot |
| Anything else (computed values, storage, fetch with the page's session) | run_javascript |
screenshot says whether the image is viewport-aligned. Only then can its pixel
coordinates be used as click x/y; otherwise click by ref.
The first call makes macOS ask the user to let Claude's host app control Safari
(Automation). Page tools also need Safari ▸ Settings ▸ Developer ▸ Allow
JavaScript from Apple Events, and screenshot needs Screen Recording. These
are the user's security settings: when a tool reports one is missing, pass on the
steps it quotes and wait — do not try to change them yourself.
read_page never returns the contents of password fields.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub kristianli/safari-mcp --plugin safari