ScreenConnect

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

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

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_server_info Server info

Local metadata: mode, enabled tiers, effective command status, configured session scope allowlists, effective Origin header, and config warnings. Does not call ScreenConnect.

health_check Health check

Verify ScreenConnect reachability, CTRLAuthHeader authentication, and command readiness (Origin header & command status). Pass checkCommands=true when commands are enabled to run a non-executing nil-GUID POST preflight against SendCommandToSession.

ParameterTypeDescription
checkCommandsbooleanIf true and commands are active, run a non-executing nil-GUID POST preflight against SendCommandToSession to verify auth, Origin header, and anti-forgery handling

list_sessions List sessions

List ScreenConnect sessions via GetSessionsByFilter. Prefer structured fields; use filter for advanced expressions. When SCREENCONNECT_ALLOWED_GROUPS is set, the allowlist is applied in the upstream filter and again client-side.

ParameterTypeDescription
customPropertiesobjectMap of custom property slots "1".."8" to match values
filterstringRaw GetSessionsByFilter expression (exclusive with structured fields)
groupstringSession group path/name fragment
limitinteger
loggedOnUserstring
machineNamestring
namestringSession name fragment
offlineOnlybooleanOnly sessions with GuestConnectedCount = 0 (mutually exclusive with onlineOnly)
offsetinteger
onlineOnlybooleanOnly sessions with GuestConnectedCount > 0
operatingSystemstring
sessionTypestring

search_sessions Search sessions

Search sessions by name, group, online status, OS, user, or raw filter (same backend as list_sessions). Allowlist is enforced upstream and client-side when configured.

ParameterTypeDescription
customPropertiesobjectMap of custom property slots "1".."8" to match values
filterstringRaw GetSessionsByFilter expression (exclusive with structured fields)
groupstringSession group path/name fragment
limitinteger
loggedOnUserstring
machineNamestring
namestringSession name fragment
offlineOnlybooleanOnly sessions with GuestConnectedCount = 0 (mutually exclusive with onlineOnly)
offsetinteger
onlineOnlybooleanOnly sessions with GuestConnectedCount > 0
operatingSystemstring
sessionTypestring

get_session Get session

Fetch a single session by GUID via GetSessionBySessionID (lighter and faster than get_session_details when event history and connection lists are not needed). Allowlist-checked and normalized.

ParameterTypeDescription
sessionId *stringScreenConnect session GUID

get_session_details Get session details

Get OS, logged-on user, IP/network address, custom properties, online status, and connection info for a session GUID. Nested Session/GuestInfo payloads from the live API are flattened. includeRaw returns a redacted payload (keys, wake tokens, screenshots, serial/MAC stripped; Events/Connections omitted — use get_session_events).

ParameterTypeDescription
sessionId *stringScreenConnect session GUID
includeRawbooleanIf true, include a redacted upstream details payload (secrets/hardware ids/screenshots removed)

get_session_events Get session events

Return recent session events from GetSessionDetailsBySessionID with readable eventTypeName (Connected, Disconnected, RanCommand, …).

ParameterTypeDescription
sessionId *stringScreenConnect session GUID
limitinteger