The integration between large language models and physical device control just got significantly more accessible for Apple users. mirroir-mcp, a free MCP (Model Context Protocol) server, now enables Claude Code to visually perceive and interact with an iPhone through Appleβs native iPhone Mirroring feature on macOS. This tool effectively turns the Claude Code agent into a digital finger, capable of tapping, scrolling, and typing on the mirrored iOS interface, bridging the persistent gap between desktop-based AI coding assistants and mobile device testing.
Technical Prerequisites and Setup Friction
The solution is strictly bound to the Apple ecosystem, requiring a Mac running macOS 15 or newer and an iPhone on iOS 18 or higher, both signed into the same Apple account. It is not available on Windows or Linux, and notably, it does not function in European Union countries where Apple does not offer iPhone Mirroring. The setup process is designed to be low-friction, taking approximately five minutes. Users paste a specific prompt into Claude Code, which then executes npx -y mirroir-mcp commands to install the server and skill, followed by a diagnostic check via npx -y mirroir-mcp doctor.
Security Model and Permission Architecture
By default, mirroir-mcp operates in a read-only state, forcing users to explicitly grant write permissions. This is a critical safety feature for an AI agent controlling a device. Users must manually create a permissions.json file in the ~/.mirroir-mcp/ directory to enable actions like tap, swipe, and type_text. Furthermore, the tool includes a blockedApps list, allowing developers to hard-exclude sensitive applications like Wallet, PayPal, or Venmo from AI interaction. The system explicitly avoids entering passwords or confirming biometric authentication, keeping high-stakes security decisions in human hands.
Practical Use Cases and Limitations
The tool shines in UI testing and routine task automation. Developers can instruct Claude to navigate sign-up flows, identify UI oddities, or move calendar events. However, the agent requires explicit confirmation before executing destructive actions like sending messages or changing settings. The control can be instantly terminated by quitting the iPhone Mirroring app, unlocking the iPhone, or locking the Mac screen, providing a physical 'kill switch' for the AI agent. While not a replacement for full test automation frameworks, it offers a rapid, visual feedback loop for iOS development directly within the Claude Code environment.
Key Takeaways
- mirroir-mcp enables Claude Code to control iPhones via macOS iPhone Mirroring, requiring macOS 15+ and iOS 18+.
- The tool is free and open-source, installed via
npxor Homebrew, with a five-minute setup process. - Security is handled via a read-only default state and a
permissions.jsonfile that blocks specific apps and requires confirmation for actions. - It is incompatible with Windows, Linux, and EU-based Apple devices due to the absence of iPhone Mirroring.
- The agent cannot handle password entry or Face ID/Touch ID confirmation, limiting its use for sensitive financial transactions.
The Bottom Line
Mirroir-MCP is a brilliant, low-friction bridge for iOS developers who want to leverage Claude Code's visual reasoning without leaving their Mac. While it isn't a replacement for robust automation suites for critical financial tasks, its strict read-only defaults and physical kill switches make it a safe, powerful tool for UI testing and routine navigation.