MCP Android Server

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 Server?

MCP Android Server 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 automation with Python
Mobile device control from AI agents
nim444

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 6, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-android-server-python

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 Server

MCP Android Server is a Python-based Model Context Protocol server that lets AI agents like Claude, GitHub Copilot Chat, and Open Interpreter control real Android devices through natural language commands. It uses uiautomator2 under the hood to drive device interactions, and exposes a modular set of tools covering device management, app lifecycle, screen control, user input simulation, UI inspection, and advanced features like toast detection and activity monitoring. Teams use it to build AI-driven QA pipelines, remote device control setups, and Android automation bots.

Prerequisites

  • Python 3.13 or higher
  • Android Debug Bridge (adb) installed and available on PATH
  • An Android device or emulator with USB debugging enabled and uiautomator2 compatibility
  • uv package manager (https://github.com/astral-sh/uv) for dependency management
  • An MCP-compatible client such as Claude Desktop or GitHub Copilot Chat
1

Clone the repository

Clone the mcp-android-server-python repository to your local machine and navigate into the project directory.

git clone https://github.com/nim444/mcp-android-server-python.git
cd mcp-android-server-python
2

Create and activate a virtual environment

Use uv to create an isolated Python 3.13 virtual environment and activate it.

uv venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
3

Install dependencies

Install all required Python packages including uiautomator2 and the MCP SDK using uv.

uv pip install -r requirements.txt
4

Connect your Android device

Enable USB debugging on your Android device (Settings > Developer Options > USB Debugging), connect it via USB, and verify adb detects it.

adb devices
5

Configure the transport mode

Open server.py and ensure the stdio transport section is active (uncomment the stdio block and comment out the HTTP block) for use with MCP clients like Claude Desktop.

6

Run the MCP server

Start the server in stdio mode so your MCP client can communicate with it.

uv run python server.py
7

Add the server to your MCP client configuration

Register the server in your claude_desktop_config.json so Claude Desktop can launch and connect to it automatically.

MCP Android Server Examples

Client configuration

Add this to your claude_desktop_config.json to connect Claude Desktop to the Android MCP server.

{
  "mcpServers": {
    "android": {
      "command": "/path/to/mcp-android-server-python/.venv/bin/python",
      "args": ["/path/to/mcp-android-server-python/server.py"]
    }
  }
}

Prompts to try

Once connected, use these natural language prompts to control your Android device through Claude.

- "Take a screenshot of the current screen on the connected Android device"
- "Open the Settings app on the Android device"
- "Click on the Wi-Fi option in the Settings screen"
- "Swipe up on the screen to scroll down"
- "List all installed apps on the device"
- "Get the current battery level and Android version of the connected device"

Troubleshooting MCP Android Server

adb devices shows 'unauthorized' for the connected device

Unlock your Android device and accept the RSA fingerprint prompt that appears when you plug in via USB. If no prompt appears, revoke USB debugging authorizations in Developer Options and reconnect.

uiautomator2 fails to connect or throws a connection error

Run 'python -m uiautomator2 init' while your device is connected to push the uiautomator2 server APK to the device. Ensure the device screen is unlocked and not in a restricted profile.

Server exits immediately when launched from Claude Desktop

Make sure the stdio transport block is active in server.py (not the HTTP block). Verify the Python path in the MCP config points to the virtualenv interpreter, not the system Python.

Frequently Asked Questions about MCP Android Server

What is MCP Android Server?

MCP Android Server 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 Server?

Follow the installation instructions on the MCP Android Server GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with MCP Android Server?

MCP Android Server works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is MCP Android Server free to use?

Yes, MCP Android Server is open source and available under the MIT 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-server-python": { "command": "npx", "args": ["-y", "mcp-android-server-python"] } } }

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

Read the full setup guide →

Ready to use MCP Android Server?

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