android-mcp

v0.3.0
android-mcp Checked 18 hours ago Published 12 days ago

MCP server that lets an AI agent operate an Android device over ADB.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ListDevices List Devices

List available ADB devices

ConnectDevice Connect Device

Connect to an ADB device by serial number, or by host:port for a device on the network

ParameterTypeDescription
serial *string

Device Device

Manage ADB devices (list, connect, or disconnect)

ParameterTypeDescription
action *string
serial

Snapshot Snapshot

Get the state of the device: the interactive elements, each with a label and the coordinates to tap. Optionally includes a visual screenshot when use_vision=True. The use_annotation parameter (default True) can be set to False to get a clean screenshot without bounding boxes. If the screen never goes idle (a video or a running timer) the element list is unavailable and, with use_vision, only the screenshot is returned.

ParameterTypeDescription
use_annotationboolean
use_visionboolean

Wait Wait

Wait for a specific amount of time, in seconds

ParameterTypeDescription
duration *number

WaitForElement Wait For Element

Wait for an element to appear on screen. Use this instead of Wait when content is loading dynamically. Select it by text, resourceId (full, or the part after the slash), className or description, all matched exactly; at least one is required. Returns the element's coordinates when found, or an error on timeout.

ParameterTypeDescription
className
description
resourceId
text
timeoutnumber

Notification Notification

Access the notifications seen on the device

Click Click

Click on a specific coordinate

ParameterTypeDescription
x *integer
y *integer

ClickBySelector Click By Selector

Click on an element by selector (text, resourceId, className, description), all matched exactly; resourceId may be the full id or the part after the slash. More reliable than coordinate clicks: it finds the element when it clicks, so it handles dynamic layouts and elements that have moved. index picks the nth match, counting from 0. At least one selector must be provided.

ParameterTypeDescription
className
description
indexinteger
resourceId
text
timeoutnumber

LongClick Long Click

Long click on a specific coordinate

ParameterTypeDescription
x *integer
y *integer

Swipe Swipe

Swipe from one coordinate to another

ParameterTypeDescription
x1 *integer
x2 *integer
y1 *integer
y2 *integer

Type Type

Type text into a field. Give x and y to tap the field first, otherwise the text goes into whatever has focus. clear=true empties the field first. A newline presses Enter and a tab presses Tab. Printable ASCII and accented Latin letters (é ñ ü, not ç ß å) are typed directly. Any other text (CJK, Cyrillic, Arabic, emoji, ç) needs the ADBKeyboard app installed on the device and a focused text field; without the app it is rejected with install instructions.

ParameterTypeDescription
text *string
clearboolean
x
y

Drag Drag

Drag from one coordinate and drop on another, for example to move an icon. Needs Android 8 or later.

ParameterTypeDescription
x1 *integer
x2 *integer
y1 *integer
y2 *integer

Press Press

Press a button on the device: back, home, recent, menu, search, enter, delete, tab, space, power, camera, volume up, volume down, volume mute, or up, down, left, right, center for the d-pad.

ParameterTypeDescription
button *string