Android-MCP
by CursorTouch·★ 602·综合分 51
Android-MCP 允许 AI 代理通过 ADB 与 Android 设备交互,实现 UI 自动化、测试和控制。
概述
Android-MCP 是一个轻量级的 MCP 服务器,连接 AI 代理与 Android 设备,实现真实世界的任务交互,无需依赖计算机视觉或预编程脚本。通过 ADB 和 Android 无障碍 API 实现原生集成,提供手势、按键、捕获、设备状态监控和 shell 命令执行等工具。支持 Android 10+ 系统,兼容任何语言模型,适用于多种自动化场景。
试试问 AI
装完之后,这里有 3 个你可以让 AI 做的事:
什么时候选它
当您需要 AI 与 Android 设备进行交互以进行测试、自动化或开发工作流,且不想依赖计算机视觉时,选择 Android-MCP。
什么时候不要选它
如果您需要支持 iOS 设备,或者需要比 Android-MCP 提供的 2-4 秒操作间延迟更低的响应时间,请避免使用。
此 server 暴露的工具
从 README 抽取出 10 个工具State-ToolUnderstand the state of the device
Click-ToolClick on the screen at the given coordinates
Long-Click-ToolPerform long click on the screen at the given coordinates
Type-ToolType text on the specified coordinates (optionally clears existing text)
Swipe-ToolPerform swipe from one location to another
Drag-ToolDrag from one point to another
Press-ToolPress keys on the mobile device (Back, Volume Up, etc.)
Wait-ToolPause for a defined duration
Notification-ToolAccess notifications seen on the device
Shell-ToolExecute shell commands on the android device
可对比工具
安装
安装
- **先决条件**:
- Python 3.13 - ADB (Android 调试桥) - Android 10+ 设备/模拟器
- **测试 ADB 连接**:
``shell adb devices `` 确保您的设备被列出。
- **配置 Claude Desktop** (UVX 方法):
``json { "mcpServers": { "android-mcp": { "command": "uvx", "args": [ "--python", "3.13", "android-mcp" ] } } } ``
- 对于 WiFi 设备,添加环境变量:
``json { "mcpServers": { "android-mcp": { "command": "uvx", "args": [ "--python", "3.13", "android-mcp" ], "env": { "ANDROID_MCP_CONNECTION": "wifi", "ANDROID_MCP_HOST": "192.168.1.3" } } } } ``
- 重启 Claude Desktop 以激活集成。
Android-MCP 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。