Provides Android device automation capabilities, including ADB command execution, application management (launch/stop), UI automation (clicking elements, text input, screen swiping), screen capture, and UIAutomator2 service management.
UIAutomator2 MCP Server
基于FastMCP框架实现的UIAutomator2 MCP服务器,提供Android设备自动化控制能力。
功能特性
Android设备管理
ADB命令执行
应用包管理
屏幕截图
UI自动化操作
元素点击
文本输入
屏幕滑动
元素等待
页面滚动
应用管理
应用启动/停止
当前应用信息
UIAutomator2服务管理
环境要求
Python 3.10+
ADB工具
Android设备或模拟器
安装
克隆项目
安装依赖
MCP配置
1. 配置mcp.json
在Claude Desktop的配置目录下创建或编辑mcp.json
文件(通常在~/.cursor/mcp.json
或%APPDATA%\Cursor\mcp.json
):
配置说明:
android
: MCP服务器的唯一标识符command
: 用于运行Python的命令(这里使用uv,也可以使用python)args
: 命令行参数--directory
: 项目目录路径run
: uv的运行命令src/server.py
: 服务器入口文件路径
2. 配置选项
你可以根据需要调整以下配置:
使用Python直接运行:
使用虚拟环境:
添加环境变量:
3. 多服务器配置
你可以在同一配置文件中定义多个MCP服务器:
使用工具
配置完成后,你可以在Claude中直接使用所有可用的工具:
开发
安装开发依赖
运行测试
贡献
欢迎提交Issue和Pull Request。
许可证
MIT License
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
A FastMCP framework-based server providing Android device automation control capabilities, enabling UI interactions, device management, and application control through natural language.
Related MCP Servers
- -securityAlicense-qualityA server enabling programmatic control over Android devices through ADB, providing capabilities like screenshot capture, UI layout analysis, and package management that can be accessed by MCP clients like Claude Desktop.Last updated -553Apache 2.0
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that enables AI assistants to control and interact with Android devices, allowing for device management, app debugging, system analysis, and UI automation through natural language commands.Last updated -8243Apache 2.0
- -securityAlicense-qualityA plugin for MCP that enables AI assistants to control Android phones, allowing functions like making calls, sending messages, taking screenshots, and accessing contacts through natural language commands.Last updated -165Apache 2.0
- -securityAlicense-qualityA Model Context Protocol server that enables AI agents to control and automate Android devices through natural language, supporting actions like app management, UI interactions, and device monitoring.Last updated -29MIT License