Make iPhone accessible to AI agents.
Xcode (15+)
Apple ID
iPhone (iOS 17+)
Configure your iPhone
- Enable Developer Mode: open Settings > Privacy & Security > Developer Mode. You can check Enabling Developer Mode on a device for more information.
- Enable Automation: open Settings -> Developer -> Enable UI Automation
Install WDA
- Clone the WebDriverAgent repository and open it in Xcode
- Select the WebDriverAgentRunner scheme
- Select the scheme as Product -> Scheme -> WebDriverAgentRunner (or WebDriverAgentRunner_tvOS for tvOS)
- Select your device in Product -> Destination
- (Optional) If your account is a regular (non-paid) developer account, you may need to refer to this document: Basic Manual Configuration
- Select Product -> Test to build and install the WDA app
You should now see "Automation Running" on your iPhone screen
Configure MCP Server
-
Open Xcode, select Window -> Devices and Simulators, select your target device in the side panel, and you will see the "Identifier" of the device. Fill this value into the config below.
-
Install the iPhoneUSE MCP server with your client.
{
"mcpServers": {
"iPhone-use": {
"command": "npx",
"args": [
"-y",
"@iphone-use/mcp"
],
"env": {
"TARGET_IPHONE_UDID": ... // Replace with the Identifier of the target device
}
}
}
}We would like to thank the following projects:
xcuitest-driver Source Code
xcuitest-driver Document
