Safari (achiya-automation) MCP Server

safari-mcp npm v2.19.0 Source verified

Published by achiya-automation — publish provenance cryptographically ties this package to that repository. That is proof of origin, not an official vendor package.

Automates Safari natively on macOS with 96 tools via AppleScript and JavaScript, with no Chrome dependency.

Trust grade
A
93/100
Last scanned get badge →
Trust
A · 93/100
Adoption risk for you: the threat score, then adjusted down for blast radius, publisher verification and how much the scan could see. Deterministic; every point is auditable.
Capability
High
Blast radius if it went rogue — what the server’s tools could reach. Independent of trust.
Coverage
Source
How much the scan could actually inspect. Shallow coverage is stated, never hidden.
Share this Trust Score
𝕏 Share LinkedIn Reddit
A Why this grade threat 99 − adoption risk = 93/100

The grade answers one question — how safe is this server for you to adopt — so it is computed in two auditable stages. Nothing below is an opinion or an LLM's guess; every line is a real term the deterministic engine applied, and the same input always yields the same number.

1. Threat score — 100 − 1.2 = 99. What the published surface and source actually contain:

PointsWhat was foundCategory
−1.2 Package runs install-time scripts MTC-SUP-010 supply-chain

2. Client adoption risk — 99 − 6 = 93. Three small, subtract-only factors that reflect your risk in adopting it — a clean scan proves less on a powerful, unverified or barely-inspectable package, so the grade says so plainly:

PointsAdoption-risk factor
−6 capability blast radius (high) — client exposure if the model is manipulated

Capability observations and info notes are shown under Findings but never scored. Open any row's finding below for the file, line and evidence behind a deduction.

Findings 10

high Reads a sensitive credential path or dumps the environment (safari.js)MTC-SRC-006

In the server's implementation (`safari.js:4249`): Reading private keys / cloud credentials, or serializing the whole environment, is a sensitive-data source that becomes exfiltration when combined with any egress. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: ssh', '.gnupg', '.aws', '.config/gcloud', 'credentials', '.env', '.npmrc', '.netrc', 'id_rsa', 'id_ed25519', '.keychain'

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server safari.js

high Tool "safari_eval_file" exposes command/code executionMTC-CAP-001

Tool "safari_eval_file" appears to run shell commands or evaluate code (keyword "eval" in tool name). Arbitrary execution driven by model input is one of the most dangerous MCP capabilities; combined with any untrusted input it becomes RCE.

Fix: Sandbox execution, allowlist commands/arguments, and never pass model output to a shell unescaped.

Location: tool safari_eval_file

high Tool "safari_run_script" exposes command/code executionMTC-CAP-001

Tool "safari_run_script" appears to run shell commands or evaluate code (keyword "run_script" in tool name). Arbitrary execution driven by model input is one of the most dangerous MCP capabilities; combined with any untrusted input it becomes RCE.

Fix: Sandbox execution, allowlist commands/arguments, and never pass model output to a shell unescaped.

Location: tool safari_run_script

high Shell/command execution in server code (index.js)MTC-SRC-002

In the server's implementation (`index.js:23`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: ecFileSync } from "node:child_process"; import { readFileSync, writeFileSync, existsSync, mkdirSync, unlinkSync, renameS

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server index.js

high Shell/command execution in server code (safari.js)MTC-SRC-002

In the server's implementation (`safari.js:6`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: spawnSync } from "node:child_process"; import { promisify } from "node:util"; import { tmpdir, homedir } from "node:os"

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server safari.js

medium Untrusted input can drive an external actionMTC-FLOW-005

Untrusted-input tools ([safari_evaluate, safari_mock_route, safari_start_network_capture, safari_extract_meta]) co-exist with external-action tools ([safari_eval_file, safari_upload_file, safari_run_script]). A prompt injection could cause unwanted external actions, though no direct sensitive-data leak path was found.

Evidence: untrusted [safari_evaluate, safari_mock_route, safari_start_network_capture, safari_extract_meta] → sinks [safari_eval_file, safari_upload_file, safari_run_scri

Fix: Require confirmation for state-changing/egress actions triggered after processing untrusted content.

Location: flow safari_evaluate → safari_eval_file

low Mutating tool "safari_eval_file" declares no destructiveHintMTC-CAP-005

Tool "safari_eval_file" can mutate/egress but declares no destructiveHint. Clients that don't default to spec-safe behavior may not prompt before running it.

Fix: Declare accurate annotations, and gate destructive tools on user confirmation regardless.

Location: tool safari_eval_file

low Mutating tool "safari_run_script" declares no destructiveHintMTC-CAP-005

Tool "safari_run_script" can mutate/egress but declares no destructiveHint. Clients that don't default to spec-safe behavior may not prompt before running it.

Fix: Declare accurate annotations, and gate destructive tools on user confirmation regardless.

Location: tool safari_run_script

low Shell/command execution in packaging/dev tooling (scripts/postinstall.cjs)MTC-SRC-002

In a packaging/dev/install script (shipped, but not the server runtime) (`scripts/postinstall.cjs:6`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: spawnSync } = require("child_process"); const fs = require("fs"); const c = { reset: "\x1b[0m", bold: "\x1b[1m",

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server scripts/postinstall.cjs

low Package runs install-time scripts (postinstall)MTC-SUP-010

"safari-mcp" executes postinstall script(s) at install time. An install hook runs at install time; most are routine build/setup, but review what it does before trusting it.

Evidence: node scripts/postinstall.cjs || true

Fix: Review the scripts; install with --ignore-scripts where possible and vet what they do.

Location: package safari-mcp

Tools 97

Each tool and what it can reach — statically extracted from the published source.

  • safari_eval_fileruns code / shell
  • safari_evaluateingests untrusted input
  • safari_extract_metaingests untrusted input
  • safari_mock_routeingests untrusted input
  • safari_run_scriptruns code / shell
  • safari_start_network_captureingests untrusted input
  • safari_upload_filenetwork egress
  • safari_accessibility_snapshotno sensitive capability
  • safari_analyze_pageno sensitive capability
  • safari_check_pwano sensitive capability
Show 87 more tools ↓
  • safari_clear_consoleno sensitive capability
  • safari_clear_fieldno sensitive capability
  • safari_clear_mocksno sensitive capability
  • safari_clear_networkno sensitive capability
  • safari_clickno sensitive capability
  • safari_click_and_readno sensitive capability
  • safari_click_and_waitno sensitive capability
  • safari_clipboard_readno sensitive capability
  • safari_clipboard_writeno sensitive capability
  • safari_close_tabno sensitive capability
  • safari_console_filterno sensitive capability
  • safari_css_coverageno sensitive capability
  • safari_delete_cookiesno sensitive capability
  • safari_delete_local_storageno sensitive capability
  • safari_delete_session_storageno sensitive capability
  • safari_detect_formsno sensitive capability
  • safari_doctorno sensitive capability
  • safari_double_clickno sensitive capability
  • safari_dragno sensitive capability
  • safari_emulateno sensitive capability
  • safari_export_storageno sensitive capability
  • safari_extract_imagesno sensitive capability
  • safari_extract_linksno sensitive capability
  • safari_extract_tablesno sensitive capability
  • safari_fillno sensitive capability
  • safari_fill_and_submitno sensitive capability
  • safari_fill_formno sensitive capability
  • safari_get_computed_styleno sensitive capability
  • safari_get_consoleno sensitive capability
  • safari_get_cookiesno sensitive capability
  • safari_get_elementno sensitive capability
  • safari_get_indexed_dbno sensitive capability
  • safari_get_sourceno sensitive capability
  • safari_go_backno sensitive capability
  • safari_go_forwardno sensitive capability
  • safari_handle_dialogno sensitive capability
  • safari_hoverno sensitive capability
  • safari_import_storageno sensitive capability
  • safari_inspect_viewportno sensitive capability
  • safari_list_indexed_dbsno sensitive capability
  • safari_list_tabsno sensitive capability
  • safari_local_storageno sensitive capability
  • safari_native_clickno sensitive capability
  • safari_native_hoverno sensitive capability
  • safari_native_keyboardno sensitive capability
  • safari_native_typeno sensitive capability
  • safari_navigateno sensitive capability
  • safari_navigate_and_readno sensitive capability
  • safari_networkno sensitive capability
  • safari_network_detailsno sensitive capability
  • safari_new_tabno sensitive capability
  • safari_override_geolocationno sensitive capability
  • safari_paste_imageno sensitive capability
  • safari_performance_metricsno sensitive capability
  • safari_press_keyno sensitive capability
  • safari_query_allno sensitive capability
  • safari_react_select_list_optionsno sensitive capability
  • safari_react_select_setno sensitive capability
  • safari_read_pageno sensitive capability
  • safari_reloadno sensitive capability
  • safari_reload_extensionno sensitive capability
  • safari_replace_editorno sensitive capability
  • safari_reset_emulationno sensitive capability
  • safari_resizeno sensitive capability
  • safari_right_clickno sensitive capability
  • safari_safe_area_insetsno sensitive capability
  • safari_save_pdfno sensitive capability
  • safari_screenshotno sensitive capability
  • safari_screenshot_elementno sensitive capability
  • safari_scrollno sensitive capability
  • safari_scroll_tono sensitive capability
  • safari_scroll_to_elementno sensitive capability
  • safari_select_optionno sensitive capability
  • safari_session_storageno sensitive capability
  • safari_set_cookieno sensitive capability
  • safari_set_local_storageno sensitive capability
  • safari_set_session_storageno sensitive capability
  • safari_snapshotno sensitive capability
  • safari_start_consoleno sensitive capability
  • safari_switch_tabno sensitive capability
  • safari_throttle_networkno sensitive capability
  • safari_type_textno sensitive capability
  • safari_verify_stateno sensitive capability
  • safari_waitno sensitive capability
  • safari_wait_forno sensitive capability
  • safari_wait_for_new_tabno sensitive capability
  • safari_webkit_compatno sensitive capability

Toxic flows 1

Cross-tool combinations that form a data-exfiltration primitive (untrusted input → sensitive source → external sink).

What this scan could not see

Versions 10

Scan history per published version. The engine is deterministic — the same version always yields the same score, so a changed score means the package itself changed.

VersionScoreFindingsEngineScanned
v2.19.0 latest A 93/100 10 1.13.0 2026-09-07
v2.18.1 A 93/100 10 1.13.0 2026-09-05
v2.17.1 A 93/100 10 1.13.0 2026-09-04
v2.17.0 A 93/100 10 1.13.0 2026-08-29
v2.16.3 A 93/100 10 1.13.0 2026-08-25
Show 5 more versions ↓
v2.16.2 A 93/100 10 1.12.1 2026-08-21
v2.16.1 A 93/100 10 1.12.1 2026-08-19
v2.16.0 A 93/100 10 1.12.1 2026-08-15
v2.15.12 A 93/100 10 1.12.1 2026-08-06
v2.15.11 A 93/100 10 1.12.1 2026-07-31

Embed this score

Show this server's live Trust Score in your README, docs or website. The badge is served straight from the registry and updates automatically after every rescan — no API key needed. It links back to this page, so anyone who sees the grade can also read the findings behind it instead of taking a number on faith.

MCP Trust Score: A · 93/100
Markdown (GitHub README)
[![MCP Trust Score](https://mcptrustchecker.com/registry/safari-mcp/badge.svg)](https://mcptrustchecker.com/registry/safari-mcp)
HTML
<a href="https://mcptrustchecker.com/registry/safari-mcp"><img src="https://mcptrustchecker.com/registry/safari-mcp/badge.svg" alt="MCP Trust Score" height="20"></a>
Prefer shields.io styling? Point it at https://mcptrustchecker.com/registry/safari-mcp/badge.json via https://img.shields.io/endpoint?url=…

Verify this score yourself

The score above is reproducible: the same package version always yields the same result. Run it locally or over the free API — no account, no LLM, fully deterministic.

npx mcptrustchecker scan safari-mcp --online

Use the free API → How scoring works

Other implementations of Safari 2

Independent packages implementing the same tool, scanned with the same engine. Compare all 3 side by side →

More in Browser Automation