android-mcp-server
Provides tools for managing Android devices via ADB and scrcpy, including device management, app installation/uninstallation, file transfer, shell commands, input control, screen mirroring, UI element finding, and system information retrieval.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@android-mcp-serverlist connected Android devices"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Android MCP Server
MCP server providing ADB and scrcpy capabilities for Android device control. Built with FastMCP.
Assisted by Minimax Model via Claude Code.
Features
Device Management: List devices, get device info
App Management: Install/uninstall apps, start/stop apps, list packages
File Operations: Push/pull files between device and host
Shell Execution: Run shell commands on device, exec-out for binary output
Input Control: Tap, swipe, input text, press keys
System Info: Screen size, battery status, system properties
Screen Control: Screen mirroring and control via scrcpy, screenshot via exec-out
UI Element Finding: Dump UI hierarchy, find elements by attributes
Install
uv add android-mcp-serverOr install from source:
# Clone the repo, then install
git clone https://github.com/chldu2000/android-mcp-server.git
cd android-mcp-server
uv pip install -e .
uv run python -m android_mcp.mainAdd MCP Server
Claude Code
claude mcp add android uv run -- python -m android_mcp.main --cwd /Path/to/workdirOther MCP Clients
The server can be run with:
uv run python -m android_mcp.mainTools
Device Management
Tool | Description |
| List all connected Android devices |
| Get detailed device information |
App Management
Tool | Description |
| Install an APK |
| Uninstall an application |
| List installed packages |
| Start an application |
| Force stop an application |
File Operations
Tool | Description |
| Pull file from device |
| Push file to device |
Shell
Tool | Description |
| Execute shell command |
| Execute command via exec-out (for binary output) |
Input Control
Tool | Description |
| Tap at coordinates |
| Swipe gesture |
| Input text |
| Press key event |
System Info
Tool | Description |
| Get screen resolution |
| Get battery status |
| Get system properties |
Screen Control (scrcpy)
Tool | Description |
| Start screen mirroring |
| Stop screen mirroring |
| Take screenshot |
| Send control command |
| Capture screenshot via exec-out |
UI Elements
Tool | Description |
| Dump UI hierarchy tree |
| Find UI elements by attributes |
Device Connection
USB Devices
Connect via USB and ensure USB debugging is enabled on the device.
Network Devices
For TCP/IP connection:
Enable TCP/IP mode on device:
adb tcpip 5555Find device IP:
adb shell ip routeConnect:
adb connect <device-ip>:5555
Dependencies
fastmcp - MCP server framework
scrcpy - Screen mirroring (must be installed separately)
uiautomator2 - uiautomator2 Python wrapper
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/chldu2000/android-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server