Skip to content
VS Code

ScreenConnect for VS Code

io.github.pitwch/screenconnect-mcp-server

MCP server for ScreenConnect RESTful API Manager: read, write and gated destructive tools

client:VS Code transport:stdio runtime:npm

Install ScreenConnect in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "screenconnect-base-url",
      "description": "SCREENCONNECT_BASE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "screenconnect-api-secret",
      "description": "SCREENCONNECT_API_SECRET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "screenconnect-mode",
      "description": "SCREENCONNECT_MODE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "screenconnect-enable-commands",
      "description": "SCREENCONNECT_ENABLE_COMMANDS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "screenconnect-allowed-custom-properties",
      "description": "SCREENCONNECT_ALLOWED_CUSTOM_PROPERTIES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "screenconnect-allowed-session-ids",
      "description": "SCREENCONNECT_ALLOWED_SESSION_IDS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "screenconnect-allowed-name-prefixes",
      "description": "SCREENCONNECT_ALLOWED_NAME_PREFIXES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "screenconnect-allowed-groups",
      "description": "SCREENCONNECT_ALLOWED_GROUPS",
      "password": true
    }
  ],
  "servers": {
    "screenconnect-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "screenconnect-mcp-server"
      ],
      "env": {
        "SCREENCONNECT_BASE_URL": "${input:screenconnect-base-url}",
        "SCREENCONNECT_API_SECRET": "${input:screenconnect-api-secret}",
        "SCREENCONNECT_MODE": "${input:screenconnect-mode}",
        "SCREENCONNECT_ENABLE_COMMANDS": "${input:screenconnect-enable-commands}",
        "SCREENCONNECT_ALLOWED_CUSTOM_PROPERTIES": "${input:screenconnect-allowed-custom-properties}",
        "SCREENCONNECT_ALLOWED_SESSION_IDS": "${input:screenconnect-allowed-session-ids}",
        "SCREENCONNECT_ALLOWED_NAME_PREFIXES": "${input:screenconnect-allowed-name-prefixes}",
        "SCREENCONNECT_ALLOWED_GROUPS": "${input:screenconnect-allowed-groups}"
      }
    }
  }
}

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

ScreenConnect in other clients