MCP Android Agent
MCP Android agent - This project provides an *MCP (Model Context Protocol)* server for automating Android devices using uiautomator2. It's designed to be easily plugged into AI agents like GitHub Copilot Chat, Claude, or Open Interpreter to control A
What is MCP Android Agent?
MCP Android Agent is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp android agent - this project provides an *mcp (model context protocol)* server for automating android devices using uiautomator2. it's designed to be easily plugged into ai agents like github copi...
MCP Android agent - This project provides an *MCP (Model Context Protocol)* server for automating Android devices using uiautomator2. It's designed to be easily plugged into AI agents like GitHub Copilot Chat, Claude, or Open Interpreter to control A
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- MCP Android agent - This project provides an *MCP (Model Con
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx mcp-android-agentConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use MCP Android Agent
MCP Android Agent is a Python MCP server that enables AI agents to automate and control Android devices using uiautomator2 and ADB (Android Debug Bridge). It exposes tools for device management, application control, screen interaction, input simulation, UI element inspection, and screenshot capture, making it possible to drive an Android phone or emulator entirely through natural language prompts in Claude, GitHub Copilot Chat, or Open Interpreter. Mobile developers, QA engineers, and automation researchers use it to build AI-driven test suites or automate repetitive Android tasks without writing explicit test scripts.
Prerequisites
- Python 3.13 or later installed
- uv package manager installed
- Android Debug Bridge (adb) installed and accessible in your PATH
- An Android device or emulator with USB debugging enabled and connected via USB or network ADB
- uiautomator2 compatible Android device (Android 5.0+)
Install ADB and verify device connection
Install Android SDK Platform Tools to get adb, enable USB debugging on your Android device, connect it, and verify adb detects it.
adb devicesClone the repository and set up the environment
Clone the MCP Android server repository and create a Python virtual environment.
git clone https://github.com/nim444/mcp-android-server-python.git
cd mcp-android-server-python
uv venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
uv pip install -r requirements.txtBootstrap uiautomator2 on the connected device
Install the uiautomator2 server on the Android device. This is a one-time setup step that installs a helper APK enabling UI automation.
python -m uiautomator2 initTest the server runs correctly
Run the server in stdio mode to confirm it starts without errors before connecting it to Claude Desktop.
uv run python server.pyAdd the server to Claude Desktop configuration
Edit claude_desktop_config.json to register the Android agent server with the absolute path to your cloned repository.
Restart Claude Desktop and verify device control
After restarting, ask Claude to take a screenshot of the Android device or list installed apps to confirm the automation tools are available.
MCP Android Agent Examples
Client configuration
Add this to claude_desktop_config.json (macOS). Adjust the path to match your actual repository location.
{
"mcpServers": {
"mcp-android": {
"type": "stdio",
"command": "bash",
"args": [
"-c",
"cd /absolute/path/to/mcp-android-server-python && source .venv/bin/activate && uv run python server.py"
]
}
}
}Prompts to try
Once connected, use these prompts to control the Android device through Claude.
- "Take a screenshot of the Android device and describe what's on screen"
- "List all installed apps on the device and find the ones related to social media"
- "Open the Settings app on the Android device"
- "Tap the search bar on screen and type 'weather forecast'"
- "Swipe up from the bottom of the screen to go to the home screen"Troubleshooting MCP Android Agent
adb: device not found
Ensure USB debugging is enabled on the device (Settings > Developer Options > USB Debugging), the USB cable is data-capable (not charge-only), and you accepted the RSA key fingerprint prompt on the device when first connecting.
uiautomator2 connection fails or times out
Run `python -m uiautomator2 init` again to reinstall the helper APK. If the device screen is locked, unlock it first. Some devices require disabling battery optimization for the uiautomator2 service.
Server exits immediately when started by Claude Desktop
Test the server manually first with `uv run python server.py` to see error output. The most common cause is a missing dependency or adb not being on the PATH when launched by the desktop app. Add the full adb path to your shell profile.
Frequently Asked Questions about MCP Android Agent
What is MCP Android Agent?
MCP Android Agent is a Model Context Protocol (MCP) server that mcp android agent - this project provides an *mcp (model context protocol)* server for automating android devices using uiautomator2. it's designed to be easily plugged into ai agents like github copilot chat, claude, or open interpreter to control a It connects AI assistants to external tools and data sources through a standardized interface.
How do I install MCP Android Agent?
Follow the installation instructions on the MCP Android Agent GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with MCP Android Agent?
MCP Android Agent works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is MCP Android Agent free to use?
Yes, MCP Android Agent is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
MCP Android Agent Alternatives — Similar Developer Tools Servers
Looking for alternatives to MCP Android Agent? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up MCP Android Agent in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use MCP Android Agent?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.