mirroir-mcp can drive a real iPhone. Fail-closed still lets the model see the screen.
Published
mirroir-mcp is a Swift MCP server that lets an AI agent see and drive a real, stock iPhone through macOS 15+ iPhone Mirroring. There is no Developer Mode, Xcode, WebDriverAgent, or jailbreak. Input is posted with the macOS CGEvent API (and, for taps and keystrokes, a window-addressed SkyLight path), so the process needs Screen Recording and Accessibility. It also accepts configured macOS windows — an emulator, a VNC session, a desktop app — which is a wider surface than “an iPhone agent.” Publisher: Jean-Francois Arcand (jfarcand, jfarcand@apache.org). License: Apache-2.0, copyright 2026 Async-IO.org. The npm package is mirroir-mcp. Docs and marketing live at mirroir.dev; the detailed permission and security pages are the Markdown files in the repository.
This review pins two trees that differ only in website demo videos:
- Default-branch HEAD:
0a90f07ca9741140471d0002bd0d420985aa98b9onmain(commit date 21 November 2026, 01:47:50 Asia/Hong_Kong). Message:docs(website): recut demo videos to open on the action and blur third-party names. Declared version in source is still 0.50.3. At research time on 21 November 2026, Asia/Hong_Kong, GitHub showed 393 stars and 47 forks. The repository is not archived. - The binary users actually get via
npx: GitHub and npm releasev0.50.3, commit969390163e1ada8c4f6a379c006f27d22cb89774(chore: bump version to 0.50.3). That tag is an ancestor of HEAD. Release published 20 November 2026, 11:40:18 Asia/Hong_Kong; npmmirroir-mcp@0.50.3published 11:41:49 the same morning. The only files that change between the tag and HEAD are eight assets underwebsite/public/(the recut demo videos and posters). Server source, installers, and docs are identical.
How we reviewed this. Static review of a clone at 0a90f07, a diff against 9693901, the live site at mirroir.dev and mirroir.dev/docs, the live installer at mirroir.dev/get-mirroir.sh, the published npm 0.50.3 tarball, the GitHub release assets (SHA256SUMS, the Apple Silicon tarball, and mirroir-mcp.mcpb), and the Homebrew formula on jfarcand/homebrew-tap (its v0.50.3 source tarball hash was re-checked). We unpacked the Mach-O binaries and searched them for URLs and obvious dropper strings. We did not run the native binary, did not attach a real iPhone, did not grant Accessibility or Screen Recording, and did not send live MCP tool calls. Review date 21 November 2026, Asia/Hong_Kong.
Verdict in plain language
Malware: We found no evidence of a malicious program in first-party source at 0a90f07 / 9693901, in the npm 0.50.3 wrapper, or in strings from the v0.50.3 release binaries (high confidence, not absolute). There is no hidden webhook, no unexpected default exfil domain, no obfuscated installer, and no root helper. The only network call the server makes by default is a once-a-day version check to https://registry.npmjs.org/mirroir-mcp/latest. That is not a runtime “confirmed clean” certificate, and it is not a promise about whatever GitHub or npm serves tomorrow. We did not execute the Mach-O, and the SHA-256 check on the tarball is against SHA256SUMS from the same GitHub release — same publisher, not a second factor.
Permission scope: A default install, with no permissions.json and no --yolo, still exposes 14 read-only tools, including screenshot, describe_screen, start_recording, stop_recording, and listen. Those tools already send the unlocked phone’s screen — and, on macOS 26, a transcript of what iPhone Mirroring is playing — to whichever model your MCP client uses. The other 28 tools (taps, typing, launch_app, open_url, set_network, run_steps, and the rest) are hidden from tools/list and refused until you allow them in ~/.mirroir-mcp/permissions.json (or a project-local copy), or pass --dangerously-skip-permissions / --yolo on stdio. The process runs as your macOS user. It needs Screen Recording and Accessibility. It does not need root. Optional mirroir-mcp serve listens on 127.0.0.1 only, behind a mandatory bearer token.
If you take “fail-closed” to mean “the agent cannot see the phone until I opt in,” that is not what this product does.
What the server actually is
The public pitch is straightforward and, on the mechanism, accurate. iPhone Mirroring already puts a live picture of a signed-in iPhone on the Mac. mirroir-mcp is the MCP front-end to that window: 42 tools, any MCP client, no developer tooling on the phone.
PermissionPolicy.readonlyTools and mutatingTools in Sources/HelperLib/PermissionPolicy.swift are exactly the 14 + 28 names the docs list. checkTool allows every readonly tool unconditionally, allows every tool if --dangerously-skip-permissions or --yolo is set, and otherwise fail-closes a mutating tool unless it appears in allow (with deny overriding allow, and ["*"] meaning all mutating tools). isToolVisible uses the same rule, and MCPServer filters tools/list through it. A malformed permissions.json is treated as no config: the loader logs a warning and falls back to the 14 readonly tools, rather than opening everything.
Two details matter once you live with that model.
First, deny cannot turn off a readonly tool. checkTool and isToolVisible return early for the readonly set, before the deny list is read. Putting screenshot or listen in deny does not hide them and does not refuse them. The permissions page describes deny as a blocklist that overrides allow; it does not claim you can mute observation this way, and the code does not let you.
Second, several “readonly” tools are observation with a side effect. start_recording writes a .mov. listen records the target app’s audio through ScreenCaptureKit, transcribes it on the Mac with SpeechAnalyzer, deletes the temporary .caf, and returns the words — and those words go back to the MCP client. get_notes can already hold text an earlier session copied from the screen. None of this is hidden malware. It is the product working as designed, and it is why a default install is not private.
The password claim is narrower than it sounds
The README says: “Passwords stay yours. mirroir never presses a sheet that asks for a password or Touch ID.” The first sentence is a hope. The second is true of a Mac sheet, and only that.
SessionBlockClassifier.hasCredentialPrompt (Sources/mirroir-mcp/SessionBlock.swift) looks for an AX text field or AXSecureTextField in the iPhone Mirroring window overlay or an attached Mac sheet. MirroringBridge.showsCredentialPrompt then refuses to press a resume or dismiss control on that sheet. Tests in MirroringWindowResolverTests and MirroringBridgeLiveStateTests exercise exactly that Mac-sheet case — including a fixture whose text is “Enter the Mac login password.”
An in-app iPhone password, PIN, or one-time-code field is pixels inside the mirrored framebuffer. It does not appear as a Mac AX secure field, so this guard does not see it. VerifiedTextEntry.keyedReadBack even tells the agent that a mismatch notice is “expected” because “a password field hides what it holds,” which only makes sense if type_text does post keystrokes into those fields. The operating manual in OperatingManual.swift — “Never type a password, PIN or one-time code” — is instruction to the model, not enforcement in the input path.
So: mirroir will not click OK on a Mac password or Touch ID sheet. It will not, by itself, stop an allowed type_text call from entering a banking login, an App Store password, or an SMS code that is visible on the phone. And screenshot / describe_screen / listen can already send that code to your model, with no mutating tool enabled.
The README’s other line, “no password handed to anyone,” is about not collecting your Apple ID for a connector. Screen contents still leave through the MCP client.
blockedApps does not see unnamed icons
blockedApps in permissions.json is real, and it is narrower than a casual reading of “keep the agent out of Wallet.” checkAppLaunch refuses launch_app (and, per the permissions doc, open_url for Safari, set_network for Settings, exploration, and a tap on a labelled Home Screen or Spotlight icon) when the name matches, case-insensitively.
The same permissions page already says the check does not apply to “the Dock, folders, the App Library and App Switcher cards,” because those icons carry no name under them. BlockedAppTapGuard implements that gap, and BlockedAppTapGuardTests documents a parked CarPlay case where a Dock tap opened Messages. Driving mode is the exception that refuses Dock taps outright, because a Dock icon cannot be named and only allowedApps may open. --dangerously-skip-permissions does not turn driving mode off.
If you rely on blockedApps: ["Wallet", "PayPal"] as a hard wall, also assume a Dock or App Library tap can still open those apps.
--yolo is a total bypass on stdio, and the default installer does not add it
--dangerously-skip-permissions and its alias --yolo expose every mutating tool, including tools you put in deny. The permissions page and the troubleshooting guide say so. mirroir-mcp serve refuses both flags: over HTTP, a tool is opened only by listing it in permissions.json. That is a real, checked difference, not just documentation.
The paths most people will actually run do not turn the flag on. npx -y mirroir-mcp install writes or merges a client config whose args are ["-y", "mirroir-mcp"] — npm’s “install if needed,” not mirroir’s --yolo. If mirroir is already present, or if an existing .mcp.json / .cursor/mcp.json / .vscode/mcp.json cannot be parsed, the installer leaves the file alone rather than overwriting it. That is the right shape.
--yolo is still one flag in a client config or a shell alias away. If you paste a snippet from the troubleshooting page (npx -y mirroir-mcp --debug --yolo), you have opened every tool on purpose.
Two installers, two pin stories
There are several supported install paths. They do not pin the same thing.
-
npx -y mirroir-mcp install(and a laternpx -y mirroir-mcp). The npm 0.50.3 package is a 16,660-byte JavaScript wrapper:install.js,install-cmd.js, abin/mirroir-mcplauncher, two agent YAML files, and a README. Those files are byte-identical tonpm/in the tagged tree.postinstall(and the launcher, if the native binary is missing) downloadsmirroir-mcp-darwin-arm64.tar.gzfrom the GitHubv0.50.3release and checks SHA-256 against that release’sSHA256SUMS. We downloaded both; the tarball hash is6b56c0f7124e7aa3c533909637836ab760928623504cf2cc97a55f8853c306a4, matchingSHA256SUMSand GitHub’s asset digest. The npm tarball’s SHA-1 also matches the registry (da64349889dde41d76e8a95ddfd259cfd8b36545). This is a version-pinned path. It is not an independent checksum channel: a compromised release account can update the binary and the sums together. -
Homebrew:
brew tap jfarcand/tap && brew install mirroir-mcp. The formula onjfarcand/homebrew-tappinshttps://github.com/jfarcand/mirroir-mcp/archive/refs/tags/v0.50.3.tar.gzwith SHA-256a3dd12bdaaa45696ab608724b4b92ae48b95cabf96d4a6f00252c2b0660467b1, which matched a fresh download in this review, then builds from source. (The docs also mentiontap.mirroir.dev, which returned HTTP 404 at review time; thejfarcand/tapcommand is the one that resolves.) -
/bin/bash -c "$(curl -fsSL https://mirroir.dev/get-mirroir.sh)". The live script is byte-identical toget-mirroir.shat0a90f07(SHA-256a4259e19a4e51fb057ffdc208618da1325892c5f98affc7cf2013360a7f06dde). It does an unpinnedgit cloneof defaultmaininto$HOME/mirroir-mcp, orgit pull --ff-onlyon update, thenexecsmirroir.sh, which runsswift build -c release. There is no tag, no commit SHA, and no checksum. A clone today happens to land on the video-recut commit after v0.50.3; a clone tomorrow follows whatevermainis. If you want the tree we reviewed, do not use this installer as written. -
Claude Code plugin, Hermes plugin, or the MCPB bundle. The v0.50.3 release also ships
mirroir-mcp.mcpb(SHA-2561357e7e96dbdbf0ced348959dc9492eb5f69f2d137aa490695d5b5ff42784db4), which wraps an ad-hoc-signedmirroir-mcp.app. The docs call this the Apple Silicon binary. The unpacked MCPB executable is not byte-identical to the npm tarball binary (7,587,888 vs 7,614,008 bytes); both are Mach-O (cffaedfe), both are listed in the sameSHA256SUMS, and strings from the tarball binary showed the same first-party and optional-provider URLs as the source:registry.npmjs.org,mirroir.dev, GitHub,127.0.0.1, plusapi.anthropic.com,api.openai.com, and localhost Ollama/embacle endpoints that stay unused until configured.
One related gap: install.js will still request mirroir-mcp-darwin-x86_64.tar.gz on an Intel Mac. That asset is not in v0.50.3, and it was not in the seven releases before it either. The MCPB docs already say Apple Silicon. An Intel npx install should fail closed on a missing or unverifiable tarball, not silently run something else.
Loopback serve is careful, and still a token for the phone
Default stdio mode opens no port. That is the mode npx and a normal MCP client config use.
mirroir-mcp serve is opt-in. NetworkHTTPServer.loopbackHost is hard-coded to 127.0.0.1; there is no --host 0.0.0.0. Every request needs a bearer token of at least 32 characters, kept in ~/.mirroir-mcp/serve-token at mode 0o600. The loader refuses a symlink, a file owned by someone else, or a file (or parent directory) writable by others, and it uses a constant-time compare. A request with an Origin header is refused unless you passed --allow-origin. We found no Host-header check; browser rebinding is meant to be stopped by the Origin rule plus the token, not by Host validation. The project’s own security doc already states the residual risks plainly: the token is static and has no expiry; any process running as you can read the file; if the agent is not listening, another local process can bind the port and collect the next token; the connection is cleartext HTTP, which is fine on loopback and inside SSH, and not fine behind a TLS-less proxy; screen contents leave to wherever the remote agent runs.
install-agent is the one persistent path. It writes ~/Library/LaunchAgents/dev.mirroir.serve.plist and a ~/.mirroir-mcp/mirroir serve.app bundle that holds its own Accessibility and Screen Recording grants. Removing the agent does not revoke those grants. The bundle is signed with a login-keychain certificate so the grants survive upgrades; the security doc notes that any process running as you can use that certificate to sign other code under dev.mirroir.serve. brew uninstall does not remove the agent; uninstall-mirroir.sh does.
The agent can also drive a Mac window
list_targets / switch_target are in the readonly / mutating sets respectively, and the tools reference describes generic macOS windows — Telegram is the example — with a short list of iPhone-only tools that are refused rather than emulated. Once you have allowed switch_target and the usual input tools, the same Accessibility and Screen Recording grants can be aimed at a desktop app, a browser, or an emulator, not only at iPhone Mirroring. That is documented. It is easy to miss if you only read the homepage.
Pointing input is clipped to the target window’s bounds (InputSimulationWindowBounds). On the HID path, a click is refused when another Mac window covers the point (PointCoverage / InputSimulationCoverage). Taps and keystrokes can instead be posted as SkyLight event records addressed to the mirroring window, which the code and limitations doc describe as reaching that window even when another app is in front or the mirror is on another Space. Drags and two-finger gestures stay on the HID path and bring the mirror forward. We did not runtime-test this on a Mac.
What leaves the Mac, and what does not
The privacy policy (effective 6 November 2026) matches the code we could see. The publisher runs no server for the product and collects no analytics. Settings, permissions, a debug log, generated skills, and recordings stay under ~/.mirroir-mcp or the path the tool reports. The default network call is the cached npm version check (two-second timeout, updateCheck: false turns it off; mirroir doctor always asks fresh). Optional features can call a provider you configure (Anthropic, OpenAI, local Ollama, embacle) or download a YOLO model from yoloModelURL. Those stay off until you set them.
What the policy also says, and users should not skip: screenshots, screen text, and listen transcripts go to the MCP client, and then to that client’s model provider, under that provider’s terms. “The audio never leaves the Mac” means the .caf is transcribed on-device and deleted. The text leaves. On macOS 15 or 16, listen should refuse with a “needs macOS 26 or later” error rather than uploading audio; we did not run that path.
An optional embacle Rust FFI exists in the tree and is linked only when libembacle.a is present at build time. The official release binaries contain FFI symbol names; we did not establish that the Rust library itself is statically linked, and we did not treat optional, off-by-default provider code as malware.
When this is a poor fit
- You want an agent that cannot see the phone until you opt in. This server’s fail-closed default still exposes screenshot, describe, record, and listen.
- You need a technical control that prevents typing into iOS password, PIN, or OTP fields. The Mac-sheet guard and the operating manual will not do that. Keep
type_textout ofallow, or do not unlock those screens in front of the agent. - You thought
blockedAppswas a complete app firewall, including the Dock and App Library. - You want a pinned, auditable install but plan to follow the curl-pipe script, which tracks
main. - You need an Intel Mac binary from npm or GitHub releases. v0.50.3 does not ship one.
- You cannot accept Screen Recording and Accessibility being held by your editor, your terminal, or a LaunchAgent bundle that survives logout until you boot it out and revoke the grants.
Bottom line
mirroir-mcp is a legitimate, unusually complete MCP server for a real iPhone already signed into its apps. The fail-closed permission model in the pinned tree matches the docs: mutating tools are hidden until you allow them, serve will not take --yolo, and the default stdio path opens no port. No malware found in our static review of 0a90f07, the v0.50.3 source tag, the npm wrapper, and strings from the release binaries. The honest risk is permission scope, not a scare headline.
If you use it, prefer npm 0.50.3 or the Homebrew formula over the unpinned curl installer; start with a narrow allow list and do not paste --yolo into a daily config; treat blockedApps as a labelled-icon check, not a vault door; and assume that whatever the unlocked phone is showing or saying can reach your model, even before the first tap. The password sheet it refuses to press is the Mac’s, not the one inside the banking app.
Official sources: github.com/jfarcand/mirroir-mcp, mirroir.dev, docs, npmjs.com/package/mirroir-mcp, v0.50.3 release.
More skill reviews
- Claude Security 0.13.1 can run pull request code — pin the GitHub Action the official sample leaves on mainAnthropic’s official Claude Security plugin, pinned here at v0.13.1, can review GitHub pull requests as a GitHub Action. Official docs warn that pull request text can steer the scan and that the scan can run the pull request’s code. The Action’s own limits tell you to pin a full commit SHA because it runs with sudo, but the official sample workflow still floats main, and the docs page still advertises the 0.13.0 merge commit. A green required check is not a hard security gate.
- Jupyter MCP Server 2.2.6 has CVE-2026-137189's Host-header bypass patched, but official uvx and Docker examples still use @latest, the image still binds 0.0.0.0, and execute_code can run kernel code with no server-side confirmationA static review, on 1 December 2026, of datalayer/jupyter-mcp-server at 526e80eda814fd8d98ae45ddbfccc765fa7490c6 (git tag v2.2.6) and PyPI jupyter-mcp-server 2.2.6, which remains the latest release: CVE-2026-137189's Host-header bypass of the earlier localhost management-route check is patched in this pin (the fix shipped in 2.1.3 on 1 September 2026; the CVE record was published 30 November 2026). Official uvx and Docker quick-start examples still use @latest / :latest. The pip CLI now binds Streamable HTTP to 127.0.0.1, but the official Docker image still sets HOST=0.0.0.0. execute_code and execute_cell can run kernel code; we found no server-side confirmation gate. We did not run the server. This is not a clean bill of health.
- Official Grafana MCP Server 2.4.0 leaves --disable-write off, so a GRAFANA_SERVICE_ACCOUNT_TOKEN unlocks write tools such as update_dashboard, create_folder, install_plugin, and grafana_api_request; the official Docker entrypoint binds --transport sse --address 0.0.0.0:8000 with --server-auth-token empty; CVE-2026-15583's token exfil is fixed, but official uvx examples remain unpinned while PyPI still serves 2.2.0Static review of grafana/mcp-grafana v2.4.0 (commit 7f717bceff42080b3eeb026506672e8ba4fbdce7). The default --enabled-tools list includes the api and plugin categories and --disable-write defaults to false, so write tools such as grafana_api_request and install_plugin are registered unless you turn them off. The official Docker image listens on 0.0.0.0:8000 over SSE with no caller token unless you override the entrypoint. CVE-2026-15583's environment-token exfil is not present in this pin; official uvx examples are unpinned, and PyPI's mcp-grafana was still 2.2.0 when we checked.