Netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
NEnetdata/netdata82k100 new stars in the last 7 days
An MCP Server for Android running on the phone, optmized for token usage, supports also files downloads and cloudflare and ngrok automated tunnelling.
An Android application that runs as an MCP (Model Context Protocol) server, enabling AI models to fully control an Android device remotely using accessibility services and screenshot capture.
The app runs directly on your Android device (or emulator) and exposes an HTTP server (with optional HTTPS) implementing the MCP protocol. AI models like Claude can connect to it and interact with any app on the device: reading UI elements, tapping buttons, typing text, swiping, capturing screenshots, managing files, launching apps, and more.
Optional Privacy Mode detects and hides personal data, such as emails, card numbers, credentials and names, in what the tools return, before it leaves the device for the AI provider. Detection runs entirely on the device. It reduces exposure, but cannot guarantee that nothing personal gets through.
To reach the phone from anywhere, the free end-to-end encrypted HTTPS tunnel gives it a public URL with no account and no registration. TLS ends on the phone, so the tunnel service only relays encrypted bytes and cannot read your traffic. Cloudflare and ngrok are also supported, but they terminate TLS themselves and can read it.
Warning: This software is provided "as-is" without warranty of any kind, for research and educational purposes only. The authors do not condone the use of this tool for any illegal, unauthorized, or unethical activities. Users are solely responsible for ensuring their use complies with all applicable laws and regulations. By using this software, you agree to use it responsibly and at your own risk.
Warning: The free E2E HTTPS tunnel only works with the signed builds from this repository's Releases; other builds are refused for security reasons.
Posting on Reddit (sped up, ~6 min original) |
Installing the booking.com app |
Flight search on Skyscanner, Zurich → Istanbul (sped up, ~4 min original) |
An AI model controlling an Android device through the MCP server — click any clip for full resolution.
/mcp (MCP specification compliant, JSON-only, no SSE)Screen introspection, system actions, touch actions, gestures, node actions, text input, utilities, file operations, app management, camera, intents, notifications, location, sharing, and shell.
All tool names use the android_ prefix by default (e.g., android_tap). When a device slug is configured (e.g., pixel7), the prefix becomes android_pixel7_ (e.g., android_pixel7_tap).
See docs/MCP_TOOLS.md for the full tool reference with input/output schemas and examples.
| Feature | This project | mobile-mcp | Android-MCP | android-mcp-server | adb-mcp | droidrun-mcp |
|---|---|---|---|---|---|---|
| MCP tools | 65 | 21 | 11 | 5 | 10 | 11 |
| Runs on the phone (no ADB) | :white_check_mark: | :x: | :x: | :x: | :x: | :x: |
| Action latency | 10-100 ms | 1-4 s | 1-4 s | 1-4 s | 1-4 s | 1-4 s |
| Works over the internet | :white_check_mark: | :x: | :x: | :x: | :x: | :x: |
| Token-efficient screen state | :white_check_mark: | :x: | :white_check_mark: | :x: | :x: | :white_check_mark: |
| Annotated screenshots | :white_check_mark: | :x: | :white_check_mark: | :x: | :x: | :x: |
| Configurable screenshot resolution/quality | :white_check_mark: | :x: | :x: | :x: | :x: | :x: |
| Per-tool enable/disable | :white_check_mark: | :x: | :x: | :x: | :x: | :x: |
| Multi-device support | :white_check_mark: | :white_check_mark: | :x: | :x: | :x: | :x: |
| Camera, clipboard, files, downloads | :white_check_mark: | :x: | :x: | :x: | :x: | :x: |
| iOS support | :x: | :white_check_mark: | :x: | :x: | :x: | :x: |
Most alternatives rely on ADB running on a host machine, which means a USB cable or local network connection and a computer sitting next to the phone. This project runs entirely on the device itself, so you can expose the MCP endpoint through a tunnel and control your phone from anywhere.
On the token efficiency side, ADB-based tools typically return raw uiautomator XML dumps which can easily be 10-50x more verbose than the compact representation used here. Combined with numbered screenshot annotations, configurable image quality, and the ability to disable tools you don't need (every tool definition costs tokens on every turn), this significantly reduces the per-interaction cost in agentic loops.
Each release provides two flavors of the APK — pick the one that matches your device:
…-gms-release.apk) — the full build. Requires Google Mobile Services (Google Play Services) installed on the phone. Choose this on standard devices/emulators that ship with Google services.…-foss-release.apk) — a Google-free build with no dependency on Google Mobile Services. Works on any Android phone, including de-Googled ROMs and devices where Google services are unavailable.If unsure, the GMS build is the right choice for a typical phone with the Play Store.
adb install android-remote-control-mcp-<version>-gms-release.apk
git clone https://github.com/danielealbano/android-remote-control-mcp.git
cd android-remote-control-mcp
make build
make install # installs on connected device/emulator
See CONTRIBUTING.md for full build requirements and instructions.
Open the app. The Server tab shows a permission warning banner; grant permissions from there or via Settings > Permissions.
Grant permissions:
Start the server. Go back to the Server tab and tap Start.
The server starts on http://127.0.0.1:8080 by default. The connection info (IP, port, token, URL) is displayed on the Server tab.
Note:
127.0.0.1refers to the phone's localhost, not your computer. To connect from your computer, use adb port forwarding, bind to0.0.0.0(network mode), or enable a remote access tunnel.
Privacy Mode detects and hides personal data — emails, credit cards and IBANs, credentials, phone
numbers, national IDs, addresses, and names — in everything the MCP tools return (screen content,
notifications, clipboard, files, …) before it leaves the device for the AI provider. Detection
runs fully on-device: fast rule-based checks (checksums, formats, field context) combined with a
local NER model — no cloud calls. Detected values are either pseudonymized with consistent
placeholders (EMAIL#a1b2c, so AI tools keep working across screens) or fully redacted. Detection
is best-effort mitigation, not a guarantee.
Shell tools are not covered: commands and their output pass through unchanged.
The model is the Ai4Privacy multilingual anonymiser (MIT license, Built with Llama), downloaded once on first enable (~150 MB) directly from the pinned Hugging Face revision and checksum-verified on device.
Share of personal data items detected per category by the full pipeline, measured with the in-repo
effectiveness benchmark (make privacy-benchmark) on realistic UI-style content across 8 languages:
| Category | Detected |
|---|---|
| Addresses | 77.9% |
| Cards & IBANs | 75.3% |
| Credentials | 90.9% |
| Emails | 100.0% |
| Names | 0.8% |
| National IDs | 93.0% |
| Phone numbers | 84.4% |
Names are the on-device model's known weak spot (it recognizes common Western names far better than the globally diverse names in the benchmark); improving name detection with a fine-tuned model is on the roadmap. Actual results vary with content and language.
Add the server to your .mcp.json configuration file:
{
"mcpServers": {
"android-phone": {
"type": "http",
"url": "http://DEVICE_IP:PORT/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}
Replace DEVICE_IP, PORT, and YOUR_TOKEN with the values shown in the app's Server tab. If the server is bound to localhost (default), you'll need adb port forwarding or a remote access tunnel to connect.
Note for clients without custom-header support: if your MCP client cannot send an
Authorizationheader and does not support OAuth, you can turn off both auth methods in the app (Settings → Access — disable Bearer token and OAuth). The app warns and asks you to confirm, because the server is then open: anyone who can reach it has full control. Only do this on a network you trust.
Claude.ai (web) and Claude Desktop connect as a custom connector (remote MCP) using OAuth 2.1 — the app is its own OAuth Authorization Server, so no external account or pre-registration is needed. This requires the server to be reachable over a public HTTPS URL, so you must first enable a remote access tunnel — a localhost/LAN address or adb port-forward will not work.
https://…/mcp URL from the Server tab (e.g. https://<name>.d.arc-tunnel.io/mcp).https://…/mcp URL, and leave the OAuth Client ID and Client Secret blank (Claude identifies itself to the app, no registration needed). Click Add. On the phone, the Claude button of the Register with card on the Server screen opens this form already filled in.Public URL override (optional): if your tunnel/host topology needs a fixed public host (or you bind to
0.0.0.0without a trusted proxy), set a Public URL override in Settings → Access so OAuth metadata and links use a stable host.
Custom connectors are available on the Free (1 connector), Pro, Max, Team, and Enterprise plans (currently in beta).
⚠️ Security: treat the public tunnel URL as sensitive, approve only connections you initiated (verify the 2-digit code), revoke clients you no longer use, and stop the tunnel and server when you are done. Never point it at a device holding sensitive data.
ChatGPT connects as a custom MCP server (shown as a plugin) over OAuth 2.1. It needs a public HTTPS URL, so enable a remote access tunnel first.
If Add custom MCP server is missing in step 2, your plan or workspace does not allow it.
https://…/mcp URL from the Server tab.@ and pick the plugin. It also works in the ChatGPT Android app.To remove it, open Settings → Plugins in ChatGPT, pick the plugin, choose Uninstall, then revoke the client in this app under Settings → Access → Connected clients. ChatGPT is one row there for all its plugins and accounts connected to this phone, so revoking it ends every ChatGPT connection. A plugin connected before the app supported client metadata documents keeps a row of its own.
⚠️ Security: the same cautions as for Claude apply.
Gemini connects as a custom app over OAuth 2.1. It needs a public HTTPS URL, so enable a remote access tunnel first.
Google requires a personal Google Account, age 18 or over, Gemini in English, and Gemini History turned on. It is not available in every country. The free plan works.
https://…/mcp URL from the Server tab.@ and pick the app. It also works in the Gemini mobile app.To remove it, open Customize → Connectors → Custom apps → … → Delete, then revoke the client under Settings → Access → Connected clients.
⚠️ Security: the same cautions as for Claude apply.
Kimi connects through a personal plugin that wraps this MCP server, over OAuth 2.1. It needs a public HTTPS URL, so enable a remote access tunnel first.
These steps follow Kimi's help on creating and using plugins. They have not been checked on a real Kimi account.
https://…/mcp URL from the Server tab./ in a conversation, or choose Custom plugin in the plugin marketplace. Ask for a plugin for this MCP server and give it the URL./ or choose + → Plugins and pick the plugin. Plugins work in the Kimi Work desktop app, with K3 or K3 Swarm, and in Deep Research, Build and PPT. They do not work yet in Kimi Claw or Kimi Plus.To remove it, open Plugins → Personal in Kimi, uninstall the plugin and delete its entry, then revoke the client in this app under Settings → Access → Connected clients.
⚠️ Security: the same cautions as for Claude apply.
The MCP server exposes a standard Streamable HTTP endpoint at /mcp with combined authentication (static bearer token and/or OAuth 2.1). Any MCP-compatible client can connect to it — refer to your client's documentation for the specific configuration format.
MCP Inspector is the official visual testing tool for MCP servers. It provides a browser-based UI to connect, list tools, fill parameters, and see responses:
npx @modelcontextprotocol/inspector
This opens a UI at http://localhost:6274 where you can connect to your server and test tools interactively.
All requests are sent as JSON-RPC 2.0 via POST /mcp (Streamable HTTP transport). The server is stateless: every request stands alone, so there is no session to open and no mcp-session-id to send, and tools can be called directly:
# List available tools
curl -X POST http://localhost:8080/mcp \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
# Get the current screen state (UI nodes + optional screenshot)
curl -X POST http://localhost:8080/mcp \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"android_get_screen_state","arguments":{}}}'
# Tap at coordinates
curl -X POST http://localhost:8080/mcp \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"android_tap","arguments":{"x":540,"y":1200}}}'
The bearer token is shown in the app's connection info and can be copied directly. Bearer authentication is controlled by the Bearer token toggle in Settings → Access (not by clearing the value): with it enabled, every /mcp request must present the token (or a valid OAuth access token). The server accepts unauthenticated requests only when both the Bearer token and OAuth are disabled.
| Setting | Default | Description |
|---|---|---|
| Port | 8080 | HTTP/HTTPS server port |
| Binding Address | 127.0.0.1 | 127.0.0.1 (localhost, use with adb port forwarding), 0.0.0.0 (network, all interfaces) or a specific IP address of the device (IPv4 or IPv6, not IPv6 link-local, without a zone index such as %3; the server does not start while the device does not have it) |
| Bearer Token | Enabled, auto-generated UUID | Static token for MCP requests (Settings → Access). Enforcement is set by the Bearer toggle, not by clearing the value. |
| OAuth | Enabled | Self-contained OAuth 2.1 server for Claude.ai / Claude Desktop, ChatGPT, Gemini and Kimi custom connectors (Settings → Access). |
| Public URL override | Empty (auto-detect) | Pin the public host used for OAuth metadata and share links. |
| HTTPS | Disabled | Enable HTTPS with auto-generated self-signed certificate (configurable hostname) or upload custom .p12/.pfx |
| Auto-start on Boot | Disabled | Start MCP server automatically when device boots |
| Device Slug | Empty | Optional device identifier for tool name prefix (e.g., pixel7 makes tools android_pixel7_tap) |
| Remote Access Tunnel | Disabled | Expose server via public HTTPS URL (free E2E tunnel by default; Cloudflare Quick Tunnels or ngrok) |
| Tunnel Local Port | The server port on installs from before this setting (unless their HTTPS kept their Cloudflare/ngrok tunnel off), a random port of 61000-65535 otherwise | The port Cloudflare and ngrok forward to (http://localhost:<port>). When the server serves plain HTTP on 127.0.0.1 on that same port (Localhost, Network, or the Specific IP 127.0.0.1), the tunnel uses it; otherwise the server opens a plain HTTP listener of its own on 127.0.0.1:<port>, with the same authentication. With HTTPS on and such a binding, choose a port other than the server port |
| Tool Permissions | All enabled | Per-tool and per-parameter enable/disable (Settings > MCP Tools) |
| File Size Limit | 50 MB | Maximum file size for file operations (range 1-500 MB) |
| Allow HTTP Downloads | Disabled | Allow non-HTTPS downloads via android_download_from_url |
| Allow Unverified HTTPS | Disabled | Accept unverified (self-signed or invalid) HTTPS certificates for android_download_from_url (less secure) |
| Block Local Network Downloads | Disabled | android_download_from_url refuses to connect to this phone, the local network or VPN addresses (loopback, unspecified, private LAN, link-local, CGNAT/Tailscale and IPv6 unique-local addresses, including their IPv4-mapped/compatible IPv6 forms) |
| Download Timeout | 60 seconds | Timeout for file downloads (range 10-300 seconds) |
| Shell: Allow Elevated Commands | Disabled | Lets MCP clients ask to run single shell commands through Shizuku (as the adb shell user, or as root when Shizuku runs as root) or su (as root). Every shell setting is in Settings → Shell and applies at once, also while the server runs |
| Shell: Auto-allow Elevation | Disabled | Run every elevated command without asking (the blocklist still applies) |
| Shell: Blocklist | Empty | Commands matching a pattern are always refused, elevated or not (a pattern matches the whole command, * matches anything: *reboot*). It compares text only, so the same action written another way is not refused |
| Shell: Allowlist | Empty | Elevated commands matching a pattern run without asking while auto-allow is off (a pattern matches the whole command; * never matches ;, &, |, `, $, (, ), <, > or a line break); any other elevated command asks for approval on the phone. Environment variables sent with the command (envs) are not checked |
| Shell: Maximum Running Processes | 16 | Range 1-64. Android can stop child processes of apps when more than 32 run on the device; a normal command stopped this way ends with exit code 137 and no other notice. |
| Shell: Finished Processes Kept | 32 | Range 0-256 |
| Shell: Background Timeout, Default | 30 minutes | From 1 minute up to the maximum |
| Shell: Background Timeout, Maximum | 120 minutes | Range 1-1440 minutes, not below the default |
| Shell: Approval Timeout | 60 seconds | Range 10-85 seconds |
| Shell: Foreground Wait Limit | 90 seconds | Range 10-90 seconds; android_shell_exec waits at most this long, then the command continues in the background |
| Shell: Output per Call | 64 KiB | Range 4-256 KiB |
| Shell: Output Kept per Process | 1024 KiB | Range 64-16384 KiB; beyond it only the start and the end of the output are kept. It is held in the app's memory for every running and every kept finished process: (running + kept) × output kept per process must not exceed 64 MiB, and a change that would go over it is refused |
When the server is bound to 127.0.0.1 (default, most secure):
# Forward device port to host
adb forward tcp:8080 tcp:8080
# Test connection from host
curl -X POST http://localhost:8080/mcp \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"ping"}'
When the server is bound to 0.0.0.0:
POST http://DEVICE_IP:8080/mcp with bearer tokenWarning: Binding to 0.0.0.0 exposes the server to all devices on the same network. Only use on trusted private networks.
To listen on one address only (the device's address on a VPN such as Tailscale, for example), choose Specific IP and enter an IP address of the device: the server listens on that address alone (plus 127.0.0.1 when a tunnel is enabled, for the tunnel), so normally only the network of that address reaches it, and does not start while the device does not have it.
For connecting from outside the local network without port forwarding:
d.arc-tunnel.io and a public certificate (Let's Encrypt, Google Trust Services or ZeroSSL) issued to its own key, and terminates TLS itself — the tunnel service only relays ciphertext (unlike Cloudflare or ngrok, which read the traffic). When the phone supports it, the attestation it sends at enrollment and at every certificate renewal also carries its brand, device, product, manufacturer and model, and the service keeps the last 10 attestations of each name. Besides the attestation, the app sends what the phone reports about itself (the brand, device, product, manufacturer, model and build fingerprint Android gives it) with the enrollment and every renewal. The service keeps these apart from the attested values, with the name and with each stored attestation. An older tunneld ignores them, and a phone enrolled earlier sends them from its next renewal. The refresh icon next to the URL re-enrolls under a new name. A Certificate Transparency check (on by default) warns if a certificate for your name is ever issued to another key. A status check (on by default) reads the public status page at most every 30 minutes while the server is running or the Server screen is open, and warns, on the Server screen and with a notification, when the service reports a problem. Self-hosters change the base address. Self-hosting needs tunneld 0.8.0 or later.*.trycloudflare.com HTTPS URL.Cloudflare and ngrok forward to http://localhost:<tunnel local port> (Settings → Tunnel), so they also work while the server serves HTTPS: the server then gives them a plain HTTP listener of its own on 127.0.0.1.
Enable the tunnel in the app's "Remote Access" section. The public URL is displayed in the connection info and server logs.
The app can be fully configured and controlled from the command line without opening the UI. This is useful for automated setups, CI pipelines, or headless devices.
Replace <app-id> with the application ID for your build:
com.danielealbano.androidremotecontrolmcp.gms.debugcom.danielealbano.androidremotecontrolmcp.foss.debugcom.danielealbano.androidremotecontrolmcp# Enable Accessibility Service (required for UI introspection, actions, and screenshots)
adb shell settings put secure enabled_accessibility_services \
<app-id>/com.danielealbano.androidremotecontrolmcp.services.accessibility.McpAccessibilityService
# Enable Notification Listener Service (required for notification tools)
adb shell cmd notification allow_listener \
<app-id>/com.danielealbano.androidremotecontrolmcp.services.notifications.McpNotificationListenerService
# Grant notification permission (Android 13+)
adb shell pm grant <app-id> android.permission.POST_NOTIFICATIONS
# Grant camera permission
adb shell pm grant <app-id> android.permission.CAMERA
# Grant microphone permission
adb shell pm grant <app-id> android.permission.RECORD_AUDIO
# Grant location permissions
adb shell pm grant <app-id> android.permission.ACCESS_FINE_LOCATION
adb shell pm grant <app-id> android.permission.ACCESS_COARSE_LOCATION
adb shell pm grant <app-id> android.permission.ACCESS_BACKGROUND_LOCATION
# Grant nearby WiFi devices permission (Android 13+)
adb shell pm grant <app-id> android.permission.NEARBY_WIFI_DEVICES
# Grant media read permissions (Android 13+)
adb shell pm grant <app-id> android.permission.READ_MEDIA_IMAGES
adb shell pm grant <app-id> android.permission.READ_MEDIA_VIDEO
adb shell pm grant <app-id> android.permission.READ_MEDIA_AUDIO
See docs/PERMISSIONS.md for the full reference and a copy-paste script that grants everything in one go.
All extras are optional — only the ones provided are updated. The app does not need to be open.
Requires adb. The configuration receiver and the service trampoline are gated on
android.permission.DUMP, which the adb shell UID holds but ordinary apps cannot obtain. The commands below work unchanged fromadb shell; an app on the device cannot use them to reconfigure the server. See the Security section.
adb shell am broadcast \
-a com.danielealbano.androidremotecontrolmcp.ADB_CONFIGURE \
-n <app-id>/com.danielealbano.androidremotecontrolmcp.services.mcp.AdbConfigReceiver \
--es bearer_token "my-secret-token" \
--es binding_address "0.0.0.0" \
--ei port 8080 \
--ez auto_start_on_boot true \
--ez hide_from_recents false \
--ez https_enabled false \
--es certificate_source "AUTO_GENERATED" \
--es certificate_hostname "mcp.local" \
--ez tunnel_enabled true \
--es tunnel_provider "android-remote-control-mcp-tunneld" \
--es arc_tunnel_base_address "arc-tunnel.io" \
--ez arc_tunnel_ct_check_enabled true \
--ez arc_tunnel_status_check_enabled true \
--es cloudflare_tunnel_mode "TOKEN" \
--es cloudflare_tunnel_token "your-cloudflare-tunnel-token" \
--es cloudflare_tunnel_extra_args "--edge region1.v2.argotunnel.com:7844" \
--es ngrok_authtoken "your-ngrok-token" \
--es ngrok_domain "your-domain.ngrok-free.app" \
--ei tunnel_local_port 61200 \
--ei file_size_limit_mb 50 \
--ez allow_http_downloads false \
--ez allow_unverified_https_certs false \
--ez block_local_network_downloads false \
--ei download_timeout_seconds 60 \
--es device_slug "pixel8" \
--es tool_permissions '{"disabled_tools":["tap"],"disabled_params":{"swipe":["duration_ms"]}}'
# Disable bearer authentication (use only on trusted networks; the server is open
# only if OAuth is also disabled — see the Security section)
adb shell am broadcast \
-a com.danielealbano.androidremotecontrolmcp.ADB_CONFIGURE \
-n <app-id>/com.danielealbano.androidremotecontrolmcp.services.mcp.AdbConfigReceiver \
--ez bearer_token_enabled false
Bearer enforcement is controlled by --ez bearer_token_enabled <bool>, NOT by clearing the value. Clearing the value (--es bearer_token "") while bearer_token_enabled=true makes /mcp fail CLOSED (401) — it does NOT open the server. The server accepts unauthenticated requests only when BOTH bearer_token_enabled and oauth_enabled are false.
| Extra | Type | Description |
|---|---|---|
bearer_token | string | Static bearer-token value (clearing it while bearer_token_enabled=true fails closed, it does NOT disable auth) |
bearer_token_enabled | boolean | Enable/disable bearer-token authentication (controls enforcement, independent of the value) |
oauth_enabled | boolean | Enable/disable the self-contained OAuth 2.1 server (Claude.ai / Claude Desktop, ChatGPT, Gemini and Kimi connectors) |
public_url_override | string | Pin the public host used for OAuth metadata and share links (empty = auto-detect from the request) |
binding_address | string | 127.0.0.1 (localhost), 0.0.0.0 (network) or another IP address literal of the device (specific IP) |
port | int | HTTP/HTTPS server port (1-65535) |
auto_start_on_boot | boolean | Start MCP server when device boots |
hide_from_recents | boolean | Exclude the app from the Android Recent Tasks list |
https_enabled | boolean | Enable HTTPS with TLS |
certificate_source | string | AUTO_GENERATED or CUSTOM |
certificate_hostname | string | Hostname for auto-generated certificate |
tunnel_enabled | boolean | Enable remote access tunnel |
tunnel_provider | string | android-remote-control-mcp-tunneld (free E2E tunnel), CLOUDFLARE or NGROK |
arc_tunnel_base_address | string | Base address of the free E2E tunnel service (default arc-tunnel.io; hosts enroll., connect. and d. are derived) |
arc_tunnel_ct_check_enabled | boolean | Certificate Transparency check for the free E2E tunnel (default true) |
arc_tunnel_status_check_enabled | boolean | Status check of the public free E2E tunnel service, with the tunnel on, at most every 30 minutes while the server is running or the Server screen is open (default true) |
arc_tunnel_enroll | boolean | true enrolls the free E2E tunnel (or resumes a failed certificate issuance) with the settings in the same broadcast, while the app is visible and the server is stopped; headless, use the trampoline action enroll-tunnel below. The public URL appears in the Server tab |
cloudflare_tunnel_mode | string | FREE (Quick Tunnel, random *.trycloudflare.com URL) or TOKEN (named tunnel with static hostname) |
cloudflare_tunnel_token | string | Cloudflare named-tunnel token (used when cloudflare_tunnel_mode is TOKEN) |
cloudflare_tunnel_extra_args | string | Optional extra arguments passed to cloudflared (e.g. --edge region1.v2.argotunnel.com:7844) |
ngrok_authtoken | string | ngrok authentication token |
ngrok_domain | string | ngrok custom domain (optional) |
tunnel_local_port | int | Port Cloudflare and ngrok forward to on localhost (1-65535) |
file_size_limit_mb | int | Max file size for file operations (1-500) |
allow_http_downloads | boolean | Allow non-HTTPS downloads |
allow_unverified_https_certs | boolean | Allow unverified HTTPS certificates for downloads |
block_local_network_downloads | boolean | Refuse downloads from this phone, the local network and VPN addresses |
download_timeout_seconds | int | Download timeout (10-300) |
device_slug | string | Device identifier for tool name prefix |
tool_permissions | string (JSON) | Per-tool and per-parameter permissions: {"disabled_tools":["tool_name"],"disabled_params":{"tool_name":["param"]}} |
storage_location_id | string | ID of an existing storage location (from android_list_storage_locations or Settings > Storage); required by the two extras below, unknown IDs are ignored |
storage_allow_write | boolean | Allow write operations on the location identified by storage_location_id |
storage_allow_delete | boolean | Allow delete operations on the location identified by storage_location_id |
shell_elevation_enabled | boolean | Allow elevated shell commands |
shell_auto_allow_elevation | boolean | Run every elevated shell command without asking |
shell_blocklist | string (JSON) | Shell blocklist as a JSON array of patterns, e.g. ["*reboot*"] ([] empties it; invalid JSON is ignored) |
shell_allowlist | string (JSON) | Shell allowlist as a JSON array of patterns ([] empties it; invalid JSON is ignored) |
shell_max_running_processes | int | Maximum running shell processes (1-64; (running + kept) × output kept per process at most 64 MiB) |
shell_max_finished_processes | int | Finished shell processes kept (0-256; (running + kept) × output kept per process at most 64 MiB) |
shell_background_timeout_default_minutes | int | Default background timeout in minutes (1 up to the maximum) |
shell_background_timeout_max_minutes | int | Maximum background timeout in minutes (1-1440, not below the default; both can be sent in one broadcast) |
shell_approval_timeout_seconds | int | Approval timeout in seconds (10-85) |
shell_foreground_wait_seconds | int | Foreground wait limit in seconds (10-90) |
shell_output_per_call_kib | int | Output returned per call in KiB (4-256) |
shell_output_buffer_kib | int | Output kept per process in KiB (64-16384; (running + kept) × output kept per process at most 64 MiB; limits sent in one broadcast can be in any order) |
The server must be started via a trampoline Activity (required on Android 12+ to gain foreground service exemption). This works even when the app is force-stopped.
adb shell am start \
-n <app-id>/com.danielealbano.androidremotecontrolmcp.services.mcp.AdbServiceTrampolineActivity \
--es action start
adb shell am start \
-n <app-id>/com.danielealbano.androidremotecontrolmcp.services.mcp.AdbServiceTrampolineActivity \
--es action stop
Enrollment (getting the device's name and certificate) runs in a short foreground service. Headless, use the same trampoline Activity as for starting the server; it also resumes a failed certificate issuance. Run it while the server is stopped.
adb shell am start \
-n <app-id>/com.danielealbano.androidremotecontrolmcp.services.mcp.AdbServiceTrampolineActivity \
--es action enroll-tunnel
--ez arc_tunnel_enroll true on the configuration broadcast does the same when the app is visible; from the background Android 12+ refuses the foreground service start and the app reports "background start refused".
The app declares the permissions below. Normal permissions are granted automatically at install. Runtime permissions and Special access require explicit user action (via the app's Settings > Permissions tab, or programmatically — see Granting Permissions Programmatically). All runtime permissions are optional: the app works without them, but the features that depend on them are disabled until granted. The optional Shizuku permission for elevated shell commands is granted in Settings → Shell (Grant access) or in the Shizuku app.
| Permission | Type | Used for |
|---|---|---|
INTERNET | Normal | HTTP/HTTPS server and remote access tunnels |
ACCESS_NETWORK_STATE | Normal | Detect network connectivity |
FOREGROUND_SERVICE | Normal | Run the MCP server as a foreground service |
FOREGROUND_SERVICE_SPECIAL_USE | Normal | Foreground service type for the MCP server |
FOREGROUND_SERVICE_LOCATION | Normal | Foreground service type for the Event Channel (geofence/WiFi) |
FOREGROUND_SERVICE_DATA_SYNC | Normal | Foreground service type for the free E2E tunnel enrollment (name + certificate) |
RECEIVE_BOOT_COMPLETED | Normal | Auto-start the server on device boot |
QUERY_ALL_PACKAGES | Normal | Enumerate installed apps for app-management tools |
KILL_BACKGROUND_PROCESSES | Normal | Stop background apps via app-management tools |
ACCESS_WIFI_STATE | Normal | Read WiFi state for the Event Channel |
CHANGE_WIFI_STATE | Normal | Manage WiFi for the Event Channel |
POST_NOTIFICATIONS | Runtime | Show the foreground service notification (Android 13+) |
CAMERA | Runtime | Camera photo/video MCP tools |
RECORD_AUDIO | Runtime | Audio capture for camera video tools |
ACCESS_FINE_LOCATION | Runtime | Location tools and geofence events |
ACCESS_COARSE_LOCATION | Runtime | Approximate location |
ACCESS_BACKGROUND_LOCATION | Runtime | Location/geofence events while the app is in the background |
NEARBY_WIFI_DEVICES | Runtime | WiFi scanning for the Event Channel (Android 13+) |
READ_MEDIA_IMAGES | Runtime | "All files" mode for built-in image storage locations (Android 13+) |
READ_MEDIA_VIDEO | Runtime | "All files" mode for built-in video storage locations (Android 13+) |
READ_MEDIA_AUDIO | Runtime | "All files" mode for built-in audio storage locations (Android 13+) |
moe.shizuku.manager.permission.API_V23 | Runtime (Shizuku) | Optional elevated shell commands through Shizuku; granted in the Shizuku app or with Settings → Shell → Grant access (declared by the Shizuku client library) |
| Accessibility Service | Special access | UI introspection, action execution, and screenshots — required for core functionality |
| Notification Listener | Special access | Reading and managing notifications via notification tools |
The application runs entirely within Android's standard permission model. No root access, no unlocked bootloader, no custom ROM required.
The shell tools can run single commands with more power than the app has, only after you turn on Settings → Shell → Allow elevated commands (off by default). An elevated command runs through Shizuku as the adb shell user (or as root when Shizuku runs as root) or, when Shizuku is not usable, through su as root. Each elevated command carries a justification from the client and passes your rules: the blocklist always refuses, auto-allow or the allowlist let it run, and otherwise the phone asks you to approve it (Approve and Deny need the phone unlocked). Every elevated command is written to the server log (an entry keeps at most its first 500 bytes, so the end of a very long command can be missing). If you turn this on while the app is running, tap Restart app in the Shizuku row so Shizuku can connect (the app closes and opens again by itself; a running server starts again). The app itself never needs root; Shizuku or root are used only for these commands.
Normal (not elevated) shell commands run as the app itself: they can read and change the app's own files, including its settings, and they can use any su grant or Shizuku access you gave the app. An MCP client that can use the notification, accessibility or intent tools can approve its own elevation request, so the approval is a check for you, not a boundary against such a client. If the app process dies while elevated commands run through su, some root managers (for example Magisk) keep those commands running until they end on their own. The shell tools are on by default: turn them off in Settings → MCP Tools unless you trust your MCP clients, turn on elevation only for clients you trust, and keep authentication on.
The accessibility service is the trust boundary. Once you grant it, an authenticated client controls the device as you do: it reads the screen and taps any control, including the app's own settings and the OAuth approval screen. The in-app toggles (per-location read/write/delete, per-tool enable/disable, and OAuth approval) express intent and prevent mistakes. They are not a sandbox around a client that already holds accessibility, which can change them the same way you would, through the UI or an intent.
Authentication is combined (dual-accept): a /mcp request is authorized by a valid static bearer token OR a valid issued OAuth access token. Enforcement is controlled by two independent toggles in Settings → Access — bearer_token_enabled (default on) and oauth_enabled (default on) — not by the token value. The bearer token is auto-generated once on first launch (UUID, preserved across app upgrades) and can be viewed, copied, or regenerated in the app. Clearing the value while bearer is enabled makes the server fail CLOSED (401). The server accepts unauthenticated requests only when BOTH toggles are off (the app shows a warning and a confirmation before that happens) — see the security note in the Connect section.
127.0.0.1: Only accessible via adb port forwarding or tunnels (most secure)0.0.0.0: Accessible over network (use only on trusted networks; security warning displayed when enabling)127.0.0.1 for an enabled tunnel), so normally only the network of that address reaches it (same security warning)All permissions are managed from the app's Settings > Permissions tab. Every sensitive permission requires explicit user action — nothing is granted silently. The optional Shizuku access for elevated shell commands is granted in Settings → Shell or in the Shizuku app, and su grants come from your root manager.
Storage locations are configured in Settings > Storage, which includes automatic locations (e.g., Downloads) and custom locations authorized via the system file picker.
See CONTRIBUTING.md for build requirements, testing, architecture, and development conventions.
This project is licensed under the GNU General Public License, version 3 or (at your option) any later version, with an additional permission under GPLv3 section 7 for combining it with the Google Play services client libraries. See LICENSE.md for the full text.
Third-party components bundled with the app and their licenses are listed in THIRD_PARTY_LICENSES.md.
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
NEnetdata/netdata82k100 new stars in the last 7 days
Validate oh-my-posh configurations and segment snippets against the official schema.
JAJanDeDobbeleer/oh-my-posh24k24 new stars in the last 7 days
Manage Coder workspaces, templates, and cloud development environments
COcoder/coder18k54 new stars in the last 7 days
Android in docker solution with noVNC supported, video recording, mcp server and AI-agent
BUbudtmo/docker-android16k29 new stars in the last 7 days
Control Windows apps, navigate files, interact with UI, and run QA tests.
CUCursorTouch/Windows-MCP12k288 new stars in the last 7 days
The power of Claude Code / GeminiCLI / CodexCLI + [Gemini / OpenAI / OpenRouter / Azure / Grok / Ollama / Custom Model / All Of The Above] working as one.
BEBeehiveInnovations/pal-mcp-server12k22 new stars in the last 7 days