Skip to main content
Glama

voice-android-mcp

An MCP server that lets Claude see your Android phone and press its buttons by voice:

  1. Claude takes a screenshot over ADB and reads the screen (numbered boxes + element list).

  2. Text that needs typing is typed over ADB.

  3. To press a button, Claude says it out loud ("click Send") through the PC speakers. The phone hears it with Google Voice Access (accessibility) and taps the button.

  4. Claude takes another screenshot to confirm (Voice Access shows a toast like "Tapped 6").

Plain ADB tapping (no voice) is also available: set TAP_MODE=adb.

Phone setup (once)

  1. On the phone: Settings → About phone → tap Build number 7 times.

  2. Settings → Developer options → turn on USB debugging.

  3. Plug in by USB, unlock the phone, accept Allow USB debugging.

  4. Check: adb devices shows your phone as device.

  5. Install and turn on Voice Access (Google): Settings → Accessibility → Installed apps → Voice Access. Its notification should say "Tap to pause" (= listening). Set its language to English.

  6. Put the phone close to the PC speakers and turn the volume up.

Wi-Fi instead of USB: turn on Wireless debugging, then ask Claude to connect_wifi("IP:PORT").

To type Arabic / emoji / accented text, install ADBKeyboard on the phone (adb install ADBKeyboard.apk). Plain ASCII text works without it.

Related MCP server: Termux MCP Server

Install

Needs uv, adb, and ffmpeg on PATH (decodes the neural voice).

uv sync

Use with Claude Code

This folder has a .mcp.json, so Claude Code opened here picks up the server automatically (approve it when asked). To use it from any folder:

claude mcp add voice-android --scope user -e TAP_MODE=voice -e TTS_OUTPUT=Realtek -- uv --directory "/path/to/voice-android-mcp" run voice-android-mcp

Then ask, e.g. "open Settings and turn on Bluetooth", or use the phone_task prompt (in Claude Code: /mcp__voice-android__phone_task open YouTube and search for lofi music).

Tools

Tool

What it does

screenshot

Screen image with numbered boxes + element list ([3] button "Send" at (528,1205))

voice_tap

Say "click " / "click " so Voice Access presses it

voice_command

Say any Voice Access command: "go back", "scroll down", "open WhatsApp", "show numbers"

voice_access_status

Check Voice Access is installed and enabled

type_text(text, submit)

Type into the focused field over ADB

get_ui_elements

Element list only (no image, cheaper)

tap_element(n) / tap(x,y)

ADB taps (used when TAP_MODE=adb)

long_press, swipe, scroll, press_key

ADB gestures and keys

open_app, list_apps, open_url, current_app

Apps and links

wake_and_unlock_swipe, wait, adb_shell

Utilities

list_devices, select_device, connect_wifi

Device management

speak, list_speakers

Say anything on the PC speakers / pick the speaker

listen, list_microphones

Optional: your voice → text (PC mic or phone mic)

Settings (environment variables)

Variable

Default

Meaning

TAP_MODE

adb

voice = press buttons by speaking to Voice Access (.mcp.json sets this)

TTS_OUTPUT

Windows default

Speaker for the voice: index or name part (list_speakers), e.g. Realtek

TTS_ENGINE

edge

edge = Microsoft neural voice (online, best recognised); sapi = built-in Windows voice

EDGE_VOICE

en-US-AriaNeural

Neural voice name (en-US-GuyNeural, …)

VOICE_CMD_RATE

-2

Speed of spoken commands, -10 (slow) … 10 (fast)

TTS_LEAD_SECONDS

0.5

Silence before each phrase so the speaker doesn't clip the first word

ANDROID_SERIAL

–

Device to use when several are connected

ADB_PATH

adb on PATH

Full path to adb

SCREENSHOT_MAX_SIDE

1280

Screenshot size sent to Claude (smaller = cheaper)

VOICE_LANG

en-US

listen language: en-US, fr-FR, ar-MA…

VOICE_MIC

auto

listen input: phone or a PC mic index / name part

VOICE_ENGINE

google

listen recogniser: google (online) or whisper (uv sync --extra whisper)

Tips (from testing on a Galaxy S23 Ultra)

  • Say "click", not "tap": "tap …" was misheard as the app "Tap Tile" and opened it.

  • The old Windows voices (David/Zira) were rarely understood; the neural voice worked reliably.

  • A bare number ("6") was not recognised; "click 6" was.

  • Voice Access numbers (grey pins on the phone) differ from the coloured box numbers in our screenshot. voice_tap(index=…) speaks the element's name; voice_tap(va_number=…) speaks the grey pin.

  • While Voice Access is on, Android gives it the phone's microphone, so listen with VOICE_MIC=phone hears nothing. The phone-mic option uses the bundled scrcpy server (Apache-2.0, v5.0.1, SHA-256 checked), pushed to /data/local/tmp on the phone.

  • Banking apps and DRM video often block screenshots (black image) — that's Android, not a bug.

License

MIT — see LICENSE. The bundled src/voice_android_mcp/vendor/scrcpy-server-v5.0.1 is from scrcpy by Genymobile and stays under the Apache License 2.0.

Available Tools

26 tools
adb_shellC

Run a raw adb shell command on the phone and return its output (advanced).

Inputs: command (required).

connect_wifiB

Connect to a phone over Wi-Fi ADB, e.g. "192.168.1.20:5555" (phone must have wireless debugging on).

Inputs: address (required).

current_appA

Return the package/activity currently in the foreground.

Inputs: no named parameters.

get_ui_elementsA

Get the numbered list of on-screen elements (text, buttons, inputs) without an image. Cheaper than screenshot.

Inputs: no named parameters.

list_appsB

List launchable apps (package names). Optional filter substring.

Inputs: filter.

list_devicesA

List Android devices connected over USB or Wi-Fi, and which one is selected.

Inputs: no named parameters.

listenB

Listen to the user's voice and return what they said as text.

mic: "phone" (the phone's own microphone, streamed over ADB) or "pc" (PC microphone). Default comes from VOICE_MIC. Signals start with a beep (PC) and a short vibration (phone mode), waits up to wait_for_speech seconds for the user to start talking, stops after a short pause. language: BCP-47 code like en-US, fr-FR, ar-MA (Darija), ar-SA. Default from VOICE_LANG.

Inputs: mic, language, max_seconds, wait_for_speech.

list_microphonesA

Show the PC microphones and which one listen uses.

Inputs: no named parameters.

list_speakersA

Show the PC speakers and which one voice commands play through (set TTS_OUTPUT to change).

Inputs: no named parameters.

long_pressC

Long-press an element number (index) or a point (x, y in screenshot pixels).

Inputs: x, y, ms, index.

open_appB

Open an app by name ("whatsapp", "camera", "settings") or package name ("com.whatsapp").

Inputs: name (required).

open_urlB

Open a URL or deep link (https://..., tel:..., geo:..., whatsapp://...) on the phone.

Inputs: url (required).

press_keyA

Press a key: home, back, enter, delete, recent, power, volume_up, volume_down, tab, wake, notifications, quick_settings, or any KEYCODE_* name.

Inputs: key (required).

screenshotA

Take a screenshot of the phone so you can see what is on screen.

With show_elements=True (default) tappable elements are boxed and numbered on the image, and a numbered list is returned: use tap_element(number) to press one. Coordinates in the list match the image pixels; pass them to tap(x, y) if needed.

Inputs: show_elements.

scrollB

Scroll the screen. direction: down (see content below), up, left, right. amount: 0.1-0.9 of the screen.

Inputs: amount, direction.

select_deviceC

Choose which device to control when more than one is connected.

Inputs: serial (required).

speakB

Say text out loud on the PC speakers (to report what you did or ask a question).

Inputs: text (required).

swipeC

Swipe from (x1,y1) to (x2,y2) in screenshot pixels.

Inputs: x1 (required), x2 (required), y1 (required), y2 (required), +1 more.

tapB

Tap at (x, y) in screenshot image pixels.

Inputs: x (required), y (required).

tap_elementA

Tap element number index from the latest screenshot / get_ui_elements list.

Inputs: index (required).

type_textA

Type text into the focused field (tap the field first). submit=True presses Enter afterwards.

Inputs: text (required), submit.

voice_access_statusA

Check that Google Voice Access is installed and enabled on the phone.

Inputs: no named parameters.

voice_commandC

Say any Voice Access command out loud from the PC speakers, e.g. "scroll down", "go back", "go home", "open WhatsApp", "show numbers", "tap 5", "hide numbers", "show grid", "stop listening".

Inputs: command (required), settle_seconds.

voice_tapA

Press a button BY VOICE: the PC speakers say "click " and the phone's Voice Access taps it.

Give ONE of: index - number of OUR coloured box / list entry from the latest screenshot (its name is spoken) label - the button's visible text, e.g. "Send" va_number - a Voice Access number: the small GREY PIN numbers drawn on the phone screen itself (visible in the screenshot when Voice Access "show numbers" is on). Best for icons without text and for long or ambiguous names. verb: click (default; avoid "tap", which Voice Access can confuse with app names), long press, double tap. Always take a screenshot afterwards: Voice Access shows a black toast like "Tapped connections".

Inputs: verb, index, label, va_number, +1 more.

waitA

Wait for the screen to settle (app loading, animations). Max 30 s.

Inputs: seconds.

wake_and_unlock_swipeA

Turn the screen on and swipe up to dismiss the lock screen (works only without PIN/pattern).

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 26 tools

    Disambiguation3/5

    Most tools have clear distinct purposes, but several boundaries blur: voice_tap is effectively a special case of voice_command ('tap 5'), tap_element is a convenience wrapper over tap whose index also works in long_press, and adb_shell can do almost anything the specialized tools do. Screenshot vs get_ui_elements are distinguishable but closely coupled, and an agent could reasonably pick the wrong voice tool or gesture tool.

    Naming Consistency4/5

    All names are snake_case and readable, but the set mixes bare verbs (tap, swipe, scroll, speak, wait, listen) with noun/resource names (screenshot, current_app, adb_shell) rather than a uniform verb_noun pattern. wake_and_unlock_swipe and voice_access_status are compound but still understandable.

    Tool Count3/5

    26 tools is on the heavy side for a single Android-control server; the core set (device/gesture/input/app tools) is justified, but peripheral tools like list_speakers, list_microphones, voice_access_status, and speak round out a surface that could be trimmed. It is borderline-heavy rather than clearly excessive given the broad device+voice domain.

    Completeness4/5

    The surface covers device discovery/selection, full UI interaction (tap, long press, swipe, scroll, type, keys), app/URL launching, shell escape hatch, and voice input/output with Voice Access. Minor gaps exist: no clipboard access, no file push/pull or app install/uninstall, no logcat/notification reading, and no pinch/multi-touch gesture, but agents can work around these via adb_shell.

    Related MCP Connectors

    Related MCP Servers