---
title: "Let Claude Code use your iPhone"
description: "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."
url: https://pierresabbagh.com/resources/use-claude-code-on-your-iphone
published: 2026-11-27
author: "Pierre Sabbagh"
---

# Let Claude Code use your iPhone

## Start with this prompt

Paste it into Claude.

```text
At my Mac later, I'll set up mirroir-mcp so Claude Code can use my iPhone. Get me ready now. Ask me which Mac and which macOS version I have, which iPhone and iOS version, and which country I'm in, then tell me if iPhone Mirroring is likely to work for me and what to check on Apple's page. Then ask which apps I never want Claude to open, such as my banking apps, and write that list as it appears under each icon on my iPhone. Never make up a name, a setting or a link. No setup steps. End with: Set it up at your computer: https://pierresabbagh.com/resources/use-claude-code-on-your-iphone
```

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](https://github.com/jfarcand/mirroir-mcp). 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:

```text
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](https://support.apple.com/en-us/120421) 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:

```bash
npx -y mirroir-mcp install
npx -y mirroir-mcp doctor
```

It's also on Homebrew:

```bash
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:

```json
{
  "allow": ["tap", "swipe", "type_text", "press_key", "launch_app"],
  "deny": [],
  "blockedApps": ["Wallet", "PayPal", "Venmo"]
}
```

- **`allow`** lists the actions Claude may use.
- **`blockedApps`** lists 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:

```text
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:

```bash
codex mcp add mirroir -- npx -y mirroir-mcp
```

For Claude Code, the equivalent line is:

```bash
claude mcp add --transport stdio mirroir -- npx -y mirroir-mcp
```

Cursor and other apps are covered on the tool's [install page](https://github.com/jfarcand/mirroir-mcp/blob/main/docs/install.md).

## Removing it

If you installed with Homebrew, run this:

```bash
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.*
