Allows an AI assistant to manage tickets, time entries, dispatch schedules, and company configurations within ConnectWise PSA.
Also known as mspstack/mcp-connectwise-psa, mcp-connectwise-psa
- Stars
- 6
- Tools
- —
- Downloads, 30 days
- —
- Latest version
- 0.12.0
- Last commit
- Oct 7, 2026
- License
- MIT
What is ConnectWise PSA MCP?
ConnectWise PSA allows an AI assistant to manage tickets, time entries, dispatch schedules, and company configurations within ConnectWise PSA.
Summary generated from the project's README
About ConnectWise PSA MCP server
Managing service tickets, technician schedules, and billing information from within an AI assistant is what this server enables for MSP professionals. It provides specialized toolsets for different roles, such as technicians, dispatchers, and finance staff, allowing users to interact with ConnectWise PSA through specific personas. The server supports both local stdio connections and remote HTTP deployments via Docker or Node.js.
Users interact with the system using their own ConnectWise member API keys, ensuring that every action is attributed to a specific person and governed by existing security roles. For on-premise deployments, a dedicated SQL toolset allows for read-only T-SQL queries against the Manage database to perform complex reporting that the standard REST API cannot handle. The server includes curated tools for managing tickets, logging time, searching companies, and viewing configurations, alongside an advanced escape hatch to access the broader ConnectWise API.
What you can do with it
- 1Manage service and project ticketsAn AI can search for specific tickets, update their status or priority, and add internal notes or discussions.
- 2Log and submit technician timeTechnicians can log work against tickets, including breaks, and submit their timesheets directly through the assistant.
- 3Coordinate technician dispatchingDispatchers can view member availability, including timezones and working hours, to create or reschedule entries.
- 4Perform custom database reportingOn-premise users can run read-only T-SQL queries against the database to generate complex reports using saved queries.
Written from the project's README. Every use case is checked against a quote from it.
How to install ConnectWise PSA MCP
Formats verified 10 Nov 2026Add to CursorAdd to GooseInstall ConnectWise PSA MCP in Claude Code
$ claude mcp add --env 'CW_PRIVATE_KEY=<YOUR_CW_PRIVATE_KEY>' --env 'CW_PUBLIC_KEY=<YOUR_CW_PUBLIC_KEY>' --env 'CW_CLIENT_ID=<CW_CLIENT_ID>' --env 'CW_COMPANY_ID=<CW_COMPANY_ID>' --env 'CW_SITE=<CW_SITE>' --env 'CW_DB_PASSWORD=<YOUR_CW_DB_PASSWORD>' mcp-connectwise-psa -- npx -y mcp-connectwise-psaInstall ConnectWise PSA MCP in Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"mcp-connectwise-psa": {
"command": "npx",
"args": [
"-y",
"mcp-connectwise-psa"
],
"env": {
"CW_PRIVATE_KEY": "<YOUR_CW_PRIVATE_KEY>",
"CW_PUBLIC_KEY": "<YOUR_CW_PUBLIC_KEY>",
"CW_CLIENT_ID": "<CW_CLIENT_ID>",
"CW_COMPANY_ID": "<CW_COMPANY_ID>",
"CW_SITE": "<CW_SITE>",
"CW_DB_PASSWORD": "<YOUR_CW_DB_PASSWORD>"
}
}
}
}Install ConnectWise PSA MCP in VS Code
.vscode/mcp.json
{
"servers": {
"mcp-connectwise-psa": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-connectwise-psa"
],
"env": {
"CW_PRIVATE_KEY": "<YOUR_CW_PRIVATE_KEY>",
"CW_PUBLIC_KEY": "<YOUR_CW_PUBLIC_KEY>",
"CW_CLIENT_ID": "<CW_CLIENT_ID>",
"CW_COMPANY_ID": "<CW_COMPANY_ID>",
"CW_SITE": "<CW_SITE>",
"CW_DB_PASSWORD": "<YOUR_CW_DB_PASSWORD>"
}
}
}
}Install ConnectWise PSA MCP in VS Code CLI
$ code --add-mcp '{"name":"mcp-connectwise-psa","type":"stdio","command":"npx","args":["-y","mcp-connectwise-psa"],"env":{"CW_PRIVATE_KEY":"<YOUR_CW_PRIVATE_KEY>","CW_PUBLIC_KEY":"<YOUR_CW_PUBLIC_KEY>","CW_CLIENT_ID":"<CW_CLIENT_ID>","CW_COMPANY_ID":"<CW_COMPANY_ID>","CW_SITE":"<CW_SITE>","CW_DB_PASSWORD":"<YOUR_CW_DB_PASSWORD>"}}'Install ConnectWise PSA MCP in Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"mcp-connectwise-psa": {
"command": "npx",
"args": [
"-y",
"mcp-connectwise-psa"
],
"env": {
"CW_PRIVATE_KEY": "<YOUR_CW_PRIVATE_KEY>",
"CW_PUBLIC_KEY": "<YOUR_CW_PUBLIC_KEY>",
"CW_CLIENT_ID": "<CW_CLIENT_ID>",
"CW_COMPANY_ID": "<CW_COMPANY_ID>",
"CW_SITE": "<CW_SITE>",
"CW_DB_PASSWORD": "<YOUR_CW_DB_PASSWORD>"
}
}
}
}Install ConnectWise PSA MCP in Codex
$ codex mcp add mcp-connectwise-psa --env 'CW_PRIVATE_KEY=<YOUR_CW_PRIVATE_KEY>' --env 'CW_PUBLIC_KEY=<YOUR_CW_PUBLIC_KEY>' --env 'CW_CLIENT_ID=<CW_CLIENT_ID>' --env 'CW_COMPANY_ID=<CW_COMPANY_ID>' --env 'CW_SITE=<CW_SITE>' --env 'CW_DB_PASSWORD=<YOUR_CW_DB_PASSWORD>' -- npx -y mcp-connectwise-psaInstall ConnectWise PSA MCP in Codex config.toml
~/.codex/config.toml
[mcp_servers.mcp-connectwise-psa] command = "npx" args = ["-y", "mcp-connectwise-psa"] [mcp_servers.mcp-connectwise-psa.env] CW_PRIVATE_KEY = "<YOUR_CW_PRIVATE_KEY>" CW_PUBLIC_KEY = "<YOUR_CW_PUBLIC_KEY>" CW_CLIENT_ID = "<CW_CLIENT_ID>" CW_COMPANY_ID = "<CW_COMPANY_ID>" CW_SITE = "<CW_SITE>" CW_DB_PASSWORD = "<YOUR_CW_DB_PASSWORD>"
Install ConnectWise PSA MCP in Gemini CLI
$ gemini mcp add -s user -e 'CW_PRIVATE_KEY=<YOUR_CW_PRIVATE_KEY>' -e 'CW_PUBLIC_KEY=<YOUR_CW_PUBLIC_KEY>' -e 'CW_CLIENT_ID=<CW_CLIENT_ID>' -e 'CW_COMPANY_ID=<CW_COMPANY_ID>' -e 'CW_SITE=<CW_SITE>' -e 'CW_DB_PASSWORD=<YOUR_CW_DB_PASSWORD>' mcp-connectwise-psa npx -- -y mcp-connectwise-psaInstall ConnectWise PSA MCP in Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"mcp-connectwise-psa": {
"command": "npx",
"args": [
"-y",
"mcp-connectwise-psa"
],
"env": {
"CW_PRIVATE_KEY": "<YOUR_CW_PRIVATE_KEY>",
"CW_PUBLIC_KEY": "<YOUR_CW_PUBLIC_KEY>",
"CW_CLIENT_ID": "<CW_CLIENT_ID>",
"CW_COMPANY_ID": "<CW_COMPANY_ID>",
"CW_SITE": "<CW_SITE>",
"CW_DB_PASSWORD": "<YOUR_CW_DB_PASSWORD>"
}
}
}
}Configuration
CW_PRIVATE_KEYRequiredSecretAPI member private key
CW_PUBLIC_KEYRequiredSecretAPI member public key
CW_CLIENT_IDRequiredIntegration clientId from developer.connectwise.com
CW_COMPANY_IDRequiredConnectWise login company id
CW_SITERequiredConnectWise host (e.g. na.myconnectwise.net or an on-prem host; full URLs accepted)
CW_DB_PASSWORDSecretPassword for the read-only database login
CW_DB_HOSTConnectWise SQL Server host (on-prem only) — enables the opt-in sql toolset
CW_DB_NAMEConnectWise Manage database, e.g. cwwebapp_acme
CW_DB_QUERY_LIBRARYPath to a writable JSON file holding saved SQL queries
CW_DB_USERDedicated read-only database login (db_datareader)
CW_MEMBER_IDENTIFIERMember identifier the API keys belong to — enables "my tickets"/"my time" tools
CW_TOOLSETSComma list of toolsets/presets (default: all). Add sql for database queries.
| Name | Description | |
|---|---|---|
| CW_PRIVATE_KEY | API member private key | RequiredSecret |
| CW_PUBLIC_KEY | API member public key | RequiredSecret |
| CW_CLIENT_ID | Integration clientId from developer.connectwise.com | Required |
| CW_COMPANY_ID | ConnectWise login company id | Required |
| CW_SITE | ConnectWise host (e.g. na.myconnectwise.net or an on-prem host; full URLs accepted) | Required |
| CW_DB_PASSWORD | Password for the read-only database login | Secret |
| CW_DB_HOST | ConnectWise SQL Server host (on-prem only) — enables the opt-in sql toolset | |
| CW_DB_NAME | ConnectWise Manage database, e.g. cwwebapp_acme | |
| CW_DB_QUERY_LIBRARY | Path to a writable JSON file holding saved SQL queries | |
| CW_DB_USER | Dedicated read-only database login (db_datareader) | |
| CW_MEMBER_IDENTIFIER | Member identifier the API keys belong to — enables "my tickets"/"my time" tools | |
| CW_TOOLSETS | Comma list of toolsets/presets (default: all). Add sql for database queries. |
Automated checks
Ran Nov 14, 2026Full report →Passed our automated checks. That is not a security audit: read the code and give the server the narrowest access it needs. How checks work
- Source repository linked and reachablemspstack/mcp-connectwise-psa is public and reachablegithub.com/mspstack/mcp-connectwise-psa ↗Pass
- Package names this repository as its sourcemcp-connectwise-psa names mspstack/mcp-connectwise-psa as sourcenpmjs.com/package/mcp-connectwise-psa ↗Pass
- Build provenance (Sigstore attestation)Sigstore attestation for mcp-connectwise-psanpmjs.com/package/mcp-connectwise-psa/v/0.12.0#provenance ↗Pass
- Open source license (OSI)MITspdx.org/licenses/MIT.html ↗Pass
- Commit or release in the last yearLast commit or release 2026-10-07github.com/mspstack/mcp-connectwise-psa ↗Pass
- OpenSSF ScorecardNot checked
- Package name not close to a popular packageNo popular package one edit away from mcp-connectwise-psaPass
- No critical advisory in the package or its dependencies169 resolved dependencies checked; no critical advisoryosv.dev ↗Pass
- No hidden instructions to the model0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersPass
- Destructive tools are labelledNot checked
- Remote endpoint answers the MCP handshakeNot checked
README
View on GitHubmcp-connectwise-psa
An MCP (Model Context Protocol) server for ConnectWise PSA (Manage) — curated tools across 8 toolsets covering technicians, dispatchers, and billing, plus an escape hatch for the rest of the API and a read-only SQL toolset for on-prem deployments, so an AI assistant works PSA the way each role does:
- Tickets — search / my tickets / full detail with notes, create, update status/priority/owner, add discussion/internal notes, plus board·status·priority discovery and per-ticket time & tasks. Covers service and project tickets — ConnectWise keeps them on separate resources, so the read tools query both and the by-id tools detect which one an id belongs to
- Time — log time against tickets (with work role, work type and CW's Deduct for breaks), review your own time, work-role and work-type lookup, and list & submit your timesheets
- Companies & contacts — fast lookup, contact detail (phones/emails), company sites
- Configurations — devices/assets with serials, IPs, OS, warranty (read-only)
- Dispatch (schedule) — schedule entries (list/mine/create/reschedule/cancel), and members with their timezone, working hours, and free-vs-booked availability
- Invoicing (finance, read-only) — invoices, agreements, and unbilled billable time ready to bill
- SQL (on-prem only) — read-only T-SQL straight against the
cwwebapp_*Manage database for the cross-table reporting REST cannot express, with a searchable schema catalog and a library of saved queries the assistant can grow. Enabled by configuringCW_DB_*; where it is, every session that does not narrow its toolsets has it - Toolsets & personas — enable only what a session needs via the
x-cw-toolsetsheader (orCW_TOOLSETS); presetstech/dispatch/invoicing/all. Default isall— narrow it per session when a smaller surface is wanted. Each tool also reports its toolset as_meta.group, so an aggregator (the MSPStack gateway) can group and switch tools by capability - Per-member API keys (BYOK) — each user supplies their own ConnectWise member keys; ConnectWise enforces that member's security role, and every write is attributed to the actual person
- Transports — stdio for local use, streamable HTTP for shared deployments; Docker image included
Quick start (local, stdio)
npm install && npm run build
CW_SITE=na.myconnectwise.net \
CW_COMPANY_ID=yourcompany \
CW_CLIENT_ID=<integration clientId> \
CW_PUBLIC_KEY=xxxx CW_PRIVATE_KEY=yyyy \
CW_MEMBER_IDENTIFIER=jdoe \
node dist/index.js
Claude Desktop / Claude Code config:
{
"mcpServers": {
"connectwise": {
"command": "node",
"args": ["/path/to/mcp-connectwise-psa/dist/index.js"],
"env": {
"CW_SITE": "na.myconnectwise.net",
"CW_COMPANY_ID": "yourcompany",
"CW_CLIENT_ID": "<clientId>",
"CW_PUBLIC_KEY": "xxxx",
"CW_PRIVATE_KEY": "yyyy",
"CW_MEMBER_IDENTIFIER": "jdoe"
}
}
}
}
A clientId is required by the ConnectWise API — register a (free) integration at developer.connectwise.com. API member keys are created in ConnectWise under My Account → API Keys (per member) or System → Members → API Members (integration accounts).
HTTP deployment
CW_SITE=… CW_COMPANY_ID=… CW_CLIENT_ID=… \
node dist/index.js --transport http --port 3000
Or with Docker: docker build -t mcp-connectwise-psa . && docker run -p 3000:3000 -e CW_SITE -e CW_COMPANY_ID -e CW_CLIENT_ID mcp-connectwise-psa
| Route | Purpose |
|---|---|
POST/GET/DELETE /mcp |
MCP streamable-http endpoint |
GET /health |
Liveness probe |
Sessions are held in memory — run a single instance (or sticky sessions).
Access control — bring your own keys (BYOK)
Over HTTP there is no MCP-level role system. Each session presents its own ConnectWise member API keys, and ConnectWise itself is the access control: the member's security role decides what succeeds, and every note and time entry is attributed to that member.
Send your keys on the initialize request (and on every subsequent request in the session):
x-cw-public-key: <public key>
x-cw-private-key: <private key>
x-cw-member-id: <your member identifier> (optional — enables "my tickets"/"my time")
- A request with no keys is rejected with
401; both key headers are required together. - Keys are never logged. A session is bound to a SHA-256 hash of the key pair; presenting a different pair on the same session id →
403. - Create member API keys in ConnectWise under My Account → API Keys. Each tech uses their own.
Local stdio is single-user and uses the CW_PUBLIC_KEY/CW_PRIVATE_KEY from the environment instead of headers.
Toolsets
Tools are grouped into toolsets so a session only sees the capabilities it needs — a dispatcher doesn't need the invoicing tools, and a small tool surface keeps the assistant focused (and its context cheap). Whether a write actually succeeds is still governed by the member's ConnectWise security role.
| Toolset key | Tools |
|---|---|
tickets |
cw_search_tickets, cw_my_tickets, cw_get_ticket, cw_create_ticket, cw_update_ticket, cw_add_ticket_note, cw_bundle_tickets, cw_list_boards, cw_get_board, cw_list_priorities, cw_list_ticket_time, cw_list_ticket_tasks |
time |
cw_create_time_entry, cw_update_time_entry, cw_list_my_time, cw_list_work_roles, cw_list_work_types, cw_list_my_timesheets, cw_submit_timesheet |
companies |
cw_search_companies, cw_get_company, cw_search_contacts, cw_get_contact, cw_list_company_sites |
configurations |
cw_list_configurations, cw_get_configuration |
schedule |
cw_list_schedule_entries, cw_my_schedule, cw_schedule_ticket, cw_update_schedule_entry, cw_delete_schedule_entry, cw_member_availability, cw_list_members, cw_get_member |
finance |
cw_list_invoices, cw_get_invoice, cw_list_agreements, cw_get_agreement, cw_list_unbilled_time |
advanced |
cw_find_endpoint (search the full CW API — ~1,150 endpoints), cw_get (read-only GET on any path) |
sql (on-prem, needs CW_DB_*) |
cw_db_query (read-only T-SQL), cw_db_find_table (schema catalog), cw_db_find_query / cw_db_save_query (saved-query library) |
Presets bundle keys per persona: tech = tickets + time + companies + configurations · dispatch = tickets + schedule + companies + configurations · invoicing = finance + time + companies · all = every key. The persona presets deliberately exclude sql — a technician surface is not a database surface.
The advanced toolset is the escape hatch (in all, but in no persona preset): cw_find_endpoint searches a bundled catalog of the whole ConnectWise API, and cw_get performs a read-only GET on any path — so an assistant can reach the long tail (procurement, sales, projects, system…) the curated tools don't wrap. To drop it, name the keys or a persona preset instead (x-cw-toolsets: tech).
Select toolsets with a comma list mixing keys and presets:
- HTTP — the
x-cw-toolsetsheader, per session:x-cw-toolsets: dispatchorx-cw-toolsets: tech,finance. - stdio — the
CW_TOOLSETSenv var or--toolsetsflag:CW_TOOLSETS=invoicing.
The default is the all preset — every capability the server is configured for; a client that wants a smaller surface names the keys or persona it needs. Unknown keys in CW_TOOLSETS/--toolsets fail fast; unknown tokens in the x-cw-toolsets header are ignored. The only destructive tool is cw_delete_schedule_entry (dispatch); finance is read-only. cw_db_save_query writes, but to the query-library file — database access itself is SELECT-only by grant.
Exception: the sql toolset
Every other toolset runs on the caller's own ConnectWise keys, so ConnectWise filters what comes back. sql does not: it reads the database through a server-wide read-only login, so its results are not attributed to a member and are not filtered by that member's security role, board restrictions or record permissions.
Configuring CW_DB_* is therefore the decision that matters. Once a server has a database, sql is an ordinary key: it is in all, it is in the default selection, and every session that does not narrow its toolsets can read the whole PSA database. A server without CW_DB_* prunes it silently, so nothing breaks for deployments that never wanted it.
If you need database access for some callers but not others, do it per session (x-cw-toolsets: tech) or in front of the server — an aggregating gateway can tier the cw_db_* tools separately. What bounds the damage on the server side is the login: see the runbook below, and keep it to db_datareader with credential columns denied.
SQL toolset (on-prem database)
Cloud-hosted ConnectWise gives you no database access, so this toolset is for on-prem deployments only. Point it at the Manage database with a login created for exactly this purpose:
CW_DB_HOST=sqlhost CW_DB_NAME=cwwebapp_acme \
CW_DB_USER=cw_mcp_ro CW_DB_PASSWORD=… \
CW_DB_QUERY_LIBRARY=/data/cw-queries.json \
node dist/index.js
That is all it takes: with a database configured the sql toolset is part of the default selection. Naming sql without CW_DB_* fails at startup (a selection that only includes it, like all, is pruned instead). Nothing connects to the database until a session actually uses a tool.
Start from the reporting views. ConnectWise ships denormalized v_rpt_* views that already join board, status, company and contact onto a record — v_rpt_service, v_rpt_time, v_rpt_company, v_rpt_invoices, v_rpt_agreementlist. cw_db_find_table knows them and the base tables behind them; it carries key columns only, because the exact column list is one INFORMATION_SCHEMA query away and is always right for your version.
The saved-query library is the committed core plus a writable overlay at CW_DB_QUERY_LIBRARY (JSON, { version, queries[] }). Overlay entries win by slug, cw_db_save_query appends to it, and scripts/import-queries.mjs fills it from an existing BrightGauge export:
node scripts/import-queries.mjs /path/to/brightgauge-export
Imported queries stay outside this repository — they are your reporting and can carry company names and rates. On a container, point CW_DB_QUERY_LIBRARY at mounted storage or saved queries die with the container.
The login is the security boundary
There is no statement validation: the server sends the model's SQL to SQL Server as written, so what the login is allowed to do is exactly what can happen. Two scripts set it up and prove it.
Create it — edit the four variables at the top, run as sysadmin. @WhatIf defaults to 1, so the first run only prints the plan:
sqlcmd -S SQLHOST\CWPROD -d master -i scripts/create-readonly-login.sql
It creates the login in no server role, adds it to db_datareader in one database, DENYs everything else (EXECUTE, all writes, DDL, BACKUP), and DENYs SELECT on every credential-looking column it discovers — the names move between Manage versions and every MSP adds its own, so they are found rather than hard-coded. Re-running is safe and is how you re-apply the DENYs after an upgrade adds tables. It reports the instance-wide settings that must be off but never changes them: disabling xp_cmdshell can break other applications, so that stays a decision.
Verify it — as the new login, not as an admin:
sqlcmd -S SQLHOST\CWPROD -d cwwebapp_acme -U cw_mcp_ro -P '<password>' -i scripts/verify-readonly-login.sql
Every check prints PASS or FAIL: SELECT works, UPDATE/CREATE TABLE are refused (inside a transaction that always rolls back, in case a DENY is missing), xp_cmdshell/sp_OACreate/OPENROWSET(BULK …) are unreachable, a credential column is unreadable, and the login is in no elevated role. One FAIL means do not enable the toolset yet.
Two consequences worth knowing up front:
SELECT *fails on any table with a denied column, rather than returning the other columns. That is the point; the tool's error tells the model to name its columns.- EXECUTE is the permission that matters. With it, "read-only SQL" becomes remote code execution as the SQL Server service account —
xp_cmdshell,sp_OACreate,sp_send_dbmail,xp_dirtreefor NTLM capture.OPENROWSET/BULK INSERTread files with no EXECUTE at all, which is why Ad Hoc Distributed Queries must also be off.
Operationally: prefer a readable AG secondary or a restored reporting copy over the production primary, firewall the SQL port to the MCP host, and keep a SQL Audit or Extended Events session on this login.
Configuration reference
| Variable | Default | Purpose |
|---|---|---|
CW_SITE |
— | ConnectWise host (cloud or on-prem; full URLs accepted) |
CW_COMPANY_ID |
— | Login company id |
CW_CLIENT_ID |
— | Integration clientId |
CW_PUBLIC_KEY / CW_PRIVATE_KEY |
— | API member keys — required for stdio; unused on HTTP (BYOK) |
CW_MEMBER_IDENTIFIER |
— | Member the stdio keys belong to (my-tickets/my-time) |
TRANSPORT / PORT |
stdio / 3000 |
Transport selection |
CW_TOOLSETS |
all |
Enabled toolsets (keys/presets); HTTP overrides per session via x-cw-toolsets |
CW_DB_HOST |
— | ConnectWise SQL Server host, or host\INSTANCE — enables the sql toolset |
CW_DB_NAME / CW_DB_USER / CW_DB_PASSWORD |
— | Database and its dedicated read-only login (all four required together) |
CW_DB_PORT |
1433 |
TCP port; invalid together with a named instance |
CW_DB_ENCRYPT / CW_DB_TRUST_SERVER_CERT |
true / true |
TLS, and accepting the usual self-signed on-prem certificate |
CW_DB_READ_UNCOMMITTED |
true |
Read at READ UNCOMMITTED so reporting never blocks production writers |
CW_DB_QUERY_TIMEOUT_MS / CW_DB_MAX_ROWS |
30000 / 200 |
Per-query deadline and row cap |
CW_DB_QUERY_LIBRARY |
— | Path to the writable saved-query file; unset ⇒ built-in queries only, no save tool |
Notes & limits
- Ticket searches default to open tickets; status/board names are exact, text filters are substrings.
- Service and project tickets live on different ConnectWise resources. Read tools take
ticket_type(bothby default) and merge; by-id tools default toautoand detect the resource, which costs one extra lookup — passservice/projectto skip it.cw_create_ticketmakes service tickets only: a project ticket needs a project and a phase. - A break inside a logged span goes in
hours_deduct, withtime_endleft at the real end time. Passing a shortenedhoursinstead makes ConnectWise render an end time that never happened. - Timestamps must have whole seconds — the server normalizes (ConnectWise rejects fractional seconds).
- Time entries require an open time report period in ConnectWise for the entry date; the API's message is passed through when none exists.
/system/myAccountis missing on some on-prem versions — provide the member identifier explicitly (CW_MEMBER_IDENTIFIERorx-cw-member-id) for "my tickets"/"my time".- Discussion notes are customer-visible; internal notes are not — the tools make this explicit. A time entry's note can be copied onto the ticket as Discussion (
add_to_detail), Internal Analysis (add_to_internal), Resolution (add_to_resolution), or none of them — and the result says which. Note that all three off means the note stays on the time entry, not that it becomes internal. cw_db_querystops atmax_rows(default 200) or a ~20,000-character budget and cancels the query server-side; the response says which limit it hit. The per-query deadline is 30 s by default, 120 s at most.- The database connection reads at READ UNCOMMITTED so a reporting scan cannot block a technician saving a ticket. The cost is dirty reads: counts are approximate under concurrent writes. Set
CW_DB_READ_UNCOMMITTED=falseif a report must be exact. SELECT *fails on any table with a DENY'd column — name the columns you need.- Cloud-hosted ConnectWise instances have no database access; the
sqltoolset is on-prem only.
Development
npm install
npm run dev # stdio via tsx
npm run dev:http # http via tsx
npm test # vitest
npm run build # tsc → dist/
License
ConnectWise PSA MCP questions
How do I add ConnectWise PSA MCP to Claude Code?
Run claude mcp add --env 'CW_PRIVATE_KEY=<YOUR_CW_PRIVATE_KEY>' --env 'CW_PUBLIC_KEY=<YOUR_CW_PUBLIC_KEY>' --env 'CW_CLIENT_ID=<CW_CLIENT_ID>' --env 'CW_COMPANY_ID=<CW_COMPANY_ID>' --env 'CW_SITE=<CW_SITE>' --env 'CW_DB_PASSWORD=<YOUR_CW_DB_PASSWORD>' mcp-connectwise-psa -- npx -y mcp-connectwise-psa in your terminal. Add --scope user to make it available in every project.
How do I add ConnectWise PSA MCP to Cursor?
Open ~/.cursor/mcp.json and add the server under mcpServers, using the Cursor config shown in the install section above.
How does the server handle security and user permissions?
The server uses a Bring Your Own Key (BYOK) model where each user provides their own ConnectWise member API keys, ensuring ConnectWise enforces that member's specific security role.
Can the AI assistant see all available tools at once?
By default, the server provides all capabilities, but you can narrow the toolset per session using presets like 'tech', 'dispatch', or 'invoicing' to keep the context small.
Is the invoicing toolset capable of making changes?
No, the invoicing toolset is strictly read-only.