Skip to main content
Glama
ScreenConnect MCP Server

ScreenConnect MCP Server

by pitwch

ScreenConnect MCP Server

MCP server for ConnectWise ScreenConnect (RESTful API Manager extension)
Sessions · Notes · Messages · Commands — with MSP-safe read / write / destructive modes

English · Deutsch

MCP License: MIT Node.js 20+ version by Pedrett IT+Web AG

Unofficial community project; not affiliated with or endorsed by ConnectWise.


Overview

This server connects AI assistants (ChatGPT, Claude, Gemini, …) to a ScreenConnect instance via the RESTful API Manager extension. Security boundaries are enforced in code: default read-only mode, optional write tools, and destructive command/toolbox tools only with explicit opt-in.

Protocol

Model Context Protocol (stdio; HTTP probe optional)

API

ConnectWise Labs RESTful API Manager

Stack

TypeScript · Node.js 20+ · @modelcontextprotocol/server

License

MIT

Highlights

  • SCREENCONNECT_MODE=read|write|destructive with tools hidden when disabled

  • SCREENCONNECT_ENABLE_COMMANDS + confirm: true for high-impact actions

  • Session-group allowlist and secret-free stderr audit log

  • Same TypeScript/MCP stack style as also-cloud-marketplace-mcp


Related MCP server: ConnectWise Manage MCP Server

Quick start

git clone https://github.com/pitwch/screenconnect-mcp-server.git
cd screenconnect-mcp-server
npm install
npm run build

Set credentials (see Configuration) and register the server in your MCP client:

command: node
args:    [<REPO>/dist/index.js]

Configuration

Variable

Required

Default

Purpose

SCREENCONNECT_BASE_URL

yes

—

Instance HTTPS URL

SCREENCONNECT_API_SECRET

yes

—

Extension RESTfulAuthenticationSecret (CTRLAuthHeader)

SCREENCONNECT_EXTENSION_ID

no

2d558935-686a-4bd0-9991-07539f5fe749

Extension GUID

SCREENCONNECT_ORIGIN

no

—

Must match RESTfulAllowedOrigin when set

SCREENCONNECT_ALLOWED_GROUPS

no

empty

Comma-separated group paths/names

SCREENCONNECT_MODE

no

read

read · write · destructive

SCREENCONNECT_ENABLE_COMMANDS

no

false

Required for destructive tools

SCREENCONNECT_TIMEOUT_MS

no

30000

Per-call timeout

MCP_TRANSPORT

no

stdio

stdio or http

See .env.example, docs/extension-setup.md, and docs/security-model.md.


Tools

Read (SCREENCONNECT_MODE=read)

Tool

Purpose

health_check

Reachability + auth probe

list_sessions / search_sessions

GetSessionsByFilter (structured or raw filter)

get_session_details

OS, user, IP, custom properties, online state

get_session_events

Events from session details

get_server_info

Local mode/allowlist metadata

Write (MODE=write)

Tool

Purpose

add_session_note

Append note

send_message_to_session

Guest message

update_session_name

Rename

update_custom_properties

Merge slots 1–8

Destructive (MODE=destructive + ENABLE_COMMANDS=true + confirm: true)

Tool

Purpose

send_command_to_session

Queue cmd/PowerShell; optional output poll

send_toolbox_item

Run toolbox item

create_session

Create Support/Meeting/Access session


Client setup

Most MCP clients use a JSON mcpServers block. Start from docs/mcp-client.example.json and adjust the path and env values for your host (ChatGPT Desktop/Codex, Claude Desktop/Code, Gemini CLI, …).

See docs/mcpproxy.example.yaml. Prefer stdio. Start with read mode on mcp.pitw.ch before enabling write/destructive.


Docker

docker build -t screenconnect-mcp-server .
docker run --rm -i \
  -e SCREENCONNECT_BASE_URL=https://your-instance.example.com \
  -e SCREENCONNECT_API_SECRET=... \
  -e SCREENCONNECT_MODE=read \
  screenconnect-mcp-server

Runs as non-root. Do not publish the HTTP port on the public internet.


Development

npm run dev
npm run typecheck
npm run lint
npm test
npm run build
npm run smoke

Live fixture capture (lab instance only): npm run capture-fixtures

Important: write only MCP JSON-RPC to stdout — log exclusively with console.error.



License & provider

MIT License — see LICENSE.

Developed and provided by Pedrett IT+Web AG
Murgtalstrasse 20 · 9542 Münchwilen TG · Switzerland · info@pitw.ch

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to work directly with ConnectWise Manage through natural conversation, offering tools to search and update tickets, log time, manage companies, contacts, projects, and more across cloud and self-hosted instances.
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to work directly with ConnectWise Manage through natural conversation, providing 53 tools for tickets, time entry, companies, contacts, projects, agreements, invoices, opportunities, and more.
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to read computers, clients, locations, alerts, and script catalog and history data from the ConnectWise Automate RMM REST API, and on explicit request reboot machines, run scripts or catalog commands, and create or update clients. Credentials are supplied per request via HTTP headers and never stored, supporting stateless multi-tenant use.
      Apache 2.0