A MCP (Model Context Protocol) server that provides tools for controlling and interacting with Android devices using uiautomator2.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"android": {
"args": [
"uiautomator2-mcp-server",
"stdio"
],
"command": "uvx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Code of Conduct: Please follow our Code of Conduct when participating in this project.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y '@modelcontextprotocol/inspector' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
MCP Inspector is Vulnerable to Potential Command Execution via XSS When Connecting to an Untrusted MCP Server
An XSS flaw exists in the MCP Inspector local development tool when it renders a redirect URL returned by a remote MCP server. If the Inspector connects to an untrusted server, a crafted redirect can inject script into the Inspector context and, via the built-in proxy, be leveraged to trigger arbitrary command execution on the developer machine. Version 0.16.6 hardens URL handling/validation and prevents script execution. > Thank you to the following researchers for their reports and contributi
MCP Inspector proxy server lacks authentication between the Inspector client and proxy
Versions of MCP Inspector below 0.14.1 are vulnerable to remote code execution due to lack of authentication between the Inspector client and proxy, allowing unauthenticated requests to launch MCP commands over stdio. Users should immediately upgrade to version 0.14.1 or later to address these vulnerabilities. Credit: Rémy Marot <bughunters@tenable.com>
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in developer-tools
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors
Copy/paste detector for programming source code, supports 223 formats. AI-ready with token-efficient reporter, skill and MCP server.
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
MCP Security Weekly
Get CVE alerts and security updates for Uiautomator2 Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
- 🇨🇳 中文说明
Code of Conduct: Please follow our Code of Conduct when participating in this project.
An MCP server that provides tools for controlling Android devices using uiautomator2.
Use AI to automate your Android device: take screenshots, tap/swipe, manage apps, send text, and more.
User says: "Search cat videos on xxx App then play the video and swap to the next video"
AI automatically:

Control Android devices with natural language, no coding required
Detailed example: .skills/douyin-search
uvx immediately, no installation needed| Scenario | Description |
|---|---|
| 🧪 Automated Testing | Run natural language UI tests with AI-driven test framework |
| ⚡ Rapid Prototyping | Quickly test Android app interactions without writing code |
| ♿ Accessibility Testing | Verify app accessibility features automatically |
| 📊 Health Monitoring | Periodic device health and status checks |
| 🤖 Task Automation | Automate repetitive tasks like form filling, navigation |
| 🔬 Remote Debugging | Inspect UI hierarchy and capture screenshots remotely |
graph TD
AI[AI Assistant<br/>Claude/GPT/etc.] --> MCP[MCP Protocol]
MCP --> Server[u2mcp Server]
Server --> uiautomator2[uiautomator2]
uiautomator2 --> ADB[ADB]
ADB --> Device[Andro
... [View full README on GitHub](https://github.com/tanbro/uiautomator2-mcp-server#readme)