danielealbano/android-remote-control-mcp
An on-device Android MCP server for remote UI and device automation without an ADB host.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
This Kotlin Android app is both the MCP server and the device executor. It embeds Ktor and Netty and exposes JSON-only Streamable HTTP at /mcp, with no SSE. The Android Accessibility Service supplies UI state and screenshots and executes interactions such as node actions and gestures. That puts the control loop on the phone or emulator; ADB remains useful for installation, headless provisioning, or port forwarding, but is not a runtime dependency for ordinary control.
The access layer accepts static bearer tokens, an embedded OAuth 2.1 flow with approval on the device, or both. The listener can bind to localhost, all interfaces, or a specific device IP. Direct HTTPS can use a generated self-signed certificate or an uploaded certificate. A device slug adds a namespace to MCP tool names, letting a single client distinguish tools from multiple phone endpoints without putting a host-side device broker in the execution path.
Key Capabilities & Differentiators
The tool surface spans 75 tools across 16 categories, from UI introspection, gestures and text entry to files, notifications, camera, location, contacts and shell. Compact accessibility state gives the agent structured context, while annotated screenshots provide a visual fallback. Configurable screenshot resolution and quality let operators manage image payloads. Per-tool and per-parameter controls let a UI test expose only the functions it needs.
Privacy Mode combines rules with local multilingual NER to redact detected values or substitute consistent placeholders. In the included eight-language benchmark, detection was 100% for emails, 90.9% for credentials and only 0.8% for names. These are benchmark results, not guarantees for live output. Shell commands and output are unfiltered, and contact event dates and photos remain unchanged. Treat the feature as a way to reduce disclosure, not as a data-loss prevention boundary.
Trade-offs & Limitations
Compared with the listed ADB-based servers, this design removes the need for a permanently connected host and avoids making raw UIAutomator XML the primary screen representation. In an existing ADB lab, that difference may not justify installing and authorizing an Accessibility Service on each device. The project is Android-only; mobile-mcp is the direct comparison if iOS coverage matters.
The main operational risk is the breadth of device access, not the transport choice alone. TLS can protect traffic in transit, but it does not constrain authorized tool calls or stop returned data from reaching the model provider. Keep authentication enabled, prefer a private route where possible, and disable tools the workflow does not need. For commercial adoption, verify the terms in LICENSE.md and THIRD_PARTY_LICENSES.md before use or redistribution; the available metadata does not establish the license terms.
Hardware & Deployment Guide
Install an APK on an Android phone or emulator: choose GMS if Google Play Services is present, or FOSS if it is not. Enable the required Accessibility Service and grant other permissions only for the tool families you need. File operations can use built-in locations or directories authorized through Android's Storage Access Framework. Start with localhost plus ADB forwarding for a workstation client, or deliberately bind to a LAN interface for network access.
Hosted custom connectors need a public HTTPS endpoint. Version 1.13.0 added the account-free relay, which passes encrypted traffic through to TLS termination on the phone and accepts only official signed release APKs. Cloudflare Quick Tunnels and ngrok are alternatives, but terminate TLS at their infrastructure. Version 1.12.0 added ChatGPT connector support, a visible on-device control indicator and access to camera-roll and voice-recording files with Android 14 limited-access handling. Pin a stable release when repeatability matters: the rolling edge APK is replaced in place.
/mcp, with bearer tokens and/or on-device OAuth 2.1 approval.Agent-driven UI testing and remote QA on dedicated Android devices or emulators, where you can limit tool access and do not want a resident ADB host.
You need iOS coverage, cannot grant Accessibility access, or need a guarantee that sensitive device data never reaches an external model provider.
Quick Start & Installation
npx @modelcontextprotocol/inspectorComparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| android-remote-control-mcp ★ | 893 | +26 | Kotlin | — | An on-device Android MCP server for remote UI and device automation without an A |
| chrome-devtools-mcp | 60.4k | +760 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| agent-browser | 55.4k | +1k | Rust | Apache-2.0 | Rust CLI and stdio MCP for agents that read and act on live web pages |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/danielealbano/android-remote-control-mcp.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about android-remote-control-mcp
How does an MCP client connect to the phone?
/mcp over Streamable HTTP. The endpoint returns JSON without SSE. Use a bearer token when the client supports custom headers, or OAuth 2.1 with approval on the device. Hosted custom connectors need a publicly reachable HTTPS URL; a LAN address or local ADB port forward will not reach them.Do I need a GPU, and what overhead does Privacy Mode add?
Can I self-host it for commercial use or redistribute a custom build?
When is this a better fit than an ADB-based server or mobile-mcp?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy