AI-iPhone-use
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., "@AI-iPhone-use Show me my iPhone screen, then tap the Settings app."
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.
AI-iPhone-use
Give your AI a real iPhone to see, tap, and run code on. Connect an iPhone to a Windows PC and choose the tools your AI needs. USB provides screenshots and touch input, Pinky can find controls by name, and iSH runs shell commands in a workspace on the phone. Each is a separate download that works with Codex or a local MCP client such as Claude Code.
Downloads
What you want to do | Windows package | Setup |
Navigate apps by control name and run batches of actions | ||
Edit files and run code inside a Linux shell on iPhone | ||
See the screen, tap, swipe, and type over USB |
Related MCP server: phone-agent
Install a package
Extract the ZIP to a folder you intend to keep. Each package has a
README.mdwith its own device requirements and pairing instructions.Codex: Open PowerShell in the folder containing
install.ps1and run.\install.ps1. Runnode scripts/setup.mjs enable, pair the phone as described in the package README, and start a new Codex chat.Other AI apps and models: Open
MCP.mdinside the same ZIP. Choose a setup by capability: local MCP (including Cursor, Gemini CLI, LM Studio, Claude, and VS Code), remote HTTPS connectors, or a function-calling API. Local clients use Node.js and work without a Codex installation. Choose a connection method
For a first check, ask the USB tool to show the current screen, Pinky to list its tools, or iSH to run pwd. You can install more than one package. Use one client at a time for input on the same phone. The standard App Store version of iSH is sufficient for foreground shell work. Optional background jobs
Work from source
Use a source ZIP or clone the repository. The source installer can register several features as one Codex plugin.
git clone https://github.com/owen201913-cmd/AI-iPhone-use.git
cd AI-iPhone-useFeatures | Run one command in PowerShell |
Pinky |
|
iSH Shell or iSH Workspace |
|
Pinky and iSH |
|
Direct USB screen and touch |
|
All three |
|
Run node scripts/setup.mjs enable, then follow the pairing guide for each feature. Rerun the installer with another selection to change which tools the source installation exposes. If you change code or documentation, follow Build and verify the plugin ZIPs before distributing them.
Tools
Tool | What it does |
| Captures the current screen as a PNG or retrieves the image for an existing observation ID. |
| Gets device status, opens apps, sends touch or keyboard input, and retrieves action receipts. |
| Lists upstream tools, finds tabs, executes batches, and reports results and timing. Pinky manages device authorization and handoff. |
| Runs commands in iSH, reads and writes workspace files, and submits user-confirmed background jobs. |
| Reports the state, output, and exit code of a background job. |
Use the latest observation for touch input. If a result is uncertain, check the original request ID before sending more input. For device support, gesture limits, and failure messages, see the tool reference and troubleshooting guide.
Local data and access
Phone access starts disabled. Use node scripts/setup.mjs doctor to check local configuration and node scripts/setup.mjs disable to revoke access for this installation. The source installation stores settings, Python environments, SSH identities, and receipts in %LOCALAPPDATA%\IphoneUseCodex. Independent ZIPs use packages/pinky, packages/ish, or packages/usb under that directory. Set IPHONE_USE_HOME to an absolute path before setup to use a different data directory.
Remove the combined Codex plugin with codex plugin remove iphone-use-standalone@iphone-use-local. The package guides include the removal command for each independent plugin.
Available Tools
5 toolsiphone_receiptiPhone workspace receiptBRead-onlyIdempotent
Read a background workspace job result without dispatching any action.
Inputs: requestId (required).
iphone_screen查看 iPhone 畫面ARead-onlyIdempotent
Read the paired iPhone screen as actual image pixels. Omit observationId for a fresh PNG. Supply the returned observationId to retrieve the same pixels, without another device capture. Use iphone_usb for input.
Inputs: observationId.
iphone_usbiPhone USBADestructive
Control the enrolled, unlocked iPhone over paired USB. Observe returns native PNG pixels, image size and observationId. Tap/hold points:[[x,y]], swipe:[start,end], pinch:[start1,end1,start2,end2], all in returned image pixels. Mutations need a fresh UUID requestId; except launch, also supply latest observationId. Use type for printable ASCII in a visibly focused field, or paste for Unicode only when replacing the iPhone clipboard is intended. key sends a named key. Launch takes an installed bundle ID. Inspect the returned screen to verify the goal. Never repeat uncertain input; receipt reads the same requestId.
Inputs: action (required), app, key, text, +3 more.
iphone_workspaceADestructive
Run shell in ~/workspace on the paired iPhone. Combine read, edit and test in one run. For work that must survive switching apps, use background with a visible title and 1–10 sequential scripts (60s each); requires iSH Workspace on iOS 26 and one foreground Start tap. For a short batch, pass waitMs (up to 40000) to receive the final exitCode/output in the same call; zero returns immediately. If still awaiting, query receipt with the same UUID and environment continued. Each app has separate files. Never replay uncertain work.
Inputs: action (required), steps, title, script, +4 more.
pinkyPinkyCDestructive
Prefer action:ensure_tab for a requested selected tab: expected:{app,selectedTab}, intent, fresh requestId. One call reads the current screen, taps a unique ref only if needed, and verifies. For an authorized request to open the app, set openApp:true. Include connectTask only if the request also authorizes acquiring a new Pinky session when one is missing. The app must be an exact package or bundle ID. This combines setup, launch if needed, and verification in one call. Never repeat uncertain input. For a known ordered list of named tabs use navigate_tabs with tabs:[labels], expected:{app}, intent and a fresh requestId. Each selection is verified on the device. For explicit action sequences use phone_batch. Persistent Pinky MCP connection. tools lists the current approved phone tool schemas. call uses exact tool/arguments and a fresh requestId UUID; receipt queries a previous request without replay. Same requestId never resends, including after restart. status does not launch a process; close releases this bridge. Native screenshots are returned directly. Pinky retains all device leases, approvals and takeover rules. phone_task_* autonomous AI tools are disabled; Codex decides each action. Discover tools once per session, reuse returned screens and references; never replay uncertain input. Reuse the screen returned by each action; do not add phone_observe routinely. Prefer phone_batch only for already confirmed deterministic navigation; stop partial batches and never resend completed steps. Short settle_ms may defer waiting to the next call and is not a guaranteed speedup. expected verifies a narrow app/selected-tab goal without another observe; trace retrieves local latency boundaries.
Inputs: action (required), tabs, tool, names, +9 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
pinky overlaps heavily with the other tools: it reads the current screen, taps, verifies, batches navigation, and exposes its own receipt/status/close, all of which collide with iphone_usb, iphone_screen, and iphone_receipt. There are also two receipt paths (iphone_receipt and pinky's receipt action) and no clear rule telling the agent when to use pinky's ensure_tab versus an iphone_usb tap followed by iphone_screen verification. iphone_workspace and iphone_receipt are reasonably distinct, but the meta-tool blurs most boundaries.
Four tools share a tidy domain_noun pattern (iphone_usb, iphone_screen, iphone_receipt, iphone_workspace), but the most powerful tool is named 'pinky' with no relation to the convention. The names are readable, yet the outlier breaks the predictable mapping an agent would otherwise rely on, and pinky hides many distinct actions behind sub-mode strings.
Five tools is a good, agent-friendly size for phone control rather than an explosion of per-action endpoints. However, the distribution is lopsided: pinky alone bundles session setup, tab navigation, tool discovery, batch dispatch, receipts, status and close, so the effective surface is much larger than the count suggests.
The core lifecycle is covered: connect/discover, observe native pixels, act via tap/swipe/type/key/launch, run shell and background jobs, and retrieve async results via receipts. Gaps are minor — no app inventory or install/uninstall, no explicit USB bridge teardown outside pinky close, and no device/session status tool separate from the monolith.
Maintenance
Related MCP Connectors
Let your AI agent control real iPhones: screenshots, tap, swipe, type and open apps.
Give an AI agent an iPhone to see, tap and type on over MCP. Free early access (Simulator).
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Drive real devices from your AI Coding tool. Embed a client SDK (Unity, Godot, Flutter, iOS/macOS, Android, React Native, Web) in your app, then capture screenshots, traverse the UI tree, inject taps and key events, and run automated test tasks on the physical device over a secure relay.
Related MCP Servers
- 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.40 npm10MIT
- AlicenseNot gradedqualityCmaintenanceA local MCP server that lets AI agents see and operate real iPhones, iPads, and Android devices from a Mac — screenshots, on-device OCR, taps, swipes, typing, app launching, and replayable skills over USB, Wi-Fi, or adb, with nothing installed on the phone. It gates anything that sends, posts, buys, or deletes behind human approval dialogs and private credential entry, backed by a kill switch, policy file, audit log, and a live-view web console.1GPL 3.0
- AlicenseNot gradedqualityAmaintenanceEnables AI agents and MCP clients to operate a real iPhone locally, completing app and device tasks without jailbreak or extra hardware.1,730AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to see and control a real iPhone over a USB cable on macOS. Provides screenshots, on-screen text reading, taps, swipes, typing, hardware buttons, app launching, and clipboard access without jailbreaking or installing anything on the phone.181 PyPI20MIT