# mirroir-mcp

mirroir-mcp — an MCP server that lets an AI agent drive a real iPhone through macOS iPhone Mirroring: read the screen, tap, swipe, type. Useful for testing mobile apps.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 400 repo stars
- Author: jfarcand
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/jfarcand/mirroir-mcp
- Updated: 2026-10-23
- Security check: automated, 2026-11-16 (text) — warning: a command downloads a script from mirroir.dev and runs it right away. Do not run such commands without an explicit yes from the human.
- HTML: https://affpapa.org/en/nevibecode/mcp/mirroir-mcp

## What it does

mirroir-mcp connects an agent to a real iPhone through macOS iPhone Mirroring. Each step runs as a loop. `describe_screen` returns the text on screen with tap coordinates, the model picks the next move, and `tap`, `type_text` or `swipe` carries it out. Then the agent looks again.

The server ships 38 tools. Besides the core ones there are `press_back`, `press_home`, `spotlight`, `scroll_to` (scrolls until a given text appears), `reset_app` (closes an app completely via the app switcher) and `set_network`. You can also write an `APP.md` file describing your app. The server reads it before exploring and uses it to set the screen type, auto-dismiss known popups and skip elements you list.

You need macOS 15+ and an iPhone connected through iPhone Mirroring. The first screenshot triggers macOS prompts for `Screen Recording` and `Accessibility`, and you grant both. Real-time games are out: iPhone Mirroring exposes a single pointer, so twin-stick controls will not work. Menus, shops and win screens can be driven like any other app UI.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add mirroir-mcp -- npx -y mirroir-mcp
```

### Codex

**Platform CLI**
```bash
codex mcp add mirroir-mcp -- npx -y mirroir-mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mirroir-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "mirroir-mcp"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mirroir-mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "mirroir-mcp"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add mirroir-mcp npx -y mirroir-mcp
```

## When to use it
- run a login flow in an iOS app on a real iPhone and capture a screenshot after each step
- ask an agent to send a message in Messages or add a Calendar event
- walk through a game's menu and shop screens as a smoke test
- scroll a long screen until a given text shows up
- record completed steps for later replay

## Example prompts
- Using mirroir, open Expo Go on my iPhone, go into LoginDemo and try the login screen with a wrong password. Screenshot every step.
- Call `describe_screen` and tell me what is on the iPhone right now.
- Scroll Settings on the iPhone until General is visible, then open it.

## Similar
- [argent-screenshot-diff](https://affpapa.org/en/nevibecode/skills/argent-screenshot-diff.md) — skill · 31100 installs
- [terminal-phone](https://affpapa.org/en/nevibecode/skills/terminal-phone.md) — skill · ★ 366 repo stars
- [argent-ios-device-setup](https://affpapa.org/en/nevibecode/skills/argent-ios-device-setup.md) — skill · 17100 installs
- [ios-device-automation](https://affpapa.org/en/nevibecode/skills/ios-device-automation.md) — skill · 3500 installs
- [ios-mcp-jailbreak-automation](https://affpapa.org/en/nevibecode/skills/ios-mcp-jailbreak-automation.md) — skill · 121 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
