Let Claude Code drive your iPhone with mirroir-mcp
Setup takes five minutes of checks, one pasted prompt, and three permissions in macOS settings. After that Claude Code sees your iPhone screen, taps, scrolls and types for you. The tool is mirroir-mcp, a free MCP server that works through Apple's iPhone Mirroring on a Mac.
By default it can only read the screen. Everything else you switch on yourself.
What you build
A Mac running Claude Code that controls your iPhone through the iPhone Mirroring window. Claude sees the phone screen in that window and acts like a person with a finger.
It does not enter passwords and does not confirm Face ID or Touch ID. Wallet and banking apps can be blocked with a list.
What you need
- A Mac with macOS 15 or newer.
- An iPhone with iOS 18 or newer, signed in to the same Apple account.
- Claude Code on the same Mac.
- Node.js (the install runs through
npx).
It does not work on Windows or Linux. In European Union countries Apple does not offer iPhone Mirroring, so it will not work there either.
Five-minute pre-check
- Apple menu, About This Mac: macOS 15+.
- iPhone on iOS 18+, same Apple account as the Mac.
- Bluetooth and Wi-Fi on for both, iPhone next to the Mac.
- The iPhone Mirroring app exists on the Mac (search "iPhone" in Spotlight).
- Node.js installed. If not, Claude will tell you.
Step 1: let Claude install it
Paste this into Claude Code on the Mac, unchanged:
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. Claude checks the macOS version, iPhone Mirroring and Node.js. If the Mac is too old it stops there. Then it runs two commands: the first connects the server, the second installs the skill.
claude mcp add --transport stdio mirroir -- npx -y mirroir-mcp npx -y mirroir-mcp skill --install Step 2: run the check and grant three permissions
Claude runs:
npx -y mirroir-mcp doctor It will likely ask you for three things:
- Connect iPhone Mirroring. Open the app. If the phone will not connect, lock the iPhone or click the button in the app window.
- Screen Recording. System Settings, Privacy & Security, Screen Recording. Turn it on for the app Claude Code runs in (Terminal or your editor), then quit that app completely and reopen it.
- Accessibility. Same place, same app.
Tell Claude "done" and it repeats the check. If it asks you to restart Claude Code so the new tool shows up, do that and ask it to continue.
Step 3: first screen reading
Claude calls the describe_screen tool and tells you which app is open. At this point it can only look, not touch. If the check passed but it sees nothing, fully quit Terminal or the editor and reopen it. The two permissions only apply after a restart.
Step 4: allow tapping and typing
Create ~/.mirroir-mcp/permissions.json:
{ "allow": ["tap", "swipe", "type_text", "press_key", "launch_app"], "blockedApps": ["Wallet", "PayPal", "Venmo"] } allow is the list of actions Claude may take. Delete anything you do not want. blockedApps lists apps it must never touch, so add your own banking apps. You can ask Claude to write the file, but read the block list yourself.
Step 5: give it a task
Watch the iPhone Mirroring window while it works:
Open Calendar and create a new event called "Dentist" next Tuesday at 2pm. Before it sends, buys, deletes or changes a setting, Claude asks for confirmation. No "yes", no action.
Other first tasks:
- "Find my conversation with [name] in Messages and write that I'm running 10 minutes late."
- "Open Calendar and move the call with [name] from Thursday to Friday at the same time."
- "Open Notes, find the note 'Post ideas' and read me the last five items."
- "Open my app [name], go through the sign-up screen and tell me what you see at each step and where anything looks odd."
That last one is useful if you build iOS apps: Claude clicks through the real UI and reports what it sees.
Manual install
If you skip the prompt, two commands:
npx -y mirroir-mcp install npx -y mirroir-mcp doctor Or through Homebrew:
brew tap jfarcand/tap && brew install mirroir-mcp You still turn on the permissions from step 2 by hand.
Where it breaks
- Something is unresponsive. Run
npx -y mirroir-mcp doctoragain. It reports what is missing. - Check passes, no screen. Restart Terminal or the editor completely.
- iPhone will not connect to Mirroring. Lock the iPhone or click the button in the app window. Re-check Bluetooth, Wi-Fi and that both devices share the Apple account.
- Anything else. The project has a troubleshooting guide: https://github.com/jfarcand/mirroir-mcp/blob/main/docs/troubleshooting.md
How to stop it instantly
Any one of these ends control at once:
- quit the iPhone Mirroring app on the Mac;
- unlock the iPhone;
- lock the Mac screen.
Payments, passwords and Face ID stay with you. Treat it as a tool for routine, not for banking.
The full walkthrough is on our blog: Claude Code on iPhone with mirroir-mcp.
Your turn
Do the pre-check and paste the Step 1 prompt now. Stop after Step 3, with the read-only setup, and ask Claude to describe your home screen. Only after that, write the permissions file with one task in mind, such as moving a calendar event, and keep blockedApps filled before you allow a single tap.
This article was written with the help of AI and fact-checked by the AI SKILLS team.
原文:https://www.a8q9.cn/en/article/let-claude-code-drive-your-iphone-with-mirroir-mcp-caef5e.html