Apple Safari
Read and act on Safari — history, tabs and reading list, writes off by default
Documentation & Preview
{ "mcpServers": { "mcp-mcp-apple-safari-61de5a28243c5f665f14": { "command": "npx", "args": [ "-y", "--package", "@mgcrea/mcp-apple-safari@1.45.1", "apple-safari-mcp" ], "env": { "APPLE_SAFARI_ALLOW_WRITES": "${ENV_APPLE_SAFARI_ALLOW_WRITES}", "APPLE_SAFARI_ALLOW_CODES": "${ENV_APPLE_SAFARI_ALLOW_CODES}", "APPLE_SAFARI_ALLOW_NETWORK": "${ENV_APPLE_SAFARI_ALLOW_NETWORK}", "APPLE_SAFARI_ALLOW_COOKIES": "${ENV_APPLE_SAFARI_ALLOW_COOKIES}", "APPLE_SAFARI_COOKIE_HOSTS": "${ENV_APPLE_SAFARI_COOKIE_HOSTS}", "APPLE_SAFARI_DOWNLOAD_DIR": "${ENV_APPLE_SAFARI_DOWNLOAD_DIR}", "APPLE_SAFARI_NETWORK_CHUNK_CHARS": "${ENV_APPLE_SAFARI_NETWORK_CHUNK_CHARS}" } } }, "setup": { "fields": [ { "id": "ENV_APPLE_SAFARI_ALLOW_WRITES", "label": "APPLE_SAFARI_ALLOW_WRITES", "description": "Register the mutating tools. Off by default, and the gate decides whether the write tools exist at all rather than merely refusing — an agent with writes off cannot see them.", "required": false, "secret": false, "default": "" }, { "id": "ENV_APPLE_SAFARI_ALLOW_CODES", "label": "APPLE_SAFARI_ALLOW_CODES", "description": "Return one-time codes: a one-time-code field in apple_safari_page_elements, and apple_safari_find_codes for a code a page shows as text. Its own gate rather than allowWrites, because it is a read. Credential fields stay redacted whatever this says.", "required": false, "secret": false, "default": "" }, { "id": "ENV_APPLE_SAFARI_ALLOW_NETWORK", "label": "APPLE_SAFARI_ALLOW_NETWORK", "description": "Register apple_safari_network_record, _list and _get, which record what a page you allowed the extension on fetches and read the responses. Its own gate rather than allowWrites, because it is a read; off means the tools do not exist. Headers named like credentials are masked, bodies are not. Reloading a tab to record and saving a body to a file still need APPLE_SAFARI_ALLOW_WRITES.", "required": false, "secret": false, "default": "" }, { "id": "ENV_APPLE_SAFARI_ALLOW_COOKIES", "label": "APPLE_SAFARI_ALLOW_COOKIES", "description": "Register apple_safari_cookies, which lists the cookies Safari would send to an open page, HttpOnly ones included, through the extension's cookies permission. Its own gate rather than allowWrites, because it is a read; off means the tool does not exist. Not enough on its own: only sites in APPLE_SAFARI_COOKIE_HOSTS are readable. Values never come back inline; saveAs writes named ones to a 0600 file and needs APPLE_SAFARI_ALLOW_WRITES.", "required": false, "secret": false, "default": "" }, { "id": "ENV_APPLE_SAFARI_COOKIE_HOSTS", "label": "APPLE_SAFARI_COOKIE_HOSTS", "description": "Comma-separated registrable domains whose cookies apple_safari_cookies may read, like \"yahoo.com\"; each covers the domain and its subdomains. Empty, the default, means no site is readable. An entry with no dot is ignored.", "required": false, "secret": false, "default": "" }, { "id": "ENV_APPLE_SAFARI_DOWNLOAD_DIR", "label": "APPLE_SAFARI_DOWNLOAD_DIR", "description": "Where saveAs writes a file, for apple_safari_network_get and apple_safari_cookies. Defaults to ~/Downloads. A name is kept to its basename and an existing file is never replaced unless asked.", "required": false, "secret": false, "default": "" }, { "id": "ENV_APPLE_SAFARI_NETWORK_CHUNK_CHARS", "label": "APPLE_SAFARI_NETWORK_CHUNK_CHARS", "description": "Characters of a body the server asks the page for per command when it reads a large body. Defaults to 262144, which was measured to work; how far above that Safari's native-message channel goes is unmeasured.", "required": false, "secret": false, "default": "" } ], "requirements": [ "安装 Node.js / npm" ] }, "provenance": { "registryServer": "io.github.mgcrea/mcp-apple-safari", "registryVersion": "1.45.1", "registryUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.mgcrea%2Fmcp-apple-safari/versions/1.45.1", "repository": null, "sourceCommit": null, "namespaceRepositoryOwnerMatched": false, "officialRegistryNamespaceVerified": true, "package": { "registry": "npm", "identifier": "@mgcrea/mcp-apple-safari", "version": "1.45.1", "integrity": "sha512-vz2tPgoo1f0695QOO9lWS9jwhFmOpPoJ9AIljkC18LkpcfWLT6tPdPMGmAtWDB4j9HpXaTg8nP262CqlUgTGEw==", "registryNameMatched": "io.github.mgcrea/mcp-apple-safari", "checkedAt": "2026-11-28T20:22:17.059Z" }, "scope": "Install configuration verified; dependency implementation and remote behavior have not been audited" } }