ScreenConnect

v0.3.1
io.github.pitwch/screenconnect-mcp-server Checked 1 hour ago Published 5 hours ago

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

Values you need

VariableWhat it is
SCREENCONNECT_BASE_URLrequired ScreenConnect instance HTTPS URL, e.g. https://your-instance.example.com (http is rejected)
SCREENCONNECT_API_SECRETrequired secret RESTful API Manager extension shared secret (sent as CTRLAuthHeader)
SCREENCONNECT_MODEoptional Tool mode: read (default), write or destructive. write/destructive require a session scope allowlist unless SCREENCONNECT_ALLOW_UNSCOPED_MUTATIONS=true Default: read
SCREENCONNECT_ENABLE_COMMANDSoptional Must be true (together with SCREENCONNECT_MODE=destructive) to expose destructive tools (commands, toolbox, create_session) Default: false
SCREENCONNECT_ALLOWED_CUSTOM_PROPERTIESoptional Recommended tenant allowlist: comma-separated <1..8>=<value> pairs matched against CustomProperty1..8 (e.g. 1=YourCompany or 1=Contoso,1=Lab)
SCREENCONNECT_ALLOWED_SESSION_IDSoptional Optional comma-separated ScreenConnect session GUIDs to pin access to specific machines
SCREENCONNECT_ALLOWED_NAME_PREFIXESoptional Optional comma-separated session/machine name prefixes (e.g. LAB-,PITW-)
SCREENCONNECT_ALLOWED_GROUPSoptional Optional comma-separated full session group paths (only on instances returning SessionGroupPath/GroupName)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add screenconnect-mcp-server -e 'SCREENCONNECT_API_SECRET=<SCREENCONNECT_API_SECRET>' -e 'SCREENCONNECT_BASE_URL=<SCREENCONNECT_BASE_URL>' -- npx -y screenconnect-mcp-server@0.3.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "screenconnect-mcp-server": {
      "args": [
        "-y",
        "screenconnect-mcp-server@0.3.1"
      ],
      "command": "npx",
      "env": {
        "SCREENCONNECT_API_SECRET": "<SCREENCONNECT_API_SECRET>",
        "SCREENCONNECT_BASE_URL": "<SCREENCONNECT_BASE_URL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "screenconnect-mcp-server": {
      "args": [
        "-y",
        "screenconnect-mcp-server@0.3.1"
      ],
      "command": "npx",
      "env": {
        "SCREENCONNECT_API_SECRET": "<SCREENCONNECT_API_SECRET>",
        "SCREENCONNECT_BASE_URL": "<SCREENCONNECT_BASE_URL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "SCREENCONNECT_API_SECRET",
      "id": "screenconnect-api-secret",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "SCREENCONNECT_BASE_URL",
      "id": "screenconnect-base-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "screenconnect-mcp-server": {
      "args": [
        "-y",
        "screenconnect-mcp-server@0.3.1"
      ],
      "command": "npx",
      "env": {
        "SCREENCONNECT_API_SECRET": "${input:screenconnect-api-secret}",
        "SCREENCONNECT_BASE_URL": "${input:screenconnect-base-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.screenconnect-mcp-server]
command = "npx"
args = ["-y", "screenconnect-mcp-server@0.3.1"]
env = { "SCREENCONNECT_API_SECRET" = "<SCREENCONNECT_API_SECRET>", "SCREENCONNECT_BASE_URL" = "<SCREENCONNECT_BASE_URL>" }

For AI agents

  1. Ask the user for: SCREENCONNECT_BASE_URL, SCREENCONNECT_API_SECRET. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: get_server_info, health_check, list_sessions, search_sessions, get_session, get_session_details, get_session_events.
  5. 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