# Droid Agent

> Droid Agent is an open-source MCP server for browser automation. MCP server giving AI agents tap, type and screenshot control of Android devices over adb. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS, Windows, API, Self-hosted
- **Repository:** https://github.com/hyusband/droid-agent
- **MCP Registry name:** io.github.hyusband/droid-agent
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation)
- **Listing updated:** 2026-11-19

## About

The README says droid-agent lets an AI agent operate a real Android phone, tablet, TV or emulator without installing anything on the device. It relies only on the stock adb tool already used for debugging, so the phone itself stays untouched.

The core idea is a dump command that turns the uiautomator screen tree into a short numbered list of interactive elements. An agent reads those refs and calls tap, type, swipe or key with a ref number instead of parsing raw XML. Elements flagged as passwords are masked in dumps and not written to the session file.

It ships as a Python package with no third-party dependencies and can also be used directly from a terminal with a --json flag on every command. The built-in MCP server exposes 29 tools, including compound actions such as tap by visible text and waiting for a condition. It suits developers wiring Android control into Claude Code, Cursor or similar clients, and people who want to script devices or run emulators in CI.

## Features

- **No on-device install:** Works over stock adb with wireless or USB debugging, without a companion app or accessibility service on the phone.
- **Numbered element refs:** The dump command condenses the UI tree into numbered, actionable elements that agents can tap by reference.
- **Built-in MCP server:** A stdio MCP server exposes 29 tools for taps, swipes, key events, screenshots, logcat and file transfer.
- **JSON output for every command:** Each command accepts a --json flag so agents and scripts can parse results reliably.
- **Password masking:** Elements flagged as password fields are masked in dumps and never persisted to the session file.
- **Zero dependencies:** Built on the Python standard library; the MCP extra is optional.

## Good for

- Letting an AI agent navigate settings or apps on a physical test phone
- Automating repetitive taps and text entry on Android devices from scripts
- Running Android UI checks against an emulator in continuous integration
- Giving a coding assistant screenshots and UI state from a connected device
- Driving Android TVs or Android Auto head units over adb for testing

## Install

### Claude Code (Terminal)

```sh
claude mcp add droid-agent -- uvx droid-agent
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "droid-agent": {
      "command": "uvx",
      "args": [
        "droid-agent"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "droid-agent": {
      "command": "uvx",
      "args": [
        "droid-agent"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "droid-agent": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "droid-agent"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "droid-agent": {
      "command": "uvx",
      "args": [
        "droid-agent"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "droid-agent": {
      "command": "uvx",
      "args": [
        "droid-agent"
      ]
    }
  }
}
```

## FAQ

### Does Droid Agent need root access on the phone?

No. The README says only USB or wireless debugging needs to be enabled.

### Does Droid Agent work with iPhones?

No. The README states it is Android-only and points to a separate iPhone tool.

### How is Droid Agent installed?

With pipx or pip as droid-agent, with the mcp extra for the MCP server. adb must be on the PATH.

### Is Droid Agent a full agent framework?

No. The README describes it as a primitive control layer that any agent or person can call, without bundled LLM providers.

### Is Droid Agent free?

Yes. Droid Agent is open source, so you can use and self-host it for free.

### How do I add Droid Agent to Claude Code?

Run this command in your terminal: claude mcp add droid-agent -- uvx droid-agent

### What are the best alternatives to Droid Agent?

The closest alternatives to Droid Agent are Droidline, adb-mcp: Android emulator and device control over adb, iPhone Use, Chrome DevTools MCP and Clousd MCP.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Droidline](https://ai-powered.com/mcp/droidline): Droidline is an MCP server for developer tools.
- [adb-mcp: Android emulator and device control over adb](https://ai-powered.com/mcp/adb-mcp-android-emulator-and-device-control-over-adb): adb-mcp: Android emulator and device control over adb is an open-source MCP server for developer tools.
- [iPhone Use](https://ai-powered.com/mcp/iphone-use): iPhone Use is an open-source MCP server for browser automation.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-4): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Clousd MCP](https://ai-powered.com/mcp/clousd-mcp): Clousd MCP is a freemium MCP server for browser automation.
- [Mobilebox: Cloud phones for your agents](https://ai-powered.com/mcp/mobilebox-cloud-phones-for-your-agents): Mobilebox: Cloud phones for your agents is a paid MCP server for browser automation.
- [Unofficial Instagram MCP](https://ai-powered.com/mcp/unofficial-instagram-mcp): Unofficial Instagram MCP is an open-source MCP server for browser automation.
- [ERIUS PHONE](https://ai-powered.com/mcp/erius-phone): ERIUS PHONE is an MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/droid-agent
