MCP ServerSTDIOOfficialv0.3.3

UIAutomator2 MCP Server

Automate Android mobile interactions—taps, swipes, app launches, and XPath element testing—via AI-driven RPA. Built for developers and QA engineers who need programmatic control over Android devices through natural language commands.

io.github.tanbro/uiautomator2-mcp-server

Hosted URL

Local install

Transport

STDIO

Auth

No auth required

What the UIAutomator2 MCP server does

How models use it and what it is built for.

Automate Android mobile interactions—taps, swipes, app launches, and XPath element testing—via AI-driven RPA. Built for developers and QA engineers who need programmatic control over Android devices through natural language commands.

Connect to UIAutomator2

Local install — runs as a subprocess.

uvx uiautomator2-mcp-server==0.3.3

Resources

Where to find authoritative docs and source for UIAutomator2.

    Example prompts for UIAutomator2

    Paste any of these into Agent Studio after connecting UIAutomator2.

    • Tap the login button and enter credentials using XPath
    • Swipe down to scroll through the app feed
    • Launch the Gmail app and verify the inbox loads
    • Find all clickable elements matching XPath //android.widget.Button and list them

    UIAutomator2 MCP server — FAQ

    Common questions about connecting and running UIAutomator2.

    • What Android versions does uiautomator2-mcp-server support?

      The server uses uiautomator2, which supports Android 4.1+. Check the uiautomator2 documentation for specific version compatibility and device requirements.

    • How do I connect my Android device to the MCP server?

      uiautomator2 requires ADB (Android Debug Bridge) to communicate with your device. Ensure your device is connected via USB or network, and ADB is properly configured before starting the server.

    • Can I use this for web testing or only native Android apps?

      This server is designed for native Android app automation via uiautomator2. For web testing within Android browsers, you would need additional tools like Appium or Selenium.

    • What's the difference between XPath and other element selectors in this server?

      XPath is a query language for locating elements in the Android UI hierarchy. The server supports XPath testing for precise element identification, which is useful for complex app layouts.

    • Is there a cost or licensing requirement for uiautomator2-mcp-server?

      uiautomator2-mcp-server is open-source and free to use. Install via `uvx uiautomator2-mcp-server@0.3.3` and run locally on your machine with connected Android devices.

    Skip the local setup — run MCP in your browser

    MCP Playground runs 10,000+ hosted MCP servers — GitHub, Linear, Notion, Stripe, Sentry and more — across Claude, GPT, Gemini, DeepSeek and 60+ AI models. Compare model answers side-by-side, save agent presets, share runs. Zero install.

    Open Agent Studio

    Related servers

    More on MCP Playground