ios-simulator-mcp

v2.2.1
ios-simulator-mcp Checked 1 hour ago Published 21 days ago

MCP 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

ParameterTypeDescription
udidstringUdid of target, can also be set with the IDB_UDID env var

ui_tap

Tap on the screen in the iOS Simulator

ParameterTypeDescription
x *numberThe x-coordinate
y *numberThe x-coordinate
durationstringPress duration
udidstringUdid of target, can also be set with the IDB_UDID env var

ui_type

Input text into the iOS Simulator

ParameterTypeDescription
text *stringText to input
methodstring"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…
replacebooleanPaste only: clear the focused field first, e.g. after "type" produced wrong characters
udidstringUdid of target, can also be set with the IDB_UDID env var

ui_swipe

Swipe on the screen in the iOS Simulator

ParameterTypeDescription
x_end *numberThe ending x-coordinate
x_start *numberThe starting x-coordinate
y_end *numberThe ending y-coordinate
y_start *numberThe starting y-coordinate
deltanumberThe size of each step in the swipe (default is 1)
durationstringSwipe duration in seconds (e.g., 0.1)
udidstringUdid 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

ParameterTypeDescription
x *numberThe x-coordinate
y *numberThe y-coordinate
udidstringUdid 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

ParameterTypeDescription
search *arrayArray of search strings. An element matches if ANY string matches against its AXLabel or AXUniqueId
caseSensitivebooleanWhether search matching is case-sensitive (default: false)
matchModestringMatch mode for search strings: 'substring' (default) or 'exact'
typestringFilter by element type (e.g. 'Button', 'StaticText', 'Group'). Case-insensitive exact match
udidstringUdid 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

ParameterTypeDescription
udidstringUdid of target, can also be set with the IDB_UDID env var

screenshot

Takes a screenshot of the iOS Simulator

ParameterTypeDescription
output_path *stringFile 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.
displaystringDisplay to capture (internal or external). Default depends on device type.
maskstringFor non-rectangular displays, handle the mask by policy (ignored, alpha, or black)
typestringImage format (png, tiff, bmp, gif, or jpeg). Default is png.
udidstringUdid of target, can also be set with the IDB_UDID env var

record_video

Records a video of the iOS Simulator using simctl directly

ParameterTypeDescription
codecstringSpecifies the codec type: "h264" or "hevc". Default is "hevc".
displaystringDisplay to capture: "internal" or "external". Default depends on device type.
forcebooleanForce the output file to be written to, even if the file already exists.
maskstringFor non-rectangular displays, handle the mask by policy: "ignored", "alpha", or "black".
output_pathstringOptional 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…
udidstringUdid 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

ParameterTypeDescription
app_path *stringPath to the app bundle (.app directory or .ipa file) to install
udidstringUdid of target, can also be set with the IDB_UDID env var

launch_app

Launches an app on the iOS Simulator by bundle identifier

ParameterTypeDescription
bundle_id *stringBundle identifier of the app to launch (e.g., com.apple.mobilesafari)
envobjectEnvironment variables to pass to simctl launch
terminate_runningbooleanTerminate the app if it is already running before launching
udidstringUdid 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

ParameterTypeDescription
bundle_id *stringBundle identifier of the app to terminate (e.g., com.apple.mobilesafari)
udidstringUdid 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

ParameterTypeDescription
url *stringThe URL or deep link to open (e.g., https://example.com or myapp://screen/detail)
udidstringUdid 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

ParameterTypeDescription
udidstringUdid of target, can also be set with the IDB_UDID env var