android-mcp
v0.3.0MCP 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
| Parameter | Type | Description |
|---|---|---|
serial * | string |
Device Device
Manage ADB devices (list, connect, or disconnect)
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
use_annotation | boolean | |
use_vision | boolean |
Wait Wait
Wait for a specific amount of time, in seconds
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
className | ||
description | ||
resourceId | ||
text | ||
timeout | number |
Notification Notification
Access the notifications seen on the device
Click Click
Click on a specific coordinate
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
className | ||
description | ||
index | integer | |
resourceId | ||
text | ||
timeout | number |
LongClick Long Click
Long click on a specific coordinate
| Parameter | Type | Description |
|---|---|---|
x * | integer | |
y * | integer |
Swipe Swipe
Swipe from one coordinate to another
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
clear | boolean | |
x | ||
y |
Drag Drag
Drag from one coordinate and drop on another, for example to move an icon. Needs Android 8 or later.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
button * | string |