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
Local install
STDIO
No auth required
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.
Local install — runs as a subprocess.
Where to find authoritative docs and source for UIAutomator2.
Paste any of these into Agent Studio after connecting UIAutomator2.
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.
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 StudioJudges Panel
45 judges that evaluate AI-generated code for security, cost, and quality with built-in AST.
Addozhang Nexus
Query Sonatype Nexus Repository (OSS/Pro) for Maven, Python, and Docker artifacts
Cyanheads MCP Ts Template
TypeScript template for building MCP servers with declarative tooling, observability, and auth.
Chernistry Bernstein
Declarative agent orchestration for engineering teams