An MCP server that lets AI agents control Android devices through ADB, with optional scrcpy for faster screenshots and input. It can capture the screen, tap, swipe, type, manage apps, inspect UI, transfer files, use the clipboard, and run shell commands.
From the registry: MCP server for Android device control via ADB and scrcpy
$ adb devices$ brew install ffmpegPlease install the `scrcpy-mcp` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Node.js 22+** — Required runtime (https://nodejs.org)
- **ADB (Android Platform Tools)** — Required for Android device communication (https://developer.android.com/tools/releases/platform-tools)
- **Android device with USB debugging** — Settings → Developer Options → USB Debugging must be enabled Run: `adb devices`
Optional prerequisites:
- scrcpy — Optional but recommended for 10-50x faster input and ~33ms screenshots (https://github.com/Genymobile/scrcpy/releases)
- ffmpeg — Required for scrcpy video stream decoding Run: `brew install ffmpeg`
Canonical MCP server config (stdio transport):
- command: `npx`
- args: ["scrcpy-mcp"]
- optional environment variables:
- `ADB_PATH`: Path to the ADB binary if not in PATH (example: `/usr/local/bin/adb`)
- `ANDROID_SERIAL`: Default device serial, overrides auto-detection when multiple devices are connected (example: `<device-serial>`)
- `SCRCPY_SERVER_PATH`: Path to the scrcpy-server binary if not auto-detected (example: `/usr/local/bin/scrcpy-server`)
- `FFMPEG_PATH`: Path to the ffmpeg binary if not in PATH (example: `/usr/local/bin/ffmpeg`)
Note: 34 tools for Android device control: screenshots, tap/swipe/type, app management, UI automation, shell commands, file transfer. scrcpy session provides 10-50x faster input.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.ADB_PATHPath to the ADB binary.ANDROID_SERIALDefault device serial to use when multiple devices are connected.SCRCPY_SERVER_PATHPath to the scrcpy-server binary.SCRCPY_SERVER_VERSIONVersion of the scrcpy-server binary.FFMPEG_PATHPath to the ffmpeg binary.Manage UniFi Protect cameras, events, recordings, and smart detections via MCP.