scrcpy-mcp
v0.5.0MCP server for Android device control via ADB and scrcpy
Values you need
| Variable | What it is | |
|---|---|---|
ANDROID_SERIAL | optional | Target device serial number (from `adb devices`). Required when multiple devices are connected. |
ADB_PATH | optional | Custom path to the adb binary. Defaults to 'adb' on PATH. |
SCRCPY_SERVER_PATH | optional | Path to the scrcpy-server.jar file. Only needed if not installed in a standard location. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add scrcpy-mcp -- npx -y scrcpy-mcp@0.5.0Add to
claude_desktop_config.json{
"mcpServers": {
"scrcpy-mcp": {
"args": [
"-y",
"scrcpy-mcp@0.5.0"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"scrcpy-mcp": {
"args": [
"-y",
"scrcpy-mcp@0.5.0"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"scrcpy-mcp": {
"args": [
"-y",
"scrcpy-mcp@0.5.0"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.scrcpy-mcp]
command = "npx"
args = ["-y", "scrcpy-mcp@0.5.0"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: start_session, stop_session, version, device_list, device_info, screen_on, screen_off, connect_wifi, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json