A free guide by Pierre Sabbagh
Let Claude Code use your iPhone
Set up mirroir-mcp, a free open source tool that lets Claude Code see and use your iPhone through your Mac. You paste one prompt, allow taps and typing, block your banking apps, and give it a first task.
Needs a Mac on macOS 15 or later, an iPhone, and a paid Claude plan, or Codex. You won’t write any code.
It checks that your Mac can do this and writes what to paste. Press send when it opens.
Not now? Email it to me.
Written November 25 from version 0.51.0 of mirroir-mcp. The steps are below.
Let AI walk you through it
Pick the app you use. It reads this guide and works through it with you, one step at a time.
You’ll need a Mac on macOS 15 or later, an iPhone you can connect with iPhone Mirroring, Node.js, and a paid Claude plan for Claude Code, or a ChatGPT plan that includes Codex.
When your browser asks, allow it to open the app. The prompt will be typed in for you, so just press send.
Need the app first? Get the Claude app for Claude Code or the ChatGPT app for Codex.
Or follow the guide yourself
Here’s the tool and the prompt from my video. It takes three steps: paste one prompt so Claude Code installs it, choose what it’s allowed to do, then give it a first task. You won’t write any code.
The tool and the prompt
The tool is mirroir-mcp: its page on GitHub. It’s free and open source (Apache 2.0). It works with Claude, Codex, Cursor and other AI apps that support MCP.
The prompt. Paste this into Claude Code (or Codex, or Cursor) on your Mac:
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.
What it does
mirroir-mcp lets your AI app see your iPhone’s screen and use it: tap, swipe, type and open apps. It does this through iPhone Mirroring, the Apple feature that shows your iPhone in a window on your Mac. Your apps are already signed in on the phone, so nothing is handed over: no password and no connector. Nothing gets installed on the iPhone, and there’s no Developer Mode and no Xcode.
Examples from its own page: it builds and starts a Spotify playlist, turns a saved Instagram recipe reel into a grocery list in Reminders, reads your arrival time in Waze and posts it in Slack, and tests a login screen in Expo Go.
What you need
- A Mac on macOS 15 or later.
- An iPhone connected to it through iPhone Mirroring. The tool’s setup page lists Apple’s requirements: a Mac with Apple silicon, or an Intel Mac with a T2 chip, and an iPhone on iOS 18 or later signed in to the same Apple Account as the Mac. Bluetooth and Wi-Fi on, and the iPhone near the Mac.
- iPhone Mirroring has to be offered where you live. The tool’s setup page says Apple doesn’t offer it everywhere, and notably not in the European Union. Check Apple’s page before you start.
- Node.js, which the quickest install uses.
- Claude Code (a paid Claude plan), or Codex (a ChatGPT plan that includes it).
If you don’t have a Mac, or don’t have an iPhone, this isn’t for you.
Step 1: paste the prompt
Open Claude Code on your Mac and paste the prompt above. It follows the tool’s setup page: it checks your Mac, installs mirroir-mcp, runs a check called doctor, and reads back what your iPhone screen shows. You’ll be needed for three things: approving macOS permissions, connecting iPhone Mirroring, and answering at most two questions.
- macOS will ask for Screen Recording and Accessibility permissions. Grant both, to the app Claude Code runs in (your terminal or editor). After Screen Recording, quit and reopen that app.
- If it says iPhone Mirroring isn’t connected, do what the window says. Usually that means locking your iPhone, or clicking the button the window shows.
- Claude won’t type a password or code for you, and won’t tap anything on your phone during setup.
Prefer to do it yourself? Run this in your terminal, then run doctor, which names anything left to fix:
npx -y mirroir-mcp install
npx -y mirroir-mcp doctor
It’s also on Homebrew:
brew tap jfarcand/tap && brew install mirroir-mcp
Step 2: choose what it can do, and block your banking apps
Out of the box it can only look. Only 14 read-only tools are on, such as reading the screen and taking a screenshot. Tapping, swiping and typing stay hidden until you allow them.
Create a file called permissions.json in a folder named .mirroir-mcp in your home folder, with this in it:
{
"allow": ["tap", "swipe", "type_text", "press_key", "launch_app"],
"deny": [],
"blockedApps": ["Wallet", "PayPal", "Venmo"]
}
allowlists the actions Claude may use.blockedAppslists apps it refuses to open. Use each app’s name exactly as it appears under its icon on your iPhone, and add your banking apps here.
The tool reads this file when it starts, so reconnect mirroir in Claude Code (or restart it) afterwards.
Two limits to know about. The block works on an app’s name, so it doesn’t check icons that have no name under them: the Dock, folders, the App Library and the App Switcher. And it never presses a password or Touch ID sheet, but don’t count on that alone: keep your banking apps in blockedApps.
Step 3: give it a first task
With iPhone Mirroring open, ask for something small on your own phone. For example:
Open Waze on my iPhone, read my arrival time home, and tell me what it says.
Waze and Slack are what the tool’s own demo uses. Use apps you have. Asking it to post or send something needs taps and typing allowed in Step 2, so start with reading, then move on to doing.
If you need to stop it
Quit iPhone Mirroring, lock your Mac, or quit Claude Code, and it stops at once.
What it can turn into
What Claude does once on your phone can be saved as a skill. The tool can then replay it with no AI and no tokens, using mirroir test from the command line. Its page has the steps under “Skills and CI”.
Using Codex or Cursor instead
Codex works too. You can paste the same prompt, or register the tool yourself in your terminal:
codex mcp add mirroir -- npx -y mirroir-mcp
For Claude Code, the equivalent line is:
claude mcp add --transport stdio mirroir -- npx -y mirroir-mcp
Cursor and other apps are covered on the tool’s install page.
Removing it
If you installed with Homebrew, run this:
brew uninstall mirroir-mcp
For other ways, see the “Uninstall” section of the install page.
Written on 25 November 2026 from version 0.51.0 of mirroir-mcp. The tool changes fast: if a step has moved, check its page.
The prompt
This is what the buttons send. Copy it and paste it into the AI app you use.
Walk me through this guide, one step at a time: https://pierresabbagh.com/resources/use-claude-code-on-your-iphone Read the whole page first. If your web tool can't open it, try a command like curl. If you still can't open it, tell me so I can paste the text in, and don't guess the steps. Explain each step in plain words, ask before you install or change anything, and stop after each step so I can check it. The guide is written for Claude Code. If you are a different app, tell me how to do each step in your app, and say so if you're not sure it works there.
Send this guide to your inbox.
Next guide
Set up Claude in three steps
Turn on Claude’s memory, install my Humanize skill so its writing sounds less like AI, get a course plan from Anthropic’s free Claude Academy, and bring your memory over from ChatGPT. Every click path and link is below.
At work
Doing this at a company?
With a team, the hard part is the task itself, the people who do it and who checks the result.