iphone-cli (iph) — Claude Code MCP server: real iPhone control
iphone-cli (iph) is a Claude Code MCP server that lets AI agents inspect and interact with apps on a real iPhone over USB or Wi-Fi. It uses the accessibility tree instead of screenshots.
MIT ★ 145 updated 2026-11-16
Open on GitHubWhat iphone-cli (iph) does
The server exposes the screen hierarchy as structured JSON and translates clicks or text inputs through native developer protocols. An embedded QuickJS engine (iph script) executes multi-step UI flows in a single request. It bypasses Xcode, Appium, and WebDriverAgent entirely, requiring no companion app on the device.
A physical iPhone running iOS 27 or later is mandatory because touch input relies on com.apple.coredevice.displayservice. Simulators, Android devices, landscape mode, and Linux hosts are unsupported. The binary runs natively on macOS and 64-bit Windows 10/11.
Windows hosts need Apple developer connectivity via Apple.AppleMobileDeviceSupport. During initialization, iph setup verifies Developer Mode on the phone and fetches a Developer Disk Image if one is missing.
What it helps with
- real iPhone control
- read accessibility trees from native apps without taking screenshots
- drive real device UI actions without Xcode or WebDriverAgent runners
- execute multi-step automation flows through an embedded QuickJS engine
Example prompts for the agent
- Inspect the current Settings screen on the iPhone and tap General.
- Run an automation script using iph script to test the checkout flow.
- Verify the device connection status using iph doctor.
How to install iphone-cli (iph)
Install
The MCP registry has no launch command for it: see the repository README
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about iphone-cli (iph)
How to install iphone-cli (iph) in Claude Code?
Download the binary with curl -fsSL https://raw.githubusercontent.com/HyunSeob/iphone-cli/main/install.sh | sh or build it via cargo install iphone-cli. Run iph setup to pair the phone, then register iph mcp inside your Claude Code MCP configuration.
What does iphone-cli (iph) do?
It lets AI agents view UI hierarchies and send touch or keyboard commands to a physical iPhone without using Xcode or screen capture OCR.
What is required to run iphone-cli (iph)?
You need a physical iPhone with iOS 27+, paired over USB or Wi-Fi with Developer Mode enabled. Windows hosts require Apple.AppleMobileDeviceSupport.