iphone-cli (iph): Rust CLI and MCP for AI agents to control a real iPhone
The author released iphone-cli (iph), a CLI and MCP written in Rust that lets AI agents operate a real iPhone. The goal is to automate tasks that still work only in apps, such as pulling spending history into Toss or posting a listing on Karrot.[1] The author compares it with three existing approaches: WebDriverAgent-based tools need Xcode and an app re-signed every week, Poki avoids installing an app but requires many dependencies, and iPhone Mirroring with OCR works only on a Mac, locks the phone, and is slow. The code was written from scratch as a single Rust binary, and it uses idevice for device communication.
Instead of taking screenshots, iph reads the [accessibility tree](https://example.invalid) through Apple developer services, so it receives text data directly. Touch and keyboard input are sent through screen sharing and HID services in iOS 27. The tool runs as one binary without Python, Node or Xcode, and it downloads a developer disk image if the phone lacks one. After one USB connection to enable trust and developer mode, it works wirelessly on the same Wi-Fi network. Taps, swipes, pinch, text input, MP4 screen recording and syslog capture are supported, and frequently used flows can be saved as JavaScript and run with iph run.
The current limits are that it works only on real iPhones running iOS 27 or later, because the displayservice used for touch input starts in iOS 27. It does not support simulators, Android or landscape mode. The author tested it on an iPhone 15 Pro Max with iOS 27.0.1 on a Mac, and on iPhone19,4 with iOS 27.2 and iPhone14,2 with iOS 27.2.1 on Windows. Users with failing setups are asked to send the diagnostic file from iph diagnose to GitHub issues.
Repository iphone-cli github.com
Rust CLI and MCP server that lets AI agents read and operate apps on a real iPhone via the accessibility tree, without Xcode.
Read the original news.hada.io
Sources
-
KRGeekNews KO
Show GN: iphone-cli (iph) - AI 에이전트가 실제 아이폰을 조작하는 Rust CLI & MCP
Terms
- WebDriverAgent — A test automation tool for iOS devices that runs as an app installed on the phone and needs to be signed with Xcode.
- accessibility tree — A structured description of the elements on a screen, with their text and roles, that accessibility services use.
- QuickJS — A small JavaScript engine that can be embedded in another program to run scripts.


