New advertisers: 50% off your first month with code FIRSTMONTHSee slots
hyunseob avatar

iphone-cli (iph)

hyunseob/iphone-cli

Control a real iPhone on iOS 27+ through its accessibility tree, with no Xcode or WebDriverAgent.

GitHub stars
118
tools
21
transport
STDIO
last updated
Nov 20, 2026
View on GitHub

What it does

  • Reads screens with iph_read and iph_find, and taps, swipes, pinches, scrolls, and types with iph_tap, iph_swipe, iph_pinch, iph_scroll, and iph_type
  • Launches and lists apps with iph_launch and iph_apps, presses hardware buttons with iph_button, and sends keys with iph_key
  • Runs multi-step flows through iph_batch and iph_script, records the screen with iph_record, and captures logs with iph_syslog
  • Connects over USB or the same Wi-Fi, with setup checks in iph_doctor and the phone's Developer Mode required
  • Designed for testing and automating iPhone apps from an AI agent on macOS or Windows, outside simulators and Android

Tools

21 tools

Public tool metadata for what this MCP can expose to an agent.

iph_connectVerify and save the selected paired phone's IP.

Verify and save the selected paired phone's IP.

No parameter schema in public metadata yet.

iph_readElements on screen.

Elements on screen.

No parameter schema in public metadata yet.

iph_findElements matching a selector.

Elements matching a selector.

No parameter schema in public metadata yet.

iph_tapTap the middle of an element, or a point.

Tap the middle of an element, or a point.

No parameter schema in public metadata yet.

iph_swipeSwipe.

Swipe.

No parameter schema in public metadata yet.

iph_pinchTwo fingers, spreading or pinching them to zoom in or out.

Two fingers, spreading or pinching them to zoom in or out.

No parameter schema in public metadata yet.

iph_scrollOne step, or until an element shows.

One step, or until an element shows.

No parameter schema in public metadata yet.

iph_typePaste text into the field that has the keyboard (any language, emoji).

Paste text into the field that has the keyboard (any language, emoji).

No parameter schema in public metadata yet.

iph_keySend a key such as return, esc, tab or cmd+a.

Send a key such as return, esc, tab or cmd+a.

No parameter schema in public metadata yet.

iph_buttonPress hardware buttons.

Press hardware buttons.

No parameter schema in public metadata yet.

iph_launchLaunch an app, with optional arguments and environment variables.

Launch an app, with optional arguments and environment variables.

No parameter schema in public metadata yet.

iph_appsList apps.

List apps.

No parameter schema in public metadata yet.

iph_screenshotPNG capture.

PNG capture.

No parameter schema in public metadata yet.

iph_recordRecord the screen to an MP4 file while other commands run.

Record the screen to an MP4 file while other commands run.

No parameter schema in public metadata yet.

iph_batchA JSON array of steps in one call.

A JSON array of steps in one call.

No parameter schema in public metadata yet.

iph_scriptRun JavaScript as given.

Run JavaScript as given.

No parameter schema in public metadata yet.

iph_runRun a saved script.

Run a saved script.

No parameter schema in public metadata yet.

iph_scriptsList saved scripts.

List saved scripts.

No parameter schema in public metadata yet.

iph_doctorPreparation and checks.

Preparation and checks.

No parameter schema in public metadata yet.

iph_dndTurn Do Not Disturb on, put the earlier Focus back, or show the current state.

Turn Do Not Disturb on, put the earlier Focus back, or show the current state.

No parameter schema in public metadata yet.

iph_syslogCapture the phone's log in memory while other commands run.

Capture the phone's log in memory while other commands run.

No parameter schema in public metadata yet.

Readme

iphone-cli (iph)

Let AI agents read and operate any app on a real iPhone — straight from your terminal.

No Xcode. No WebDriverAgent. No app installed on the phone. 100% Rust.

  • Direct Apple developer services — connects over USB or Wi-Fi to the same accessibility and HID services Xcode uses, with no signing or test runner
  • Accessibility tree, not screenshots — reads structured UI elements cleanly, and runs multi-step flows in one call with a built-in QuickJS engine (iph script)
  • Agent-ready — CLI + MCP server (iph mcp) + safety-first outcomes (done / not_sent / unknown)
  • Single native binary (macOS & Windows) — no Python, Node.js, or Appium runtime; install one binary and target a real iPhone on iOS 27+

Website · llms.txt · crates.io · 한국어

iphone-cli demo


View the full README on GitHub

Details

Repository
github.com/hyunseob/iphone-cli
Website
hyunseob.github.io/iphone-cli
Categories
Mobile Apps, Testing & QA
Package
iphone-cli
Transport
STDIO
Registry
MCP registry, active

Similar to iphone-cli (iph)

More Mobile Apps