MCP server · Audited from source
safari-mcp
by achiya-automation/safari-mcpMIT licenceAudited 7 Oct 2026 · source 88ce49c36309
Is it safe? No — BLOCK, grade F (57/100). It exposes 99 tools: 76 read, 15 write and 8 destructive. The audit recorded 34 findings (0 critical, 1 high, 10 medium, 17 low). Maintainer's description: Native Safari browser automation for AI agents. 98 tools via AppleScript — zero overhead, keeps logins, runs silently in background. Drop-in alternative to Chrome DevTools MCP with 40-60% less CPU/heat on Apple Silicon.
Cite
Cite this page
ModelsAtlas. “safari-mcp (achiya-automation/safari-mcp)”. Retrieved 7 Oct 2026. https://modelsatlas.com/mcp/achiya-automation/safari-mcp
Why this is BLOCK. The audit found 0 critical and 1 high findings; the most severe is Filesystem / path at safari.js:5067. Each finding is listed below with its file and line.
Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.
Copy of mcp/achiya-automation/safari: identical text; the original is the page to read and cite.
Trust audit
Audit 0.4.1 · full source read 7 Oct 2026
34 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared2 observations
- NetworkDeclared8 observations
- ShellDeclared2 observations
- DependenciesNot pinnedSome ranges float
- SecretsFoundSee the findings
Findings (34)
Sorted by severity · the 25 most severe of 34 are listed
HIGHFilesystem / pathfs.credential_store · safari.js:5067
const blocked = ['.ssh', '.gnupg', '.aws', '.config/gcloud', 'credentials', '.env', '.npmrc', '.netrc', 'id_rsa', 'id_ed25519', '.keychain'];
- Why
- touches a credential store
- Fix
- —
MEDIUMInventory / provenanceinv.binary · safari-helper
safari-helper
- Why
- a compiled or binary member cannot be reviewed from source
- Fix
- ship source, or explain the binary in the README
MEDIUMNetwork egressnet.raw_ip · extension/background.js:9
let HTTP_URL = `http://127.0.0.1:${BRIDGE_PORTS[0]}`;- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMNetwork egressnet.raw_ip · extension/background.js:590
...BRIDGE_PORTS.map((port) => `http://127.0.0.1:${port}`),- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMNetwork egressnet.raw_ip · index.js:1118
const connectUrl = new URL(req.url, `http://127.0.0.1:${HTTP_PORT}`);- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.generic · test/close-tab-ownership.test.mjs:231
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.generic · test/profile-extension-routing.test.mjs:947
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.generic · test/receipt-refusal-reason.test.mjs:30
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.generic · test/stateless-batch.test.mjs:113
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.generic · test/stateless-batch.test.mjs:139
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
safari_clear_console, safari_clear_field, safari_clear_mocks, safari_clear_network, safari_delete_cookies, safari_delete_local_storage, safari_delete_session_storage, safari_reset_emulation
- Why
- 8 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
LOWCode injectioncode.eval_exec · test/browser-epoch-rotation.test.mjs:68
...new Function("browser", "_mintMcpTabMarker", body)(- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
LOWCode injectioncode.eval_exec · test/cleanup-tab-identity.test.mjs:55
const fn = new Function(
- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
LOWCode injectioncode.eval_exec · test/close-by-marker.test.mjs:120
return new Function(
- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
LOWCode injectioncode.eval_exec · test/close-by-marker.test.mjs:147
return new Function(...Object.keys(deps), `${indexParts}\nreturn { _closeTrackedTab, _cleanupTabs };`)(...Object.values(deps));- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
LOWCode injectioncode.eval_exec · test/close-tab-moved-origin.test.mjs:73
const ext = new Function(
- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
LOWNetwork egressnet.raw_ip · CHANGELOG.md:116
- **The HTTP transport refuses DNS-rebinding requests.** With `SAFARI_MCP_HTTP=1` the server bound to 127.0.0.1 and checked nothing else, and a loopback bind does not stop a web page: a page whose hos
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · README.md:328
{ "mcpServers": { "safari-mcp": { "type": "http", "url": "http://127.0.0.1:9225/mcp" } } }- Why
- No further detail recorded for this rule.
- Fix
- —
LOWObfuscation / stealthobf.decode_call · extension/background.js:4603
const bytes = Uint8Array.from(atob(dataUrl.slice(dataUrl.indexOf(",") + 1)), (c) => c.charCodeAt(0));- Why
- No further detail recorded for this rule.
- Fix
- —
LOWObfuscation / stealthobf.decode_call · safari.js:5204
var binary = atob(b64);
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWObfuscation / stealthobf.decode_call · safari.js:5419
var binary = atob(b64);
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@modelcontextprotocol/sdk, ws, @eslint/js, @types/node, eslint, globals, jsdom, prettier
- Why
- 9 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
LOWPrompt injectionprompt.transfer_instruction · CHANGELOG.md:116
- **The HTTP transport refuses DNS-rebinding requests.** With `SAFARI_MCP_HTTP=1` the server bound to 127.0.0.1 and checked nothing else, and a loopback bind does not stop a web page: a page whose hos
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · CHANGELOG.md:136
- **Shutdown cleanup no longer closes a tab of the user's that happens to sit on the URL our tab started from ([#112](https://github.com/achiya-automation/safari-mcp/issues/112)).** `_cleanupTabs()` c
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
Tools it exposes
99 declared in source · 8 destructive
8 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | What it does | Risk |
|---|---|---|
safari_clear_console | Clear all captured console messages | destructive |
safari_clear_field | Clear an input field | destructive |
safari_clear_mocks | Remove all network route mocks (restore real network behavior) | destructive |
safari_clear_network | Clear all captured network requests | destructive |
safari_delete_cookies | Delete a specific cookie or all cookies for the current page | destructive |
safari_delete_local_storage | Delete a localStorage key, or clear all localStorage (omit key to clear all) | destructive |
safari_delete_session_storage | Delete a sessionStorage key, or clear all sessionStorage (omit key to clear all) | destructive |
safari_reset_emulation | Reset device emulation: restores the window size from before safari_emulate and removes its navigator overrides (no reload) | destructive |
safari_clipboard_write | Write text to the system clipboard | write |
safari_close_tab | Close the current tab. After a daemon/session restart, pass the opaque receipt returned by safari_new_tab or safari_list_tabs. | write |
safari_eval_file | Execute JavaScript read from a FILE path (avoids passing huge scripts inline / manual copy). Same engine as safari_evaluate: extension-first (no focus steal), AppleScript fallback. Use to upload binary via a generated .js containing base64. | write |
safari_fill_and_submit | Fill a form AND submit it in one operation. Finds submit button automatically if not specified. | write |
safari_handle_dialog | Set up handler for the next alert/confirm/prompt dialog | write |
safari_import_storage | Import storage state from JSON (as exported by safari_export_storage) — restores cookies, localStorage, sessionStorage | write |
safari_react_select_set | No description in the source | write |
safari_run_script | No description in the source | write |
safari_save_pdf | Save the current page as a PDF file. Uses screencapture + PDF rendering (no Safari UI interaction needed). | write |
safari_set_cookie | Set a cookie on the current page | write |
safari_set_local_storage | Set a value in localStorage | write |
safari_set_session_storage | Set a value in sessionStorage | write |
safari_start_console | Start capturing console messages (log, warn, error, info). Call once per page. | write |
safari_start_network_capture | Start capturing detailed network requests (fetch + XHR) with headers, status, timing. Call once per page. Intercepts fetch/XHR — captures requests AFTER this call only. For quick overview of already-loaded resources, use safari_network instead. | write |
safari_upload_file | Upload a file to a <input type= | write |
ping | returns pong | read |
safari_accessibility_snapshot | Get the accessibility tree of the page (roles, ARIA labels, focusable elements, form states). Essential for a11y auditing. | read |
safari_analyze_page | Full page analysis in ONE call: title, URL, meta tags, OG, headings, link stats, image stats, forms, and text preview. Perfect for SEO/audit. | read |
safari_check_pwa | Audit the page for iOS | read |
safari_click | Click element. Use ref (from snapshot), selector, text, or x/y. Works on React/Airtable/virtual DOM apps via full PointerEvent+MouseEvent sequence + React Fiber fallback. Pure JS — never touches user | read |
safari_click_and_read | Click an element then return the updated page — saves 1 full round-trip vs separate click+read_page. Handles both React Router navigation and full page loads. | read |
safari_click_and_wait | Click an element AND wait for the result (page load or element). Use instead of click + wait_for separately. | read |
safari_clipboard_read | Read the current clipboard content (text) | read |
safari_console_filter | Get console messages filtered by level (must call safari_start_console first) | read |
safari_css_coverage | Analyze CSS coverage: find unused CSS rules across all stylesheets. Shows coverage percentage per stylesheet. | read |
safari_detect_forms | Auto-detect all forms on the page with their fields, types, selectors, and submit buttons. Great for automated form filling. | read |
safari_doctor | Diagnose the macOS permission + daemon chain in one shot: Safari running, Apple Events/Automation, native helper daemon, Accessibility (native clicks), Screen Recording, and the helper | read |
safari_double_click | Double-click an element by CSS selector or x/y coordinates (e.g. to select a word in text) | read |
safari_drag | Drag an element to another element or position. Use CSS selectors or x/y coordinates. | read |
safari_emulate | Emulate a mobile device: sizes the Safari window to the device | read |
safari_evaluate | No description in the source | read |
safari_export_storage | Export all storage state (cookies + localStorage + sessionStorage) as JSON — useful for saving and restoring login sessions | read |
safari_extract_images | Extract all images with src, alt, dimensions, loading strategy, viewport visibility | read |
safari_extract_links | Extract all links with href, text, rel, target, external/nofollow detection | read |
safari_extract_meta | Extract all meta tags: title, description, canonical, OG tags, Twitter cards, JSON-LD, alternate languages, RSS feeds | read |
safari_extract_tables | Extract HTML tables as structured JSON (headers + rows). Perfect for scraping data tables. | read |
safari_fill | No description in the source | read |
safari_fill_form | Fill multiple form fields at once | read |
safari_get_computed_style | Get computed CSS styles for an element. Optionally filter specific properties. | read |
safari_get_console | Get captured console messages (must call safari_start_console first) | read |
safari_get_cookies | Get cookies for the current page | read |
safari_get_element | Get detailed info about an element (tag, text, rect, attributes, visibility) | read |
safari_get_indexed_db | Read records from an IndexedDB database store | read |
safari_get_source | Get HTML source of current page | read |
safari_go_back | Go back in browser history | read |
safari_go_forward | Go forward in browser history | read |
safari_hover | Hover over element. Use ref, selector, or x/y | read |
safari_inspect_viewport | Validate the page | read |
safari_list_frames | List every document in the tab — the main page plus each iframe — with its frameId, URL and text length. Use when a page | read |
safari_list_indexed_dbs | List all IndexedDB databases on the current page | read |
safari_list_tabs | List every tab in this session | read |
safari_local_storage | Get localStorage data for the current page | read |
safari_mock_route | Intercept network requests matching a URL pattern and return a mock response. Works with both fetch and XHR. Useful for testing API error states, offline behavior, or replacing API responses. | read |
safari_native_click | No description in the source | read |
safari_native_hover | OS-level mouse hover via macOS CGEvent — moves the real cursor to an element to trigger native :hover / mouseenter handlers. Use for obfuscated UIs where JS-dispatched mouseenter isn | read |
safari_native_keyboard | OS-level keyboard event via macOS CGEvent — sends a real keypress (with optional modifiers) to the Safari window WITHOUT activating Safari or stealing focus. Use when safari_press_key | read |
safari_native_type | No description in the source | read |
safari_navigate | Navigate this session | read |
safari_navigate_and_read | Navigate to a URL and return the page content in one step — saves 1 full round-trip vs navigate+read_page. Use instead of safari_navigate + safari_read_page. Like safari_navigate, returns a fresh | read |
safari_network | Quick network overview via Performance API (no setup needed). Shows URLs and timing for resources loaded by the page. For detailed request/response info (headers, status codes, POST bodies), use safari_start_network_capture + safari_network_details instead. | read |
safari_network_details | Get captured network requests with full details (must call safari_start_network_capture first) | read |
safari_new_tab | Open a new background tab (never steals focus), optionally with a URL. Returns {tabIndex, safeUrl, receipt}. KEEP THE RECEIPT and pass it as | read |
safari_override_geolocation | Override the browser | read |
safari_paste_image | Paste an image from a local file into the focused element via JS DataTransfer (no clipboard, no focus steal). Works on Medium, dev.to, HackerNoon, TOI, etc. | read |
safari_performance_metrics | Get detailed performance metrics: navigation timing, Web Vitals (FCP, LCP, CLS), resource breakdown, memory usage | read |
safari_press_key | Press a keyboard key (enter, tab, escape, arrows, etc). Supports modifiers (cmd, shift, alt, ctrl). | read |
safari_query_all | Find all elements matching a CSS selector (returns tag, text, href, value). x/y are relative to each element | read |
safari_react_select_list_options | List available options of a react-select v5 dropdown without opening the menu. Returns JSON {ok, total, options:[{label,value}...]}. Useful when safari_react_select_set returns | read |
safari_read_page | Read page text content (title, URL, body text). Use for reading article text or page content. For interacting with elements, prefer safari_snapshot (gives ref IDs). Use selector to read specific element. Use maxLength to limit output. | read |
safari_reload | Reload the current page | read |
safari_reload_extension | No description in the source | read |
safari_replace_editor | No description in the source | read |
safari_resize | Resize the Safari window | read |
safari_right_click | Right-click (context menu) an element by CSS selector or x/y coordinates | read |
safari_safe_area_insets | Read the live CSS safe-area-inset values (top/right/bottom/left) as the page sees them, whether viewport-fit=cover is set, and whether env(safe-area-inset-*) is used in any stylesheet. For notch / Dynamic Island layout debugging. | read |
safari_screenshot | Take a visual screenshot (base64 JPEG). EXPENSIVE — use safari_snapshot instead for most tasks. Only use screenshot when you need to verify visual layout, styling, images, or colors that snapshot can | read |
safari_screenshot_element | Take a screenshot of a specific element (by CSS selector). Returns a base64 image. | read |
safari_scroll | Scroll the page up or down by a specified amount | read |
safari_scroll_to | Scroll to a specific position on the page | read |
safari_scroll_to_element | Scroll to element by CSS selector OR text. For virtual DOM (Airtable) use text — scrolls down until text appears in DOM. | read |
safari_select_option | Select an option in a native <select> dropdown. Sets .value and dispatches change event. Pass | read |
safari_session_storage | Get sessionStorage data for the current page | read |
safari_snapshot | PREFERRED way to see page state. Returns accessibility tree with ref IDs for every interactive element. Use refs with click/fill/type instead of CSS selectors. Workflow: snapshot → see refs → click({ref: | read |
safari_switch_tab | Switch the MCP session | read |
safari_throttle_network | Simulate slow network conditions. Profiles: slow-3g, fast-3g, 4g, offline. Or custom latency/speed. Call with no args to reset. | read |
safari_type_text | No description in the source | read |
safari_verify_state | Verify the framework-level state of an editor/input matches the expected value. Returns JSON {match, mode, actual, expected, hint?}. Modern editors (ProseMirror, Lexical, Closure, React-controlled inputs) maintain state separately from the DOM — | read |
safari_wait | Wait for a fixed time in milliseconds. Use only when you need a brief pause between actions. PREFER safari_wait_for (waits for element/text to appear) — it | read |
safari_wait_for | Wait for an element or text to appear on the page | read |
safari_wait_for_new_tab | Wait for a new tab to appear (e.g. after OAuth login click opens popup). Automatically switches to the new tab. | read |
safari_webkit_compat | Check every CSS property used on the page against THIS Safari via CSS.supports() — reports unsupported properties, properties that need a -webkit- prefix, and known Safari rendering quirks (e.g. position:sticky inside overflow ancestors). Tested in the live engine, so no false positives. | read |
Safer alternatives
All browser automation servers →brightdata/browserai-mcp
A powerful Model Context Protocol (MCP) server that provides an access to serverless browser for AI agents and apps
vivian-labs/1point3acres-toolkit
一亩三分地自动签到 + 每日答题:在你自己电脑的 Chrome 里、用你自己的登录完成,不经过第三方;也是给 Claude Code / Codex 用的 MCP 服务。1point3acres daily check-in & quiz automation, local-only, plus an MCP server for AI assistants.
ota-tech-ai/web-agent-protocol
🌐Web Agent Protocol (WAP) - Record and replay user interactions in the browser with MCP support
Audit history
- ✕BLOCK F 57 / 100
First audit ·
88ce49c36309
Questions about safari-mcp
What is the safari-mcp MCP server?
What tools does safari-mcp expose?
Is safari-mcp safe to connect to an agent?
What credentials does safari-mcp need?
How does safari-mcp run?
How current is this page?
I already installed safari-mcp. What should I do?
Can the verdict change?
Sources
- achiya-automation/safari-mcp on GitHub — the source we read, its licence, stars and activityObserved · 7 Oct 2026
- ModelsAtlas trust audit — BLOCK verdict for commit 88ce49c36309Observed · 7 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the safari-mcp MCP server?
- What tools does safari-mcp expose?
- Is safari-mcp safe to connect to an agent?