phone-mcp
by hao-cyber·★ 231·综合分 43
通过ADB命令控制Android手机的MCP服务器,支持通话、消息、应用和UI自动化。
概述
Phone MCP 是一个基于Python的MCP服务器,通过ADB命令使AI助手能够控制Android设备。它提供广泛的功能,包括通话、短信、联系人管理、应用控制、媒体操作以及带有屏幕分析的复杂UI自动化。服务器使用统一的交互界面,可以创建复杂的自动化工作流程,如根据天气播放音乐或创建多步通信协议。
试试问 AI
装完之后,这里有 6 个你可以让 AI 做的事:
什么时候选它
当您需要通过自动化方式与安卓设备进行通信、联系人管理或 UI 测试时,选择 Phone MCP,尤其是在您已经熟悉 ADB 或在 Python 环境中工作时。
什么时候不要选它
如果您需要支持 iOS、不想处理 ADB 设置,或需要更高级的设备管理功能(如应用安装或系统级修改),则不应选择 Phone MCP。
此 server 暴露的工具
从 README 抽取出 12 个工具interact_with_screenasync def interact_with_screen(action: str, params: Dict[str, Any] = None) -> strExecute screen interaction actions like tap, swipe, key press, text input, and element finding
analyze_screenasync def analyze_screen(include_screenshot: bool = False, max_elements: int = 50) -> strAnalyze the current screen and provide structured information about UI elements
create_contactasync def create_contact(name: str, phone: str) -> strCreate a new contact with the given name and phone number using UI automation
launch_app_activityasync def launch_app_activity(package_name: str, activity_name: Optional[str] = None) -> strLaunch an app using package name and optionally an activity name
launch_intentasync def launch_intent(intent_action: str, intent_type: Optional[str] = None, extras: Optional[Dict[str, str]] = None) -> strLaunch an activity using Android intent system
make_callMake a phone call to a specified number
send_smsSend a text message to a specified number
get_messagesGet received or sent messages with pagination
get_contactsGet phone contacts with pagination
screenshotTake a screenshot of the phone screen
monitor_uiMonitor UI changes and wait for specific elements to appear or disappear
get_poiSearch nearby points of interest with phone numbers
可对比工具
安装
安装
# 使用uvx直接运行(推荐)
uvx phone-mcp
# 或使用uv安装
uv pip install phone-mcp
# 或使用pip安装
pip install phone-mcp配置
添加到您的AI助手配置中:
{
"mcpServers": {
"phone-mcp": {
"command": "uvx",
"args": [
"phone-mcp"
]
}
}
}对于pip安装,请使用:
{
"mcpServers": {
"phone-mcp": {
"command": "/usr/local/bin/python",
"args": [
"-m",
"phone_mcp"
]
}
}
}要求:Python 3.7+,ADB工具,已启用USB调试的Android设备。
FAQ
- 使用phone-mcp需要什么条件?
- 您需要Python 3.7+,已安装ADB工具,以及已启用USB调试的Android设备。
- 如何配置我的AI助手以使用phone-mcp?
- 将服务器配置添加到您AI助手的MCP设置中,使用uvx或python以及适当的命令和参数。
- 我可以自动化应用启动和UI交互吗?
- 是的,服务器提供统一的屏幕交互界面,可以点击、滑动、输入文本、查找元素并等待UI变化。
phone-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。