Android MCP β ADB-based device, apps, UI, logcat, emulator, files, system, debug
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
The Android diagnostic & forensic MCP β when an app crashes, leaks memory, drains battery, or behaves unexpectedly, this is what you point at the device.
76 tools across logcat / dumpsys / package internals / system properties / processes. 5 MCP Prompts (crash-investigation, memory-leak-detection, permission-audit, app-startup-profile, ui-element-locator) and a
device-healthaggregation. Pure ADB, no Appium / uiautomator2 dependency. 2-tier security (write + shell gates).
dumpsys (mem/gfx/cpu), getprop, processes, package internals, app intents, port forwards. Cross-platform competitors hide this surface.crash-investigation, memory-leak-detection, ui-element-locator, app-startup-profile, permission-audit. Workflow templates the model invokes directly.device-health (battery + memory + cpu + network in one call), analyze-app (package info + memory + activities).ANDROID_MCP_ALLOW_WRITE (gates installs/taps/pushes) and ANDROID_MCP_ALLOW_SHELL (gates arbitrary adb shell) are separate flags. Distinct trust levels.child_process.ANDROID_TOOLS/ANDROID_DISABLE 9 categories, search-tools meta.device-health renders as a snapshot card on ChatGPT clients (battery, RAM, Wi-Fi + 4-section grid) via _meta["openai/outputTemplate"]. Claude clients receive the same JSON content.MCP_TRANSPORT=http for ChatGPT Apps SDK or remote clients (Bearer auth via MCP_HTTP_TOKEN).Connect the server to Claude Desktop or Claude Code, then paste any of these:
com.us-all.api keeps crashing on this Pixel 6 emulator. Pull the last crash log, the offending stack frames, and any recent permission changes."com.us-all.api over the last 5 minutes. Show heap deltas, GC pressure, and the largest allocators."com.us-all.api β measure activity launch time, identify the slowest fragment init, and suggest where to add tracing."mobile-next/mobile-mcp (4.7Kβ
) is the cross-platform action-oriented MCP. Different problem space:
| mobile-mcp | @us-all/android-mcp (this) | |
|---|---|---|
| Platform | iOS + Android (cross-platform) | Android only (specialist) |
| Posture | Action-oriented ("drive the app via NL") | Diagnostic ("tell me why it broke") |
| UI surface | Accessibility-tree-first, action loops | UI hierarchy + screenshots + diagnostic dumps |
| Diagnostic depth | minimal | logcat / dumpsys / getprop / processes / crashes |
| Aggregations | β | device-health, analyze-app |
| MCP Prompts | β | 5 (diagnostic-themed) |
| Security gates | basic | 2-tier (write + shell separate) |
| Distribution | broad (12+ IDE buttons) | npm + Docker |
Use both β they're complementary. mobile-mcp drives the device through your QA flows; this MCP tells you why it broke when something does. Especially:
dumpsys gfxinfo + activity launch timing.dumpsys package permission state and recent grants.PATH (or set ADB_PATH)ANDROID_SERIAL=<serial> to target a specific one| Variable | Required | Default | Description |
|---|---|---|---|
ANDROID_HOME | β | auto-detect | Android SDK path |
ADB_PATH | β | adb (PATH) | Path to ADB binary |
ANDROID_SERIAL | β | auto (single device) | Target device serial |
ANDROID_MCP_ALLOW_WRITE | β | false | Enable write operations (install, tap, push) |
ANDROID_MCP_ALLOW_SHELL | β | false | Enable arbitrary adb shell execution |
ANDROID_TOOLS | β | β | Comma-sep allowlist of categories. Biggest token saver. |
ANDROID_DISABLE | β | β | Comma-sep denylist. Ignored when ANDROID_TOOLS is set. |
MCP_TRANSPORT | β | stdio | http to enable Streamable HTTP transport |
MCP_HTTP_TOKEN | conditional | β | Bearer token. Required when MCP_TRANSPORT=http |
MCP_HTTP_PORT | β | 3000 | HTTP listen port |
MCP_HTTP_HOST | β | 127.0.0.1 | HTTP bind host (DNS rebinding protection auto-enabled for localhost) |
MCP_HTTP_SKIP_AUTH | β | false | Skip Bearer auth β e.g. behind a reverse proxy that handles it |
Categories (9): device, apps, ui, logcat, emulator, files, system, debug, shell (always-gated by ANDROID_MCP_ALLOW_SHELL), plus always-on meta.
When MCP_TRANSPORT=http: POST /mcp (Bearer-auth JSON-RPC) + GET /health (public liveness).
| Scenario | Tools | Schema tokens | vs default |
|---|---|---|---|
| default (all categories) | 76 | 9,200 | β |
typical (ANDROID_TOOLS=device,ui,apps,logcat) | 37 | 5,000 | β46% |
narrow (ANDROID_TOOLS=device,ui) | 19 | 2,500 | β73% |
Plus search-tools meta-tool (always enabled) for runtime tool discovery.
By default, only read operations are permitted. Write operations (tap, install-app, push-file, etc.) return an error unless ANDROID_MCP_ALLOW_WRITE=true. Shell command execution requires a separate ANDROID_MCP_ALLOW_SHELL=true for additional security β even with write enabled, raw shell stays blocked unless this is explicitly set.
Workflow templates available via MCP prompts/list:
crash-investigation β pull crash logs + stack frames + recent permission changes for a target package.memory-leak-detection β track heap delta over a window; cluster by allocator.ui-element-locator β find a UI element by visual + accessibility hints; return tap coordinates.app-startup-profile β cold-start profile: activity launch + fragment init + first frame.permission-audit β flag dangerous permissions held by under-used 3rd-party apps.URI-based read-only entities:
android://devices β connected devicesandroid://device/{serial} β device details (model/brand/version/display)android://app/{packageName}/activities β activities exposed by a package (exported/launchable flags)android://device/{serial}/processes β running processes9 categories. Use search-tools to discover at runtime; full list collapsed below.
| Category | Tools |
|---|---|
| System (battery / network / settings / display / orientation / port-fwd / wifi / mobile-data) | 19 |
| Apps (install / launch / permissions / intents / data clear) | 14 |
| UI (tap / swipe / screenshot / hierarchy / accessibility / annotated tap-by-index / screen recording) | 14 |
| Emulator (AVD start/stop, snapshot mgmt) | 7 |
| Device (list / info / properties / wireless connect) | 5 |
| Debug (bugreport / mem / gfx / cpu / doctor) | 5 |
| Logcat (capture / filter / clear / crash extract) | 4 |
| Files (list / pull / push / delete) | 4 |
Shell (gated execute-shell) | 1 |
Aggregations (device-health, analyze-app) | 2 |
Meta (search-tools) | 1 |
list-devices, get-device-info, get-device-properties, connect-device, disconnect-device
list-packages, get-package-info, install-app, uninstall-app, launch-app, stop-app, clear-app-data, grant-permission, revoke-permission, open-url, send-broadcast, get-current-activity, is-app-installed, get-app-intents
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/android)<a href="https://allmcps.com/mcp/android"><img src="https://allmcps.com/api/badge/android?style=directory" alt="Android on AllMCPs" /></a>