# mirroir-mcp [Health: Active]

**Category:** 🖥️ OS Automation  
**Repository:** https://github.com/jfarcand/mirroir-mcp  
**GitHub Stars:** 408  
**npm Downloads (last month):** 6194  
**Views:** 15  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mirroir-mcp

## Description
Control a real iPhone through macOS iPhone Mirroring: screenshot, tap, swipe, type.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mirroir-mcp": {
    "command": "npx",
    "args": ["-y","mirroir-mcp"]
  }
}
```

## Documentation

## What mirroir-mcp does

mirroir-mcp gives MCP-compatible AI agents control of an iPhone displayed through macOS iPhone Mirroring. Agents can inspect the visible screen, identify text and tap coordinates, then interact with the device using taps, swipes, text entry, and other gestures. This fits mobile app exploration, QA smoke tests, tutorial walkthroughs, and scripted demonstrations where the agent must work with a live device rather than an API.

The server also covers common iPhone and app lifecycle operations. It can navigate back, open the Home screen or App Switcher, invoke Spotlight, scroll until a target is visible, reset an app through the App Switcher, change network connectivity through Settings, and measure how long an action takes to reveal a target. Multiple window automation endpoints can be selected with target-management tools.

## How it works

Interactions follow an observation loop. `describe_screen` captures the current state and returns detected text with coordinates that can be used for taps. Apple Vision OCR is the default local recognition backend. An optional YOLO CoreML model placed in `~/.mirroir-mcp/models/` adds detection for non-text elements such as icons, toggles, and other controls. The model can be used automatically, alongside Vision, or as a selected backend.

The agent chooses the next action from the screen description, and tools such as `tap`, `type_text`, and `swipe` perform it through the mirrored iPhone. Additional gesture support includes held touches, pinch, rotation, and keyboard-assisted controls for applications that accept mouse and keyboard input.

An `APP.md` file can provide app structure, tabs, expected obstacles, permissions, and items to skip. That information is used as context during exploration and can guide generated skills. Skill workflows can be recorded, compiled for replay, and tested against the live screen.

## Setup and configuration

The supported host is macOS 15 or later with an iPhone connected through iPhone Mirroring. Install with the project installer, `npx -y mirroir-mcp install`, or Homebrew:

```bash
brew tap jfarcand/tap && brew install mirroir-mcp
```

The server can also be built from a cloned repository with `./mirroir.sh`. Standard MCP clients launch it over stdio with `npx -y mirroir-mcp`. Setup examples are provided for Claude Code, GitHub Copilot in VS Code, Cursor, and OpenAI Codex.

The first screenshot request triggers macOS prompts for Screen Recording and Accessibility access. Both permissions must be granted for screen capture and interaction.

## Tools and capabilities

- Inspect screens with OCR and optional CoreML icon detection.
- Tap controls, enter text, swipe, scroll, and perform system navigation.
- Hold, move, and release touch input for supported game interactions.
- Use pinch and rotation gestures in compatible interfaces.
- Switch between multiple automation targets.
- Reset apps, toggle network connectivity, and measure action timing.
- Record steps, save compiled replays, and calibrate component definitions.

## Limitations and notes

The connection depends on macOS iPhone Mirroring and cannot be used as a device-independent mobile automation API. macOS windows have experimental support. Mirroring exposes a single pointer touch to apps, so touch-only games cannot receive two independent fingers; twin-stick and twitch gameplay are outside the intended scope. Game-oriented use is better suited to smoke tests, tutorials, and scripted demos than real-time play.

Vision-based scene analysis can be substantially more expensive than text-only screen descriptions because screenshots are sent for visual interpretation. An optional capture region and scale setting can reduce image size when a screenshot is necessary. App-specific instructions in `APP.md` can improve exploration by describing expected structure and obstacles.

_Full upstream README: https://allmcps.com/mcp/mirroir-mcp/readme_

