Android automation: DroidWright & MCP
On-device JavaScript automation for Android, and a Playwright-style API that drives phones through MCP.
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
- Script / AI agent
- Framework API
- MCP over HTTP
- Accessibility Service
- Any app
What I built
- DroidWright: a Kotlin app that runs JavaScript automation scripts directly on the device via the Accessibility Service — no root, no ADB, no desktop.
- A community script market indexed straight from a GitHub repository.
- 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.
- The same MCP surface lets LLM agents operate the phone directly.
Stack
KotlinAccessibility ServiceQuickJSJavaScriptMCPJSON-RPCSSE