Droidline

Developer toolsTesting and QA

Let an AI agent see and use a real Android phone over Wi-Fi, without ADB or root.

Your AI app calls the Droidline MCP server, which does the developer tools and testing and QA work and sends the result back to the chat.

About Droidline

Droidline is a community MCP server from KnifeLemon, filed in our directory under developer tools and testing and qa. Let an AI agent see and use a real Android phone over Wi-Fi, without ADB or root.

Droidline is listed in the official MCP registry as io.github.KnifeLemon/droidline, version 0.1.13.

At a glance

Publisher
KnifeLemon (community)
Runs
See the README for setup
Install from
MCP bundle: https://github.com/KnifeLemon/Droidline/releases/download/v0.1.13/droidline.mcpb
Written in
Go
License
MIT
GitHub stars
576
Official MCP registry
io.github.KnifeLemon/droidline

How to set up Droidline

  1. Follow the install steps in the Droidline README; it is written in Go, so have that toolchain ready.
  2. Check the Droidline README for keys or settings; the registry lists none that Droidline requires.
  3. Add Droidline to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Droidline tools to confirm the connection.
  5. Run one read-only task with Droidline first, and keep your app asking before each tool call until the results look right.

Droidline compared with similar servers

  • Iterm by ferrislucas has fewer GitHub stars than Droidline (575 against 576); both are community servers, and both run locally.
  • Weread by freestylefly has more GitHub stars than Droidline (585 against 576); both are community servers, and both run locally.
  • Lean Lsp by oOo0oOo has fewer GitHub stars than Droidline (574 against 576); both are community servers, and both run locally.

Before you connect Droidline

  • Give Droidline its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Droidline tool call until you trust what it does with them.
  • Treat text that Droidline fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Droidline on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Droidline

How marketing and sales teams put Droidline to work, by company size. Pick the size closest to yours and start Droidline on one use case.

Small business

  • A small business with a developer can use Droidline to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Droidline to explain and fix a marketing site issue without context switching between tools.
  • A small business can use Droidline to test its booking or checkout flow after each update, so a broken button doesn't cost a week of sales.
  • Droidline runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Droidline to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Droidline to keep scripts and automations documented and versioned as they change.
  • Marketing teams can run Droidline on every landing page release, checking forms, tracking and copy before ads point at it.
  • Start Droidline on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Droidline with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Droidline so web and marketing engineering share one reviewed way of working with AI.
  • Enterprises can plug Droidline into release gates, so marketing pages meet the same quality bar as the product.
  • Droidline is a community server, so have security review the code and pin a version before Droidline touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Droidline README

From KnifeLemon/Droidline on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Automate real Android phones from your code.
Test your apps, script the tasks you repeat, run a shelf of phones, or let an AI agent use one.
Python, Node.js, the shell or HTTP. No ADB, no USB cable, no root.

Website · Docs (droidline.dev/docs) · Download · Sponsor · Quick start · Languages · Guides

English · 한국어 · 简体中文

No ADB, no cable
Install one app on the phone, turn on its permissions and pair it with a QR code. No developer options, no USB debugging, no root.
The same command everywhere
touch is touch in Python, Node.js, the CLI, HTTP and as an MCP tool, all generated from one spec.
Phones anywhere
The phone connects out to your PC, so it works on the same Wi-Fi or on mobile data through a tunnel or a relay you run. Every line is encrypted end to end.

What people use it for

  • Testing your own app on real phones, including flows that cross into other apps, such as a login with a code from a text message.
  • A shelf of phones running the same routine every day, each through its own network or proxy.
  • Giving an AI agent hands: through MCP, Claude, ChatGPT, Cursor and other agents can look at a phone screen and act on it.
  • Small personal automations, such as turning Wi-Fi off at night or collecting a value from an app every hour.

Droidline uses only permissions an ordinary app can get, so a few things are out of reach: see What it cannot do.

See it in action


Try the same demo in your browser, and pick elements on a simulated screen, on droidline.dev

Quick start

You need a PC (Windows, macOS or Linux) and an Android phone with Android 9 or later, on the same Wi-Fi for a first try. The installation guide walks through each step with screenshots.

  1. Run the server on your PC. Download the droidline archive for your system from Releases, put droidline on your PATH, and start it. Leave it running.

    droidline serve
    
  2. Install the app on the phone. Download droidline-agent.apk from the same release page and open it. On the app's Setup tab, turn on the accessibility service, the Droidline keyboard, notifications and unrestricted battery use. On Android 13 and later, allow restricted settings for the app first; the app shows where.

  3. Pair them. Run this on the PC and scan the QR code with the app's Pair tab:

    droidline pair
    

    No camera? Tap Pair on this Wi-Fi in the app and type the 6-digit code it shows: droidline pair 482913.

  4. Send a command.

    droidline launch com.android.settings
    droidline touch text "Network & internet"
    

No phone at hand? droidline-fakephone, included in every release, simulates one with a small demo app. The first-script tutorial builds a complete login script against it.

Use it from your language

Every interface talks to droidline serve on localhost:8780 and uses the same command names.

Python (pip install droidline, Python 3.9+)

from droidline import connect

d = connect()                                  # the phone paired with this PC
d.launch("dev.droidline.demo")
if d.exists("text", "Close ad"):               # conditions never wait and never fail
    d.touch("text", "Close ad")
d.input("id", "email", "knife")                # waits up to 10 s for the element
d.touch("text", "Log in")
print(d.get_text("id", "greeting"))

Node.js and TypeScript (npm install droidline, Node.js 18+)

import { connect } from "droidline";

const d = await connect();
await d.launch("dev.droidline.demo");
await d.input("id", "email", "knife");
await d.touch("text", "Log in", { timeout: 15 });
console.log(await d.getText("id", "greeting"));

C# and .NET (dotnet add package Droidline, .NET 8+ or .NET Framework 4.6.2+)

using Droidline;

await using var d = await DroidlineClient.ConnectAsync();
await d.LaunchAsync("dev.droidline.demo");
await d.InputAsync("id", "email", "knife");
await d.TouchAsync("text", "Log in", timeout: 15);
Console.WriteLine(await d.GetTextAsync("id", "greeting"));

Command line (comes with the server)

droidline touch text "Log in"
droidline which text="Log in" id=main_tab --timeout 15
droidline screenshot shot.png

HTTP (any language, any tool)

curl -s -X POST localhost:8780/devices/_/touch \
  -H 'content-type: application/json' -d '{"by":"text","value":"Log in"}'

AI agents over MCP (Claude, Cursor, VS Code and others)

{ "mcpServers": { "droidline": { "command": "droidline", "args": ["mcp"] } } }

With Claude Code: claude mcp add droidline -- droidline mcp. In Claude Desktop you can instead open droidline.mcpb from Releases, which carries its own droidline; it is also listed in the MCP Registry as io.github.KnifeLemon/droidline. To give an agent fewer tools, add --tools dump,screenshot,touch or --read-only to the args; see Limit what an agent can use. Other languages can open a TCP socket and send one JSON line per command; see Other languages for Go, Java and PHP.

Features

  • Pick the element, not the pixel. dump() returns the screen as a tree with text, id and desc for every element. Commands take the field and the value: touch("id", "login"). When an element refuses a click, Droidline taps its parent or the center of its bounds by itself.
  • Waiting is built in. touch, input and wait wait for their element, 10 seconds by default. Conditions such as exists, checked and which answer at once and never throw for a missing element.
  • Clear errors. Every failure has a code, a message in English, Korean or Chinese, and a flag that says whether retrying helps: NOT_FOUND: Could not find text 'Log in' within 10s. Current screen: com.example / .MainActivity.
  • A shelf of phones. One PC drives many phones. Commands to one phone run in order, different phones run in parallel, and each phone has a name you choose.
  • Per-app proxy. Send chosen apps through a socks5 or http upstream with a local VPN, one upstream per phone, without root.
  • Notifications on the PC. Wait for one, react to every one, reply, open or dismiss it, or forward it to a signed webhook. Once you allow it on the phone, Commands for the phone's own data and functions read and send text messages, read call history and contacts, place calls, copy files and read the location (guide).
  • New mobile IPs. A batch sent with cuts_network keeps running on the phone while it is offline, so airplane mode on, wait, off works as one call. intent opens the Settings page first; the recipes show it step by step.
  • Nothing runs twice. A phone that drops off mobile data resumes where it left off; a command that was in flight is answered from the phone's cache, not run again.
  • Selectors that hold up. Combine conditions or name an element by its neighbors: touch({"class": "android.widget.Switch", "row": {"text": "Wi-Fi"}}). find hands back elements you can click and search inside, and wait_idle waits until the screen stops changing.
  • Optional tools, off until you start them. droidline inspect shows the screen and its elements, suggests selectors with code, and records a script while you use the phone. droidline webdriver lets Appium clients and scripts drive your phones. There is also a pytest plugin, leases for sharing phones between scripts, and picture and text matching for screens without elements.
  • English, 한국어, 简体中文 in the app, the error messages and the docs.

Screenshots

Setup: each permission with a button to its settings screen Pair: scan the QR code or use a 6-digit code Status: connection, route and permissions

Reach phones anywhere

The phone always opens the connection, so it needs no open port. Pick the route that fits your network; the phone tries them in order and returns to Wi-Fi when it can.

Route You need How it works
Same Wi-Fi Nothing The phone finds the PC with a UDP broadcast and connects directly.
Port forward One forwarded port The phone connects to your public address over TLS, pinned to the PC's certificate.
Tunnel cloudflared, ngrok or similar Your PC keeps a tunnel open; the phone reaches it through the tunnel's address.
Your relay Cloudflare Workers or a VPS PC and phone both connect out to a relay you deploy. It forwards lines it cannot read.

Past the two-line handshake every line is encrypted with keys only your PC and phone hold (P-256 and AES-256-GCM), so a tunnel or relay only carries ciphertext. The remote connection guides cover each route step by step.

What it cannot do

Droidline only uses permissions an ordinary app can get, so some things are out of reach. Better to know before you start:

  • It cannot open another app's screens that the app does not export. launch opens the start screen instead.
  • It cannot unlock a PIN, pattern or password lock screen.
  • There is no single command to force stop an app, clear its data or switch the network. Settings differs by phone maker, Android version and language, so the recipes press its buttons, and you may need to adjust the labels for your phone. In the optional device owner mode, clear_data wipes app data directly.
  • Games and some custom-drawn apps expose no elements. Use tap with coordinates and color(x, y) there.
  • Android 15 and later hide one-time codes in notifications from apps. You learn that a code arrived and read it in the app.

The full list explains each one.

Documentation

I want to… Start here
Install everything step by step Installation
Write a first script without a phone Your first script
Use my language Python · Node.js · CLI · HTTP · AI agents
Find the right element on a screen Finding elements
Open apps, links and Settings pages, or list what is installed Apps
Point at elements, or record a script Inspector and recorder
Run Appium scripts Appium and WebDriver
Test with pytest or Node.js Test frameworks
Copy a working pattern Recipes
Look up a command Command reference
Reach phones on mobile data Remote phones
Fix something that does not work Troubleshooting
Understand the wire format spec/PROTOCOL.md

Build from source

Requirements: Go 1.26+, Node.js 22, Python 3.9+, and for the app, JDK 17+ with the Android SDK (Android Studio's bundled JDK works).

git clone https://github.com/KnifeLemon/Droidline.git
cd Droidline
go build ./server/cmd/...              # droidline, droidline-relay, droidline-fakephone
go test ./spec/ ./server/...
node scripts/gen.mjs --check           # SDK methods match spec/commands.json
cd sdk/python && python -m pytest
cd sdk/node && npm ci && npm test
dotnet test sdk/dotnet
cd agent && ./gradlew assembleDebug testDebugUnitTest

scripts/integration.sh runs the server, the simulated phone and both SDK demos together, which is what CI does.

Path What it is
spec/ commands.json (every command, in three languages), PROTOCOL.md, crypto test vectors
server/ Go: droidline (server, CLI, MCP), droidline-relay, droidline-fakephone
agent/ The Android app, in Kotlin
sdk/python, sdk/node, sdk/dotnet Official SDKs, generated from the spec plus a thin client
relay/worker A relay for Cloudflare Workers
examples/ Demo scripts that run against the simulated phone

Contributing

Pull requests are welcome; CONTRIBUTING.md explains how the spec, generator and tests fit together. The most useful contribution right now is a report from a real phone: which brand and Android version, and whether the Settings recipes for force stop, clearing data and the network switches work with its labels. If Droidline saves you some taps, a ⭐ helps other people find it.

Status

Version 0.1. The server, CLI, MCP adapter, relay and both SDKs pass their tests against the phone simulator, and the app passes its unit tests and runs on an Android 13 emulator. Testing across phone brands is the next step. docs/STATUS.md lists exactly what has been verified and how.

Security and privacy

Pairing decides who may control a phone, and everything after the handshake is encrypted end to end. Report security problems privately as described in SECURITY.md.

Droidline collects no usage data and sends no telemetry. The server listens on your own machine; the app talks only to the PC it is paired with, and to GitHub once a day to check for a new release. Use Droidline on phones and accounts you own or may automate; the terms say what it is for.

License

MIT. See LICENSE.

Questions about Droidline

What is the Droidline MCP server?

Let an AI agent see and use a real Android phone over Wi-Fi, without ADB or root. Droidline is maintained by KnifeLemon on GitHub at KnifeLemon/Droidline, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Droidline MCP server?

Droidline doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (KnifeLemon/Droidline). Like most servers, Droidline ends with a command or URL you paste into your AI app's MCP config.

Does Droidline need an API key?

The registry lists no required keys for Droidline. Check the Droidline README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Droidline an official MCP server?

No. Droidline is a community server maintained by KnifeLemon. Community servers can be excellent; read the code and the open issues before you give Droidline access to company data.

What license is Droidline under?

Droidline is released under the MIT license, according to its GitHub repository. The license covers the code of Droidline; the service it connects to has its own terms.