webadb-agent
Controls a physical Android phone or Docker-hosted Android emulator via ADB from the browser and from AI agents. Provides a live screen view in the browser (click = tap, drag = swipe) plus an ADB shell terminal, and MCP tools such as screenshot, tap, swipe, key, type_text, shell, open_app, and device_info.
Runs an Android emulator in Docker as an alternative device backend when no physical phone is available, exposing it over ADB to the bridge for the same web UI and agent access.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@webadb-agentopen Settings on the Android device and take a screenshot"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
webadb-agent ๐ฑ๐๐ค
HP Android kamu โ di web, bisa dikendalikan AI agent juga.
Satu service ringan yang bikin HP Android fisik (atau emulator di Docker) bisa diakses dari browser dan dari AI agent, kayak emulator tapi devicenya punya kamu sendiri.
[HP fisik] โโUSB/WiFiโโโ
โโโบ adb server โโบ webadb-agent bridge โโบ Browser (layar live, klik=tap)
[Emulator Docker] โโโโโโ โโโบ REST API (untuk agent remote)
โโโบ MCP server (untuk agent lokal)Gabungan 3 project
Project | Yang diambil |
yume-chan/ya-webadb (Tango) | ADB client murni TypeScript ( |
Pola remote proxy via tunnel + loop agent inspect โ act โ verify + MCP server | |
Emulator Android di Docker sebagai backend alternatif HP fisik |
Related MCP server: scrcpy-mcp
Quick start (HP fisik)
# 1. Di PC: install platform-tools, colok HP, aktifkan USB debugging
adb start-server && adb devices
# 2. Jalankan bridge
cd packages/bridge && npm install && npm run build
node dist/index.js bridge --port 8080
# โ catat bearer token yang tercetak
# 3. Buka http://localhost:8080, masukkan token โ layar HP live di web,
# klik = tap, drag = swipe. Ada juga terminal ADB shell.Quick start (emulator Docker, tanpa HP)
Butuh Linux + KVM + Docker. Lihat docs/EMULATOR.md.
docker compose -f docker/docker-compose.emulator.yml up -d
adb connect localhost:5555
node packages/bridge/dist/index.js bridge --serial localhost:5555Untuk AI agent
Remote (tunnel, pola ala agent-device proxy) โ lihat docs/REMOTE-ACCESS.md:
cloudflared tunnel --url http://127.0.0.1:8080
curl -H "Authorization: Bearer $TOKEN" $TUNNEL_URL/api/screenshot -o s.pngLokal (MCP stdio) โ tambah ke config MCP client:
{ "mcpServers": { "webadb-agent": {
"command": "node", "args": ["/path/to/packages/bridge/dist/index.js", "mcp"] } } }Tools: screenshot, tap, swipe, key, type_text, shell, open_app, device_info.
Prompt siap pakai: examples/agent-prompt.md. Referensi REST: docs/AGENT-API.md.
Struktur
packages/bridge/src/ โ adb.ts (lapisan ADB) ยท server.ts (web UI + REST + WS)
mcp.ts (MCP stdio) ยท index.ts (CLI)
packages/web/ โ UI web tanpa build step
docs/ โ ARCHITECTURE.md ยท AGENT-API.md ยท REMOTE-ACCESS.md ยท EMULATOR.md
docker/ โ compose emulator + Dockerfile bridge
examples/ โ agent-prompt.mdRoadmap
scrcpy/H.264 streaming via
@yume-chan/scrcpy(ganti screencap polling)Mode WebUSB langsung di browser (tanpa bridge) via
@yume-chan/adb-daemon-webusbFile manager di web UI ยท [ ] multi-device ยท [ ] rekam layar
Lisensi
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Control real Android and iOS devices with LLM agents โ tap, swipe, type, automate flows.
Melaya is a remote MCP server. It gives an assistant hands on your own Android phone and browser: it reads the screen through the accessibility tree, then taps, types and navigates inside the apps and sites you allow-list, with no per-app API. It also builds, schedules and runs agent pipelines across 6k+ connected tools. OAuth 2.1, nothing to install.
Disposable cloud Android emulators for coding agents: run an APK or PR build, tap, type, screenshot.
Drive real devices from your AI Coding tool. Embed a client SDK (Unity, Godot, Flutter, iOS/macOS, Android, React Native, Web) in your app, then capture screenshots, traverse the UI tree, inject taps and key events, and run automated test tasks on the physical device over a secure relay.
Related MCP Servers
- FlicenseAqualityDmaintenanceA MCP server that enables AI assistants to control Android devices via ADB, supporting device info, screen control, input simulation, app management, shell execution, file transfer, and UI parsing.20-
- AlicenseAqualityAmaintenanceMCP server that gives AI agents full vision and control over Android devices via ADB and scrcpy. Supports screenshots, input, apps, UI automation, shell, files, and clipboard.38217 npm103MIT
- AlicenseBqualityDmaintenanceAn MCP server that allows AI agents to drive real Android devices via adb, capturing screenshots, reading the live UI tree, and performing actions like tap, swipe, and type.135 npm1Apache 2.0
- AlicenseAqualityDmaintenanceAn MCP server that gives AI agents full control of Android devices and emulators through plain ADB โ no companion APK, no extra daemon, no telemetry.2616 npm2MIT