P

Phonedriver

by hridaya423 · io.github.hridaya423/phonedriver

An MCP server that lets AI agents read Android and iOS screens as concise text and tap, type, and navigate real devices, pausing for human approval before sensitive actions like payments.

npm 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-hridaya423-phonedriver": {
      "command": "npx",
      "args": [
        "-y",
        "phonedriver"
      ],
      "env": {
        "PHONEDRIVER_ASK": "<VALUE>",
        "PHONEDRIVER_GUARD": "<VALUE>",
        "PHONEDRIVER_DEVICE": "<VALUE>",
        "PHONEDRIVER_DISPLAY": "<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-hridaya423-phonedriver": {
      "command": "npx",
      "args": [
        "-y",
        "phonedriver"
      ],
      "env": {
        "PHONEDRIVER_ASK": "<VALUE>",
        "PHONEDRIVER_GUARD": "<VALUE>",
        "PHONEDRIVER_DEVICE": "<VALUE>",
        "PHONEDRIVER_DISPLAY": "<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-hridaya423-phonedriver": {
      "command": "npx",
      "args": [
        "-y",
        "phonedriver"
      ],
      "env": {
        "PHONEDRIVER_ASK": "<VALUE>",
        "PHONEDRIVER_GUARD": "<VALUE>",
        "PHONEDRIVER_DEVICE": "<VALUE>",
        "PHONEDRIVER_DISPLAY": "<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-hridaya423-phonedriver": {
      "command": "npx",
      "args": [
        "-y",
        "phonedriver"
      ],
      "env": {
        "PHONEDRIVER_ASK": "<VALUE>",
        "PHONEDRIVER_GUARD": "<VALUE>",
        "PHONEDRIVER_DEVICE": "<VALUE>",
        "PHONEDRIVER_DISPLAY": "<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-hridaya423-phonedriver": {
      "command": "npx",
      "args": [
        "-y",
        "phonedriver"
      ],
      "env": {
        "PHONEDRIVER_ASK": "<VALUE>",
        "PHONEDRIVER_GUARD": "<VALUE>",
        "PHONEDRIVER_DEVICE": "<VALUE>",
        "PHONEDRIVER_DISPLAY": "<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-hridaya423-phonedriver": {
      "command": "npx",
      "args": [
        "-y",
        "phonedriver"
      ],
      "env": {
        "PHONEDRIVER_ASK": "<VALUE>",
        "PHONEDRIVER_GUARD": "<VALUE>",
        "PHONEDRIVER_DEVICE": "<VALUE>",
        "PHONEDRIVER_DISPLAY": "<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
PHONEDRIVER_ASK No Comma-separated list of extra tap categories to be asked about: any of "send" (Send, Reply, Post, Share), "delete" (Delete, Remove, Clear all) and "install" (Install, Uninstall). By default only payments and deleting an account are asked about, e.g. PHONEDRIVER_ASK=send,delete.
PHONEDRIVER_GUARD No Set to "off" to turn off the approval check that holds taps on sensitive buttons (payments, deleting an account, and anything added via PHONEDRIVER_ASK) and asks you first.
PHONEDRIVER_DEVICE No Device id to use when more than one device is connected, e.g. "android:emulator-5554". `phonedriver devices` lists the ids.
PHONEDRIVER_DISPLAY No Set to "hidden" to have the agent work on a hidden second screen on Android 13 and later, so your own screen stays yours (equivalent to passing --display hidden to the CLI).

Similar servers