# scrcpy MCP Server

> View and control Android devices through ADB and scrcpy.

- **URL**: https://followmcp.com/en/servers/scrcpy-mcp
- **Category**: Other
- **Origin**: Community
- **Stars**: 147
- **FMRS Score**: 47/100 (Grade D)
- **Source**: https://github.com/JuanCF/scrcpy-mcp
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 24+
- **Auth**: No credential needed

## Overview
scrcpy MCP Server gives AI assistants screen visibility and control of Android devices through ADB and scrcpy. Its 44 tools cover screenshots, input, app management, UI inspection, file transfer, clipboard, video streaming, and audio streaming or recording. The server runs locally over stdio.

## Best for
- Developers and testers who need local ADB control of Android devices they own.
- Device automation workflows that use both screen images and the UI hierarchy.

## Not for
- Users who need cloud-hosted or network-hosted Android devices; this server runs locally over stdio.
- Users unwilling to grant device debugging access or trust an AI assistant to operate the device.

## Required permissions
- Requires Node.js and ADB on the host, USB debugging enabled on the device, and acceptance of the host RSA key.
- ADB shell access can run commands and access files within the device shell user's permissions.
- Optional scrcpy enables enhanced performance; audio capture requires Android 11+ and the relevant audio utilities.

## Risks
- shell_exec can run arbitrary ADB shell commands; file tools can read and write files accessible to the shell user.
- The AI assistant can operate the connected device, launch or uninstall apps, enter text, and transfer files; connect only devices you own and trust.
- The default output audio source moves sound to the host and mutes the device speakers; recordings are saved on the host.

## Client config (JSON)
```json
{"mcpServers":{"android":{"command":"npx","args":["scrcpy-mcp"]}}}
```

## Tools (44)
- `start_session`: Start a scrcpy session to enable faster input and screenshots.
- `stop_session`: Stop the scrcpy session; interaction tools fall back to ADB.
- `version`: Report the scrcpy-server version used by the session and where it was resolved from.
- `start_video_stream`: Start an HTTP MJPEG video stream and open a viewer window; starts a scrcpy session if needed.
- `stop_video_stream`: Stop the video stream and close the viewer window.
- `start_audio_stream`: Stream device audio to the host speakers using ffplay.
- `stop_audio_stream`: Stop streaming audio to the host.
- `audio_record_start`: Start recording device audio to a WAV or Opus file on the host.
- `audio_record_stop`: Stop recording and finalize the host-side file.
- `audio_capture`: Capture a bounded device audio clip and return it as an audio content block.
- `device_list`: List connected devices with serial, state, and model.
- `device_info`: Get the device model, Android version, screen size, SDK level, and battery information.
- `screen_on`: Wake the device screen.
- `screen_off`: Turn the device screen off.
- `rotate_device`: Rotate the screen; requires an active session.
- `expand_notifications`: Pull down the notification panel; requires an active session.
- `expand_settings`: Pull down the quick settings panel; requires an active session.
- `collapse_panels`: Collapse notification or settings panels; requires an active session.
- `connect_wifi`: Enable WiFi ADB and connect to the device wirelessly; returns the connection address.
- `disconnect_wifi`: Disconnect from a wireless ADB device.
- `screenshot`: Capture the screen and return it as an image.
- `screen_record_start`: Start recording the screen to a file on the device.
- `screen_record_stop`: Stop screen recording and optionally pull the file to the host.
- `tap`: Tap at screen coordinates.
- `swipe`: Swipe from one point to another.
- `long_press`: Long press at coordinates.
- `drag_drop`: Drag from one point to another.
- `input_text`: Type text into the focused field.
- `key_event`: Send a key event such as HOME, BACK, ENTER, or a volume key.
- `scroll`: Scroll at a position.
- `app_start`: Launch an app by package name; prefix with + to force-stop it before launch.
- `app_stop`: Force-stop an app.
- `app_install`: Install an APK from the host machine.
- `app_uninstall`: Uninstall an app.
- `app_list`: List installed packages, optionally filtered by name or system/third-party status.
- `app_current`: Get the current foreground app and activity.
- `ui_dump`: Dump the full UI hierarchy as XML.
- `ui_find_element`: Find elements by text, resource ID, class name, or content description and return tap coordinates.
- `shell_exec`: Execute an arbitrary ADB shell command and return its output.
- `file_push`: Push a file from the host machine to the device.
- `file_pull`: Pull a file from the device to the host machine.
- `file_list`: List directory contents on the device.
- `clipboard_get`: Get clipboard content; uses scrcpy to bypass Android 10+ ADB restrictions.
- `clipboard_set`: Set clipboard content, optionally pasting it immediately.
