Skip to content
VS Code

scrcpy mcp for VS Code

io.github.juancf/scrcpy-mcp

MCP server for Android device control via ADB and scrcpy

client:VS Code transport:stdio runtime:npm

Install scrcpy mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "android-serial",
      "description": "ANDROID_SERIAL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "adb-path",
      "description": "ADB_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "scrcpy-server-path",
      "description": "SCRCPY_SERVER_PATH",
      "password": true
    }
  ],
  "servers": {
    "scrcpy-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "scrcpy-mcp"
      ],
      "env": {
        "ANDROID_SERIAL": "${input:android-serial}",
        "ADB_PATH": "${input:adb-path}",
        "SCRCPY_SERVER_PATH": "${input:scrcpy-server-path}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

scrcpy mcp in other clients