ConnectWise Automate MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ConnectWise Automate MCP Servershow me all offline computers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ConnectWise Automate MCP Server
An MCP server for the ConnectWise Automate REST API, the RMM that MSPs use to monitor and manage client endpoints. It lets an AI agent read computers, clients and their locations, alerts, the script catalog and script history and, on explicit request, reboot computers, run scripts and catalog commands, and create or update clients.
Transport: MCP Streamable HTTP at
POST /mcp, health probe atGET /healthStateless and multi-tenant: credentials arrive on every request as HTTP headers and are never stored; the API token is requested per request and discarded with it
Python 3.12, uv, FastMCP, httpx
License: Apache-2.0, Copyright 2026 MSPbots.ai
Authentication headers
Header | Required | Type | Default | Allowed values | Description | Example |
| Yes | string | none | https URL | Automate server URL (a bare host name gets |
|
| Yes | string | none | - | Integration Client ID issued by ConnectWise for the Automate REST API |
|
| Yes | string | none | - | Integrator user name (or a regular Automate user name with |
|
| Yes | string | none | - | Password of that user |
|
| No | string | none | - | Current two-factor passcode, for |
|
| No | string |
|
| How to sign in |
|
Where to get them:
Client ID: the API client id ConnectWise issues to integrations through its developer network (developer.connectwise.com). It identifies the integration, not the MSP.
Integrator user: create an Integrator Login in the Automate system dashboard's integration settings (the exact menu differs between Automate versions; see the ConnectWise documentation for yours), and grant the permissions the agent needs (computers, clients, scripts, commands). Integrator logins have no 2FA, which makes them the right choice for a server-to-server connection.
User auth (
X-Cwa-Auth-Method: user) signs in as a normal Automate user. With 2FA on, a passcode is only valid for a short time, so this mode suits interactive testing rather than a stored connection.The API user's permissions apply: command levels and group "Send Commands" rights decide which commands and scripts may run, and client access decides which records are visible.
How credentials are sent to Automate: the server calls
POST {X-Cwa-Server}/cwa/api/v1/apitoken with the ClientId header and the user name and
password, then sends every API call with Authorization: Bearer <token> and the ClientId
header. A 401 gets a fresh token once. Values that look like unresolved templates (${...})
are treated as missing.
A request to /mcp without the four required headers gets HTTP 401 naming the missing ones;
a non-https server URL or an unknown auth method gets HTTP 400.
Related MCP server: cld-cwm-mcp
Tools
All tools return a JSON string. List tools take limit (default 50) and skip (a multiple of
limit; Automate pages by page number) and return the records plus
{count, skip, has_more, next_skip}.
Tool | Purpose | Parameters (required in bold) |
| Describe the tools of one Automate area (changes nothing) | domain ( |
| Check the Automate connection (server, auth method, login works) and list the tool areas | - |
| List computers (agents), optionally for one client or location, or only online / offline ones | client_id, location_id, status ( |
| Get one computer's details: OS, status, last contact, client, location, hardware and agent info | computer_id |
| Search computers by part of their name, optionally within one client | query, client_id, limit |
| Reboot a computer through Automate's command catalog and wait for the result (write) | computer_id, command_id |
| Run a script on one computer and wait for its outcome (write) | computer_id, script_id, parameters |
| List the command catalog (id, name, level) used by | - |
| Send a catalog command to a computer and wait for its output (write) | computer_id, command_id, parameters, timeout_seconds |
| List clients (customers) with their ids, names and contact details | limit, skip |
| Get one client by id, optionally with its locations | client_id, include_locations |
| Create a client (write) | name, city, state, zip, country, phone |
| Change a client's name or contact details; only the fields given change (write) | client_id, name, city, state, zip, country, phone |
| List alerts, optionally for one computer, client or severity | computer_id, client_id, severity, limit, skip |
| Get one alert by id: message, severity, computer, client and time | alert_id |
| List scripts in the Automate script catalog, optionally by folder or name | folder_id, search, limit, skip |
| Get a script's catalog entry: name, folder, comments, kind flags and accepted parameters | script_id |
| Run a script on one or more computers and wait for each outcome (write) | script_id, computer_ids, parameters, priority ( |
| Get finished script runs on a computer, newest first, with pass/fail state and diagnostic message | computer_id, limit |
| List scripts currently running on a computer | computer_id |
Errors come back as a JSON envelope instead of an exception:
{"error": {"code": "unauthorized", "message": "Automate rejected the username / password or client id (token request failed)", "retryable": false}}code is one of not_configured, unauthorized, not_found, invalid_argument,
rate_limited, upstream_error. Reads are retried with backoff on 429, 5xx and network
errors; writes are retried only on 429. When a write loses its connection before Automate
answers, the result is {"completed": false, "interrupted": true, ...} instead of an error,
because the action may already have run.
Run locally
uv sync
uv run python -m connectwise_automate_mcp # listens on 0.0.0.0:8080or with Docker:
docker build --platform linux/amd64 -t connectwise-automate-mcp:dev .
docker run --rm -p 8080:8080 connectwise-automate-mcp:devConfiguration (environment variables, all optional): MCP_HTTP_HOST (default 0.0.0.0),
MCP_HTTP_PORT (default 8080), LOG_LEVEL (default INFO). Credentials are never read
from the environment.
Testing example
# list tools
curl -s http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "X-Cwa-Server: https://your-server.hostedrmm.com" \
-H "X-Cwa-Client-Id: your-client-id" \
-H "X-Cwa-Username: your-username" \
-H "X-Cwa-Password: your-password" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
# offline computers of one client
curl -s http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "X-Cwa-Server: https://your-server.hostedrmm.com" \
-H "X-Cwa-Client-Id: your-client-id" \
-H "X-Cwa-Username: your-username" \
-H "X-Cwa-Password: your-password" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"cwautomate_computers_list","arguments":{"client_id":12,"status":"offline"}}}'Unit tests (no network access needed):
uv run pytestDelivery notes
Tool count (20). Kept as is because the tool names are an existing contract; every tool is listed from the first
tools/list.Endpoint actions.
cwautomate_computers_reboot,cwautomate_computers_run_script,cwautomate_computers_run_commandandcwautomate_scripts_executeact on live machines and are annotated destructive;cwautomate_clients_create/_updatechange records. Their descriptions tell the agent to use them only on explicit request. There are no delete tools.Waiting for results. Automate has no synchronous run. Commands are polled through their execution row and scripts through new entries in the computer's script history, every 3 s for up to 90 s by default (
timeout_seconds, at most 100 s so the call finishes inside the gateway's limit). An unfinished run returnscompleted: falsewith ids to check later.No interactive prompts. Older versions asked the user for a client filter before an unfiltered list, which a stateless gateway cannot relay; lists now page instead.
Alerts are read-only in the Automate API (no acknowledge / close).
License
This server cannot be deployed
Maintenance
Related MCP Connectors
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
- mcp-serverOAuthcom.make
Give your AI agents the tools to build, manage, and run automation workflows.
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
Connect AI agents to 1000+ apps with managed authentication and tool-calling.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with ConnectWise Manage through 45 tools across Service, Operations, and Finance domains, with tier-based access control for finance tools.MIT
- AlicenseNot gradedqualityCmaintenanceProvides 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.MIT
- AlicenseNot gradedqualityCmaintenanceEnables 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
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to work directly with ConnectWise Manage, allowing natural-language operations on tickets, time entries, companies, contacts, projects, invoices, opportunities, and more.Apache 2.0