scrcpy-mcp

v0.5.0
io.github.JuanCF/scrcpy-mcp Checked 6 hours ago Published 3 months ago

MCP server for Android device control via ADB and scrcpy

Values you need

VariableWhat it is
ANDROID_SERIALoptional Target device serial number (from `adb devices`). Required when multiple devices are connected.
ADB_PATHoptional Custom path to the adb binary. Defaults to 'adb' on PATH.
SCRCPY_SERVER_PATHoptional 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.0
Add 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

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: start_session, stop_session, version, device_list, device_info, screen_on, screen_off, connect_wifi, ….
  4. 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