MCP Servers · Community project

iphone-use

iphone-use runs a local Mac service that lets AI agents inspect and operate a real iPhone through MCP, CLI, and HTTP API. It requires Xcode, Developer Mode, and a connected device.

118 StarsMITRustUpdated 1 months ago
01

Project overview

iphone-use connects real iPhone screen inspection and touch actions to AI agents. A local daemon runs on the Mac and a custom XCTest runner runs on the phone. An MCP client can read elements, tap, swipe, and type, while a browser interface lets a person take over. The current README says control no longer depends on iPhone Mirroring.

02

Core capabilities

01

Inspect and operate the screen

Read screen elements as text, tap, swipe, and type, with feedback about whether an action landed.

02

MCP integration

The installer can register Claude Code; other clients can point to the local iphone-use-mcp executable.

03

Replayable flows

Save reviewed actions as flows and replay them without planning the task again with a model.

03

Setup and connection

Connect and unlock your iPhone on a compatible Mac, run the repository installer, check the device with status and doctor, then verify the MCP tools in your client.

AI AGENT INSTALL

Let an AI Agent install it

Send this prompt to Codex, Claude Code, or another AI agent that can work with your local environment.

Help me install iphone-use on my Mac from https://github.com/leeguooooo/iphone-use . Read README.md, install.sh, and docs/guide.md first. Check macOS, Xcode, Apple ID, iPhone Developer Mode, and USB requirements. Explain what the installer will do and ask me before running it. Then run iphone-use status and iphone-use doctor; only with my approval, run iphone-use try on my phone. Confirm whether my MCP client lists the tools and report the observed result. Ask before requesting credentials, granting additional permissions, overwriting existing configuration, or interacting with private messages, payments, or verification codes.
01Before you start
  • macOS 15+, Xcode, and an Apple ID signed in to Xcode (a free account works)
  • Developer Mode enabled on the iPhone in Settings → Privacy & Security
  • iPhone connected over USB and unlocked
  • Run the installer as the logged-in Mac desktop user, not root or a bare SSH session
02Copy the install command or configuration
curl -fsSL https://raw.githubusercontent.com/leeguooooo/iphone-use/main/install.sh | sh
03Complete the setup steps
  1. 1
    Prepare and connect the iPhone

    Install Xcode on the Mac and sign in with an Apple ID. Enable Developer Mode on the iPhone, connect it over USB, unlock it, and stay in the logged-in Mac desktop session.

  2. 2
    Run the official installer

    In a Mac terminal, run `curl -fsSL https://raw.githubusercontent.com/leeguooooo/iphone-use/main/install.sh | sh`. The installer deploys the app and device service and registers MCP when Claude Code is present.

  3. 3
    Check the device and a minimal action

    Run `iphone-use status` and `iphone-use doctor`. With your consent, run `iphone-use try` and confirm that the phone opens Settings, reads the page, and returns Home.

  4. 4
    Connect another MCP client

    If not using Claude Code's automatic registration, configure your MCP client to launch `/Users/YOU/Applications/iPhoneUse.app/Contents/MacOS/iphone-use-mcp`, replacing YOU with your Mac username. Restart the client and inspect its tool list.

How to verify the setup

Run `iphone-use status` and confirm the phone is ready. With your approval, run `iphone-use try`: it should open Settings, read the screen, and return Home. Your MCP client should list iphone-use tools.

Before using it
  • The install command downloads and runs a GitHub script; review its source first if needed.
  • The current README requires macOS 15+ although the installer header says macOS 14+; use the stricter README prerequisite.
  • Device runner ports 8100 and 9100 are unauthenticated. Keep the phone on a trusted network and never expose those ports to the public internet.
04

Use cases

SCENARIO 01

Real-device app control

Have an agent read elements and perform reviewable taps, swipes, and typing in apps on your own iPhone.

SCENARIO 02

Repeatable task replay

Save a reviewed phone workflow as a flow for later replay or testing.

05

Assessment

Based on the README, installer, and security guide, iphone-use offers a concrete way to connect real device actions to MCP and receive explicit action feedback. Setup requires Apple's development environment and a real phone. This site reviewed public documentation but has not installed or functionally tested it.

Why it may be useful

  • MCP, CLI, HTTP API, and browser entry points
  • Documented installation, diagnostics, and trial commands
  • Reports applied, not-sent, and unknown action outcomes

What to know first

  • Requires a Mac, Xcode, and a real iPhone with Developer Mode
  • Unauthenticated device runner ports need network care
  • Some repository diagrams still refer to older Mirroring or WebDriverAgent behavior
06

README

iphone-use


Overview

iphone-use runs a local Mac service that lets AI agents inspect and operate a real iPhone through MCP, CLI, and HTTP API. It requires Xcode, Developer Mode, and a connected device. Open-source real iPhone control for AI agents: screen text, tap/type/swipe, custom XCTest runner, CLI + HTTP API + MCP, browser takeover and replayable flows. Rust, self-hosted on macOS.

Getting started

  • Connect and unlock your iPhone on a compatible Mac, run the repository installer, check the device with status and doctor, then verify the MCP tools in your client.
  • A Mac daemon and iPhone XCTest runner provide device control; current control does not rely on iPhone Mirroring.
  • The README provides an installer, status and diagnostic commands, a trial run, and MCP client setup.
  • Run `iphone-use status` and confirm the phone is ready. With your approval, run `iphone-use try`: it should open Settings, read the screen, and return Home. Your MCP client should list iphone-use tools.

Configuration

curl -fsSL https://raw.githubusercontent.com/leeguooooo/iphone-use/main/install.sh | sh
Read the complete README on GitHub →