1. home
  2. work
  3. android-automation

Android automation: DroidWright & MCP

On-device JavaScript automation for Android, and a Playwright-style API that drives phones through MCP.

Role
Author
Status
Released · 2026
Visibility
Open source · 23
Area
Automation, AI & agents, Open source

Problem

Play-store automation apps are click-and-swipe templates, and desktop tools need ADB and a cable. Neither works for real, programmable phone workflows — or for AI agents.

How it flows

  1. Script / AI agent
  2. Framework API
  3. MCP over HTTP
  4. Accessibility Service
  5. Any app

What I built

  1. DroidWright: a Kotlin app that runs JavaScript automation scripts directly on the device via the Accessibility Service — no root, no ADB, no desktop.
  2. A community script market indexed straight from a GitHub repository.
  3. A Playwright-style JS framework that drives a phone over an on-device MCP server (JSON-RPC 2.0 over HTTP / SSE): find elements, tap, type, swipe, open apps, screenshot.
  4. The same MCP surface lets LLM agents operate the phone directly.

Stack

KotlinAccessibility ServiceQuickJSJavaScriptMCPJSON-RPCSSE

Links

↑↓ navigate ↵ open Esc close