
Android
io.github.us-allPublished by GitHub account us-allv1.14.4Updated Oct 24, 2026
Android MCP — ADB-based device, apps, UI, logcat, emulator, files, system, debug
Overview
Lets an assistant inspect and diagnose Android devices over ADB: logcat, dumpsys, packages, UI, files, and emulators.
- What you can do
- Wraps the Android Debug Bridge in 76 tools across nine categories: device info, apps, UI automation, logcat, emulators, files, system settings, debug dumps, and a gated shell. It adds aggregation tools such as device-health and analyze-app, five diagnostic prompts (crash investigation, memory leak detection, permission audit, app startup profile, UI element locator), and read-only resources for devices, processes, and app activities. It runs as a local stdio process, with an optional HTTP transport.
- When to use it
- Use it when you need to explain why an Android app crashed, leaks memory, drains battery, or behaves unexpectedly, or to audit permissions and profile startup. It is diagnostic rather than action-oriented, so it complements device-driving MCP servers rather than replacing them.
- Requirements
- Node.js 22 or later for the npm package, or Docker. ADB installed and on PATH or set via ADB_PATH, and an Android device or emulator with USB debugging enabled. Optional variables: ANDROID_HOME, ANDROID_SERIAL, ANDROID_TOOLS, ANDROID_DISABLE, MCP_TRANSPORT, MCP_HTTP_TOKEN, MCP_HTTP_PORT, MCP_HTTP_HOST, MCP_HTTP_SKIP_AUTH.
Installation
In SourceWeft
- Open Android in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Android MCP Server
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).
[npm] [downloads] [tools] [@us-all standard] [Glama MCP server]
What it does that others don't
- Diagnostic depth — logcat search/crash extraction,
dumpsys(mem/gfx/cpu), getprop, processes, package internals, app intents, port forwards. Cross-platform competitors hide this surface. - MCP Prompts (5) —
crash-investigation,memory-leak-detection,ui-element-locator,app-startup-profile,permission-audit. Workflow templates the model invokes directly. - Aggregation tools —
device-health(battery + memory + cpu + network in one call),analyze-app(package info + memory + activities). - 2-tier security —
ANDROID_MCP_ALLOW_WRITE(gates installs/taps/pushes) andANDROID_MCP_ALLOW_SHELL(gates arbitraryadb shell) are separate flags. Distinct trust levels. - Pure ADB — no Appium, no uiautomator2, no Python bridge. Just the official Android Debug Bridge wrapped over
child_process. - Token-efficient by design — 56 schema-trim sweep,
ANDROID_TOOLS/ANDROID_DISABLE9 categories,search-toolsmeta. - Apps SDK card —
device-healthrenders 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. - stdio + Streamable HTTP — defaults to stdio. Set
MCP_TRANSPORT=httpfor ChatGPT Apps SDK or remote clients (Bearer auth viaMCP_HTTP_TOKEN).
Try this — 5 prompts
Connect the server to Claude Desktop or Claude Code, then paste any of these:
- Crash investigation — "My app
com.us-all.apikeeps crashing on this Pixel 6 emulator. Pull the last crash log, the offending stack frames, and any recent permission changes." - Memory leak detection — "Trace memory growth for
com.us-all.apiover the last 5 minutes. Show heap deltas, GC pressure, and the largest allocators." - Battery drain attribution — "What's draining battery on this device? Top 5 consumers, duration of each, and current battery health."
- Permission audit — "Audit installed 3rd-party apps for dangerous permissions (location/camera/contacts/microphone). Flag any app that hasn't been used in the last 30 days but holds these."
- App startup profile — "Profile the cold-start of
com.us-all.api— measure activity launch time, identify the slowest fragment init, and suggest where to add tracing."
When to use this vs mobile-next/mobile-mcp
mobile-next/mobile-mcp (4.7K★) is the cross-platform action-oriented MCP. Different problem space:
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:
- mobile-mcp finds the bug via UI exploration → this MCP captures the crash log + heap dump.
- mobile-mcp can't tell you why startup is slow → this MCP gives you
dumpsys gfxinfo+ activity launch timing. - mobile-mcp can't reproduce a permission denial → this MCP shows the exact
dumpsys packagepermission state and recent grants.
Install
Claude Desktop
Claude Code
Docker
Build from source
Prerequisites
- ADB installed and on
PATH(or setADB_PATH) - Android device or emulator with USB debugging enabled
- For multi-device setups:
ANDROID_SERIAL=<serial>to target a specific one
Configuration
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).
Token efficiency
Plus search-tools meta-tool (always enabled) for runtime tool discovery.
Read-only mode (default)
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.
MCP Prompts (5)
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.
MCP Resources
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 processes
Tools (76)
9 categories. Use search-tools to discover at runtime; full list collapsed below.
Full tool list
Device (5)
list-devices, get-device-info, get-device-properties, connect-device, disconnect-device
Apps (14)
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
UI Automation (14)
take-screenshot, dump-ui-hierarchy, ui-snapshot-a11y, tap, long-press, swipe, input-text, press-key, drag-and-drop, start-screen-recording, pull-screen-recording, double-tap, take-annotated-screenshot, tap-element
Logcat (4)
get-logcat, clear-logcat, search-logcat, get-crash-logs
Emulator (7)
list-avds, start-emulator, stop-emulator, list-snapshots, load-snapshot, save-snapshot, delete-snapshot
Files (4)
list-files, pull-file, push-file, delete-file
System (19)
get-battery-info, get-network-info, change-setting, get-setting, set-display-size, set-display-density, keep-screen-on, port-forward, reverse-forward, list-forwards, remove-forward, toggle-wifi, toggle-mobile-data, open-notification, lock-device, unlock-device, get-orientation, set-orientation, list-settings
Debug (5)
bugreport, get-mem-info, get-gfx-info, get-cpu-info, doctor
Shell (1)
execute-shell — gated by ANDROID_MCP_ALLOW_SHELL
Aggregations
device-health — battery + memory + cpu + network in one call (~7KB response, 4 sub-systems with caveats).
analyze-app — package info + memory + activities aggregation.
Meta
search-tools — query other tools by keyword; always enabled.
Architecture
Built on @us-all/mcp-toolkit:
extractFields— token-efficient response projections (skipped for ADB flat-array endpoints)aggregate(fetchers, caveats)— fan-out helper fordevice-health/analyze-appcreateWrapToolHandler—WriteBlockedError/ShellBlockedErrorpassthrough + structured ADB errors ({code, stderr})wrapImageToolHandler(Android-only) — base64 PNG sanitizationsearch-toolsmeta-tool
Security
- Read-only by default. Writes blocked without
ANDROID_MCP_ALLOW_WRITE=true. - Shell gating separate.
execute-shellblocked withoutANDROID_MCP_ALLOW_SHELL=trueeven with write enabled — distinct trust levels. - Shell injection safe.
shellEscapefor single-quote-based escape; input validation via zod regex whitelists for setting keys, package names, permissions, components, broadcast actions/extras. - Path-traversal blocked. Device paths require absolute + no
..+ no shell metachars. - Error sanitization. API keys, tokens, passwords redacted from all error outputs.
Tech stack
Node.js 22+ • TypeScript strict ESM • pnpm 10 • @modelcontextprotocol/sdk 1.29+ • zod v4 • fast-xml-parser • vitest (fork pool isolation).
License
Source: README.md at commit bacd6ea
Tools
0Version history
1- v1.14.4LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts