Android MCP

by tomdwipo

205 downloads
Not rated
GitHub

About

A lightweight MCP server for Android operating system automation. This server provides tools to interact directly with Android devices, enabling automated testing, app interaction, and device control.

Details

Author
tomdwipo
Downloads
205
Categories
AI

- Click, long click, swipe, drag, and type on Android devices.
- Get device state with optional visual screenshots.
- Press hardware buttons and access notifications.
- Wait functionality for timing control.
- Works with both physical devices and Android emulators.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Android MCP
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install Python 3.13+, uv package manager, and set up the project with uv sync. Connect an Android device with USB debugging enabled, or use an emulator with the --emulator flag. Run the server via uv run main.py or configure it in MCP client settings such as Claude Desktop.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "android mcp": {
            "android-mcp": {
                "type": "stdio",
                "command": "bash",
                "args": [
                    "-c",
                    "cd /path/to/agent/mcp/android && source .venv/bin/activate && uv run main.py --emulator"
                ],
                "alwaysAllow": [
                    "State-Tool",
                    "Click-Tool",
                    "Type-Tool",
                    "Swipe-Tool"
                ]
            }
        }
    }
}

McpServers

{
    "android-mcp": {
        "type": "stdio",
        "command": "bash",
        "args": [
            "-c",
            "cd /path/to/agent/mcp/android && source .venv/bin/activate && uv run main.py --emulator"
        ],
        "alwaysAllow": [
            "State-Tool",
            "Click-Tool",
            "Type-Tool",
            "Swipe-Tool"
        ]
    }
}

Android MCP Server

A lightweight MCP server for Android operating system automation. This server provides tools to interact directly with Android devices, enabling automated testing, app interaction, and device control.

Features

- Device Control: Click, long click, swipe, drag, and type on Android devices
- State Management: Get device state with optional visual screenshots
- Navigation: Press hardware buttons and access notifications
- Automation: Wait functionality for timing control
- Emulator Support: Works with both physical devices and Android emulators

Prerequisites

- Python 3.13 or higher
- uv package manager
- Android device or emulator with USB debugging enabled
- ADB (Android Debug Bridge) installed and accessible

Installation

1. Install uv (if not already installed)

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.