mcp-android
v0.2.0Control Android devices over ADB from AI agents — safe-by-default, read-only by default, audited.
Values you need
| Variable | What it is | |
|---|---|---|
ANDROID_MODE | optional | Access mode: read-only | read-write | admin. |
ANDROID_ADB_PATH | optional | Path to the adb binary (default: adb on PATH). |
ANDROID_SERIAL | optional | Target device serial from `adb devices`. Empty = the only connected device. |
ANDROID_TIMEOUT_MS | optional | Per-command adb timeout in milliseconds. |
ANDROID_PACKAGE_ALLOWLIST | optional | Comma-separated package allowlist for launch/uninstall/clear. Empty = all. |
ANDROID_PROTECTED_PACKAGES | optional | Packages that can be launched/inspected but never uninstalled or data-cleared. |
ANDROID_ALLOW_INSTALL | optional | Enable install_apk / uninstall_app / clear_app_data (requires admin mode too). |
ANDROID_ALLOW_SHELL | optional | Enable run_shell (arbitrary adb shell; requires admin mode too). |
ANDROID_DRY_RUN | optional | Validate + log write/admin actions without executing them on the device. |
ANDROID_AUDIT_LOG | optional | 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.0Add 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
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_devices, device_info, screenshot, ui_dump, current_app, list_apps, get_notifications.
- 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