ios-device-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| IOS_DEVICE_MCP_PORT | No | Driver port (default 22087). | 22087 |
| IOS_DEVICE_MCP_DEVICE | No | UDID or name of the device to use. If neither this nor a tool's `device` argument is set, the server only picks a device that is physically connected over USB (it never picks a Wi-Fi-only device implicitly). | |
| IOS_DEVICE_MCP_TEAM_ID | Yes | Required. Your Apple developer Team ID, used to sign the runner. Found in Xcode > Settings > Accounts (select the team) or on developer.apple.com under Membership. | |
| IOS_DEVICE_MCP_AUDIO_DEVICE | No | Mac mic name substring for recordings (default: first non-iPhone/iPad input). | |
| IOS_DEVICE_MCP_BUNDLE_PREFIX | No | Runner bundle ID prefix (default `dev.iosdevicemcp.<team>`). | dev.iosdevicemcp.<team> |
| IOS_DEVICE_MCP_RECORDINGS_DIR | No | Where WAV recordings go (default `.build/recordings`). | .build/recordings |
| IOS_DEVICE_MCP_ALLOW_DEVICE_REGISTRATION | No | Set to `1` to let the build register a new device in your team. | 0 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_devicesA | List physical iPhones/iPads known to this Mac, with connection state. The device tools use by default is marked. |
| select_deviceA | Choose which device later calls use when they don't pass "device". Lasts for this server session and is shared by every agent using it, so parallel agents on different devices should pass "device" instead. Omit device to clear the choice. |
| list_appsA | List the apps installed on the device, sorted by name, as |
| build_appA | Build an Xcode project or workspace scheme for the device and (by default) install it, replacing the installed copy. Pass project or workspace. Use it when starting from source; use install_app for an already built .app or .ipa, and launch_app afterwards, because this doesn't launch. Signing uses the project's own settings, and Xcode may update provisioning profiles. Returns the bundle ID and .app path, or the compiler errors (up to 15 lines). Can take minutes; the build is stopped after 20. |
| install_appA | Install an already built .app or .ipa from the Mac onto the device, and return its bundle ID. It must be signed for this device. Use build_app to build from Xcode sources and install in one step. Doesn't launch the app; call launch_app next. |
| uninstall_appA | Permanently remove an app and all its data from the device. Data can't be recovered, so pull_file anything needed first. To only close an app use terminate_app. |
| launch_appA | Launch an app in the foreground, restarting it if it is already running. With captureLogs, the app's console output (print/NSLog and os_log/Logger messages) is buffered for get_app_logs, keeping the last 5000 lines; starting a new capture discards the old buffer. The app must already be installed. Use open_url to enter through a deep link. |
| get_app_logsA | Read console output captured from an app started with launch_app captureLogs=true, oldest line first; it fails if no capture was started. Can't read logs from an app launched any other way. os_log/Logger lines look like |
| terminate_appA | Force-quit a running app by bundle ID, without removing it or its data. Any unsaved state in the app is lost. Use launch_app to restart an app (it quits the old copy itself), and press_button home to leave an app without quitting it. |
| start_driverA | Start the on-device XCUITest driver (UI tools start it automatically). The first run on a device builds the runner and iOS asks for the passcode to allow UI automation. |
| stop_driverA | Stop the XCUITest driver on the device. Rarely needed: it stops when the server exits, and the next tool that needs it starts it again. Succeeds even if no driver is running. |
| screenshotA | Take a JPEG screenshot of whatever the device is showing, and return it with its size. By default it is scaled to screen points, so image pixel coordinates equal tap coordinates; fullRes images are larger and their coordinates can't be passed to tap. Use it to check how a screen looks or to see content without accessibility labels; use describe_ui to read text or find elements to tap. |
| describe_uiA | Accessibility tree of the foreground app (plus any system alert), one element per line: Type "label" #identifier value=… @(centerX,centerY) WxH. Coordinates are in points and can be passed to tap. |
| tapA | Tap once at screen coordinates in points, as given by describe_ui or a default screenshot. Prefer tap_element when the target has a label or identifier, because it waits for the element and survives layout changes. Doesn't check that anything was hit; verify with describe_ui or screenshot. |
| tap_elementA | Find an element by text, identifier or type, wait for it to appear (5 s by default), and tap its center once. Prefer this to tap when the target is in the accessibility tree. Pass at least one of text, id or type. System alerts are searched before the app. Returns the element tapped, and the match count when there are several; fails if none appears in time. With scrollDirection it scrolls to find off-screen elements. |
| wait_for_elementA | Wait until an element appears, or disappears with gone=true, without tapping it. Use it after an action to wait for a screen or for a spinner to go away; use tap_element to wait and tap. Pass at least one of text, id or type. Returns the element's description and center, and fails when the timeout (5 s by default) passes. With scrollDirection it scrolls the screen while looking. |
| double_tapA | Double-tap at screen coordinates in points, as given by describe_ui or a default screenshot. Use it for gestures such as zooming or selecting a word; use tap for a single tap. Doesn't check that anything was hit. |
| long_pressA | Press and hold at screen coordinates in points, then release. Use it for context menus and other hold gestures; use swipe to drag. Doesn't check that anything was hit; verify with describe_ui or screenshot. |
| swipeA | Drag one finger in a straight line from one point to another (screen points), then release. Use it for precise gestures such as row actions, sliders or edge swipes; to scroll content use scroll, and to scroll until an element appears use tap_element with scrollDirection. A shorter duration makes a faster drag. Doesn't check the result; verify with describe_ui or screenshot. |
| scrollA | Scroll the content in a direction ("down" reveals content further down) with one swipe centered on the middle of the screen. Use it to browse a list or page; to scroll until a known element appears use tap_element or wait_for_element with scrollDirection, and for a drag between exact points use swipe. Doesn't report whether anything moved, and content may keep coasting; check with describe_ui or screenshot. |
| type_textA | Type into the focused text field, adding to what is already there. Tap the field first (tap_element), because this doesn't choose a field. Use \n for return, or submit to press it at the end; use deleteCount to remove existing text. It can also type into Siri's field when that has focus; to send Siri a phrase directly use siri. Doesn't check what the field ends up holding; verify with describe_ui. |
| press_buttonA | Press a hardware button once. "home" goes to the home screen without quitting the app (terminate_app quits it). "volumeUp" and "volumeDown" move one step; to reach a level use set_volume. "action" and "camera" run whatever the phone has them set to, and fail on a device without that button. Doesn't report what the press did; check with screenshot. |
| siriA | Send text to Siri as if it had been spoken, or tap something Siri is showing, then return the text Siri shows. Use tap for Siri's buttons, because a coordinate tap goes to the app behind Siri and dismisses it. Anything Siri can do runs for real, including App Intents. An app's first-run "Turn on shortcuts with Siri?" prompt fails with "Something went wrong" after text sent this way. Use Type to Siri for that once: double_tap the bottom edge of the screen, tap the "Ask Siri" field so the keyboard shows, type_text the phrase, then tap the send arrow at the field's right end by coordinates from a screenshot (return adds a line, and while the keyboard is up Siri reports its buttons below the screen, so tap: "Submit" hits a key). When the prompt shows, use tap: "Turn On". Later phrases work with text. |
| open_urlA | Open a web URL or deep link (custom scheme or universal link) on the device, in whichever app iOS picks for it. Use it to test deep links or jump to a screen; use launch_app to start an app by bundle ID. Returns once the request is sent and doesn't check that an app opened it; verify with describe_ui or screenshot. |
| set_volumeA | Set the device's media volume by pressing the volume buttons toward the level, verifying each step on the system volume indicator. iOS volume has 16 steps, so levels round to the nearest 1/16. Returns the final level. |
| record_audioA | Record the Mac microphone for a number of seconds (e.g. to capture what the device plays). Returns the WAV path. |
| list_app_filesA | List files in an app's data container (Documents, Library, tmp…). Works for development-signed apps only. |
| pull_fileA | Copy a file out of an app's data container to the Mac. Works for development-signed apps only; use list_app_files to find paths. Can wait for the file to appear, or to be written after the last launch_app. Returns the local path and size, plus the contents when it is a text file up to 64 KB. Fails if the file is missing when the wait ends. |
| set_orientationA | Set the device's orientation as the interface sees it, to test an app's rotated layouts. An app that doesn't support the orientation may not rotate, and this doesn't check; verify with screenshot. Coordinates change after a rotation, so call describe_ui again before tapping. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 29 tools
Each tool targets a distinct action: coordinate tap vs element tap, wait vs tap, swipe vs scroll, screenshot vs accessibility tree, and build/install/launch are all explicitly contrasted in their descriptions. The only near-overlaps (set_volume vs press_button volumeUp/volumeDown, tap vs tap_element) are proactively resolved by the descriptions, which tell the agent which to prefer and why.
The set is consistently snake_case and almost entirely verb_noun (list_apps, install_app, get_app_logs, press_button, set_orientation). Minor deviations are bare gesture verbs (tap, swipe, scroll, double_tap) and the noun-style 'siri', but these read naturally as a coherent convention.
29 tools is heavy for a single server and pushes past the comfortable range, spanning app lifecycle, UI interaction, files, logs, device selection, and driver control. Most tools do earn their place given the breadth of iOS automation, but the surface would benefit from consolidation (e.g. gestures or driver controls).
Coverage is strong across the full app lifecycle (build/install/launch/terminate/uninstall), UI inspection and interaction, screenshots, files, logs, orientation, and device management with no obvious dead ends. Gaps remain for push notifications, permission granting, multi-touch gestures (pinch/zoom), and video recording, which agents must work around.