mcp-android

v0.2.0
io.github.dockndevai/mcp-android Checked 2 days ago Published 11 days ago

Control Android devices over ADB from AI agents — safe-by-default, read-only by default, audited.

Values you need

VariableWhat it is
ANDROID_MODEoptional Access mode: read-only | read-write | admin.
ANDROID_ADB_PATHoptional Path to the adb binary (default: adb on PATH).
ANDROID_SERIALoptional Target device serial from `adb devices`. Empty = the only connected device.
ANDROID_TIMEOUT_MSoptional Per-command adb timeout in milliseconds.
ANDROID_PACKAGE_ALLOWLISToptional Comma-separated package allowlist for launch/uninstall/clear. Empty = all.
ANDROID_PROTECTED_PACKAGESoptional Packages that can be launched/inspected but never uninstalled or data-cleared.
ANDROID_ALLOW_INSTALLoptional Enable install_apk / uninstall_app / clear_app_data (requires admin mode too).
ANDROID_ALLOW_SHELLoptional Enable run_shell (arbitrary adb shell; requires admin mode too).
ANDROID_DRY_RUNoptional Validate + log write/admin actions without executing them on the device.
ANDROID_AUDIT_LOGoptional Emit a JSON audit line to stderr per guarded operation (default true).

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-android -- npx -y @dockndevai/mcp-android@0.2.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-android": {
      "args": [
        "-y",
        "@dockndevai/mcp-android@0.2.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-android": {
      "args": [
        "-y",
        "@dockndevai/mcp-android@0.2.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mcp-android": {
      "args": [
        "-y",
        "@dockndevai/mcp-android@0.2.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-android]
command = "npx"
args = ["-y", "@dockndevai/mcp-android@0.2.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: list_devices, device_info, screenshot, ui_dump, current_app, list_apps, get_notifications.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json