M

MCP Android

by dockndevai · io.github.dockndevai/mcp-android

Enables Claude to control an Android phone over ADB by viewing screenshots and UI hierarchy and performing taps, typing, key presses, app launches, alarms/timers, and notification reads, with safe-by-default access modes and gated destructive actions.

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-dockndevai-mcp-android": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-android"
      ],
      "env": {
        "ANDROID_MODE": "read-only",
        "ANDROID_ADB_PATH": "<VALUE>",
        "ANDROID_SERIAL": "<VALUE>",
        "ANDROID_TIMEOUT_MS": "<VALUE>",
        "ANDROID_PACKAGE_ALLOWLIST": "*",
        "ANDROID_PROTECTED_PACKAGES": "settings, systemui, gms",
        "ANDROID_ALLOW_INSTALL": "false",
        "ANDROID_ALLOW_SHELL": "false",
        "ANDROID_DRY_RUN": "false",
        "ANDROID_AUDIT_LOG": "true"
      }
    }
  }
}

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-dockndevai-mcp-android": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-android"
      ],
      "env": {
        "ANDROID_MODE": "read-only",
        "ANDROID_ADB_PATH": "<VALUE>",
        "ANDROID_SERIAL": "<VALUE>",
        "ANDROID_TIMEOUT_MS": "<VALUE>",
        "ANDROID_PACKAGE_ALLOWLIST": "*",
        "ANDROID_PROTECTED_PACKAGES": "settings, systemui, gms",
        "ANDROID_ALLOW_INSTALL": "false",
        "ANDROID_ALLOW_SHELL": "false",
        "ANDROID_DRY_RUN": "false",
        "ANDROID_AUDIT_LOG": "true"
      }
    }
  }
}

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-dockndevai-mcp-android": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-android"
      ],
      "env": {
        "ANDROID_MODE": "read-only",
        "ANDROID_ADB_PATH": "<VALUE>",
        "ANDROID_SERIAL": "<VALUE>",
        "ANDROID_TIMEOUT_MS": "<VALUE>",
        "ANDROID_PACKAGE_ALLOWLIST": "*",
        "ANDROID_PROTECTED_PACKAGES": "settings, systemui, gms",
        "ANDROID_ALLOW_INSTALL": "false",
        "ANDROID_ALLOW_SHELL": "false",
        "ANDROID_DRY_RUN": "false",
        "ANDROID_AUDIT_LOG": "true"
      }
    }
  }
}

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-dockndevai-mcp-android": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-android"
      ],
      "env": {
        "ANDROID_MODE": "read-only",
        "ANDROID_ADB_PATH": "<VALUE>",
        "ANDROID_SERIAL": "<VALUE>",
        "ANDROID_TIMEOUT_MS": "<VALUE>",
        "ANDROID_PACKAGE_ALLOWLIST": "*",
        "ANDROID_PROTECTED_PACKAGES": "settings, systemui, gms",
        "ANDROID_ALLOW_INSTALL": "false",
        "ANDROID_ALLOW_SHELL": "false",
        "ANDROID_DRY_RUN": "false",
        "ANDROID_AUDIT_LOG": "true"
      }
    }
  }
}

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-dockndevai-mcp-android": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-android"
      ],
      "env": {
        "ANDROID_MODE": "read-only",
        "ANDROID_ADB_PATH": "<VALUE>",
        "ANDROID_SERIAL": "<VALUE>",
        "ANDROID_TIMEOUT_MS": "<VALUE>",
        "ANDROID_PACKAGE_ALLOWLIST": "*",
        "ANDROID_PROTECTED_PACKAGES": "settings, systemui, gms",
        "ANDROID_ALLOW_INSTALL": "false",
        "ANDROID_ALLOW_SHELL": "false",
        "ANDROID_DRY_RUN": "false",
        "ANDROID_AUDIT_LOG": "true"
      }
    }
  }
}

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-dockndevai-mcp-android": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-android"
      ],
      "env": {
        "ANDROID_MODE": "read-only",
        "ANDROID_ADB_PATH": "<VALUE>",
        "ANDROID_SERIAL": "<VALUE>",
        "ANDROID_TIMEOUT_MS": "<VALUE>",
        "ANDROID_PACKAGE_ALLOWLIST": "*",
        "ANDROID_PROTECTED_PACKAGES": "settings, systemui, gms",
        "ANDROID_ALLOW_INSTALL": "false",
        "ANDROID_ALLOW_SHELL": "false",
        "ANDROID_DRY_RUN": "false",
        "ANDROID_AUDIT_LOG": "true"
      }
    }
  }
}

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
ANDROID_MODE No Access mode determining what the server can do (e.g. read-only, read-write, admin). Default: read-only
ANDROID_ADB_PATH No Path to the adb binary (default: adb on PATH).
ANDROID_SERIAL No Target device serial from `adb devices`. Empty = the only connected device.
ANDROID_TIMEOUT_MS No Per-command adb timeout in milliseconds.
ANDROID_PACKAGE_ALLOWLIST No Which packages are in scope. Defaults to all packages. Default: *
ANDROID_PROTECTED_PACKAGES No Protected packages that are never uninstalled or cleared. Defaults to settings, systemui, gms. Default: settings, systemui, gms
ANDROID_ALLOW_INSTALL No Allow install/uninstall/clear operations. Default is false. Default: false
ANDROID_ALLOW_SHELL No Allow raw `adb shell` usage (run_shell is not registered otherwise). Default is false. Default: false
ANDROID_DRY_RUN No Preview operations without touching the device. Default is false. Default: false
ANDROID_AUDIT_LOG No Enable audit logging to stderr. Default is true. Default: true

Similar servers