danielealbano/android-remote-control-mcp
An MCP Server for Android running on the phone, optmized for token usage, supports also files downloads and cloudflare and ngrok automated tunnelling.
What it solves
This project provides a way for AI models to remotely and fully control an Android device. It eliminates the need for a host computer running ADB (Android Debug Bridge) by running the MCP server directly on the phone, allowing for lower latency, remote access over the internet, and more token-efficient communication between the AI and the device.
How it works
The application runs as a Model Context Protocol (MCP) server on Android using Ktor and Netty. It leverages Android's Accessibility Services to read UI elements, capture screenshots, and execute actions like tapping, typing, and swiping. It can be exposed to AI clients (like Claude or ChatGPT) via a local network, ADB port forwarding, or public HTTPS tunnels (Cloudflare/ngrok). To protect user data, it includes an on-device Privacy Mode that uses a local NER model to redact or pseudonymize sensitive information before it is sent to the AI provider.
Who it’s for
Developers and researchers interested in AI agents and embodied intelligence who want to give LLMs the ability to interact with mobile applications and the Android OS in a real-world, remote-capable environment.
Highlights
- On-Device Server: Runs directly on Android, removing the dependency on a connected PC.
- Extensive Toolset: Offers 57 MCP tools across 14 categories, including screen introspection, file operations, and app management.
- Privacy-First: Features an on-device anonymizer to hide emails, credit cards, and other PII before data leaves the device.
- Flexible Auth: Supports static bearer tokens and a self-contained OAuth 2.1 server for secure connections.
- Remote Access: Integrated support for Cloudflare Quick Tunnels and ngrok for global accessibility.
Related
- Project
- Project
- Project
- Project
- Project