📱 Phone MCP Plugin
🌟 A powerful MCP plugin that lets you control your Android phone with ease through ADB commands.
中文文档
⚡ Quick Start
📥 Installation
pip install phone-mcp
# or use uvx
uvx phone-mcp
🔧 Configuration
Cursor Setup
Configure in ~/.cursor/mcp.json:
{
"mcpServers": {
"phone-mcp": {
"command": "uvx",
"args": [
"phone-mcp"
]
}
}
}
Claude Setup
Add to Claude configuration:
{
"mcpServers": {
"phone-mcp": {
"command": "uvx",
"args": [
"phone-mcp"
]
}
}
}
Usage:
- Use commands directly in Claude conversation, for example:
Please call contact hao
⚠️ Before using, ensure:
- ADB is properly installed and configured
- USB debugging is enabled on your Android device
- Device is connected to computer via USB
🎯 Key Features
- 📞 Call Functions: Make calls, end calls, receive incoming calls
- 💬 Messaging: Send and receive SMS, get raw messages
- 👥 Contacts: Access phone contacts
- 📸 Media: Screenshots, screen recording, media control
- 📱 Apps: Launch applications, set alarms, list installed apps, terminate apps
- 🔧 System: Window info, app shortcuts
- 🗺️ Maps: Search POIs with phone numbers
- 🖱️ UI Interaction: Tap, swipe, type text, press keys
- 🔍 UI Inspection: Find elements by text, ID, class or description
- 🤖 UI Automation: Wait for elements, scroll to find elements, monitor UI changes
- 🧠 Screen Analysis: Structured screen information and unified interaction
- 🌐 Web Browser: Open URLs in device’s default browser
🛠️ Requirements
- Python 3.7+
- Android device with USB debugging enabled
- ADB tools
📋 Basic Commands
Device & Connection
# Check device connection
phone-cli check
# Get screen size
phone-cli screen-interact find method=clickable
Communication
# Make a call
phone-cli call 1234567890
# End current call
phone-cli hangup
# Send SMS
phone-cli send-sms 1234567890 "Hello"
# Check messages
phone-cli messages --limit 10
# Get contacts
phone-cli contacts --limit 20
Media & Apps
# Take screenshot
phone-cli screenshot
# Record screen
phone-cli record --duration 30
# Launch app
phone-cli app camera
# Close app
phone-cli close-app com.android.camera
# List installed apps
phone-cli list-apps --filter camera --third-party
# Launch specific activity
phone-cli launch com.android.settings/.Settings
# Open URL in default browser
phone-cli open-url google.com
Screen Analysis & Interaction
# Analyze current screen with structured information
phone-cli analyze-screen
# Unified interaction interface
phone-cli screen-interact <action> [parameters]
# Tap on element by text
phone-cli screen-interact tap element_text="Login"
# Tap at coordinates
phone-cli screen-interact tap x=500 y=800
# Swipe gesture (scroll down)
phone-cli screen-interact swipe x1=500 y1=1000 x2=500 y2=200 duration=300
# Press key
phone-cli screen-interact key keycode=back
# Input text
phone-cli screen-interact text content="Hello World"
# Find elements
phone-cli screen-interact find method=text value="Login" partial=true
# Wait for element
phone-cli screen-interact wait method=text value="Success" timeout=10
# Scroll to find element
phone-cli screen-interact scroll method=text value="Settings" direction=down max_swipes=5
# Monitor UI changes
phone-cli monitor-ui --interval 1 --duration 60
Location & Maps
# Search nearby POIs with phone numbers
phone-cli get-poi 116.480053,39.987005 --keywords restaurant --radius 1000
📚 Advanced Usage
Screen-Driven Automation
The unified screen interaction interface allows intelligent agents to easily:
- Analyze the screen: Get a structured analysis of UI elements and text
- Make decisions: Based on detected UI patterns and available actions
- Execute interactions: Through a consistent parameter system
- Monitor changes: Continuously observe UI changes and respond automatically
📚 Documentation
For complete documentation and configuration details, visit our GitHub repository.
📄 License
Apache License, Version 2.0
Phone Control Plugin
Project Details
- hao-cyber/phone-mcp
- Apache License 2.0
- Last Updated: 4/18/2025
Recomended MCP Servers
CLI to set up and deploy MCP Servers to Cloudflare Workers in seconds. Just write TypeScript functions to...
MCP (Model Context Protocol) server for the Contentful Management API
Ancestry MCP server made with Python that allows interactability with .ged (GEDCOM) files
LinkedIn MCP Server for local automation
A server application designed on top of MCP to interact with Cursor and MySQL.
An MCP server for OBS
A Model Context Protocol (MCP) implementation for Splunk Enterprise and Cloud integration with Cursor IDE or Claude
An MCP implementation for Selenium WebDriver
MCP web research server (give Claude real-time info from the web)
MCP Server for TaskWarrior!





