adb-mcp
v0.1.1MCP server for controlling Android devices and emulators via ADB
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_devices
List connected Android devices and emulators.
screenshot
Take a screenshot of the device screen. Returns an image.
| Parameter | Type | Description |
|---|---|---|
device | string | Device serial (omit for default) |
get_ui_hierarchy
Dump the current UI as a readable hierarchy showing all visible elements, their labels, resource IDs, whether they're tappable, and their screen coordinates. Use this to understand what's on screen before deciding where to tap.
| Parameter | Type | Description |
|---|---|---|
device | string |
tap
Tap at specific screen coordinates.
| Parameter | Type | Description |
|---|---|---|
x * | integer | |
y * | integer | |
device | string |
tap_element
Find a UI element by text or resource ID and tap its centre. Prefer this over tap() when you know the label or ID of what you want to tap.
| Parameter | Type | Description |
|---|---|---|
content_desc | string | Accessibility content description |
device | string | |
resource_id | string | Resource ID (partial match) |
text | string | Visible text on the element |
swipe
Swipe from one point to another.
| Parameter | Type | Description |
|---|---|---|
x1 * | integer | |
x2 * | integer | |
y1 * | integer | |
y2 * | integer | |
device | string | |
duration_ms | integer |
type_text
Type text into the currently focused input field.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
device | string |
press_key
Press a hardware key. Available keys: back, home, menu, enter, delete, tab, up, down, left, right, volume_up, volume_down, power, camera, search.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
device | string |
launch_app
Launch an app by package name.
| Parameter | Type | Description |
|---|---|---|
package * | string | e.g. io.github.garemat.lunachron |
device | string |
stop_app
Force-stop an app by package name.
| Parameter | Type | Description |
|---|---|---|
package * | string | |
device | string |
install_apk
Install an APK onto the device.
| Parameter | Type | Description |
|---|---|---|
path * | string | Local path to the APK file |
device | string |
get_logcat
Get recent device logs. Useful for spotting crashes or errors after an action.
| Parameter | Type | Description |
|---|---|---|
device | string | |
lines | integer | |
tag | string | Filter to a specific log tag |
wait
Wait for a specified number of seconds (e.g. for animations or loading).
| Parameter | Type | Description |
|---|---|---|
seconds * | number |
get_device_info
Get screen size, Android version, and installed app version.
| Parameter | Type | Description |
|---|---|---|
device | string | |
package | string | Optional: get version of this app |