Featured

Deploy OpenClaw in 60 seconds β€” 20% off logoDeploy OpenClaw in 60 seconds β€” 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger β†’
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger β†’
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free β†’
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now β†’
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data β€” no proxies, no parsers, no maintenance.

Start building free β†’
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it β€” secured from day one.

Get it set up for you β†’
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free β†’
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here β†’

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

android-mcp-server MCP server](https://glama.ai/mcp/servers/martingeidobler/android-mcp-server/badges/score.svg)](https://glama.ai/mcp/servers/martingeidobler/android-mcp-server) πŸ“‡ 🏠 - 21-tool Android device control via ADB β€” screenshots with...

README.md

Android MCP Server

![npm version](https://www.npmjs.com/package/android-mcp-server) ![npm downloads](https://www.npmjs.com/package/android-mcp-server) ![License: MIT](https://opensource.org/licenses/MIT) ![android-mcp-server MCP server](https://glama.ai/mcp/servers/martingeidobler/android-mcp-server) ![Awesome MCP Servers](https://github.com/punkpeye/awesome-mcp-servers) ![Socket Badge](https://socket.dev/npm/package/android-mcp-server)

MCP server for controlling Android emulators and devices via ADB. Gives AI assistants the ability to see, interact with, and debug Android apps β€” taking screenshots, tapping elements, reading logs, and documenting bugs.

npm Package | GitHub | Issues

!ezgif-3bbb68e918812643 ^ Sped up for better viewing. More demos and test cases.

Features

  • 25 tools for complete Android device control
  • Screenshot capture with intelligent compression (Sharp-based, max 1280px)
  • UI tree inspection β€” read element hierarchy with bounds, text, resource IDs, and state
  • Touch automation β€” tap, swipe, scroll, type text, press hardware keys
  • Element targeting β€” find and tap elements by resource-id, text, or content-desc
  • App lifecycle β€” install APKs, launch apps, inspect current activity
  • Logcat integration β€” filter by package, log level, or timestamp
  • Device management β€” list devices, start emulators, get device info
  • Compound actions β€” tap_and_wait combines tap + settle + UI tree in one round trip
  • Persistent ADB shell β€” reuses a single shell session for faster command execution
  • Device info caching β€” queries device properties once per session
  • Multi-device support β€” target specific devices by ID
  • Zero app modifications β€” works with any Android app via ADB, no SDK integration needed

Prerequisites

  • Node.js 18+
  • Android SDK with platform-tools (ADB) and emulator
  • A running Android emulator or connected device

Finding your ANDROID_HOME

The server auto-discovers the SDK at ~/Library/Android/sdk (macOS) or via ANDROID_HOME. If your SDK is elsewhere, set ANDROID_HOME in the MCP config (see below).

To check: ```bash

macOS

ls ~/Library/Android/sdk/platform-tools/adb

Or find it via Android Studio: Settings > Languages & Frameworks > Android SDK


## Setup

<details>
<summary><b>Claude Code</b></summary>

claude mcp add --scope user android -- npx -y android-mcp-server ```

This registers the server globally so it's available in all projects. Use --scope project instead to limit it to the current project.

If your SDK is not in the default location: ``bash claude mcp add --scope user --env ANDROID_HOME=/path/to/sdk android -- npx -y android-mcp-server ``

</details>

<details> <summary><b>Claude Desktop</b></summary>

Add to your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "android": {
      "command": "npx",
      "args": ["-y", "android-mcp-server"],
      "env": {
        "ANDROID_HOME": "/path/to/android/sdk"
      }
    }
  }
}

</details>

<details> <summary><b>VS Code</b></summary>

Add to your VS Code settings (.vscode/settings.json):

{
  "mcp": {
    "servers": {
      "android": {
        "command": "npx",
        "args": ["-y", "android-mcp-server"],
        "env": {
          "ANDROID_HOME": "/path/to/android/sdk"
        }
      }
    }
  }
}

</details>

<details> <summary><b>Cursor</b></summary>

Add to your Cursor MCP config (~/.cursor/mcp.json):

{
  "mcpServers": {
    "android": {
      "command": "npx",
      "args": ["-y", "android-mcp-server"],
      "env": {
        "ANDROID_HOME": "/path/to/android/sdk"
      }
    }
  }
}

</details>

<details> <summary><b>Windsurf</b></summary>

Add to your Windsurf MCP config (~/.codeium/windsurf/mcp_config.json):

{
  "mcpServers": {
    "android": {
      "command": "npx",
      "args": ["-y", "android-mcp-server"],
      "env": {
        "ANDROID_HOME": "/path/to/android/sdk"
      }
    }
  }
}

</details>

<details> <summary><b>Project config (.mcp.json)</b></summary>

Add to your project's .mcp.json (checked into version control so your team gets it too):

{
  "mcpServers": {
    "android": {
      "command": "npx",
      "args": ["-y", "android-mcp-server"],
      "env": {
        "ANDROID_HOME": "/path/to/android/sdk"
      }
    }
  }
}

</details>

<details> <summary><b>Build from source</b></summary>

git clone https://github.com/martingeidobler/android-mcp-server.git
cd android-mcp-server
npm install
npm run build
claude mcp add --scope user android -- node /path/to/android-mcp-server/dist/index.js

</details>

Available Tools

Device Management

| Tool | Description | |------|-------------| | list_devices | List connected Android devices and emulators | | list_avds | List available Android Virtual Devices | | start_emulator | Start an AVD by name (waits up to 60s) |

Screenshot & UI Analysis

| Tool | Description | |------|-------------| | screenshot | Take screenshot for visual analysis. Optional save_path to save to disk | | get_ui_tree | Get UI element hierarchy with bounds, text, resource IDs, and state |

Interaction

| Tool | Description | |------|-------------| | tap | Tap at screen coordinates | | tap_element | Tap element by resource-id, text, or content-desc | | tap_and_wait | Tap element, wait for UI to settle, return new UI tree β€” single round trip | | long_press | Long press at coordinates (context menus, drag handles) | | double_tap | Double tap at coordinates | | multi_tap | Tap the same coordinates N times with a fixed interval (spam tapping) | | tap_sequence | Multi-step action chain: taps, waits, text input, key presses, swipes in any order | | type_text | Type text into focused input | | press_key | Press key (back, home, enter, tab, delete, menu, etc.) | | swipe | Swipe gesture between coordinates | | scroll_to_element | Scroll until element is visible | | wait_for_element | Wait for element to appear (with timeout) |

Diagnostics

| Tool | Description | |------|-------------| | get_logs | Get logcat output, filterable by package, log level, and time | | clear_logs | Clear logcat buffer (call before reproducing a bug for clean output) | | get_device_info | Get model, Android version, API level, screen size, DPI |

App Management

| Tool | Description | |------|-------------| | launch_app | Launch app by package name | | install_apk | Install APK file | | get_current_activity | Get foreground app and activity | | pull_file | Pull a file from the device to local filesystem | | adb_shell | Run arbitrary ADB shell command |

Example Workflows

Bug documentation

<!-- TODO: Add GIF demo -->

"Clear the logs, open the settings screen, tap the save button, then show me the logs and a screenshot"

Claude will: clear_logs β†’ launch_app β†’ tap_element β†’ get_logs(package_name="com.example.app", level="E") β†’ screenshot(save_path="./bugs/settings-crash.png")

UI testing

<!-- TODO: Add GIF demo -->

"Navigate through the login flow and verify each screen matches the designs"

Claude will use screenshot + get_ui_tree to see and understand each screen, tap_element/type_text to interact, and its vision capabilities to compare against mockups or descriptions.

Smoke testing

<!-- TODO: Add GIF demo -->

"Install the APK, launch the app, and tap through the main screens to check nothing crashes"

Claude will: install_apk β†’ launch_app β†’ navigate with tap_element β†’ get_logs(level="E") to check for errors after each screen.

Element interaction

<!-- TODO: Add GIF demo -->

"Open Settings, search for 'display', tap the first result, then go back"

Claude will: launch_app(package_name="com.android.settings") β†’ tap_and_wait(by="text", value="Search settings") β†’ type_text("display") β†’ tap_and_wait(by="text", value="Display") β†’ press_key(key="back")

Demos & Prompting Guide

  • DEMOS.md β€” copy-paste prompt scenarios you can try right now
  • PROMPTING.md β€” best practices, performance tips, and common pitfalls

How It Works

The server communicates over stdio using the Model Context Protocol. All device interaction goes through ADB β€” no modifications to your app are required. Screenshots are captured in memory, compressed, and returned as base64 images that the AI can see and analyze visually.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

License

MIT - see LICENSE.

See related servers & alternatives β†’

Related MCP servers

Browse all β†’

Related guides

Hand-picked reading to help you choose and use Other servers.