CursorTouch/Android-MCP
An ADB-only MCP server for inspecting and operating Android devices
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Android MCP runs as a Python 3.13+ process that exposes MCP tools over stdio and sends device operations through host-side ADB. The manifest declares FastMCP, Click, and Pillow for the MCP interface, CLI, and image processing. The server does not run model inference; the MCP client decides what to observe and which action to take.
The code is split into four layers: android_mcp.adb talks to ADB, android_mcp.tree reads the Android UI hierarchy, android_mcp.mobile manages state and actions for one connected device, and android_mcp.server exposes tools and selects the target. Connection is lazy: an MCP client can start the process before a device is attached, but the first tool call needs a usable ADB target.
Key Capabilities & Differentiators
Snapshot returns interactive elements with labels and tap coordinates. use_vision adds a screenshot; use_annotation=false leaves it unmarked. ClickBySelector matches exact text, resource ID, class name, or description. It accepts an index when multiple elements match, and a resource ID can be given as just the part after the slash.
The action tools cover taps, long presses, swipes, drags, key presses, the notification shade, and waits for elements. Device tools list, select, and disconnect targets and can switch between USB and Wi-Fi. Type can focus a field by coordinates, clear it, and enter text. It uses native ADB input where possible and requires the optional ADBKeyboard app for characters that input path cannot handle, including CJK and emoji.
Trade-offs & Limitations
Compared with the earlier UIAutomator2-based implementation, v0.3.0 removes the required companion service from the device, but it still depends on uiautomator dump for structured element lookup. If a video or timer keeps the screen from going idle, the dump can fail. In that case, Snapshot with use_vision can return a screenshot without elements, and coordinate taps remain available. Compared with raw ADB scripts, the MCP layer is useful when a client must inspect the screen before choosing an action; fixed sequences may not need it.
Drag requires Android 8 or later. Native field clearing uses input keycombination on Android 12 or later; older versions use a slower fallback capped at 200 characters. Full multilingual input is not part of the installation-free baseline: ADBKeyboard must be installed separately, requires a focused field, and temporarily switches the active input method.
Hardware & Deployment Guide
Self-hosting requires Python 3.13+ and Android platform-tools (adb). Start the published package with uvx --python 3.13 android-mcp, or use uv run android-mcp from a checkout. Configure the MCP client to launch the process over stdio. If ADB is not discovered on PATH or in SDK locations, set ANDROID_MCP_ADB_PATH explicitly.
By default, the server selects the first physical device, or an emulator if none is present. Set --device SERIAL or ANDROID_MCP_DEVICE to pin the target; --connection selects auto, usb, or wifi, and CLI options override environment variables. Release v0.2.0 moved the extension manifest to uv and exposed device, connection, and screenshot settings. Release v0.3.0 then removed the UIAutomator2 dependency to address its companion service's startup failure on Android 17 (API 37).
Snapshot returns labeled elements and tap coordinates, with optional annotated or clean screenshots.ClickBySelector matches text, resource ID, class name, or description and supports an index for duplicate matches.uv runs pytest and Ruff; the test suite does not require an attached device.Agent-assisted Android UI smoke tests, demos, and exploratory workflows on authorized phones or emulators, where the client needs to inspect the screen before choosing an action.
You need reliable selector lookup on continuously updating screens, full multilingual input without installing a keyboard app, or only a fixed sequence already handled by ADB scripts.
Quick Start & Installation
uvx --python 3.13 android-mcp
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| Android-MCP ★ | 942 | +1 | Python | MIT | An ADB-only MCP server for inspecting and operating Android devices |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
| chrome-devtools-mcp | 60.4k | +760 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| skills | 204.1k | +2.5k | Python | — | A Claude Agent Skills catalog for packaging and reusing task workflows |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/CursorTouch/Android-MCP.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about Android-MCP
How does an MCP client connect, and when is the Android target selected?
uvx --python 3.13 android-mcp as a local stdio MCP process. The process can start without an attached device; it connects on the first tool call. On a host with several targets, pass --device SERIAL or set ANDROID_MCP_DEVICE rather than relying on automatic selection.Does the server need a GPU, and what drives host resource usage?
Can we self-host or redistribute this in a commercial setup?
When is this a better fit than direct ADB scripting or a UIAutomator2-based setup?
uiautomator dump.Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy