UIAutomator2 MCP Server
About
Automate and control Android devices using the UIAutomator2 framework.
Details
- Author
- gitdzreal93
- Categories
- Developer Tools, Other, Automation
- Tags
- #mobile
Jump to
Setup
Install UIAutomator2 MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/gitdzreal93/uiautomator2-mcp
Follow the installation instructions in the repository README, then restart your MCP client.
基于FastMCP框架实现的UIAutomator2 MCP服务器,提供Android设备自动化控制能力。
git clone https://github.com/yourusername/uiautomator2-mcp.git cd uiautomator2-mcp
在Claude Desktop的配置目录下创建或编辑mcp.json文件(通常在~/.cursor/mcp.json或%APPDATA%\Cursor\mcp.json):
{ "mcpServers": { "android": { "command": "uv", "args": [ "--directory", "/path/to/uiautomator2-mcp", // 替换为你的项目路径 "run", "src/server.py" ] } } }
- android: MCP服务器的唯一标识符
- command: 用于运行Python的命令(这里使用uv,也可以使用python)
- args: 命令行参数
- --directory: 项目目录路径
- run: uv的运行命令
- src/server.py: 服务器入口文件路径
{ "mcpServers": { "android": { "command": "python", "args": [ "/path/to/uiautomator2-mcp/src/server.py" ] } } }
{ "mcpServers": { "android": { "command": "/path/to/venv/bin/python", "args": [ "/path/to/uiautomator2-mcp/src/server.py" ] } } }
{ "mcpServers": { "android": { "command": "python", "args": [ "/path/to/uiautomator2-mcp/src/server.py" ], "env": { "PYTHONPATH": "/path/to/uiautomator2-mcp", "ANDROID_HOME": "/path/to/android-sdk" } } } }
{ "mcpServers": { "android": { "command": "uv", "args": [ "--directory", "/path/to/uiautomator2-mcp", "run", "src/server.py" ] }, "android-debug": { "command": "uv", "args": [ "--directory", "/path/to/uiautomator2-mcp", "run", "src/server.py", "--debug" ] } } }
# 初始化UIAutomator2 await mcp.call_tool("mcp_android_init_uiautomator2", {}) # 启动应用 await mcp.call_tool("mcp_android_start_app", { "package_name": "com.example.app" }) # 点击元素 await mcp.call_tool("mcp_android_click_element", { "text": "登录" })
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
AI 測試大師 — MCP server driving pytest / Jest / Cypress / Go / Maestro. Analyze, generate, run, advise. Web + Mobile (iOS/Android/BlueStacks).
AI-powered E2E testing for 10 platforms. 253 MCP tools. Zero config. Test Flutter, React Native, iOS, Android, Web, Electron, Tauri, KMP, .NET MAUI from natural language.
An iOS mobile automation server using Appium and WebDriverAgent, built with clean architecture and SOLID principles.
An iOS mobile automation server using Appium and WebDriverAgent.
Automate Android devices using the uiautomator2 library, requiring adb and a connected device.
A platform-agnostic server for scalable mobile automation and development across iOS, Android, simulators, and emulators.
A Model Context Protocol (MCP) server that enables Claude Desktop to interact with web browsers and mobile applications using WebDriverIO. Automate Chrome browsers, iOS apps, and Android apps—all through a unified interface.
MCP server for Mobile Development and Automation | iOS, Android, Simulator, Emulator, and Real Devices
Unified mobile E2E MCP — 28 tools (mobile-mcp + Maestro + RN-debugger parity)
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.


