mcp-android-server-python

mcp-android-server-python

3.4

If you are the rightful owner of mcp-android-server-python and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This project provides an MCP server for automating Android devices using uiautomator2.

The MCP Android Agent is a Model Context Protocol server designed to automate Android devices through natural language commands. It integrates seamlessly with AI agents like GitHub Copilot Chat, Claude, or Open Interpreter, allowing for remote control and automation of Android devices. The server supports a wide range of functionalities, including app management, UI interactions, and device information retrieval. It is particularly useful for AI agents that require interaction with real devices, remote device control setups, automated QA tools, and UI testing. The server is built to be compatible with Python 3.13 or higher and requires the Android Debug Bridge (adb) and a connected Android device with USB debugging enabled.

Features

  • Start, stop, and manage apps by package name
  • Retrieve installed apps and current foreground app
  • Perform UI interactions like tap, swipe, scroll, and drag
  • Get device info, screen resolution, battery status, and more
  • Capture screenshots or last toast messages

Tools

  1. mcp_health

    Check whether the MCP server is running normally

  2. connect_device

    Connect to Android devices and get basic information

  3. get_installed_apps

    List all installed applications and their versions and package information

  4. get_current_app

    Get information about the current front desk application

  5. start_app

    Start the application with the package name

  6. stop_app

    Stop application by package name

  7. stop_all_apps

    Stop all running applications

  8. screen_on

    Open the screen

  9. screen_off

    Close the screen

  10. get_device_info

    Obtain detailed device information (serial number, resolution, battery, etc.)

  11. press_key

    wait)

  12. unlock_screen

    Unlock the screen (open and swipe)

  13. check_adb

    Check whether ADB installs and lists connected devices

  14. wait_for_screen_on

    Wait asynchronously until the screen is on

  15. Click

    Click on the element

  16. long_click

    Long press the element

  17. send_text

    Enter text in the currently focused field (optional clear)

  18. get_element_info

    Get UI element information (text, boundaries, clickability, etc.)

  19. swipe

    Slide from one coordinate to another

  20. wait_for_element

    Wait for the element to appear on the screen

  21. screenshot

    Capture and save screenshots from the device

  22. scroll_to

    Scroll until the specified element is visible

  23. drag

    Drag the element to the specified screen position

  24. get_toast

    Get the last toast message displayed on the screen

  25. clear_app_data

    Clear user data/cache for specified apps

  26. wait_activity

    Wait until a specific event appears