cld-cwm-mcp
Provides governed access to ConnectWise Manage (PSA) data including service tickets, companies, contacts, configurations, projects, sales, time, schedule, finance, and procurement through 68 tools, with read-only mode by default and optional write operations, deployed to Azure with credentials stored in Key Vault.
README
ConnectWise Manage MCP Server (cld-cwm-mcp)
A self-hosted Model Context Protocol server for ConnectWise Manage (PSA), deployed to your own Azure subscription. It gives Claude, Microsoft Copilot, GitHub Copilot and any other MCP client governed access to service tickets, companies, contacts, configurations, projects, sales, time, schedule, finance and procurement.
All credentials live in Azure Key Vault — nothing sensitive is stored in code, container images or app settings.
Features
-
68 tools across every ConnectWise Manage module (52 in read-only mode):
Module Read Write (opt-in) Service search/count/get tickets, notes, boards, statuses, types, priorities create/update ticket, add note Companies search/count/get, sites, types, statuses create/update company Contacts search/get, communications create/update contact Configurations (assets) search/get, types, statuses create/update configuration Projects search/get, phases, project tickets create/update project Sales opportunities, statuses, activities create/update opportunity, create activity Time & Schedule time entries, work types, schedule entries create time entry, schedule entry Finance agreements, additions, invoices via generic tool only Procurement catalog, products, purchase orders via generic tool only Members / System members, departments, locations, system info — -
cwm_api_request— a generic tool that can call any ConnectWise Manage REST endpoint, so coverage extends to the full API surface without bloating every AI client with hundreds of tool definitions. -
Full ConnectWise query syntax:
conditions,childConditions,orderBy,fields, pagination (capped at 200 records/page), plus request pacing (100 requests/minute towards the CWM API). -
Read-only by default. Write tools only exist when the server is deployed with
CWM_ALLOW_WRITES=true. -
Streamable HTTP transport — works with Claude Desktop, Claude Code, claude.ai, GitHub Copilot (VS Code), Microsoft Copilot Studio / M365 Copilot, Cursor, ChatGPT and any MCP-compatible client.
-
API-key protected (
Authorization: Bearer …orX-API-Keyheader), key generated and stored in Key Vault.
Architecture
flowchart LR
subgraph Clients
A[Claude Desktop / Code / claude.ai]
B[GitHub Copilot - VS Code]
C[Microsoft Copilot Studio / M365]
end
subgraph Azure["Azure - rg-cld-cwm-mcp"]
CA["Container App\nca-cld-cwm-mcp\n(MCP server, /mcp)"]
KV["Key Vault\nkv-cld-cwm-mcp-*\n(CWM keys, MCP API key)"]
ACR["Container Registry\ncrcldcwmmcp*"]
ID["Managed Identity\nid-cld-cwm-mcp"]
LOG["Log Analytics\nlog-cld-cwm-mcp"]
end
CWM["ConnectWise Manage\nREST API"]
A -->|HTTPS + Bearer key| CA
B -->|HTTPS + Bearer key| CA
C -->|HTTPS + X-API-Key| CA
CA -->|secret references via| ID --> KV
CA -->|Basic auth + clientId| CWM
CA --> LOG
ACR -->|image pull| CA
Azure resources follow the cld-cwm-mcp naming convention:
rg-cld-cwm-mcp, ca-cld-cwm-mcp, cae-cld-cwm-mcp, kv-cld-cwm-mcp-<suffix>,
crcldcwmmcp<suffix>, id-cld-cwm-mcp, log-cld-cwm-mcp.
Quick start
-
Create a ConnectWise API member (System → Members → API Members) with an appropriate security role, then generate a public/private key pair. Register a Developer Client ID at developer.connectwise.com.
-
Deploy to Azure (requires
azCLI, logged in):./scripts/deploy.sh # defaults: rg-cld-cwm-mcp, uksouthThe script provisions all resources, prompts for your ConnectWise credentials (stored straight into Key Vault), builds the image in ACR and deploys the Container App. It prints your MCP endpoint and server key.
-
Connect a client — see docs/client-setup.md.
Quick test:
curl https://<your-app>.azurecontainerapps.io/health
Documentation
| Document | Contents |
|---|---|
| docs/deployment.md | Azure deployment (script and manual), CI/CD with GitHub Actions OIDC |
| docs/client-setup.md | Claude Desktop, Claude Code, claude.ai, GitHub Copilot, Microsoft Copilot Studio |
| docs/tools.md | Full tool reference and ConnectWise query syntax |
| docs/security.md | Key Vault, authentication, read-only mode, key rotation |
| docs/local-development.md | Running locally without Azure |
Configuration
| Setting | Source | Default | Purpose |
|---|---|---|---|
CWM_COMPANY_ID |
Key Vault cwm-company-id |
— | ConnectWise company/login ID |
CWM_PUBLIC_KEY |
Key Vault cwm-public-key |
— | API member public key |
CWM_PRIVATE_KEY |
Key Vault cwm-private-key |
— | API member private key |
CWM_CLIENT_ID |
Key Vault cwm-client-id |
— | ConnectWise Developer Network Client ID |
MCP_API_KEY |
Key Vault mcp-api-key |
— | Key clients present to this server |
CWM_SITE |
env | api-eu.myconnectwise.net |
CWM region: api-na, api-eu, api-aus, or self-hosted FQDN |
CWM_ALLOW_WRITES |
env | false |
Register create/update tools |
CWM_RATE_LIMIT_PER_MINUTE |
env | 100 |
Pacing towards the CWM API |
CWM_MAX_PAGE_SIZE |
env | 200 |
Hard cap on records per page |
KEY_VAULT_URI |
env | — | Enables direct Key Vault lookup via managed identity |
AUTH_DISABLED |
env | false |
Local development only — never in Azure |
Licence
MIT — see LICENSE.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.