MCP Android Agent

v1.0.0Developer Toolsstable

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

agentic-aiaiandroidautomationcopilot
Share:
53
Stars
0
Downloads
0
Weekly
0/5

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

Android device automation via AI
uiautomator2-based mobile testing
nim444

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedMay 6, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-android-agent

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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+)
1

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 devices
2

Clone 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.txt
3

Bootstrap 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 init
4

Test 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.py
5

Add 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.

6

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.

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.

Quick Config Preview

{ "mcpServers": { "mcp-android-agent": { "command": "npx", "args": ["-y", "mcp-android-agent"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides