Android MCP server for controlling devices over ADB

Android MCP server for controlling devices over ADB

android-mcp•bycursortouch

An MCP server that exposes Android device control to AI agents through ADB, requiring only adb and installing nothing on the device.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Lists, chooses and disconnects Android devices, selecting a physical device or emulator by default or by serial, USB or Wi-Fi options.
  • •Captures a snapshot of interactive elements with labels and tap coordinates, optionally adding a screenshot with labels drawn on it.
  • •Performs touch input including click, long click, swipe and drag by coordinates or by selectors such as text, resourceId, className or description.
  • •Types into fields, presses device buttons, pulls down notifications, and waits for pauses or elements to appear.

BEST FOR

  • •AI agents that need to inspect and interact with an Android app's UI through snapshots and element selectors.
  • •Automating Android devices over USB or Wi-Fi without installing anything on the device.
  • •Scenarios requiring text input in non-ASCII scripts or emoji, using the optional ADBKeyboard app.

ABOUT ANDROID-MCP

Android MCP server for controlling devices over ADB is cataloged as an MCP server attributed to cursortouch. An MCP server that exposes Android device control to AI agents through ADB, requiring only adb and installing nothing on the device. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Android MCP server for controlling devices over ADB are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can the server start before an Android device is attached?

Yes. The device is connected on the first tool call, so the server starts whether or not one is attached yet.

What happens when the screen is busy, such as a video or running timer?

The element list comes from uiautomator dump, which gives up when the screen never goes idle; Snapshot with use_vision then returns the screenshot alone and says so, and clicking by coordinates still works.

Which Android versions are needed for drag and field clearing?

Drag needs Android 8 or later, while clearing a field uses input keycombination, which needs Android 12; older devices fall back to a slower method.

上游原版 README

在 GitHub 查看同一版本原文

README.md · b3dabf90eabd · 采集于 2026-11-13 08:58:06 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

android-mcp-beta

Clean-room reimplementation of Android-MCP: an MCP server that lets an AI agent operate an Android device over ADB.

It needs only adb. Nothing is installed on the device, and there is no dependency on uiautomator2.

Run

Requires Python 3.13 and adb (Android platform-tools).

uv run android-mcp-beta

The server speaks MCP on stdio. In a client's config:

{
  "mcpServers": {
    "android-mcp-beta": {
      "command": "uv",
      "args": ["--directory", "D:/Projects/android-mcp-beta", "run", "android-mcp-beta"]
    }
  }
}

The device is connected on the first tool call, so the server starts whether or not one is attached yet.

Choosing the device

With no options it uses the first physical device, or an emulator when there is none.

OptionEnvironmentMeaning
--device SERIALANDROID_MCP_DEVICEA serial, or host:port for a device on the network
--connection auto|usb|wifi (alias --transport)ANDROID_MCP_CONNECTIONHow to pick when no device is named
--wifi [HOST]ANDROID_MCP_HOSTADB over Wi-Fi; HOST or HOST:PORT, port 5555 by default
--usb [SERIAL]ADB over USB, optionally a specific serial

Options win over the environment. Other variables:

  • ANDROID_MCP_ADB_PATH names the adb binary. Otherwise adb is looked for on PATH, then in ANDROID_HOME, ANDROID_SDK_ROOT and the default Android Studio SDK folders.
  • SCREENSHOT_QUANTIZED=true reduces screenshots to 256 colours, which makes them smaller.

Tools

ToolDoes
ListDevices, ConnectDevice, DeviceList, choose, or disconnect the device
SnapshotThe interactive elements, each with a label and tap coordinates. use_vision adds a screenshot with the labels drawn on it; use_annotation=false leaves it clean
Click, LongClick, Swipe, DragTouch input by coordinates
ClickBySelectorTap an element found by text, resourceId, className or description (exact match; resourceId may be the part after the slash), with index for the nth match
TypeType into a field. x and y tap it first; clear empties it first. Other scripts and emoji need the optional ADBKeyboard app (below)
PressA button: back, home, recent, volume up, enter, and so on
NotificationPull down the notification shade
Wait, WaitForElementPause, or wait for an element to appear

Typing other scripts (optional)

Type uses adb shell input text, so on its own it types printable ASCII and the accented Latin letters Android can compose (é ñ ü ÿ and 107 others, not ç ß å ø). A newline presses Enter and a tab presses Tab. For anything else (CJK, Cyrillic, Arabic, emoji, ç), install the ADBKeyboard app on the device once:

adb install keyboardservice-debug.apk

Download it from the releases page. This project does not bundle it: ADBKeyboard is GPL-2.0, and it is only ever talked to over broadcasts. I tested v2.5-dev (SHA-256 41a8a099…46fbbb) on Android 15.

With it installed, text that input text cannot type is sent through it automatically. For about a second the device's keyboard is switched to ADBKeyboard, which shows no keyboard of its own, and then the keyboard that was active before is put back (and ADBKeyboard is disabled again if it was not enabled). A text field must be focused, or the call fails with an error saying so. If a crash ever leaves the device on ADBKeyboard, adb shell ime reset restores the default. Without the app, such text is rejected before anything is sent, with these instructions in the error.

Other limits

  • Busy screens. The element list comes from uiautomator dump, which gives up when the screen never goes idle (a video, a running timer). Snapshot with use_vision then returns the screenshot alone and says so; click by coordinates still works.
  • Drag needs Android 8 or later. Clearing a field uses input keycombination, which needs Android 12; older devices fall back to a slower method that clears up to 200 characters.

Development

uv sync
uv run pytest
uv run ruff check . && uv run ruff format --check .

The tests need no device. Layers, bottom to top: android_mcp.adb (talks to adb), android_mcp.tree (reads the screen), android_mcp.mobile (one connected device: state and actions), android_mcp.server (the MCP tools and the choice of device).

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Android MCP server for controlling devices over ADB from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/android-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools