← Back to directory
S

scrcpy MCP Server

Community
View and control Android devices through ADB and scrcpy.
Category
Other #465 of 678
Stars
★ 147 Popular
Transport
stdio (local process)
Runtime
Node.js 24+
Credentials
No credential needed
License
MIT
Last commit
Tools
44
47FMRS · D

The supplied material describes local Android device control via ADB and scrcpy, lists 44 tools, specifies stdio transport, and states an MIT license. The manifest lists ANDROID_SERIAL, ADB_PATH, and SCRCPY_SERVER_PATH as optional environment variables.

Strongest · Documentation 13/20 Weakest · Reliability 7/20

Reliability
7/20
Security and permissions
8/20
Maintenance
7/20
Documentation
13/20
Setup experience
12/20
Why each score
Reliability 7/20
The README lists 44 tools, dependencies, and several behavior limits, and says some tools fall back to ADB when scrcpy is unavailable. It provides no CI or test evidence for initialization, tool listing, or key paths, and its environment-variable coverage does not fully match the manifest. The happy path is plausible, but reproducible behavior and error handling are unverified.
Security and permissions 8/20
The documentation discloses that shell_exec can run arbitrary ADB shell commands and file tools can access files available to the shell user. It also describes device-control, audio-capture, and host-side recording effects and advises using trusted devices. There is no evidence of per-operation confirmation, granular permissions, or scoped data access, so points are deducted. The supplied material shows no red-line issue.
Maintenance 7/20
The manifest states an MIT license, version 0.5.0, and npm package identifier; the supplied repository metadata says the project is not archived and has one open issue. There is no evidence here of commit or release history, dependency-update policy, maintainer responsiveness, or a security reporting channel, so sustained maintenance cannot be established.
Documentation 13/20
The README covers prerequisites, configuration examples for several mainstream clients, tool categories, some parameters, audio and video limits, security effects, and troubleshooting. Points are deducted because some configuration and environment-variable details are absent from or do not fully align with the manifest, and there is no evidence of authentication, permission controls, complete parameters for key tools, or tests.
Setup experience 12/20
The README offers npx and global npm installation paths and configuration examples for Claude Code, OpenCode, Cursor, Claude Desktop, and VS Code Copilot. It lists Node.js, ADB, device-debugging setup, and optional dependencies. Points are deducted because setup requires local ADB installation, USB debugging, and device authorization; full features may also require scrcpy or ffmpeg, and no verifiable cross-platform execution or test evidence is provided.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesRuns commands or codeUses the network

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 and side effects

  • 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.

Setup

Before you start

Runtime:Node.js 24+

Other optional settings (6)
ANDROID_SERIAL optional Sets the target device serial; find it with adb devices. Specify it when multiple devices are connected.
ADB_PATH optional Sets a custom path to the adb binary; defaults to adb on PATH.
SCRCPY_SERVER_PATH optional Sets the path to scrcpy-server.jar; needed only when it is not in a standard location.
SCRCPY_SERVER_VERSION optional Overrides automatic scrcpy-server version detection; set it to the installed version if detection fails.
FFMPEG_PATH optional Sets the path to the ffmpeg binary; defaults to ffmpeg.
FFPLAY_PATH optional Sets the path to the ffplay binary; defaults to ffplay.

Prepare Node.js 24+, ADB, and an Android device with USB debugging enabled and authorized. Run npx scrcpy-mcp to start, or install globally with npm install -g scrcpy-mcp. Add the provided configuration to your MCP client. When multiple devices are connected, set ANDROID_SERIAL or specify serial in tool calls. Installing scrcpy enables faster interaction; video decoding and audio features also require ffmpeg, while audio playback and the MJPEG viewer window require ffplay.

.mcp.json
{"mcpServers":{"android":{"command":"npx","args":["scrcpy-mcp"]}}}

Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "android": {
      "command": "npx",
      "args": [
        "scrcpy-mcp"
      ]
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.android]
command = "npx"
args = ["scrcpy-mcp"]

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add android -- npx scrcpy-mcp

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm the Android device control tools appear in your client's tool list. Call device_list to see connected devices, or version to check the scrcpy-server version information.

Troubleshooting

  1. If adb devices shows unauthorized, accept the RSA fingerprint prompt on the device; if needed, revoke USB debugging authorizations and reconnect.
  2. If a scrcpy session fails to start, check that scrcpy and scrcpy-server are available; set SCRCPY_SERVER_PATH for a nonstandard path.
  3. For multiple connected devices, set ANDROID_SERIAL or specify serial in tool calls.
  4. For slow screenshots, start a scrcpy session; notification and quick settings panel tools also require an active session.
  5. Audio features require Android 11+; check ffmpeg and ffplay paths and the audio source settings.

Things to try

Once connected, you can ask your AI assistant things like:

  • List the connected Android devices and show their models and Android versions.
  • Take a screenshot of the device and describe what is on the screen.
  • Open the notification panel and then take a screenshot.

Tools 44

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

Use cases

Let an AI assistant inspect device screenshots and perform taps, swipes, and text entry.
Automate app launches, UI element lookup, screen recording, and file transfer.
Stream device audio to the host or record it on supported devices.

Supported clients

Claude Code
OpenCode
Cursor
Claude Desktop
GitHub Copilot

Listed from the project's documentation, not tested by this site.

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.

Similar servers

Source revision 619119e4f925 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/scrcpy-mcp.svg)](https://followmcp.com/en/servers/scrcpy-mcp)