ConnectWise Manage MCP Server setup guide for API integration and PowerShell module installation
The ConnectWise Manage MCP (Model Context Protocol) Server is a specialized infrastructure designed to facilitate seamless integration between AI applications, such as Claude Desktop, Continue, Cursor, and other tools, with the ConnectWise Manage API. This server leverages Model Context Protocol to provide a standardized way for AI applications to access data from various sources within ConnectWise Manage through RESTful APIs.
The ConnectWise Manage MCP Server is built around several core features that enhance its interoperability and flexibility:
/context
endpoints for initializing a context, returning a unique contextId
./context/:contextId/connect
for establishing connections using provided or default credentials./context/:contextId/getSystemInfo
to retrieve system details./context/:contextId/executeCommand
.The architecture of the ConnectWise Manage MCP Server is designed around a robust and extensible framework. Key components include:
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
graph TD
A[MCP Server] --> B[Context]
B -->|POST /context| C[New Context]
C -->|Status "created"| D[Context ID]
D -->|POST /context/:contextId/connect| E[Connected to API]
E --> F[System Info Requested]
F -->|GET /context/:contextId/getSystemInfo| G[System Info Retrieved]
G --> H[Company Data Retrieval]
H -->|POST /context/:contextId/getCompanies| I[Companies Returned with Conditions]
I --> J[Ticket Data Retrieval]
J -->|POST /context/:contextId/getTickets| K[Tickets Returned with Conditions]
K --> L[Custom Command Execution]
L -->|POST /context/:contextId/executeCommand| M[Command Executed]
M --> N[Data Returned or Action Perfomed]
Clone the Repository
git clone https://github.com/jasondsmith72/CWM-MCP.git cd CWM-MCP
Install Node.js Dependencies
npm install
Install ConnectWiseManageAPI PowerShell Module
Option 1 (Recommended): Bundle the module with the MCP server
.\install-module.ps1 -Bundle
Option 2: Install from PowerShell Gallery
# Run as Administrator
Install-Module 'ConnectWiseManageAPI'
Option 3: Local Installation via Git
.\install-module.ps1 -Local
Configure Environment Variables
Copy .env.example
to .env
and edit 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
Start the Server
npm start
Or run the included batch file:
start-server.bat
Integrate with Claude Desktop (Manual Post-Installation Step)
Copy claude_desktop_config.json
to your configuration directory:
# Windows (default location)
C:\Users\<YourUsername>\AppData\Roaming\Claude\claude_desktop_config.json
The file contains:
{
"mcpServers": [
{
"name": "ConnectWise Manage MCP",
"description": "MCP server for ConnectWise Manage API integration",
"proxyUrl": "http://localhost:3000"
}
]
}
The ConnectWise Manage MCP Server empowers developers to create seamless integrations between AI applications and ConnectWise Manage. Here are two realistic use cases:
Automated Ticket Creation and Resolution:
{
"command": "New-CWMTicket",
"params": { "Title": "New Support Request", "Description": "Customer has issue with software" }
}
This command creates a new ticket in ConnectWise Manage whenever the AI application identifies a support request.
Real-Time Data Sync and Reporting:
{
"command": "Get-CWMCompany",
"params": { "Conditions": "name like '%Sales%'"}
}
This command retrieves all sales-related companies for batch processing.
The ConnectWise Manage MCP Server is compatible with various AI clients and tools:
Tool | Data Source/Tool | Prompts | Status |
---|---|---|---|
Claude Desktop | ✅ | ✅ | Full |
Continue | ✅ | ✅ | Full |
Cursor | ❌ | ✅ | Tools |
.env
to set values like PORT
, CWM_SERVER
, CWM_COMPANY
, etc..\install-module.ps1 -Bundle
or install it globally via PowerShell Gallery as an Administrator.mcpServers
configuration in your custom JSON files..\\install-module.ps1 -Bundle
, ensure the module is correctly downloaded, or use administrator privileges for the global installation method.With this comprehensive documentation, developers can effectively leverage the ConnectWise Manage MCP Server to integrate AI applications with ConnectWise Manage through a standardized Model Context Protocol.
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration