Skip to content
VS Code

android for VS Code

io.github.us-all/android

Android MCP — ADB-based device, apps, UI, logcat, emulator, files, system, debug

client:VS Code transport:stdio runtime:npm

Install android in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "adb-path",
      "description": "ADB_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "android-home",
      "description": "ANDROID_HOME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "android-serial",
      "description": "ANDROID_SERIAL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "android-tools",
      "description": "ANDROID_TOOLS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "android-disable",
      "description": "ANDROID_DISABLE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "android-mcp-allow-shell",
      "description": "ANDROID_MCP_ALLOW_SHELL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "android-mcp-allow-write",
      "description": "ANDROID_MCP_ALLOW_WRITE",
      "password": true
    }
  ],
  "servers": {
    "android": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@us-all/android-mcp"
      ],
      "env": {
        "ADB_PATH": "${input:adb-path}",
        "ANDROID_HOME": "${input:android-home}",
        "ANDROID_SERIAL": "${input:android-serial}",
        "ANDROID_TOOLS": "${input:android-tools}",
        "ANDROID_DISABLE": "${input:android-disable}",
        "ANDROID_MCP_ALLOW_SHELL": "${input:android-mcp-allow-shell}",
        "ANDROID_MCP_ALLOW_WRITE": "${input:android-mcp-allow-write}"
      }
    }
  }
}

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

android in other clients