mcp-android
One line: This is the read-only configuration of the mcp-android server, letting you observe and inspect an Android phone connected over ADB without changing anything on it.
List devices — see connected ADB devices and their state.
Device info — model, manufacturer, Android version, and screen size.
Screenshot — capture the current screen as a PNG to see what's displayed.
UI hierarchy (
ui_dump) — dump uiautomator XML with element text and bounds to locate tap coordinates.Current app — identify the foreground package/activity.
List apps — enumerate installed packages (third-party only by default;
includeSystemfor system packages).Read notifications — best-effort listing of current notifications (package + title/text).
Note: tapping, typing, launching apps, alarms/timers, and install/shell actions are not exposed here — those require read-write or admin mode (ANDROID_MODE), plus ANDROID_ALLOW_INSTALL / ANDROID_ALLOW_SHELL for the admin tools.
Controls an Android phone over ADB, providing tools to take screenshots, inspect the UI hierarchy, tap, swipe, type text, press keys, launch apps, open URLs, set alarms/timers, and read notifications. Admin capabilities include installing APKs, uninstalling apps, clearing app data, and running shell commands, subject to access controls.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-android set an alarm for 6:30am labeled Gym"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-android
A Model Context Protocol server to control an Android phone over ADB — the phone equivalent of the Mac-control servers. Claude can see the screen (screenshots + UI hierarchy) and tap, type, press keys, launch apps, set alarms/timers, and read notifications. Safe-by-default, with the suite's access-mode + flag model.
Runs on your computer and drives a phone connected by USB or wireless debugging (great for the Z Fold 7). It is not installed on the phone and does not need root.
iOS? A stock iPhone can't be controlled this way — Apple's sandbox forbids cross-app/system automation. See the separate mcp-ios repo for the realistic (Appium/WebDriverAgent over USB from a Mac) approach.
Quickstart
brew install android-platform-tools # provides adb
# On the phone: Settings → Developer options → enable USB (or Wireless) debugging, then authorize this computer
adb devices # confirm your device shows "device"Run it straight from npm — no clone or build needed:
npx -y @dockndevai/mcp-androidOr add it to Claude Code in one line (start read-only):
claude mcp add android -e ANDROID_MODE="read-only" -- npx -y @dockndevai/mcp-androidSee docs/CLIENTS.md for Claude Desktop, Cursor, Codex, Windsurf, and VS Code configs.
Related MCP server: Termux MCP Server
Setup from source
brew install android-platform-tools # provides adb
adb devices # confirm your device shows "device"
npm install && npm run buildTools
Read (read-only+): list_devices, device_info, screenshot, ui_dump, current_app, list_apps, get_notifications
Write (read-write+): tap, swipe, input_text, press_key, launch_app, open_url, set_alarm, set_timer
Admin (admin): install_apk, uninstall_app, clear_app_data (need ANDROID_ALLOW_INSTALL), run_shell (needs ANDROID_ALLOW_SHELL; not registered otherwise)
The typical loop for driving the UI: screenshot → ui_dump (find bounds) → tap/input_text.
Security model
Concern | Flag | Default |
What it can do |
|
|
Which packages in scope |
| (all) |
Protected packages (never uninstall/clear) |
| settings, systemui, gms |
Allow install/uninstall/clear |
|
|
Allow raw |
|
|
Extra |
| (none) |
Interactive confirmation (destructive ops) | MCP elicitation (client-driven) | (on when the client supports it) |
Require a human |
|
|
Preview without touching device |
|
|
Audit log (stderr) |
|
|
When the connected client supports MCP elicitation, destructive tools (uninstall_app, clear_app_data, install_apk, run_shell) pause and ask the human to approve the exact action before it runs — the model can't approve on your behalf. The prompt shows the tool, the exact (secret-redacted) arguments and a fingerprint; a version token for the target is read before the prompt and again after you answer, and the action is refused if it changed; a prompt nobody answers is a refusal. When the client can't elicit, the access-mode + flag gates above are the control — unless ANDROID_REQUIRE_HUMAN_APPROVAL=true, in which case destructive ops are refused instead.
Shell injection. adb shell joins its arguments into one string that the device's shell parses, so this server single-quotes every argument that reaches the device shell (one shared helper, src/adb/shell.ts) and passes adb exactly one string: text for input_text, URLs for open_url and alarm/timer messages are always literal data, and a read-write agent cannot use them to run commands or get around the ANDROID_ALLOW_SHELL gate (run_shell, which runs your string as-is by design, is the only exception). open_url additionally refuses any URL scheme other than http, https, tel, mailto, geo and market (plus ANDROID_EXTRA_URL_SCHEMES). input_text encodes spaces as %s and types a literal %s in two steps, because Android's input text would otherwise turn it into a space. See SECURITY.md.
Every tool also advertises MCP tool annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) so hosts can decide what to auto-approve.
Run with Claude Desktop / Claude Code
{
"mcpServers": {
"android": {
"command": "node",
"args": ["/absolute/path/to/mcp-android/dist/index.js"],
"env": { "ANDROID_MODE": "read-write" }
}
}
}Example prompts
"Take a screenshot of my phone and tell me what's on screen."
"Set an alarm for 6:30am labeled Gym."
"Open the Clock app and start a 10-minute timer."
"What notifications do I have piling up?"
Develop
npm run dev
npm test # security policy
npm run typecheckLicense
MIT
Available Tools
7 toolscurrent_appCurrent appCRead-onlyIdempotent
The package/activity currently in the foreground.
Inputs: no named parameters.
device_infoDevice infoBRead-onlyIdempotent
Model, manufacturer, Android version, and screen size.
Inputs: no named parameters.
get_notificationsGet notificationsARead-onlyIdempotent
Read current notifications (package + title/text), best-effort. Useful for clearing the pile-up.
Inputs: no named parameters.
list_appsList appsARead-onlyIdempotent
List installed packages. Third-party only by default.
Inputs: includeSystem.
list_devicesList devicesBRead-onlyIdempotent
List connected adb devices and their state.
Inputs: no named parameters.
screenshotScreenshotARead-onlyIdempotent
Capture the current screen as a PNG image so you can see what's on the phone before acting.
Inputs: no named parameters.
ui_dumpUI hierarchyARead-onlyIdempotent
Dump the current screen's UI hierarchy (uiautomator XML) with element text and bounds — use it to find exact tap coordinates.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a clearly distinct aspect: device enumeration, device metadata, screen capture, UI hierarchy, foreground app, installed packages, and notifications. The only near-pair, list_devices vs. device_info, is separated by the descriptions (list all connected devices vs. detail on a device).
Conventions are mixed: verb_noun (list_devices, list_apps, get_notifications) alongside bare noun phrases (device_info, screenshot, ui_dump, current_app). Individual names are readable but there is no single predictable pattern to guess a tool name from.
Seven tools is a sensible, well-scoped size for an Android inspection server, with no redundant entries. The caveat is that the count is spent entirely on read/inspect operations, leaving little room for the interaction tools the descriptions imply.
The surface is observation-only: you can screenshot, dump the hierarchy, and locate coordinates, but there is no tap, swipe, text input, or key-event tool despite descriptions promising 'see what's on the phone before acting' and 'use it to find exact tap coordinates'. That is a dead end for the core loop, and there is also no way to launch/stop an app or dismiss notifications.
Maintenance
Related MCP Connectors
Let Claude, ChatGPT and other agents use your Android phone: see the screen, tap, type, open apps.
Cloud Android devices for AI agents: install an APK, read the screen, tap, type, read logcat.
Give your AI agent a real cloud Android phone: push APKs, drive it, get screenshots and logs.
Cloud Android phones for AI agents: create a phone, read the screen, tap, type, install APKs, park.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables text-based control of Android devices through Claude Code using accessibility tree automation. Supports UI interaction, app launching, text input, gestures, and navigation without requiring screenshots.MIT
- FlicenseAqualityDmaintenanceEnables remote control of Android phones via Claude Desktop, offering 45+ tools including UI automation for app interactions.5717-
- AlicenseBqualityDmaintenanceEnables AI assistants to observe, reason about, and control connected Android devices via ADB, providing tools for screenshots, UI hierarchy parsing, semantic element clicking, gestures, text input, and app lifecycle management.13MIT
- AlicenseBqualityBmaintenanceEnables Claude to see and control a real Android phone via MCP, reading the accessibility tree to tap, type, navigate, launch apps, and diagnose connectivity over ADB or cellular.381Apache 2.0