I

Iphone MCP

by DamienDrash · io.github.DamienDrash/iphone-mcp

Lets AI agents see and control a real iPhone over USB or Wi-Fi through WebDriverAgent: screenshots in tap coordinates, UI tree, taps, swipes, typing, buttons, apps and URLs. Keeps the screen awake during sessions; runs on macOS, Linux and Windows.

pypi Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-damiendrash-iphone-mcp": {
      "command": "uvx",
      "args": [
        "iphone-mcp"
      ],
      "env": {
        "IPHONE_MCP_UDID": "<VALUE>",
        "IPHONE_MCP_MODE": "<VALUE>",
        "IPHONE_MCP_WDA_URL": "<VALUE>",
        "IPHONE_MCP_KEEP_AWAKE": "<VALUE>",
        "IPHONE_MCP_AUTO_RECOVER": "<VALUE>",
        "IPHONE_MCP_STOP_ON_EXIT": "<VALUE>",
        "IPHONE_MCP_TEAM_ID": "<VALUE>",
        "IPHONE_MCP_WDA_REF": "<VALUE>",
        "IPHONE_MCP_LAUNCHER": "<VALUE>",
        "IPHONE_MCP_BUNDLE_ID": "<VALUE>",
        "IPHONE_MCP_RUNNER_BUNDLE_ID": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-damiendrash-iphone-mcp": {
      "command": "uvx",
      "args": [
        "iphone-mcp"
      ],
      "env": {
        "IPHONE_MCP_UDID": "<VALUE>",
        "IPHONE_MCP_MODE": "<VALUE>",
        "IPHONE_MCP_WDA_URL": "<VALUE>",
        "IPHONE_MCP_KEEP_AWAKE": "<VALUE>",
        "IPHONE_MCP_AUTO_RECOVER": "<VALUE>",
        "IPHONE_MCP_STOP_ON_EXIT": "<VALUE>",
        "IPHONE_MCP_TEAM_ID": "<VALUE>",
        "IPHONE_MCP_WDA_REF": "<VALUE>",
        "IPHONE_MCP_LAUNCHER": "<VALUE>",
        "IPHONE_MCP_BUNDLE_ID": "<VALUE>",
        "IPHONE_MCP_RUNNER_BUNDLE_ID": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-damiendrash-iphone-mcp": {
      "command": "uvx",
      "args": [
        "iphone-mcp"
      ],
      "env": {
        "IPHONE_MCP_UDID": "<VALUE>",
        "IPHONE_MCP_MODE": "<VALUE>",
        "IPHONE_MCP_WDA_URL": "<VALUE>",
        "IPHONE_MCP_KEEP_AWAKE": "<VALUE>",
        "IPHONE_MCP_AUTO_RECOVER": "<VALUE>",
        "IPHONE_MCP_STOP_ON_EXIT": "<VALUE>",
        "IPHONE_MCP_TEAM_ID": "<VALUE>",
        "IPHONE_MCP_WDA_REF": "<VALUE>",
        "IPHONE_MCP_LAUNCHER": "<VALUE>",
        "IPHONE_MCP_BUNDLE_ID": "<VALUE>",
        "IPHONE_MCP_RUNNER_BUNDLE_ID": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-damiendrash-iphone-mcp": {
      "command": "uvx",
      "args": [
        "iphone-mcp"
      ],
      "env": {
        "IPHONE_MCP_UDID": "<VALUE>",
        "IPHONE_MCP_MODE": "<VALUE>",
        "IPHONE_MCP_WDA_URL": "<VALUE>",
        "IPHONE_MCP_KEEP_AWAKE": "<VALUE>",
        "IPHONE_MCP_AUTO_RECOVER": "<VALUE>",
        "IPHONE_MCP_STOP_ON_EXIT": "<VALUE>",
        "IPHONE_MCP_TEAM_ID": "<VALUE>",
        "IPHONE_MCP_WDA_REF": "<VALUE>",
        "IPHONE_MCP_LAUNCHER": "<VALUE>",
        "IPHONE_MCP_BUNDLE_ID": "<VALUE>",
        "IPHONE_MCP_RUNNER_BUNDLE_ID": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-damiendrash-iphone-mcp": {
      "command": "uvx",
      "args": [
        "iphone-mcp"
      ],
      "env": {
        "IPHONE_MCP_UDID": "<VALUE>",
        "IPHONE_MCP_MODE": "<VALUE>",
        "IPHONE_MCP_WDA_URL": "<VALUE>",
        "IPHONE_MCP_KEEP_AWAKE": "<VALUE>",
        "IPHONE_MCP_AUTO_RECOVER": "<VALUE>",
        "IPHONE_MCP_STOP_ON_EXIT": "<VALUE>",
        "IPHONE_MCP_TEAM_ID": "<VALUE>",
        "IPHONE_MCP_WDA_REF": "<VALUE>",
        "IPHONE_MCP_LAUNCHER": "<VALUE>",
        "IPHONE_MCP_BUNDLE_ID": "<VALUE>",
        "IPHONE_MCP_RUNNER_BUNDLE_ID": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-damiendrash-iphone-mcp": {
      "command": "uvx",
      "args": [
        "iphone-mcp"
      ],
      "env": {
        "IPHONE_MCP_UDID": "<VALUE>",
        "IPHONE_MCP_MODE": "<VALUE>",
        "IPHONE_MCP_WDA_URL": "<VALUE>",
        "IPHONE_MCP_KEEP_AWAKE": "<VALUE>",
        "IPHONE_MCP_AUTO_RECOVER": "<VALUE>",
        "IPHONE_MCP_STOP_ON_EXIT": "<VALUE>",
        "IPHONE_MCP_TEAM_ID": "<VALUE>",
        "IPHONE_MCP_WDA_REF": "<VALUE>",
        "IPHONE_MCP_LAUNCHER": "<VALUE>",
        "IPHONE_MCP_BUNDLE_ID": "<VALUE>",
        "IPHONE_MCP_RUNNER_BUNDLE_ID": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
IPHONE_MCP_UDID No Pick a device when several iPhones are connected.
IPHONE_MCP_MODE No Connection mode: auto (default), usb or wifi.
IPHONE_MCP_WDA_URL No Fixed WebDriverAgent address, e.g. http://192.168.1.42:8100.
IPHONE_MCP_KEEP_AWAKE No 1 (default) keeps the screen awake while connected, 0 turns it off.
IPHONE_MCP_AUTO_RECOVER No Restart WebDriverAgent and retry once after a crash or lost connection (1 = default, 0 = off)
IPHONE_MCP_STOP_ON_EXIT No Stop WebDriverAgent when the last iphone-mcp server exits (1 = default, 0 = keep running)
IPHONE_MCP_TEAM_ID No Signing team ID for setup.
IPHONE_MCP_WDA_REF No WebDriverAgent release to build or download (default: a tested one).
IPHONE_MCP_LAUNCHER No Launcher to use: xcodebuild (default on macOS) or pymobiledevice3.
IPHONE_MCP_BUNDLE_ID No Bundle ID for setup.
IPHONE_MCP_RUNNER_BUNDLE_ID No Bundle ID of an installed WebDriverAgent runner for no-Xcode launch.

Similar servers