1. Conduid
  2. Browser
  3. Iphone Use
MCP server · Browser

Iphone Use

响应快 省Token, Let AI agents (Claude Code, Codex, any MCP client) drive a real iPhone · 让 AI agent 操作真实 iPhone:读屏、点击、输入、滑动,USB 或 Wi-Fi,自有 XCTest runner,可回放的 App flow。Open source, self-hosted on macOS.

69Good

Scored 17 hours ago · breakdown

About Iphone Use

Iphone Use is an MCP server published by leeguooooo in the Browser category: 响应快 省Token, Let AI agents (Claude Code, Codex, any MCP client) drive a real iPhone · 让 AI agent 操作真实 iPhone:读屏、点击、输入、滑动,USB 或 Wi-Fi,自有 XCTest runner,可回放的 App flow。Open source, self-hosted on macOS. Conduid read 43 tools from its source: phone_app_notes, phone_apps, phone_capabilities, phone_collect_list, phone_crashes, phone_elements and 37 more. No package is published for it, so it installs from a source checkout.

The repository has 531 stars and 58 forks, and its last commit was on 1 Dec 2026. The latest release is v0.29.4 (24 Nov 2026): What's Changed fix(login): count password fields scrolled off screen before filling (#448) in 2021868 fix(input): read set_value on a password field back and type it in… It follows v0.29.3 (24 Nov 2026), and the 5 most recent releases go back to v0.29.0 (17 Nov 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include automation, browser, h264, ios, iphone and iphone-mirroring.

Install

From source
git clone https://github.com/leeguooooo/iphone-use

Tools (43)

phone_app_notesRead 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.
phone_appsOmit query to list this phone's installed apps (no country/limit; source omitted or installed). With query, find an app by name: installed apps, then catalog, then App Store; exact matches hide partial ones. Candidates include name, bundle_id, source, installed_verified and publisher. installation_checked=false means installation is unknown. Read-only, no screen access or owner lease. Launch the chosen bundle_id with launch_app.
phone_capabilitiesSupported 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.
phone_collect_listRead 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.
phone_crashesCrash 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.
phone_elementsThe current screen as text. read_mode=bounded caps native depth/nodes before serialization (partial, diagnostic indexes); scope filters the view after reading, since supplies a delta baseline. Default auto preserves ordinary reads. query/limit/selector keep indexes. Rows carry kind, label, value, rect and snapshot for indexed taps on complete reads; duplicates include normalized bounds. registry lists flows; alert requires an alert step. OCR is unsupported in bounded mode.
phone_flow_draftTurn 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.
phone_flow_infoInspect 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.
phone_flow_listInstalled 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.
phone_flow_publishPublish 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.
phone_flow_reportFile 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.
phone_flow_runRun 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.
phone_flow_updateMirror 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.
phone_holdKeep 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.
phone_home_layoutRead 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).
phone_install_appInstall 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.
phone_instancesList 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.
phone_jev_runHand 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).
phone_keyPress 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.
phone_loginLog 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).
phone_logsCapture 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.
phone_metricsTask 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.
phone_read_valueRead one element's AX value without tapping, focusing, waking or a lease. Give exactly one element+snapshot, or identifier/exact label (optionally kind); stale or ambiguous targets refuse. 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.
phone_reconnectStart/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.
phone_recordRecord 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.
phone_release_ownerRelease 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.
phone_run_endClose 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.
phone_run_startOpen 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.
phone_run_stepsTHE 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.
phone_run_traceRead 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.
phone_screenOpen 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.
phone_screen_frameInternal 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.
phone_screenshotOne 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.
phone_scrollMove 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.
phone_scroll_findFind 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.
phone_set_locationSimulate 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.
phone_shortcutSystem shortcut: home, spotlight, lock (locks the screen; a passcode-protected phone requires a person to unlock it again), 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.
phone_statusRead 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.
phone_subtreeRead 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.
phone_tapTap normalized x,y (0–1, top-left origin). Prefer phone_tap_element for accessible targets. Requires drivable=true and current screen evidence: authorize the actual effect first. On checkout screens, confirm_checkout=true bypasses the optional coordinate guard only after explicit user authorization; use element+snapshot to close a paywall. observe defaults on. If delivery is unknown, inspect the screen before another tap.
phone_tap_elementTap 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.
phone_tap_labelTap 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.
phone_typeType 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.

Security checks

Static checks derived from the repository 3 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 3.1K words.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by Cargo.lock and 3 more.
  • !No dynamic code executionScanned 150 source files and found 1 call to eval or shell execution, in crates/server/src/file_handoff.rs:23. Review how tool inputs reach them before granting credentials.

1 check has not been run yet.

What the source scan found

Transport
stdio and Streamable HTTPcrates/mcp/src/main.rs:18, crates/mcp/src/http.rs:21
Starts other programs
125 callscrates/mcp/src/client.rs:109, crates/mcp/src/compat.rs:216, crates/mcp/src/contrib.rs:52
Outbound network calls
104 callscrates/mcp/src/client.rs:10, crates/mcp/src/client.rs:17, crates/mcp/src/client.rs:18
Writes or deletes files
317 callscrates/mcp/src/compat.rs:191, crates/mcp/src/contrib.rs:240, crates/mcp/src/contrib.rs:257
Lockfile
Cargo.lock and 3 more

Pattern matches on the source text of 150 files: places to read, not proof of what the code does at run time.

Releases

v0.29.4v0.29.4 · 24 Nov 2026What's Changed fix(login): count password fields scrolled off screen before filling (#448) in 2021868 fix(input): read set_value on a password field back and type it in when a web view ignores the write (#449) in a324526 docs: do not tap…
v0.29.3v0.29.3 · 24 Nov 2026What's Changed ci: 拆出 tailnet 与远程连接检查按路径触发,并取消过期运行 by @leeguooooo in https://github.com/leeguooooo/iphone-use/pull/440 fix(runner): refresh screen bounds so a foldable's open display is not refused (#447) in 0ad61d3 fix(simulator): list…
v0.29.2v0.29.2 · 19 Nov 2026What's Changed chore(deps): bump tailscale.com from 1.104.5 to 1.104.6 in /tailnet in the gomod group by @dependabot[bot] in https://github.com/leeguooooo/iphone-use/pull/431 chore(deps-dev): bump the npm group in /relay with 2 updates by…
v0.29.1v0.29.1 · 18 Nov 2026What's Changed fix(agent): element taps in web content and remote views, password-field refusal, wait caps (#438) by @leeguooooo in https://github.com/leeguooooo/iphone-use/pull/439 Full Changelog:…
v0.29.0v0.29.0 · 17 Nov 2026What's Changed feat(remote): 任意网络远程控制(Tailscale + Cloudflare Tunnel)+ 全项目审查修复(安全 / CI / MCP / 文档) by @leeguooooo in https://github.com/leeguooooo/iphone-use/pull/420 chore(deps): bump the actions group with 2 updates by @dependabot[bot] in…

README

The repository's README runs to about 3.1K words, fetched 3 days ago. The original in the repository is authoritative.

Read full README
Questions

About Iphone Use

How do I install Iphone Use?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Iphone Use safe to use with an AI agent?

Its trust score is 69 out of 100 (good). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Conduid's scan of 150 source files found that it serves MCP over stdio and Streamable HTTP, starts other programs (125 calls), makes outbound network calls (104 calls) and writes or deletes files (317 calls). Its dependencies are pinned by Cargo.lock and 3 more. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Iphone Use still maintained?

Yes — the latest release is v0.29.4 (24 Nov 2026), and the last commit was 22 hours ago. The repository has 531 stars and 6 open issues.

What tools does Iphone Use provide?

Conduid read 43 tools from the source: phone_app_notes, phone_apps, phone_capabilities, phone_collect_list, phone_crashes, phone_elements, phone_flow_draft, phone_flow_info and 35 more.