press_key
Press key (back, home, enter, tab, delete, menu, etc.)
How to use it
press_key is exposed by the Android MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the press_key tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Android MCP Server
claude mcp add --scope user android -- npx -y android-mcp-serverOther tools in Android MCP Server (24)
Run arbitrary ADB shell command
Clear logcat buffer (call before reproducing a bug for clean output)
Double tap at coordinates
Get foreground app and activity
Get model, Android version, API level, screen size, DPI
Get logcat output, filterable by package, log level, and time
Get UI element hierarchy with bounds, text, resource IDs, and state
Install APK file
Launch app by package name
List available Android Virtual Devices
List connected Android devices and emulators
Long press at coordinates (context menus, drag handles)
Tap the same coordinates N times with a fixed interval (spam tapping)
Pull a file from the device to local filesystem
Take screenshot for visual analysis. Optional savepath to save to disk
Scroll until element is visible
Start an AVD by name (waits up to 60s)
Swipe gesture between coordinates
Tap at screen coordinates
Tap element, wait for UI to settle, return new UI tree — single round trip
Tap element by resource-id, text, or content-desc
Multi-step action chain: taps, waits, text input, key presses, swipes in any order
Type text into focused input
Wait for element to appear (with timeout)