ios-simulator-mcp
v2.2.1MCP server for interacting with the iOS simulator
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_booted_sim_id
Get the ID of the currently booted iOS simulator
open_simulator
Opens the iOS Simulator application
ui_describe_all
Describes accessibility information for the entire screen in the iOS Simulator
| Parameter | Type | Description |
|---|---|---|
udid | string | Udid of target, can also be set with the IDB_UDID env var |
ui_tap
Tap on the screen in the iOS Simulator
| Parameter | Type | Description |
|---|---|---|
x * | number | The x-coordinate |
y * | number | The x-coordinate |
duration | string | Press duration |
udid | string | Udid of target, can also be set with the IDB_UDID env var |
ui_type
Input text into the iOS Simulator
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to input |
method | string | "type" (default): presses keys as on a US keyboard; printable ASCII only. "paste": use when the keyboard layout is not US (e.g. AZERTY, where "type" types wrong characters) or the text is non-ASCII; p… |
replace | boolean | Paste only: clear the focused field first, e.g. after "type" produced wrong characters |
udid | string | Udid of target, can also be set with the IDB_UDID env var |
ui_swipe
Swipe on the screen in the iOS Simulator
| Parameter | Type | Description |
|---|---|---|
x_end * | number | The ending x-coordinate |
x_start * | number | The starting x-coordinate |
y_end * | number | The ending y-coordinate |
y_start * | number | The starting y-coordinate |
delta | number | The size of each step in the swipe (default is 1) |
duration | string | Swipe duration in seconds (e.g., 0.1) |
udid | string | Udid of target, can also be set with the IDB_UDID env var |
ui_describe_point
Returns the accessibility element at given co-ordinates on the iOS Simulator's screen
| Parameter | Type | Description |
|---|---|---|
x * | number | The x-coordinate |
y * | number | The y-coordinate |
udid | string | Udid of target, can also be set with the IDB_UDID env var |
ui_find_element
Searches the accessibility tree and returns elements matching the given criteria
| Parameter | Type | Description |
|---|---|---|
search * | array | Array of search strings. An element matches if ANY string matches against its AXLabel or AXUniqueId |
caseSensitive | boolean | Whether search matching is case-sensitive (default: false) |
matchMode | string | Match mode for search strings: 'substring' (default) or 'exact' |
type | string | Filter by element type (e.g. 'Button', 'StaticText', 'Group'). Case-insensitive exact match |
udid | string | Udid of target, can also be set with the IDB_UDID env var |
ui_view
Get the image content of a compressed screenshot of the current simulator view
| Parameter | Type | Description |
|---|---|---|
udid | string | Udid of target, can also be set with the IDB_UDID env var |
screenshot
Takes a screenshot of the iOS Simulator
| Parameter | Type | Description |
|---|---|---|
output_path * | string | File path where the screenshot will be saved. If relative, it uses the directory specified by the `IOS_SIMULATOR_MCP_DEFAULT_OUTPUT_DIR` env var, or `~/Downloads` if not set. |
display | string | Display to capture (internal or external). Default depends on device type. |
mask | string | For non-rectangular displays, handle the mask by policy (ignored, alpha, or black) |
type | string | Image format (png, tiff, bmp, gif, or jpeg). Default is png. |
udid | string | Udid of target, can also be set with the IDB_UDID env var |
record_video
Records a video of the iOS Simulator using simctl directly
| Parameter | Type | Description |
|---|---|---|
codec | string | Specifies the codec type: "h264" or "hevc". Default is "hevc". |
display | string | Display to capture: "internal" or "external". Default depends on device type. |
force | boolean | Force the output file to be written to, even if the file already exists. |
mask | string | For non-rectangular displays, handle the mask by policy: "ignored", "alpha", or "black". |
output_path | string | Optional output path. If not provided, a default name will be used. The file will be saved in the directory specified by `IOS_SIMULATOR_MCP_DEFAULT_OUTPUT_DIR` or in `~/Downloads` if the environment v… |
udid | string | Udid of target, can also be set with the IDB_UDID env var |
stop_recording
Stops the simulator video recording using killall
install_app
Installs an app bundle (.app or .ipa) on the iOS Simulator
| Parameter | Type | Description |
|---|---|---|
app_path * | string | Path to the app bundle (.app directory or .ipa file) to install |
udid | string | Udid of target, can also be set with the IDB_UDID env var |
launch_app
Launches an app on the iOS Simulator by bundle identifier
| Parameter | Type | Description |
|---|---|---|
bundle_id * | string | Bundle identifier of the app to launch (e.g., com.apple.mobilesafari) |
env | object | Environment variables to pass to simctl launch |
terminate_running | boolean | Terminate the app if it is already running before launching |
udid | string | Udid of target, can also be set with the IDB_UDID env var |
terminate_app
Terminates a running app on the iOS Simulator by bundle identifier
| Parameter | Type | Description |
|---|---|---|
bundle_id * | string | Bundle identifier of the app to terminate (e.g., com.apple.mobilesafari) |
udid | string | Udid of target, can also be set with the IDB_UDID env var |
open_url
Opens a URL in the iOS Simulator, useful for testing deep links and universal links
| Parameter | Type | Description |
|---|---|---|
url * | string | The URL or deep link to open (e.g., https://example.com or myapp://screen/detail) |
udid | string | Udid of target, can also be set with the IDB_UDID env var |
list_apps
Lists all installed apps on the iOS Simulator with their bundle identifiers and display names
| Parameter | Type | Description |
|---|---|---|
udid | string | Udid of target, can also be set with the IDB_UDID env var |