mirroir-mcp

An MCP server that lets your AI agent see and control a real iPhone through macOS iPhone Mirroring. It can take screenshots, read the screen, tap, swipe and type, from any MCP client.

View on GitHub ↗
Stars
★ 466
Last commit
4 Dec 2026
Maintenance
Active
Licence
Apache-2.0
Category
MCP Servers
GitHub
jfarcand/mirroir-mcp

Overview

mirroir-mcp gives an AI agent a real iPhone to work with. It connects through iPhone Mirroring on your Mac, so the agent can see what's on screen and act on it. There's also experimental support for controlling macOS windows.

Every interaction follows the same loop: observe, reason, act. describe_screen gives the agent every text element on screen with tap coordinates. The agent decides what to do, and tools like tap, type_text and swipe carry it out. The README lists 38 tools in total.

When you repeat the same workflow, you can save it as a skill: a SKILL.md file of numbered steps the agent follows. You can then replay skills from the command line with no AI in the loop, which is useful for testing. The project is aimed at real-device testing, including game QA smoke tests, tutorial walkthroughs and scripted demos.

mirroir-mcp is released under the Apache-2.0 licence.

Features

  • 38 tools that work with any MCP client, including higher-level ones such as press_back, press_home, scroll_to, reset_app, set_network and measure.
  • Screen reading with Apple's Vision framework by default, which runs locally and needs no API keys. You can add a YOLO Core ML model for icon detection, or an optional AI vision mode through embacle.
  • An APP.md file where you describe your app's structure, tabs, obstacles such as permission prompts, and screens to skip.
  • generate_skill, which explores an app on its own or step by step and writes SKILL.md files.
  • mirroir test runs skills from the command line, with JUnit output, failure screenshots and a dry-run mode. Compiled skills replay without OCR, so they run faster.
  • mirroir-run, a separate runner that replays scenarios across web, process, HTTP and iOS surfaces.
  • Fail-closed security. Without a config file, only the 12 read-only tools are available. blockedApps in permissions.json stops the agent using apps such as Wallet or banking apps. It runs as a normal user process with no root, and closing iPhone Mirroring stops all input straight away.
  • Game controls such as touch and hold, held keys, pinch and rotate. iPhone Mirroring only gives apps a single pointer, so games that need two fingers at once are out of reach.
  • mirroir doctor checks your setup, and mirroir configure sets up non-US keyboard layouts.

Requirements

  • macOS 15 or later.
  • An iPhone connected through iPhone Mirroring.
  • Screen Recording and Accessibility permissions, which macOS asks for the first time you take a screenshot.
  • An MCP client, such as Claude Code, Cursor, GitHub Copilot in VS Code or OpenAI Codex.

Install

  1. Pick one:

  2. /bin/bash -c "$(curl -fsSL https://mirroir.dev/get-mirroir.sh)"
  3. npx -y mirroir-mcp install
  4. brew tap jfarcand/tap && brew install mirroir-mcp
  5. Then add it to your client.

  6. Claude Code. Run claude mcp add --transport stdio mirroir -- npx -y mirroir-mcp.

  7. OpenAI Codex. Run codex mcp add mirroir -- npx -y mirroir-mcp.

  8. Cursor. Add a server called mirroir to .cursor/mcp.json in your project root, with the command npx and the arguments -y and mirroir-mcp.

  9. GitHub Copilot in VS Code. Search @mcp mirroir in the Extensions view, or add the same server to .vscode/mcp.json.

  10. To let the agent tap, swipe and type, list those tools under allow in ~/.mirroir-mcp/permissions.json. Run mirroir doctor to check everything is working.

Example

Ask your agent:

"Explore the Settings app and generate a skill that checks the iOS version."

Or test your own app: "Open my Expo Go app, tap "LoginDemo", test the login screen with test@example.com / password123. Screenshot after each step."

Works with

Claude CodeCursorCodexVS CodeAny MCP client

Listed in

Read the code before you install anything. SwiftAgents doesn't review or endorse the tools listed here. Active: a commit in the last 90 days. Slowing: last commit within the past year. Stale: older than a year, or archived.

Report a correction

More in this category