iPhone MCP

v1.3.0
io.github.DamienDrash/iphone-mcp Checked 42 minutes ago Published 1 hour ago

See and control a real iPhone over USB or Wi-Fi: screenshots, UI tree, taps, swipes, typing, apps.

Values you need

VariableWhat it is
IPHONE_MCP_UDIDoptional UDID of the iPhone to use when several are connected
IPHONE_MCP_MODEoptional Connection mode: auto (default), usb or wifi
IPHONE_MCP_WDA_URLoptional Fixed WebDriverAgent URL, e.g. http://192.168.1.42:8100
IPHONE_MCP_KEEP_AWAKEoptional Keep the screen from auto-locking while connected (1 = default, 0 = off)
IPHONE_MCP_AUTO_RECOVERoptional Restart WebDriverAgent and retry once after a crash or lost connection (1 = default, 0 = off)
IPHONE_MCP_STOP_ON_EXIToptional 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.0
Add 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

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. 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, ….
  4. 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