iPhone MCP
v1.3.0See and control a real iPhone over USB or Wi-Fi: screenshots, UI tree, taps, swipes, typing, apps.
Values you need
| Variable | What it is | |
|---|---|---|
IPHONE_MCP_UDID | optional | UDID of the iPhone to use when several are connected |
IPHONE_MCP_MODE | optional | Connection mode: auto (default), usb or wifi |
IPHONE_MCP_WDA_URL | optional | Fixed WebDriverAgent URL, e.g. http://192.168.1.42:8100 |
IPHONE_MCP_KEEP_AWAKE | optional | Keep the screen from auto-locking while connected (1 = default, 0 = off) |
IPHONE_MCP_AUTO_RECOVER | optional | Restart WebDriverAgent and retry once after a crash or lost connection (1 = default, 0 = off) |
IPHONE_MCP_STOP_ON_EXIT | optional | Stop WebDriverAgent when the last iphone-mcp server exits (1 = default, 0 = keep running) |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add iphone-mcp -- uvx iphone-mcp==1.3.0Add to
claude_desktop_config.json{
"mcpServers": {
"iphone-mcp": {
"args": [
"iphone-mcp==1.3.0"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"iphone-mcp": {
"args": [
"iphone-mcp==1.3.0"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"iphone-mcp": {
"args": [
"iphone-mcp==1.3.0"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.iphone-mcp]
command = "uvx"
args = ["iphone-mcp==1.3.0"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: iphone_status, iphone_start_agent, iphone_stop_agent, iphone_list_devices, iphone_select_device, iphone_keep_awake, iphone_screenshot, iphone_ui_tree, ….
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json