Skip to content
MCP server

Pilotdroid

MCP server giving AI agents fast tap, swipe and screen control over Android devices

Runs locally

Pilotdroid is an open-source MCP server for mobile apps. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, API, Linux
Runs
Locally
Version
0.12.1
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add pilotdroid -- uvx pilotdroid

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "pilotdroid": {
      "command": "uvx",
      "args": [
        "pilotdroid"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "pilotdroid": {
      "command": "uvx",
      "args": [
        "pilotdroid"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "pilotdroid": {
      "command": "uvx",
      "args": [
        "pilotdroid"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "pilotdroid": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "pilotdroid"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add pilotdroid -- uvx pilotdroid

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.pilotdroid]
command = "uvx"
args = ["pilotdroid"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "pilotdroid": {
      "command": "uvx",
      "args": [
        "pilotdroid"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "pilotdroid": {
          "command": "uvx",
          "args": [
            "pilotdroid"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user pilotdroid uvx -- pilotdroid

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "pilotdroid": {
          "command": "uvx",
          "args": [
            "pilotdroid"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "pilotdroid": {
          "command": "uvx",
          "args": [
            "pilotdroid"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "pilotdroid": {
          "command": "uvx",
          "args": [
            "pilotdroid"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "pilotdroid": {
          "command": "uvx",
          "args": [
            "pilotdroid"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "pilotdroid": {
          "command": "uvx",
          "args": [
            "pilotdroid"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "pilotdroid": {
          "command": "uvx",
          "args": [
            "pilotdroid"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "pilotdroid": {
          "command": "uvx",
          "args": [
            "pilotdroid"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • PILOTDROID_SERIALADB serial of the target device (optional; defaults to the sole connected device)

About Pilotdroid

Pilotdroid is a Rust-built automation stack for Android devices that runs a resident on-device agent and talks to it over a persistent binary protocol, so scripted UI steps avoid the per-call HTTP round trips that slow down uiautomator2. Batched operations and on-device waits let several steps run in one exchange, and the project reports large wall-clock gains over uiautomator2 on the same test scripts.

The same device backend is reachable three ways: a command-line tool for one-off operations, a stdio MCP server exposing 27 tools to AI clients, and a Rust library facade. A Python shim mirrors much of the uiautomator2 API so existing scripts can run with little change, though XPath selectors are deliberately unsupported.

It suits developers building AI agents that drive real Android phones, and QA or automation engineers who want lower latency than uiautomator2 offers. Each device should be served by a single client at a time, since a second connection displaces the first.

What it does

Persistent binary protocol
Keeps a single open channel to the device agent so commands avoid repeated HTTP round trips.
On-device batch execution
Runs sequences of taps, waits and conditional steps inside the device in one exchange.
MCP server with 27 tools
Exposes device actions such as tap, swipe, selectors and screen streaming to MCP clients over stdio.
Live frame streaming
Streams screen frames as MJPEG for browser viewing or reads them through MCP.
uiautomator2-compatible shim
Python layer that runs many uiautomator2 calls with little or no script change.
Popup watcher
Detects and dismisses matching on-screen elements automatically on the device.

Good for

  • Letting an AI agent navigate and test Android apps through MCP
  • Speeding up existing uiautomator2 test scripts on physical devices
  • Automating repetitive taps and text entry on Android phones over USB or Wi-Fi ADB
  • Dismissing unexpected dialogs automatically during long automation runs
  • Capturing live screen output from a device for monitoring or debugging

Pricing

Open source

Pilotdroid FAQ

How do I connect Pilotdroid to an MCP client?

Install the pilotdroid-cli binary and add a server entry to the client's mcpServers config with the command pilotdroid-cli and the argument serve. For multiple devices, pass the serial with -s.

Does Pilotdroid support XPath selectors?

No. XPath is explicitly out of scope; the Python shim rejects it with a ValueError, while text, resource ID, description, class name and similar selectors are supported.

Can I run Pilotdroid on Windows?

A Windows binary is published, but it has only been compiled and checked in CI, not yet run on a real Windows machine.

Is Pilotdroid open source?

The repository is released under the MIT license.

Is Pilotdroid free?

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

How do I add Pilotdroid to Claude Code?

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

What are the best alternatives to Pilotdroid?

The closest alternatives to Pilotdroid are Phone Harness, Mobile Device MCP, MCP Android, Android Puppeteer MCP and droidsight.

Where this comes from

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

How AIPoweredBot checks servers