About Uiautomator2 MCP Server
Uiautomator2 MCP Server is an MCP server published by tanbro in the Data category: a MCP (Model Context Protocol) server that provides tools for controlling and interacting with Android devices using uiautomator2. Conduid read 77 tools from its source: activity_wait_appear, app_auto_grant_permissions, app_clear, app_current, app_info, app_install and 71 more. It is published to PyPI as uiautomator2-mcp-server and runs with uvx.
The repository has 60 stars and 13 forks, and its last commit was on 1 Dec 2026. Conduid has no tagged release on record for it. It passes all 1 static checks Conduid ran on the repository. Its topics include adb, adbutils, android, artificial-intelligence, automation and bot.
Install
claude mcp add uiautomator2-mcp-server -- uvx uiautomator2-mcp-server stdiouvx uiautomator2-mcp-server stdiouvx uiautomator2-mcp-serverpip install uiautomator2-mcp-servergit clone https://github.com/tanbro/uiautomator2-mcp-serverTools (77)
activity_wait_appearWait for an activity to appear.app_auto_grant_permissionsauto grant permissionsapp_clearStop and clear app data: pm clearapp_currentGet current app infoapp_infoGet app infoapp_installInstall appapp_listList installed app package namesapp_list_runningList running appsapp_startLaunch applicationapp_stopStop one applicationapp_stop_allStop all third party applicationsapp_uninstallUninstall an appapp_uninstall_allUninstall all appsapp_waitWait until app launchedclear_textClear text in the current input fieldclickClick at specific coordinatesconnectConnect to an Android devicedelayDelay for a specific amount of time.device_listList of Adb Device with state:devicedisconnectDisconnect from an Android devicedisconnect_allDisconnect from all Android devicesdouble_clickDouble click at specific coordinatesdragSwipe from one point to another point.dump_hierarchyDump window hierarchy.get_orientationGet current device screen orientation.get_toastGet the most recent Android Toast message from the device.hide_keyboardHide keyboardinfoGet device infoinitInstall essential resources (minicap, minitouch, uiautomator ...) to device.long_clickLong click at specific coordinatesopen_notificationOpen the notification panel.open_quick_settingsOpen the quick settings panel.press_keyPress a keypurgePurge all resources (minicap, minitouch, uiautomator ...) from device.read_clipboardRead clipboard from devicereset_toastClear the cached Toast message on the device.save_dump_hierarchyDump window hierarchy and save to file.save_screenshotSave screenshot of device to filescreen_offTurn screen offscreen_onTurn screen onscreen_recordRecord screen to file with blocking wait. For non-blocking recording use screen_record_start.screen_record_startStart screen recording to file. Runs in background, use screen_record_stop to stop.screen_record_stopStop screen recording for the device. Stops any active background recording task.screenshotTake screenshot of devicesend_textSend text to the current input fieldset_focused_textSet text to the currently focused input element.set_orientationSet device screen orientation.shell_commandRun a shell command on an Android deviceshow_toastDisplay a Toast message on the Android device.start_scrcpyStartup scrcpy in background and returns process id.stop_scrcpyStop a running scrcpy process by pid.swipeSwipe from one point to anotherswipe_downSwipe from top edge to bottom.swipe_extSwipe from screen edge.swipe_leftSwipe from right edge to left.swipe_pointsSwipe through multiple pointsswipe_rightSwipe from left edge to right.swipe_upSwipe from bottom edge to top.unlockUnlock the device screen. Simulates swipe up from the bottom.window_sizeGet window size of an Android devicewrite_clipboardWrite clipboard to devicexpath_clickFind element by XPath and perform click.xpath_click_nowaitFind element by XPath and click immediately without waiting.xpath_existsCheck if element exists by XPath without waiting.xpath_get_attribFind element by XPath and get a specific attribute value.xpath_get_boundsFind element by XPath and get its bounding box.xpath_get_infoFind element by XPath and get its complete information.xpath_get_textFind element by XPath and get its text content.xpath_long_pressFind element by XPath and perform long press.xpath_save_screenshotFind element by XPath and save screenshot to file.xpath_screenshotFind element by XPath and take screenshot.xpath_scrollFind element by XPath and scroll within it.xpath_scroll_toScroll the entire screen to find an element by XPath.xpath_set_textFind element by XPath and set its text content.xpath_swipeFind element by XPath and swipe within it.xpath_wait_appearWait until element is found using XPath.xpath_wait_goneWait until element disappears using XPath.Security checks
- ✓README presentThe repository's README runs to about 3.2K words.
5 checks have not been run yet.
README
The repository's README runs to about 3.2K words. The original in the repository is authoritative.
Read full README