Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

Safari MCP server

by achiya-automation/safari-mcpMIT licenceAudited 6 Oct 2026 · source 03544cc6d600

npm safari-mcp 2.22.11stdiostreamable-http★ 210
✕BLOCKGrade F · 57/100 · 6 Oct 2026 · 03544cc

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.

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Safari MCP server (achiya-automation/safari-mcp)”. Retrieved 6 Oct 2026. https://modelsatlas.com/mcp/achiya-automation/safari

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.

Trust audit

Audit 0.4.1 · full source read 6 Oct 2026

Trust score57/100✕BLOCK F
0 critical1 high10 medium17 low6 info

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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
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
F-13 Inventory / provenanceCWE-1104Layer L0
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
F-04 Network egressCWE-200 · CWE-319Layer L1
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:587
F-04 Network egressCWE-200 · CWE-319Layer L1
...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
F-04 Network egressCWE-200 · CWE-319Layer L1
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
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

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
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

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
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

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
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

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
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMFilesystem / pathmcp.destructive_tools
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
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
LOWInventory / provenanceinv.hidden_file · .prettierignore
F-13 Inventory / provenanceCWE-1104Layer L0
.prettierignore
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWCode injectioncode.eval_exec · test/browser-epoch-rotation.test.mjs:68
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
...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
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
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
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
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
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
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-ownership.test.mjs:50
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
const resolveReceipt = new Function(
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
LOWNetwork egressnet.raw_ip · CHANGELOG.md:106
F-04 Network egressCWE-200 · CWE-319Layer L1
- **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
F-04 Network egressCWE-200 · CWE-319Layer L1
{ "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:4596
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
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
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
var binary = atob(b64);
Why
No further detail recorded for this rule.
Fix
—
LOWObfuscation / stealthobf.decode_call · safari.js:5419
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
var binary = atob(b64);
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@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:106
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- **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:126
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- **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

76 read15 write8 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.

ToolWhat it doesRisk
safari_clear_consoleClear all captured console messagesdestructive
safari_clear_fieldClear an input fielddestructive
safari_clear_mocksRemove all network route mocks (restore real network behavior)destructive
safari_clear_networkClear all captured network requestsdestructive
safari_delete_cookiesDelete a specific cookie or all cookies for the current pagedestructive
safari_delete_local_storageDelete a localStorage key, or clear all localStorage (omit key to clear all)destructive
safari_delete_session_storageDelete a sessionStorage key, or clear all sessionStorage (omit key to clear all)destructive
safari_reset_emulationReset device emulation: restores the window size from before safari_emulate and removes its navigator overrides (no reload)destructive
safari_clipboard_writeWrite text to the system clipboardwrite
safari_close_tabClose the current tab. After a daemon/session restart, pass the opaque receipt returned by safari_new_tab or safari_list_tabs.write
safari_eval_fileExecute 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_submitFill a form AND submit it in one operation. Finds submit button automatically if not specified.write
safari_handle_dialogSet up handler for the next alert/confirm/prompt dialogwrite
safari_import_storageImport storage state from JSON (as exported by safari_export_storage) — restores cookies, localStorage, sessionStoragewrite
safari_react_select_setNo description in the sourcewrite
safari_run_scriptNo description in the sourcewrite
safari_save_pdfSave the current page as a PDF file. Uses screencapture + PDF rendering (no Safari UI interaction needed).write
safari_set_cookieSet a cookie on the current pagewrite
safari_set_local_storageSet a value in localStoragewrite
safari_set_session_storageSet a value in sessionStoragewrite
safari_start_consoleStart capturing console messages (log, warn, error, info). Call once per page.write
safari_start_network_captureStart 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_fileUpload a file to a <input type=write
pingreturns pongread
safari_accessibility_snapshotGet the accessibility tree of the page (roles, ARIA labels, focusable elements, form states). Essential for a11y auditing.read
safari_analyze_pageFull 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_pwaAudit the page for iOSread
safari_clickClick 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 userread
safari_click_and_readClick 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_waitClick an element AND wait for the result (page load or element). Use instead of click + wait_for separately.read
safari_clipboard_readRead the current clipboard content (text)read
safari_console_filterGet console messages filtered by level (must call safari_start_console first)read
safari_css_coverageAnalyze CSS coverage: find unused CSS rules across all stylesheets. Shows coverage percentage per stylesheet.read
safari_detect_formsAuto-detect all forms on the page with their fields, types, selectors, and submit buttons. Great for automated form filling.read
safari_doctorDiagnose the macOS permission + daemon chain in one shot: Safari running, Apple Events/Automation, native helper daemon, Accessibility (native clicks), Screen Recording, and the helperread
safari_double_clickDouble-click an element by CSS selector or x/y coordinates (e.g. to select a word in text)read
safari_dragDrag an element to another element or position. Use CSS selectors or x/y coordinates.read
safari_emulateEmulate a mobile device: sizes the Safari window to the deviceread
safari_evaluateNo description in the sourceread
safari_export_storageExport all storage state (cookies + localStorage + sessionStorage) as JSON — useful for saving and restoring login sessionsread
safari_extract_imagesExtract all images with src, alt, dimensions, loading strategy, viewport visibilityread
safari_extract_linksExtract all links with href, text, rel, target, external/nofollow detectionread
safari_extract_metaExtract all meta tags: title, description, canonical, OG tags, Twitter cards, JSON-LD, alternate languages, RSS feedsread
safari_extract_tablesExtract HTML tables as structured JSON (headers + rows). Perfect for scraping data tables.read
safari_fillNo description in the sourceread
safari_fill_formFill multiple form fields at onceread
safari_get_computed_styleGet computed CSS styles for an element. Optionally filter specific properties.read
safari_get_consoleGet captured console messages (must call safari_start_console first)read
safari_get_cookiesGet cookies for the current pageread
safari_get_elementGet detailed info about an element (tag, text, rect, attributes, visibility)read
safari_get_indexed_dbRead records from an IndexedDB database storeread
safari_get_sourceGet HTML source of current pageread
safari_go_backGo back in browser historyread
safari_go_forwardGo forward in browser historyread
safari_hoverHover over element. Use ref, selector, or x/yread
safari_inspect_viewportValidate the pageread
safari_list_framesList every document in the tab — the main page plus each iframe — with its frameId, URL and text length. Use when a pageread
safari_list_indexed_dbsList all IndexedDB databases on the current pageread
safari_list_tabsList every tab in this sessionread
safari_local_storageGet localStorage data for the current pageread
safari_mock_routeIntercept 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_clickNo description in the sourceread
safari_native_hoverOS-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 isnread
safari_native_keyboardOS-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_keyread
safari_native_typeNo description in the sourceread
safari_navigateNavigate this sessionread
safari_navigate_and_readNavigate 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 freshread
safari_networkQuick 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_detailsGet captured network requests with full details (must call safari_start_network_capture first)read
safari_new_tabOpen a new background tab (never steals focus), optionally with a URL. Returns {tabIndex, safeUrl, receipt}. KEEP THE RECEIPT and pass it asread
safari_override_geolocationOverride the browserread
safari_paste_imagePaste 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_metricsGet detailed performance metrics: navigation timing, Web Vitals (FCP, LCP, CLS), resource breakdown, memory usageread
safari_press_keyPress a keyboard key (enter, tab, escape, arrows, etc). Supports modifiers (cmd, shift, alt, ctrl).read
safari_query_allFind all elements matching a CSS selector (returns tag, text, href, value). x/y are relative to each elementread
safari_react_select_list_optionsList 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 returnsread
safari_read_pageRead 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_reloadReload the current pageread
safari_reload_extensionNo description in the sourceread
safari_replace_editorNo description in the sourceread
safari_resizeResize the Safari windowread
safari_right_clickRight-click (context menu) an element by CSS selector or x/y coordinatesread
safari_safe_area_insetsRead 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_screenshotTake 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 canread
safari_screenshot_elementTake a screenshot of a specific element (by CSS selector). Returns a base64 image.read
safari_scrollScroll the page up or down by a specified amountread
safari_scroll_toScroll to a specific position on the pageread
safari_scroll_to_elementScroll to element by CSS selector OR text. For virtual DOM (Airtable) use text — scrolls down until text appears in DOM.read
safari_select_optionSelect an option in a native <select> dropdown. Sets .value and dispatches change event. Passread
safari_session_storageGet sessionStorage data for the current pageread
safari_snapshotPREFERRED 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_tabSwitch the MCP sessionread
safari_throttle_networkSimulate slow network conditions. Profiles: slow-3g, fast-3g, 4g, offline. Or custom latency/speed. Call with no args to reset.read
safari_type_textNo description in the sourceread
safari_verify_stateVerify 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_waitWait 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) — itread
safari_wait_forWait for an element or text to appear on the pageread
safari_wait_for_new_tabWait for a new tab to appear (e.g. after OAuth login click opens popup). Automatically switches to the new tab.read
safari_webkit_compatCheck 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

Audit history

  1. ✕BLOCK F 57 / 100

    First audit · 03544cc6d600

README badge

Badges show the current verdict, BLOCK included

ModelsAtlas: BLOCK FMODELSATLASBLOCK · F

A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.

Questions about Safari MCP server

What is the Safari MCP server?
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.
What tools does Safari expose?
99 in total: 76 read-only, 15 that write, and 8 that can delete or overwrite (safari_clear_console, safari_clear_field, safari_clear_mocks, safari_clear_network, safari_delete_cookies). Every one is listed on this page with its risk.
Is Safari safe to connect to an agent?
No — not without reading the findings first. The audit graded it F (57/100) and found 1 critical or high issue in the source. Each one is listed on this page with the file and line it is on. Separately from the audit: 8 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Safari need?
No credential environment variables were found in its source, so it appears to need none.
How does Safari run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as safari-mcp at 2.22.11.
How current is this page?
The grade is for one exact copy of the source (03544cc6d600), read on 2026-10-06. The repository is watched and re-audited when it changes.
I already installed Safari. What should I do?
Remove it from your client's MCP configuration, then rotate any API keys and tokens that were in your environment while it ran.
Can the verdict change?
Yes. The repository is watched and re-audited when its source changes. If the findings are removed the verdict updates, and the history on this page shows it.

Sources

  • achiya-automation/safari-mcp on GitHub — the source we read, its licence, stars and activityObserved · 6 Oct 2026
  • ModelsAtlas trust audit — BLOCK verdict for commit 03544cc6d600Observed · 6 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.