mirroir-mcp
Let your agent use your real iPhone: errands across your apps, automations, even games.
Your phone. Your apps. Your agent. mirroir drives the iPhone in your pocket, and turns what your agent does once into skills and tests you keep.
Website · Demos · Set up with your agent · Tools · Changelog · Discord
"Be my DJ": the agent asks for a vibe, builds a Gui Boratto-style playlist in Spotify and starts it. A real iPhone, sped up.
mirroir-mcp drives your iPhone through macOS iPhone Mirroring, with the apps already signed in on it and nothing installed on the phone. It works with Claude, Codex, Cursor and other AI apps that support MCP, through 45 tools.
Quick start
You need macOS 15 or later and an iPhone connected through iPhone Mirroring. Paste this into your coding agent (Claude Code, Codex, Cursor, OpenClaw, …):
Set up mirroir-mcp so you can drive my iPhone: follow https://github.com/jfarcand/mirroir-mcp/blob/main/docs/onboarding.md step by step, and finish by reading back what my iPhone screen shows.
Or install it yourself:
npx -y mirroir-mcp install # or: brew tap jfarcand/tap && brew install mirroir-mcp
npx -y mirroir-mcp doctor # names anything left to fix
OpenClaw, Hermes Agent, Claude Desktop, Cursor, VS Code and the other clients: Install.
How it works
your agent ──MCP──▶ mirroir ──iPhone Mirroring──▶ your iPhone
│
explore ──▶ SKILL.md ──▶ compile ──▶ replay, no LLM ──▶ CI: pass · fail · DRIFT
Your agent drives the phone through mirroir's tools. What it learns stays: an exploration becomes a skill, a skill compiles to a replay that needs no model, and the replay runs in CI on a Mac with the phone connected.
How it reads the screen
describe_screen is the agent's eyes, and it has two modes. One setting, screenDescriberMode in settings.json, picks between them.
| Local OCR (default) | AI vision | |
|---|---|---|
| What it reads | Text, with exact tap points (Apple Vision OCR); icons by pixel clustering, or an on-device YOLO model you install | Text and icons by name ("Wi-Fi", "Spotify"), including faint labels and on/off states OCR can miss |
| Where it runs | On your Mac, free | Through your agent (embacle by default), about 25k tokens and a few seconds per read |
| Tap points | Exact | Approximate, so check before tapping near the bottom of the screen |
| Setting | "screenDescriberMode": "ocr" |
"screenDescriberMode": "vision" |
Start with OCR. Switch to vision when the screen is mostly icons, or its text is too faint for OCR.
The framework
Tools. 45 MCP tools: tap, type, swipe, read the screen, listen, launch, and
run_stepsto repeat a sequence in one call.Skills.
generate_skillexplores an app and writes SKILL.md files your agent follows.Compiled replay.
mirroir testreplays a compiled skill from the CLI with no AI in the loop: deterministic, no tokens.App knowledge. APP.md files and screen recipes describe an app's screens once, for every agent.
mirroir-run. One YAML scenario drives the iPhone, a browser, HTTP and subprocesses, with a third verdict beside pass and fail:
DRIFT(exit 65), when the output moved past its baseline.Notes and sharing.
save_notekeeps one lesson per app for the next session;mirroir-mcp serveshares the phone with agents on other computers over MCP Streamable HTTP, through SSH or Tailscale.Live viewer. The phone for clients that can't connect over MCP, from anywhere over SSH or Tailscale. mirroir speaks the standard VNC protocol (RFB 3.3 to 3.8), so a VNC client, such as a GitHub Actions job through a tunnel, can see and drive the phone (tested with macOS Screen Sharing). A browser page streams it too, so a browser agent such as Claude in Chrome can work from the picture. Input from either becomes the same tool calls as an agent's, under the same permissions, and you can watch any run live.
More demos
|
A recipe reel becomes a grocery list. |
Chess against Chess.com's strongest bot. |
|
Reads the ETA in Waze, posts it in Slack. |
Tests a login screen in Expo Go. |
Real iPhones, sped up. Play them one at a time in the demo carousel; more on games and listening.
Why mirroir
- Nothing to install on the phone. The iPhone stays stock: no signing, no provisioning profile, no on-device agent.
- Your Mac stays yours. Through macOS 27.2, taps, typing and scrolls reach the mirror without bringing it to the front, so you can keep working. Opening an app, Home, the App Switcher, Spotlight and drags do bring it forward, and on later macOS every action does.
- It hears the phone, too.
listenturns what the phone plays, a reel's narration or a voice message, into text. macOS transcribes it on the Mac: the audio never leaves it. Needs macOS 26.
Safety
- Read-only by default. Only the 14 read-only tools are exposed until you allow more in
permissions.json;blockedAppsrefuses to open the apps you list, such as Wallet, or tap their icons. - Passwords stay yours. mirroir never answers the Mac's password or Touch ID prompt, and tells agents never to type a password on the phone.
- No telemetry. The only default network call is a daily version check (
updateCheck: falseturns it off). - Kill switch. Quit iPhone Mirroring, lock the Mac, or run
mirroir pause: no further input reaches the phone.
See Security and SECURITY.md.
Documentation
| Install | Every install path and per-client setup |
| Tools | What each tool does, with its parameters |
| Skills and CI | Skills, generate_skill, mirroir test |
| Games | Playing games, frame by frame |
| Security and permissions | What mirroir can do, and how to limit it |
| Troubleshooting | Debug mode and common issues |
Everything else: docs/.
Community
Join the Discord server to ask questions and share skills. Pull requests are welcome: see CONTRIBUTING.md. Report a vulnerability privately: see SECURITY.md.
License
Apache 2.0 - Copyright 2026 Async-IO.
Why "mirroir"?, It's the old French spelling of miroir (mirror). A nod to the author's roots, not a typo.