iphone-use
This MCP server lets an AI agent observe, control, debug, and automate a real iPhone through the iphone-use daemon.
Check phone/daemon status, capabilities, ownership, and available instances; find apps by name or bundle ID.
Read the screen as an accessibility tree, screenshots, a live panel, subtrees, and full field values, with OCR fallback.
Tap by coordinates, element, or exact label; type Unicode text; send keys/shortcuts; scroll, swipe, drag, pinch, use pickers, handle alerts, launch apps, open URLs, and go Back/Home/Spotlight.
Run multiple steps in one call, wait for UI conditions, collect scrolling lists, and scroll until a label is found, with delivery/verification receipts.
Create, inspect, run, verify, publish, and report deterministic per-app flows; replay tasks without a model.
Read app notes, logs, crash reports, home-screen layout, and task metrics/traces; record the screen to MP4.
Install .ipa/.app builds, simulate GPS location, save screenshots, press volume keys, and manage holds/owner leases.
Perform password-vault-based app logins without exposing credentials, and hand a whole goal to the on-phone Jev agent.
Use per-call instance routing and safety/privacy controls such as blocked apps, action limits, and private screen holds.
Enables AI agents to control a real iPhone running iOS 15 or later, reading the screen as an accessibility tree and performing taps, typing, and swipes across any app, including those without an API.
Allows agents to interact with WeChat on a real iPhone, such as finding and reading messages, by driving the WeChat UI through screen reading and touch automation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@iphone-use Open Health and tell me how many steps I walked today."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
curl -fsSL https://raw.githubusercontent.com/leeguooooo/iphone-use/main/install.sh | shhttps://github.com/user-attachments/assets/ee298774-bf3e-4fd0-9a08-481b20904f61
1-minute demo, real iPhone recordings · 中文版
Advertisement · Available
Advertise here
Showcase your product here and support ongoing maintenance.
Ask about advertising · leeguoooo@gmail.com
Paid setup and project sponsorship
Need help setting up a real iPhone, connecting your agent or creating an iOS app test flow? Email us with your environment, the workflow and expected result, and where you are stuck. We review feasibility and agree on scope, acceptance criteria and a quote before work starts.
Ask about paid setup · Discuss sponsorship · leeguoooo@gmail.com
Want to support ongoing maintenance? Email us to discuss a one-time or recurring contribution.
Community bug reports and feature requests remain welcome on GitHub. Please keep credentials and private account data out of inquiries.
MCP calls can choose an installed local instance with instance:"i13" (including
phone_status and input tools); phone_instances lists them without reconnecting.
Omit it to keep the configured daemon. Missing instances fail without selecting a
different phone. See per-call instance routing.
Related MCP server: ios-mcp
Why iphone-use
Any app, no API needed. It works on Health, banking and payment apps (even the ones that black out screen capture), chat apps and your own app under test.
USB or Wi-Fi. Set the phone up once with a cable; after that it can be driven over Wi-Fi through an encrypted tunnel.
Old iPhones too. iOS 15 and later, without updating the phone.
Fast. Its own XCTest device runner reads the screen in about 0.1 s. A tap that returns the settled screen takes about 1.9 s (numbers).
Honest results. Every action reports whether it was applied, not sent, or unknown, and whether a retry is safe. Taps on covered elements are refused, not passed off as done.
Replayable flows. A task done once becomes a flow that replays in one call, with no model and no tokens.
Remote control for people, too. Drive the phone yourself from a browser or another iPhone, on the LAN or from anywhere: a live H.264 screen, mouse and keyboard, and pairing by QR code. Agents and people share one phone without stepping on each other (details).
Watch the agent live. The phone's screen shows in the agent host's side panel (where MCP Apps is supported), in a browser, or in the iOS app.
Nothing on the Mac moves. It never touches the Mac's screen, cursor or focus.
What you can ask
Open Health and tell me how many steps I walked each day this week.
Find the newest message from Mom in WeChat and read it to me.
Collect every transaction on this bank statement page, all the way to the end.
Write this 2,000-word draft into a new note in Notes.
Run my app's login test on the real phone and tell me which step fails.The agent finds an app by its name (launch_app {"app": "Health"}) and types long text (up to 20,000 characters) in one step. It can read a list across pages and say whether it reached the end.
How it works
Claude Code / Codex / any MCP client ──MCP──┐
scripts and other agents ─────────────HTTP──┤
▼
iphone-use daemon on your Mac ──USB or Wi-Fi──▶ XCTest runner on the iPhone
▲
you, in a browser or the iOS app ───────────┘One daemon per phone runs on the Mac. It reads the screen as an accessibility tree (text, not pixels), sends taps and typing through a small XCTest runner it installs on the phone, and checks that the screen has settled before it answers. Agents and people go through the same daemon, and one of them holds the phone at a time.
Install
You need
A Mac with macOS 15 or later, and Xcode signed in to an Apple ID (a free one works).
An iPhone with iOS 15 or later and Developer Mode on (Settings → Privacy & Security → Developer Mode).
A USB cable for the first setup. Plug the iPhone in and unlock it before you install.
The installer then sets the phone up and shows an agent opening Settings and reading it. It registers the MCP server with Claude Code and Codex, and with Cursor and Claude Desktop when they are installed (IPHONE_USE_NO_CLIENT_SETUP=1 skips those two), and opens the control page in your browser with a one-time sign-in, so there is no password to copy. If anything is missing, it says what and how to fix it.
iphone-use status # is the phone ready for agents?
iphone-use doctor # what is missing, and how to fix it
iphone-use setup # set the phone up again (after a new iPhone or Xcode)
iphone-use try # a harmless check: open Settings, read the screen, go Home
iphone-use login # sign a browser in again, with a QR code for the iPhone
iphone-use upgrade # update everything
~/.iphone-use/uninstall.sh --dry-run # what uninstalling would remove (drop --dry-run to do it)Or ask your agent to install it
Paste this into Codex or Claude Code on the Mac the iPhone is plugged into:
Install iphone-use (https://github.com/leeguooooo/iphone-use) on this Mac so you can drive my iPhone.
1. Run: curl -fsSL https://raw.githubusercontent.com/leeguooooo/iphone-use/main/install.sh | sh
2. Run `iphone-use doctor`. Fix what it reports that can be fixed from the terminal, and run
`iphone-use setup` when it tells you to.
3. Some steps only I can do: signing in to an Apple ID in Xcode, tapping Trust on the iPhone,
turning on Developer Mode, unlocking the phone. For those, stop, tell me exactly what to do,
and wait until I say it is done. Never ask me for a password or a code.
4. Run `iphone-use doctor` again until nothing is missing, then `iphone-use try`.
5. If the phone_* tools are not loaded in this chat yet, tell me to start a new chat.Codex and Claude Code plugins
Each adds the skill and the MCP server; they still need the install above:
codex plugin marketplace add leeguooooo/iphone-use && codex plugin add iphone-use@iphone-useIn Claude Code:
/plugin marketplace add leeguooooo/iphone-use
/plugin install iphone-use@iphone-useRemote control for people
The same daemon that serves agents lets you drive the phone yourself:
From a browser. The live screen arrives as H.264 encoded on the phone: native resolution at about 50 fps on the LAN, and a lighter mode for slow links. Click to tap, drag to swipe, hold to long-press, scroll with the wheel or trackpad. Type straight into the phone with your input method, and ⌘V pastes. The Controls panel lists the screen's elements so you can tap by label, and the Flow panel records what you do as a replayable flow. The page follows your browser's language (English or Chinese), with a switch in the sidebar.
From another iPhone. Download Phone Use Remote from the App Store and scan the QR code on your Mac’s iphone-use page. You can watch the live screen, tap, swipe, and type on the connected iPhone, or try the built-in demo before pairing. For the self-signed build, use
iphone-use setup-app. With a paid developer team, that build can also control its own phone without a Mac (setup guide).Screens hidden from capture. Banking and payment apps black out screen capture; there you see a live wireframe of the screen's elements instead of a blank picture, and you can still tap through it.
From any network.
iphone-use remote tailscale onputs the phone on your tailnet as its own device (no Tailscale app needed on the Mac), andiphone-use remote cloudflare onopens a Cloudflare Tunnel; then browse to the address it prints, scaniphone-use remote pairwith the app, or point agents at it, over cellular or any Wi-Fi (details).No collisions. A phone has one owner at a time. While you are in control, an agent waits or is told who holds the phone, and the reverse is true too.
Nothing on the Mac moves while you do it: no window takes focus and the cursor stays put.
Use it from an agent
To save a screenshot on the phone for use in another app, call
phone_shortcut {"name":"save_screenshot"}. It requests an iOS system capture
in Photos; check the new image before claiming it saved. phone_screenshot
returns an image to the caller. Saving requires an updated native Runner.
A daemon on your Mac drives the phone and offers the same control in three forms:
an MCP server for Claude Code, Codex, Claude Desktop, Cursor and other MCP clients;
an HTTP API for agents and scripts (
/agent/*);a web page and a native iOS app for people (remote control).
The installer registers the MCP server with Claude Code, Codex, Cursor and Claude Desktop when they are present (IPHONE_USE_NO_CLIENT_SETUP=1 leaves Cursor and Claude Desktop alone). Any other MCP client needs only the command; on this Mac the server finds the daemon and its token by itself:
{
"mcpServers": {
"iphone-use": {
"command": "/Users/YOU/Applications/iPhoneUse.app/Contents/MacOS/iphone-use-mcp"
}
}
}Use the absolute path (replace YOU) and merge the entry into the file; keep the servers already there.
Cursor:
~/.cursor/mcp.json(or.cursor/mcp.jsonin a project), themcpServersblock above.Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json, themcpServersblock above; quit and reopen the app.Gemini CLI:
~/.gemini/settings.json(or.gemini/settings.jsonin a project), themcpServersblock above.Windsurf / Devin Desktop:
~/.codeium/windsurf/mcp_config.json(newer builds:~/.config/devin/mcp_config.json), themcpServersblock above.VS Code / Copilot:
.vscode/mcp.jsonin a workspace, or MCP: Open User Configuration for every workspace. The key isservers:{ "servers": { "iphone-use": { "type": "stdio", "command": "/Users/YOU/Applications/iPhoneUse.app/Contents/MacOS/iphone-use-mcp" } } }opencode:
~/.config/opencode/opencode.json(oropencode.jsonin a project). The key ismcpand the command is an array:{ "$schema": "https://opencode.ai/config.json", "mcp": { "iphone-use": { "type": "local", "command": ["/Users/YOU/Applications/iPhoneUse.app/Contents/MacOS/iphone-use-mcp"], "enabled": true } } }
Or call the HTTP API directly:
AUTH="Authorization: Bearer $TOKEN"; CTL="X-Phone-Control: 1"
curl -s -H "$AUTH" $HOST/agent/elements # the screen as text + a snapshot token
curl -s -H "$AUTH" -H "$CTL" -X POST "$HOST/agent/input?return=delta" \
-d '{"type":"tap","element":7,"snapshot":"…"}' # tap, then what changed (~2 s)For app developers and testers the same tools also read the phone's logs and crash reports, record the screen to MP4, install a build (.ipa, .app or an https link), set a simulated location, and keep per-app notes that agents read when they enter the app. IPHONE_USE_MCP_TOOLS=core hides those developer tools, readonly exposes only the tools that read, and iphone-use-mcp --listen 127.0.0.1:PORT serves MCP over HTTP. A loopback listener is reachable only from the same Mac; for a client on another machine, put it behind an authenticated tunnel, or listen on another address with IPHONE_USE_MCP_TOKEN set (it is required off loopback).
No phone at hand? While you develop, drive an iOS Simulator the same way (preview, needs Xcode): iphone-use simulator start "iPhone 16 Pro" builds and starts everything, then point the agent at it with claude mcp add iphone-sim -e IPHONE_USE_INSTANCE=sim -- iphone-use-mcp. See Simulators.
See the MCP tools and the Agent API reference.
Safety and privacy
Secrets stay with you. For logins, passcodes and Face ID the agent stops and asks you to finish on the phone. It never asks for the password or the code.
Limits the agent cannot talk its way past. The daemon refuses apps you block (
IPHONE_USE_BLOCKED_APPS, for exampleWallet, Passwords) and caps the actions per task (IPHONE_USE_MAX_ACTIONS), whatever the agent's prompt says (details).You see what it does. The web page shows each action over the live screen in plain words, for example
Tapped “Wi-Fi”. Typed text is never kept, only its length.Local by default. The daemon listens on
127.0.0.1:44321behind a password, and the runner on the phone accepts only requests signed with a per-launch token. The iOS 15/16 LAN path is unencrypted (security).No telemetry. This build sends no usage data (telemetry · privacy policy).
phone_home_layout reads the paired phone's persisted home pages, Dock,
folders and widget stacks without opening folders or taking screenshots.
Use page to limit the response. Its page indexes include hidden/Focus-filtered
pages; use fresh UI elements before dragging, rather than treating grid slots
as screen coordinates.
Flows: do a task once, replay it with no model
Tasks you repeat are kept as flows: reviewed per-app scripts that replay without a model, so they cost no tokens. The official registry is leeguooooo/iphone-use-flows. Record a flow in the browser's Flow panel and publish it there with a PR.
Agents find flows on their own: when one enters an app, the response lists that app's flows. After an agent does a multi-step task in an app that has none, it asks whether to save the task as a flow; the daemon has already recorded the steps as a draft. The daemon keeps the registry fresh by itself (IPHONE_USE_FLOWS_NO_AUTO_UPDATE=1 turns that off, IPHONE_USE_FLOWS_NO_SUGGEST=1 silences the save suggestions).
MCP=~/Applications/iPhoneUse.app/Contents/MacOS/iphone-use-mcp
$MCP flow update # sync the registry (sha256-checked)
$MCP flow list # what is available
$MCP flow run health/export-all-zh-cn # replay one; failures say which step and why
$MCP flow draft --out my-task.json # what you just did on the phone, as a draft flowFlows also make rerunnable test suites ($MCP test suite.yaml, with an exit code ready for CI) and scheduled runs the daemon starts on a cron line ($MCP schedule add): see Testing and scheduled runs.
Speed
iphone-use drives the phone through its own XCTest runner (runner/). It speaks the WebDriverAgent HTTP API, and it is built for speed:
It reads the screen with one accessibility snapshot of a fixed attribute set, instead of walking the element tree attribute by attribute.
It synthesizes touches directly and does not wait for the app to go idle before acting; the daemon checks afterwards that the screen has settled.
It is one small app with a built-in HTTP server and MJPEG stream; there are no extra dependencies on the phone.
Measured on the same iPhone 13 over USB, against agent-device (October 2026):
iphone-use runner | agent-device | |
Read the screen (accessibility tree) | 0.08–0.135 s | ~0.7 s |
Tap, then wait for the screen to settle | 1.0 s | 2.8–3.3 s |
Through the full agent API, a tap by label that returns the settled change takes about 1.9 s on an iPhone 17 Pro Max; the WebDriverAgent-based release took 4.2 s. The live view streams at 27–28 fps. Each phone gets its own daemon and runner, so two phones driven at the same time run as fast as either one alone.
More
Full guide: browser and iOS app, flows and the flow registry, Wi-Fi and iOS 15/16, lifecycle, configuration, security, development.
Agent API reference · MCP tools · Architecture · Device setup pitfalls · Device runner · Privacy
Product guide: installation, MCP setup, flows and how it compares.
Issues and ideas: GitHub issues.
Related MCP servers
iPhone MCP: another macOS MCP server for real iPhones and simulators.
ios-mcp: iPhone and iOS Simulator automation through an observe/act/verify loop.
iphone-use focuses on a real device runner, explicit action outcomes and deterministic flow replay. These are independent alternatives, not dependencies or endorsements.
License
PolyForm Shield 1.0.0. This project is source-available. Non-competing use, modification and distribution are permitted subject to the license; using the software to provide a competing product or service, including a free one, is prohibited. See licensing scope and third-party notices.
The *-use family
Small, composable CLIs that give an AI agent hands on one real thing. Same shape
everywhere: curl … install.sh | sh to install, JSON on stdout, and a companion
skill that teaches your agent to drive it — each repo's own README says how to
install its skill, since the right way differs per project and per release.
Repo | Gives your agent |
A real browser — logged-in sessions, forms, scraping, screenshots | |
Email — read, search, send, triage across Gmail / QQ / 163 / any IMAP | |
WeChat on macOS — send messages, query contacts and history | |
Discord — messages, channels, forums, webhooks (REST-only, Rust) | |
Many logged-in accounts per site — capture, switch, apply sessions | |
Your personal profile, safely — fill signup / KYC / checkout forms | |
Bitwarden / Vaultwarden — headless passkey (FIDO2) login | |
Your ChatGPT subscription as a coding-agent backend — no API key | |
The macOS desktop itself | |
Read-only PixCake probing — snapshot / diff / SQLite inspection |
Author
Built by 郭立 (Guo Li / leeguoo) — leeguoo.com · GitHub · X · more tools in the *-use family.
Focused reads and action receipts
phone_subtree reads one native element’s descendants with explicit coverage;
its local positions are read-only. Action responses separate delivery from UI
verification and include structured recovery strategies. phone_run_start with
trace=true enables a bounded, redacted timeline, available through
phone_run_trace; it contains no typed values or screenshots. These native
checks and subtree reads require an updated runner. See the
agent reference.
Activity history never stores click geometry, input identifiers or keypad keys. Green feedback uses only the latest nonsensitive named target, bound to the live owner/privacy scope, erased after 1.5 seconds and excluded from history.
Available Tools
43 toolsphone_app_notesADestructiveIdempotent
Read or replace persistent notes for one bundle id about app navigation and quirks. Resolve bundle with phone_apps; without text, read the existing Markdown. With text, replace it entirely (not append), at most 16 KiB UTF-8; read first to preserve useful notes. An empty text clears the notes. The first screen read in an app also includes them in its registry block. Use phone_flow_draft for executable task replay, not these notes. Writes affect future sessions; never store passwords, codes or personal data. Errors do not prove a write was delivered: read back before retrying.
Inputs: bundle (required), text, instance.
phone_appsARead-only
Find an app's bundle id by name. Read-only: no screen access, no owner lease. Searches the phone's installed apps, then a verified catalog of popular apps and Apple's built-ins, then the App Store only when neither matched; exact matches hide partial ones. Candidates carry name, bundle_id, source (installed|catalog|apple), installed_verified and publisher; installed_verified=false with installation_checked=false means unknown, not absent. Then launch_app bundle (or app with the exact name).
Inputs: query (required), limit, source, country, +1 more.
phone_capabilitiesARead-only
Supported UI operations and cached readiness: the backend's single-step, batch and perform vocabularies, observation support and accepted modes (phone_status covers device/setup/owner). Read-only: no device connection, wake or lease. supported is static; available is cached, blocked_by names locked, released, reconnecting, human_handoff, owned_by_other or offline; ok:null is unknown, never readiness. UI control only, not app install or device management. If blocked, follow phone_status.
Inputs: instance.
phone_collect_listA
Read a scrolling list across pages in ONE call: reads rows of one kind (default Cell), swipes a page, repeats until the page repeats (duplicate_page), end_label shows, or max_pages (default 6, max 10). Rows dedupe on (kind, identifier, label, value): look-alike rows without identifiers may collapse, so reconcile counts the user cares about. complete=true ONLY when end_label was seen; duplicate_page is not proof of the end. Leaves the screen on the last page. swipes_uncertain: never replay.
Inputs: region, instance, row_kind, snapshot, +3 more.
phone_crashesARead-only
Crash reports on the phone: without name, list them (name, process, time, size; filter with process); with a name from the list, read that report — exception, crashed thread and backtrace. Read-only: it never touches the screen.
Inputs: name, limit, process, instance.
phone_elementsARead-only
The current screen as text — use instead of screenshots. Rows carry kind, label, identifier, value, rect, state and a snapshot token for phone_tap_element, valid for this read only. query/limit/selector narrow rows but keep their indexes. Max 200 rows / 32 KiB; an omission notice means a partial view. registry lists saved flows for a newly entered app: prefer phone_flow_run. alert = a system alert is up: use an alert step, taps on alerts do not act. OCR rows: phone_tap their x/y.
Inputs: ocr, limit, query, instance, +2 more.
phone_flow_draftA
Turn what you just did on the phone into a flow: the daemon's trail of applied actions in the current app (not flow runs) as a flow v1 document — snapshot taps become label/identifier locators, typed text becomes named inputs and is never included — plus a todo list. Call it on flow_suggestion or after a multi-step task with no flow, but ASK THE USER before saving. save_as writes and validates the file; fix the todos, prove it with phone_flow_run, publish only with the user's OK.
Inputs: save_as, instance.
phone_flow_infoARead-only
Inspect an installed flow before phone_flow_run: returns metadata, declared inputs and step templates with placeholders, never runtime input values. Use an id from phone_flow_list, such as health/export-all: exactly two lowercase app/flow slugs, not a local file path. Check app, locale, verification and side effects before execution. Invalid or missing ids return an error without running or downloading anything; use phone_flow_update if the registry store is empty. To inspect a new local draft, validate its file instead of guessing a registry id.
Inputs: id (required), instance.
phone_flow_listARead-only
Installed deterministic per-app flows — check before exploring a task: phone_flow_run replays one without model decisions or screenshots. Filters category, app (registry app dir or bundle id, not a display name) and verified combine. Rows: id, description, inputs, risk, compat with this phone's app version; detail=true for full JSON. verified = a recorded hardware run, not a guarantee. phone_flow_info shows effects. An empty store needs phone_flow_update once; a filter miss ≠ empty store.
Inputs: app, detail, category, instance, +1 more.
phone_flow_publishADestructive
Publish a working flow to the official registry through the user's GitHub CLI: fork if needed, write the flow and any new app.json, rebuild index.json, push a branch, open a public PR. confirm=true only after the user agreed to that publication. Draft with phone_flow_draft and prove with phone_flow_run first; phone_flow_report is for problems in existing flows. verified_on takes device/iOS/date; unverified flows open a draft PR. Returns id, repo, branch, head, pr_url; inspect it before retrying.
Inputs: id (required), source (required), note, aliases, +3 more.
phone_flow_reportADestructive
File an issue on the official flow registry for an installed flow that failed (label changed, app updated, wrong locale). Uses the failure captured by the last phone_flow_run of that id — failed step, redacted daemon result, daemon version — so you only add a short note. Screen labels, typed text, and element lists are stripped. OUTWARD-FACING: requires confirm=true after the user agreed. Do not file for a phone that was simply locked/offline, or for a flow you ran on the wrong app/locale.
Inputs: id (required), note, confirm, instance.
phone_flow_runADestructive
Run one flow exactly once: an installed registry id or a flow file (*.json, e.g. a draft being proved). Pass its declared inputs; risk=side_effect needs confirm=true; compat broken/incompatible for the installed app version needs force=true. Declared outputs come back top-level (verify=true checks them). One lock, whole-sequence validation, stops at the first failed step; a read_only flow missing an element retries its other-language variant. retry_safe=false: DO NOT replay, repair the flow.
Inputs: id (required), force, inputs, verify, +3 more.
phone_flow_updateAIdempotent
Mirror the official iphone-use flow registry (github.com/leeguooooo/iphone-use-flows) into the local store. Every file is checksum-verified and strictly validated before it is written; locally added flows are kept. Call once when phone_flow_list reports an empty store, or to pick up new flows. Network only; the phone is not touched.
Inputs: instance.
phone_holdAIdempotent
Keep the phone through a bounded human-in-the-loop pause inside the current task (a PIN, a prompt, a code): the idle watchdog will not release it for secs seconds (0 clears; max 14400). When the person signs in (passcode, Face ID, a code) pass private=true: the screen is not read or streamed until the hold is cleared; pass private=true again when extending, a hold without it lifts the privacy. Not for initialization, health checks or keeping the phone ready; clear it when done.
Inputs: secs (required), private, instance.
phone_home_layoutADestructive
Read all home-screen pages, Dock, folders and widget stacks from the paired iPhone without swiping or screenshots. Needs a physical target over usbmuxd, not drivable=true or a runner: no reconnect. Page indexes are persisted icon state (hidden pages included); null row/col or positions_complete=false means unknown, never drag coordinates. action: backup (plist on the Mac), preview (diff plist vs phone), apply/restore (replace the layout; confirm=true only after the person saw the preview).
Inputs: file, page, action, confirm, +1 more.
phone_install_appADestructive
Install an app build on the phone: path of an .ipa or .app on the Mac running the daemon, or an https url of an .ipa (up to 2 GB). fresh=true uninstalls the app first, deleting its data. Apps the operator blocked are refused. Answers with the installed bundle id; it can take minutes. Install only what the user asked for.
Inputs: url, path, fresh, instance.
phone_instancesARead-only
List installed local iPhone instances and their read-only status. This inventory is not a list of paired/connected devices. For recovery_owner=unconfigured, inspect xcrun devicectl list devices and run iphone-use doctor on the daemon host; ask which phone when ambiguous. Does not start, reconnect or claim a phone. Pass instance in any phone_* call to choose one; omitted instance preserves this MCP server's configured daemon. Missing/invalid instances never fall back to another phone.
Inputs: no named parameters.
phone_jev_runADestructive
Hand ONE whole goal to the fast on-phone agent (TypeSafe Jev picks each step from the element table in ~1–2 s; a small LLM types values). For a clear multi-step goal with no saved flow (check phone_flow_list first). Returns status done|blocked|max_steps with the step history; it answers BLOCKED rather than send, pay, delete or share anything the goal did not ask for — still confirm such goals with the user and verify the end screen. Needs TYPESAFE_API_KEY (+TEXT_MODEL_API_KEY to type).
Inputs: goal (required), app, instance, max_steps.
phone_keyADestructive
Press a navigation or editing key in the foreground app, acting on its current focus. Use phone_type for literal text and phone_tap_element to focus a field first. Check phone_status.drivable and the focused control: delete/backspace can erase content, and return/enter may submit or send it. The schema lists accepted names; unsupported names fail before input is sent. observe defaults on and returns the settled screen change. On an unknown outcome, inspect the screen before another key; repeating a key can change or submit content twice.
Inputs: name (required), observe, instance.
phone_loginADestructive
Log the app on screen in with the user's OWN account from their password vault (bitwarden-use on the Mac): the daemon reads the entry and types it, so no credential passes through this conversation. Use when an app shows its login page during the user's task. Several matching entries: the answer lists their names; ask the user, then pass item (and user). Existing accounts only — never sign-up, password change or payment. needs_code: call again with code_via (sms|mail) and code_from (max two).
Inputs: item, user, submit, code_via, +2 more.
phone_logsA
Capture and read the paired phone's live system log for app debugging (phone_crashes for saved crash reports). action: start, then reproduce, then read (default; filters process/contains/level, pass the returned next as since); stop releases the relay, clear drops the buffer. Connection/auth failures are errors, not an empty log. Capture stops itself after 15 min without reads. Lines: #seq time process[pid] level: message. Logs may hold private data: collect only what the task needs.
Inputs: level, limit, since, action, +3 more.
phone_metricsARead-only
Task performance aggregates for this client's X-Phone-Owner on the selected instance: HTTP-call counts, batch/flow usage, stale/unknown outcomes, losses, p50/p95 latency. HTTP calls are not model turns or tokens; model_round_trips stays null without a complete declared trace. Read-only: no connection, runner launch or lease — never reconnect for metrics. Default the latest 5 open and recent runs, max 20 per section, 12 KiB row budget; omitted counts and truncation are explicit.
Inputs: limit, instance.
phone_read_valueARead-only
Read one element's AX value without tapping, focusing, waking or a lease. Give exactly one identifier or exact label from a fresh read, optionally kind; ambiguity refuses. Use when phone_elements marks value_truncated or the task needs the full field text. Returns one bounded value with source/completeness; complete means this API did not cut it, not that the app exposes its whole document. A smaller max_utf16 gives truncated:true. Secure fields and runners without ipu:valueRead refuse.
Inputs: kind, label, instance, max_utf16, +1 more.
phone_reconnectA
Start/restart on-device automation; occupies the phone, may need the operator to unlock it. Only to continue a current user-requested task that cannot proceed — never for initialization, health checks, a finished task or to keep the phone ready. Needs released/offline status, recovery_owner=daemon, no blocker or reconnect in progress. Call once; wait_secs blocks until drivable, a blocker or timeout (outcome retrying: the supervisor retries within a minute). Never switches devices.
Inputs: instance, wait_secs.
phone_recordA
Record the iPhone screen to an MP4 on the daemon's Mac: start, perform the requested task, then stop to get path, duration and size. status checks the recording without starting one. Unlike phone_screenshot (one image) or phone_screen (live panel), this persists video under the instance state directory's runs/recordings. Requires a usable device video stream and a writable output directory. Auto-stops after 10 minutes or 200 MB; ended explains why. Video can contain private screens: record only the authorized task, stop when done, and do not treat the returned Mac path as an upload.
Inputs: action (required), instance.
phone_release_ownerAIdempotent
Release this session's phone lease when its task ends so another session can drive. Also frees the phone: a daemon-managed runner stops at once (the phone leaves automation mode) unless a live viewer, an active phone_hold or a recording keeps it; the next phone tool brings it back. Unlike phone_hold(secs=0) this gives up ownership. Sends no input, returns owner=null; releasing an unowned phone succeeds; another session's lease returns phone_owned and is never taken over.
Inputs: instance.
phone_run_endA
Close a live task opened with phone_run_start and return its metrics: HTTP calls (not model turns), batches, observed actions, flows, stale/unknown outcomes, failures and p50/p95 call time. Use the same run_id and session; a missing or already-closed run cannot produce a new live summary. Supply turn_ids only for a complete_trace declaration, including every model generation; otherwise model_round_trips remains unknown. This ends accounting only, not a video recording or the owner lease: use phone_record(stop) and phone_release_owner for those.
Inputs: run_id (required), instance, turn_ids.
phone_run_startA
Open a task boundary for this session's daemon metrics; pair with phone_run_end, not phone_record (video). Later session calls count toward this run; this does not drive or reserve the phone. Optional: without it, idle gaps infer runs. Use a fresh run_id for each task; starting the same still-open id resumes that run rather than resetting its counts. complete_trace is valid only before its first counted call and commits you to supply every model turn id at run_end. Returns a start acknowledgement; report errors rather than claiming metrics were recorded.
Inputs: run_id (required), trace, instance, complete_trace.
phone_run_stepsADestructive
THE DEFAULT WAY TO ACT: run several steps in ONE call and get the screen it ended on back (observe, default on): one turn, not one per tap. The daemon validates the whole batch, holds one lock, stops at the first failure. Single-action tools are for exploring. Guard screen changes with wait_for; never batch an unverified irreversible step. The steps are exactly a saved flow's steps: on flow_suggestion ask the user about phone_flow_draft. retry_safe=false: DO NOT replay.
Inputs: steps (required), observe, instance.
phone_run_traceARead-only
Read this session's redacted action timeline for a run started with trace=true. Bounded memory only; includes counts and delivery/verification receipts, never typed values or screenshots. It cannot replay actions.
Inputs: run_id (required), instance.
phone_screenARead-only
Open the live iPhone screen panel beside the chat, or reuse the one already open, in hosts that render MCP Apps: the person watches the phone while you work and can press Home or refresh. Read-only: takes no owner lease and wakes nothing. Returns a short status (phone, drivable, owner). Open it once when the person wants to watch; it never replaces phone_elements or phone_screenshot for your own observation. Hosts without MCP Apps show no panel.
Inputs: instance.
phone_screen_frameARead-only
Internal frame transport for the iphone-use MCP Apps panel; models use phone_screenshot for a still image and phone_elements for text. Returns structuredContent with status, frame (mime_type=image/png and base64 data), ok and error. A private hold returns frame=null; an empty or failed capture is reported rather than invented pixels. max_side is clamped to 200–1000; fresh bypasses the reusable frame. The panel calls this with visibility app; do not poll it from model turns or use it for health checks.
Inputs: fresh, instance, max_side.
phone_screenshotARead-only
One screen as an image/png block, when pixels matter; phone_elements for text/targets, phone_screen for the person's live panel. Reuses the settled frame after an observed action. max_side default 1200 (0 = full resolution; an oversized image is stepped down to fit 1.5 MB); overlay=true draws interactive frames with their phone_elements indexes. Capture only for the current task; private holds or offline devices refuse. An image does not prove an action succeeded; check the state or receipt.
Inputs: overlay, instance, max_side.
phone_scrollADestructive
Move the viewport with one device-side swipe (phone_scroll_find to reach a known label, phone_collect_list to read several pages). x,y is a normalized anchor inside the scrollable region — avoid text fields, sliders and screen edges, a misplaced gesture can edit a control or navigate away. Positive dy reveals content below, negative above; dx right/left. Travel is 1.5× each delta in points, clamped to 15–75% of the screen. Inspect the observed result before repeating.
Inputs: x (required), y (required), dx (required), dy (required), +2 more.
phone_scroll_findA
Find one exact label, swiping at most max_swipes (default 1, max 5) when it is off screen. Stops at once — no further swipe — when the label is ambiguous (candidates with index and frame), covered or not drawn. Found: target plus a snapshot for phone_tap_element; not found: on-screen labels containing the text as candidates. Absence after the budget is not proof; look before swiping on. Optional snapshot from a read of the target app refuses on app change. swipes_uncertain: never replay.
Inputs: label (required), kind, region, instance, +3 more.
phone_set_locationAIdempotent
Simulate GPS for testing location-aware apps. Supply both lat (-90–90) and lon (-180–180), in finite decimal degrees, or clear=true without coordinates to restore real location; combining clear with coordinates is refused. Every app sees the simulated position until cleared; it is not a navigation or address lookup tool. Counts as one daemon action and requires authorized device control. Returns the applied location/clear status; on a transport failure the effect is unknown. Inspect the result before proceeding and clear the simulation when the test ends.
Inputs: lat, lon, clear, instance.
phone_shortcutADestructive
System shortcut: home, spotlight, volume_up/volume_down (physical device; the ACK confirms the request, not the level) or save_screenshot (a mutation, unlike phone_screenshot: the receipt means requested, not saved; if iOS shows a preview choose Done/Save there, never take another; check Photos before claiming saved). Never replay an uncertain capture or volume press. App Switcher is unsupported; unknown names fail before input. phone_key for field keys, launch_app for an app.
Inputs: name (required), observe, instance.
phone_statusARead-only
Read the phone's state without taking control: owner (another session's owner means do not drive; control calls get phone_owned), device_state, screen_state, runner, locked, drivable, released, hint, next_step, recovery, setup_blocked_on/phase/message, lock_readiness (will_lock_needs_person: a person must unlock after a pause; relay the hint), keep_runner_alive. Act only on drivable=true; otherwise relay next_step and stop. Never ask for a passcode; pause reads while one is entered.
Inputs: instance.
phone_subtreeARead-only
Read one native element's bounded subtree by element+snapshot, serializing only that element (locator lookup may still read the app tree). Requires a unique live semantic target and a runner with ipu:elementSubtree. Returned row positions are READ ONLY, not action refs; use unique locators or fresh phone_elements refs for input. complete=false means descendants may be missing.
Inputs: element (required), snapshot (required), instance, max_depth, +1 more.
phone_tapADestructive
Tap a pixel target using normalized x,y from 0–1, with (0,0) at top-left. Prefer phone_tap_element for an accessible control; use phone_screenshot to locate a pixel-only target. Requires phone_status.drivable=true and current screen evidence: a tap may send, buy, delete or toggle whatever occupies that point, so authorize its actual effect first. observe defaults on and returns the settled screen change. Read outcome/retry_safe; if delivery is unknown, inspect the current state or receipt before considering another tap.
Inputs: x (required), y (required), observe, instance.
phone_tap_elementADestructive
Tap one element by its zero-based index and snapshot token from the SAME phone_elements response. The daemon re-reads the tree; a small change on the same screen (clock, badge, a flipped switch) still finds the row by kind, identifier, label and enclosing rows, while another page, a new alert, or look-alikes it cannot tell apart refuse with nothing sent, so a stale element reference cannot silently tap a different control. Use identifier/kind/label/state fields to choose the index. Snapshot refs are ephemeral: never persist them in a flow.
Inputs: element (required), snapshot (required), observe, instance.
phone_tap_labelADestructive
Tap an iPhone UI element by an EXACT visible label (requires drivable=true in phone_status). Reads a fresh phone_elements snapshot, requires exactly one match, then performs a snapshot-bound tap. Zero or multiple matches return an error and send NO action. For duplicate labels, choose by identifier/kind/state from phone_elements and call phone_tap_element with that response's snapshot.
Inputs: label (required), observe, instance.
phone_typeADestructive
Type Unicode text into the focused field (focus it with phone_tap_element first; phone_key for editing keys). Text may replace a selection or land in the wrong field if focus moved. Long text is chunked; budget_ms (6000..15000) may stop at a safe boundary and return a single-use continue_token: continue with only that token. On partial failure read characters_confirmed and remaining_text; never resend the whole value blindly. Verify the field before submitting; unknown outcome ≠ nothing typed.
Inputs: text, clear, observe, instance, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 43 tools
The set covers many adjacent capabilities: tap/tap_element/tap_label, screenshot/screen/screen_frame, scroll/scroll_find/collect_list, and run_steps/flow_run/jev_run. The descriptions explicitly distinguish them, but with 43 tools an agent still has many plausible choices and must read long guidance before selecting.
Almost all tools use a consistent snake_case phone_ prefix. There are minor deviations: several are noun/status names rather than verb_noun, and flow/run naming is not perfectly parallel, but overall it is predictable.
43 tools is well above the 25-tool heavy threshold and feels excessive even for a broad iPhone automation server. The surface spans device control, flows, metrics, recording, logs, layout, and app management, so many tools may be justified individually but the set is still unwieldy for an agent.
The server covers a wide lifecycle: inspection, UI interaction, flows, recording, screenshots, metrics, logs, crashes, app install, recovery, and ownership. Minor gaps exist, such as no explicit app launch/uninstall tool and no direct flow deletion, but most workflows can be handled through step batches or flow operations.
Maintenance
Related MCP Connectors
Let your AI agent control real iPhones: screenshots, tap, swipe, type and open apps.
AI agents on your own iPhone or Android: run tasks in real apps, read the screen, tap and type.
Let Claude, ChatGPT and other agents use your Android phone: see the screen, tap, type, open apps.
Give an AI agent an iPhone to see, tap and type on over MCP. Free early access (Simulator).
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control real iPhones and simulators on macOS, allowing for UI interaction, testing, and automation.51 npm98MIT
- AlicenseAqualityBmaintenanceEnables AI agents to drive an iPhone or iOS Simulator through 30 tools and 4 resources, using an observe/act/verify loop with built-in safety approvals.3122 PyPI4MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to operate a real iPhone from a Mac by reading the screen over USB and sending taps, swipes, typing, and app launches over Bluetooth, with every action returning a fresh screenshot so the agent can verify its work. Runs as a local MCP server, so agents can test iOS apps on physical devices and automate everyday phone tasks.38 npm10MIT

Phone Harness MCPofficial
AlicenseAqualityBmaintenanceLets AI agents drive real iPhones and Androids hosted in the cloud over HTTPS — taking screenshots, inspecting on-screen elements, tapping, typing, swiping, and launching apps — with no pairing, adb, or Mac required. It can run locally over stdio or as a hosted streamable HTTP endpoint supporting API keys and OAuth sign-in.15838MIT