Sponsored by Deepsite.site

ConnectWise Manage MCP Server

Created By
jasondsmith729 months ago
Model Context Protocol (MCP) server for ConnectWise Manage API
Content

ConnectWise Manage MCP Server

This is a Model Context Protocol (MCP) server for the ConnectWise Manage API.

Prerequisites

  1. Node.js (v14 or higher)
  2. PowerShell 5.1 or higher
  3. ConnectWiseManageAPI PowerShell module (see installation options below)
  4. ConnectWise Manage API credentials

Installation

  1. Clone or download this repository

    git clone https://github.com/jasondsmith72/CWM-MCP.git cd CWM-MCP
    
  2. Install the required Node.js dependencies:

    npm install
    
  3. Install the ConnectWiseManageAPI PowerShell module using one of these methods:

    Option 1 (Recommended): Bundle the module with the MCP server (no external installation required)

    # Run in PowerShell .\install-module.ps1 -Bundle
    

    Option 2: Install the module globally via PowerShell Gallery

    # Run in PowerShell as Administrator Install-Module 'ConnectWiseManageAPI'
    

    Option 3: Install the module locally via Git

    # Run in PowerShell .\install-module.ps1 -Local
    
  4. Configure your environment variables by copying .env.example to .env and editing the values:

    PORT=3000 CWM_SERVER=your-cwm-server CWM_COMPANY=your-company CWM_PUBKEY=your-public-key CWM_PRIVATEKEY=your-private-key CWM_CLIENTID=your-client-id
    
  5. Start the server:

    npm start
    

    Or run the included batch file:

    start-server.bat
    
  6. Configure Claude Desktop (manual post-installation step):

    To integrate with Claude Desktop, copy the claude_desktop_config.json file to your Claude Desktop configuration directory:

    # Windows (default location)
    C:\Users\<YourUsername>\AppData\Roaming\Claude\claude_desktop_config.json
    

    The configuration file contains:

    {
      "mcpServers": [
        {
          "name": "ConnectWise Manage MCP",
          "description": "MCP server for ConnectWise Manage API integration",
          "proxyUrl": "http://localhost:3000"
        }
      ]
    }
    

    This configuration allows Claude Desktop to connect to your local MCP server and access ConnectWise Manage data.

Usage

The server implements the Model Context Protocol (MCP) for ConnectWise Manage API access.

Creating a Context

POST /context

Response:

{ "contextId": "abc123", "status": "created" }

Connecting to ConnectWise Manage

POST /context/:contextId/connect

Body (optional, will use .env values if not provided):

{ "server": "na.myconnectwise.net", "company": "your-company", "pubKey": "your-public-key", "privateKey": "your-private-key", "clientId": "your-client-id" }

Getting System Info

POST /context/:contextId/getSystemInfo

Getting Companies

POST /context/:contextId/getCompanies

Body (optional):

{ "conditions": "name like '%acme%'" }

Getting Tickets

POST /context/:contextId/getTickets

Body (optional):

{ "conditions": "status='Open'" }

Executing Custom Commands

POST /context/:contextId/executeCommand

Body:

{ "command": "Get-CWMMember", "params": { "Condition": "identifier='admin'" } }

Deleting a Context

DELETE /context/:contextId

Implementation Details

This MCP server acts as a bridge between the Model Context Protocol and the ConnectWiseManageAPI PowerShell module. It provides a RESTful API that follows the MCP protocol pattern while internally using PowerShell to execute commands against the ConnectWise Manage API.

Key components:

  1. server.js - The main Express.js server that implements the MCP endpoints
  2. powershell-bridge.js - A bridge module that executes PowerShell commands and converts between JSON and PowerShell formats
  3. fetch-module.ps1 - Script to download and bundle the ConnectWiseManageAPI module with the server
  4. modules/ConnectWiseManageAPI - Directory where the ConnectWiseManageAPI module is stored when bundled

Module Loading

The server will attempt to load the ConnectWiseManageAPI module in the following order:

  1. Bundled module in the modules/ConnectWiseManageAPI directory (if installed with -Bundle option)
  2. Local module in the modules/ConnectWiseManageAPI directory (if installed with -Local option)
  3. Global module installed in the PowerShell module path

Troubleshooting

If you encounter issues with the ConnectWiseManageAPI module:

  1. Try running the bundled installation option: .\install-module.ps1 -Bundle
  2. Check if the module was correctly downloaded to the modules/ConnectWiseManageAPI directory
  3. If using the global installation method, ensure you have administrator privileges
  4. Check Windows PowerShell execution policy with Get-ExecutionPolicy

License

MIT

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Playwright McpPlaywright MCP server
Serper MCP ServerA Serper MCP Server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Tavily Mcp
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
WindsurfThe new purpose-built IDE to harness magic
Amap Maps高德地图官方 MCP Server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
CursorThe AI Code Editor
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
ChatWiseThe second fastest AI chatbot™
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
DeepChatYour AI Partner on Desktop
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.