Atlas / MCP servers / juancf / Scrcpy

ScrcpyCAUTION

mcp/juancf/scrcpy

MCP server for Android device control via ADB and scrcpy — gives AI agents vision and control over Android devices

Verdict
CAUTION
Grade
B
Trust score
87 /100
Exposed tools
44 26r · 16w · 2d
Transport
stdio
License
MIT
Stars
112
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

MCP server that gives AI agents full vision and control over Android devices via ADB and scrcpy.

Connect any MCP-compatible AI assistant (Claude Code, OpenCode, Cursor, VS Code Copilot, etc.) to your Android device. The AI can see the screen, tap, swipe, type, launch apps, inspect UI elements, transfer files, and run shell commands.

[](https://lobehub.com/mcp/juancf-scrcpy-mcp)

Features

  • 44 tools covering screenshots, input, apps, UI automation, shell, files, clipboard, video streaming, and audio streaming/recording
  • scrcpy-first: uses scrcpy's binary control protocol for 10-50x faster input and near-instant screenshots (~33ms)
  • ADB fallback: interaction tools work without scrcpy — slower but always available (the audio tools start_audio_stream/audio_record_start and the video stream require scrcpy)
  • Image-returning screenshots: the AI actually sees the screen, not just a file path
  • UI element finding: ui_find_element returns tap coordinates so the AI can act on what it sees
  • Audio streaming & recording: stream device audio to host speakers (start_audio_stream) or capture to .wav/.opus (audio_record_start)
  • Clipboard that works on Android 10+: scrcpy bypasses the restrictions that break ADB-only solutions

Prerequisites

Required

Optional (for enhanced performance)

Read from source at commit 7cb759112ac9OBSERVED · 2026-10-07
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code (npm)
claude mcp add scrcpy-mcp -- npx -y [email protected]
03

Exposed tools (44)

26 read · 16 write · 2 destructive. Blast radius: 2 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
app_currentread
app_installwrite
app_listread
app_startwrite
app_stopwrite
app_uninstalldestructive
audio_captureread
audio_record_startwrite
audio_record_stopwrite
clipboard_getread
clipboard_setwrite
collapse_panelsread
connect_wifiread
device_inforead
device_listread
disconnect_wifiread
drag_dropdestructive
expand_notificationsread
expand_settingsread
file_listread
file_pullread
file_pushwrite
input_textread
key_eventread
long_pressread
rotate_deviceread
screen_offread
screen_onread
screen_record_startwrite
screen_record_stopwrite
screenshotread
scrollread
shell_execwrite
start_audio_streamwrite
start_sessionwrite
start_video_streamwrite
stop_audio_streamwrite
stop_sessionwrite
stop_video_streamwrite
swiperead
tapread
ui_dumpread
ui_find_elementread
versionread
04

Trust audit

CAUTIONgrade B · trust 87/100 Install with care. The audit found things worth knowing before you trust its output.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeWARN
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
declared (1 observation(s))
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (15)

MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
.opencode/skills/scrcpy-gotchas/SKILL.md:318
- `scrcpy_start_video_stream` starts an HTTP MJPEG stream at `http://127.0.0.1:7183` and opens an ffplay viewer window on the host.
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
.opencode/skills/scrcpy-gotchas/SKILL.md:324
scrcpy_start_video_stream()  // opens ffplay window at http://127.0.0.1:7183
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
src/utils/mjpeg.ts:107
return `http://127.0.0.1:${port}`
MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
app_uninstall, drag_drop
Why it matters. 2 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenance · inv.hidden_file · CWE-1104
.coderabbit.yaml
.coderabbit.yaml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.mcpbignore
.mcpbignore
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/integration/audio.test.ts:3
import { resolveSerial, execAdbShell, execAdb } from "../../src/utils/adb.js"
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/integration/global-setup.ts:1
import { execAdbShell, resolveSerial } from "../../src/utils/adb.js"
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/integration/wifi.test.ts:2
import { execAdb } from "../../src/utils/adb.js"
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@modelcontextprotocol/sdk, zod, @eslint/js, @types/node, eslint, tsup, tsx, typescript
Why it matters. 11 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
README.md:166
| `version` | Report which scrcpy-server version the session pushes and where that version was resolved from. |
Why it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
README.md:312
* **Version Mismatch**: The client must send the exact version of the `scrcpy-server` file it pushes. To guarantee that, the server and the version are never resolved separately — one scrcpy install i
Why it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
docs/PLAN.md:297
│       ├── scrcpy.ts            # scrcpy-server lifecycle, control socket, video stream, clipboard sync
Why it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
docs/PLAN.md:315
| `src/utils/scrcpy.ts` | ~550 | **Core module**: scrcpy-server push/launch, control socket (binary protocol for input injection), video stream management (ffmpeg decode to frame buffer), clipboard sy
Why it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
docs/PLAN.md:343
| `version` | — | Text (JSON) | Report the scrcpy-server version the session pushes, and which rung resolved it (env, binary, server-sibling, package manager, or built-in default) |
Why it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine

Gates applied: no_behavioural_pass.

Audited 2026-10-07 · audit v0.4.1 · source sha 7cb759112ac9full audit observations/trust-audit/mcp-server/juancf__scrcpy.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-077cb759112ac9CAUTIONB87first audit
06

Questions

What is the Scrcpy MCP server?

MCP server for Android device control via ADB and scrcpy — gives AI agents vision and control over Android devices

What tools does Scrcpy expose?

44 in total: 26 read-only, 16 that write, and 2 that can delete or overwrite (app_uninstall, drag_drop). Every one is listed on this page with its risk.

Is Scrcpy safe to connect to an agent?

With care. The audit graded it B (87/100) and found 15 things worth knowing before you trust this server, listed below with the exact line each was found on. Separately from the audit: 2 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does Scrcpy need?

No credential environment variables were found in its source, so it appears to need none.

How does Scrcpy run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as scrcpy-mcp at 0.5.0.

How current is this page?

The grade is for one exact copy of the source (7cb759112ac9), read on 2026-10-07. The repository is watched and re-audited when it changes.

Advertisement