ScreenConnect
v0.3.1MCP server for ScreenConnect RESTful API Manager: read, write and gated destructive tools
Values you need
| Variable | What it is | |
|---|---|---|
SCREENCONNECT_BASE_URL | required | ScreenConnect instance HTTPS URL, e.g. https://your-instance.example.com (http is rejected) |
SCREENCONNECT_API_SECRET | required secret | RESTful API Manager extension shared secret (sent as CTRLAuthHeader) |
SCREENCONNECT_MODE | optional | Tool mode: read (default), write or destructive. write/destructive require a session scope allowlist unless SCREENCONNECT_ALLOW_UNSCOPED_MUTATIONS=true Default: read |
SCREENCONNECT_ENABLE_COMMANDS | optional | Must be true (together with SCREENCONNECT_MODE=destructive) to expose destructive tools (commands, toolbox, create_session) Default: false |
SCREENCONNECT_ALLOWED_CUSTOM_PROPERTIES | optional | 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_IDS | optional | Optional comma-separated ScreenConnect session GUIDs to pin access to specific machines |
SCREENCONNECT_ALLOWED_NAME_PREFIXES | optional | Optional comma-separated session/machine name prefixes (e.g. LAB-,PITW-) |
SCREENCONNECT_ALLOWED_GROUPS | optional | 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.1Add 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
- 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.
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: get_server_info, health_check, list_sessions, search_sessions, get_session, get_session_details, get_session_events.
- 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