npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

connectwise-mcp-server

v1.0.0

Published

MCP server for ConnectWise Manage PSA (Service Desk, Companies, Contacts)

Readme

ConnectWise Manage MCP Server

An MCP server that lets Claude (or any MCP client) work with ConnectWise Manage PSA — search and manage service tickets, log notes and time, and look up companies and contacts.

Built in TypeScript on the official MCP SDK. Ships as a one-click Claude Desktop extension (.mcpb) and as an npm package.


Installation

Pick the path that matches your users.

Option A — Claude Desktop extension (easiest, no technical setup) ⭐

For end users / non-technical staff. No Node, no build, no JSON.

  1. Get the connectwise-manage.mcpb file (build it with npm run bundle, or download it from your internal share / releases page).
  2. Open Claude Desktop → Settings → Extensions.
  3. Drag the .mcpb file into the window (or click Install extension).
  4. A form appears — fill in the five fields (the private key and client ID are masked):
    • Site URL (prefilled with the NA cloud default)
    • Company ID
    • API Public Key
    • API Private Key
    • Integrator Client ID
  5. Click Save, then ask Claude: "Test the ConnectWise connection."

That's the entire setup. Credentials are stored by Claude Desktop's secure config — nothing to edit by hand.

Option B — Claude Code / any client via npx

For CLI and developer users. Requires Node.js 18+.

claude mcp add connectwise \
  --env CW_SITE_URL=https://api-na.myconnectwise.net \
  --env CW_COMPANY_ID=your_company_id \
  --env CW_PUBLIC_KEY=your_public_key \
  --env CW_PRIVATE_KEY=your_private_key \
  --env CW_CLIENT_ID=your_client_id_guid \
  -- npx -y connectwise-mcp-server

Or add it manually to any MCP client's JSON config (e.g. Claude Desktop's claude_desktop_config.json):

{
  "mcpServers": {
    "connectwise": {
      "command": "npx",
      "args": ["-y", "connectwise-mcp-server"],
      "env": {
        "CW_SITE_URL": "https://api-na.myconnectwise.net",
        "CW_COMPANY_ID": "your_company_id",
        "CW_PUBLIC_KEY": "your_public_key",
        "CW_PRIVATE_KEY": "your_private_key",
        "CW_CLIENT_ID": "your_client_id_guid"
      }
    }
  }
}

Option C — From source (for development)

npm install
npm run build
npm start   # runs dist/index.js (needs the env vars set)

Getting ConnectWise credentials

You need three things from ConnectWise:

  1. API Member key pair — In ConnectWise: System → Members → API Members. Create an API member (give it a security role scoped to what the MCP should access), open it, go to the API Keys tab, and generate a key pair. Copy the public and private keys (the private key is shown only once).
  2. Integrator / Client ID — Register at https://developer.connectwise.com under My Account → Client IDs. This GUID is sent as the clientId header.
  3. Site URL — Your API host, e.g. https://api-na.myconnectwise.net (NA cloud), https://api-eu.myconnectwise.net (EU), or your on-prem hostname. Do not include the /v4_6_release/apis/3.0 path — the server adds it.

| Config field | Env var | Required | |---|---|---| | Site URL | CW_SITE_URL | yes | | Company ID | CW_COMPANY_ID | yes | | API Public Key | CW_PUBLIC_KEY | yes | | API Private Key | CW_PRIVATE_KEY | yes | | Integrator Client ID | CW_CLIENT_ID | yes | | API version (optional pin) | CW_API_VERSION | no |


Tools

| Tool | Type | Purpose | |---|---|---| | connectwise_test_connection | read | Verify credentials + report system info. Run this first. | | connectwise_search_tickets | read | Search/list service tickets with conditions filters | | connectwise_get_ticket | read | Full detail on one ticket | | connectwise_create_ticket | write | Create a ticket on a board | | connectwise_update_ticket | write | Change status/priority/owner/summary/board | | connectwise_list_ticket_notes | read | List a ticket's notes | | connectwise_add_ticket_note | write | Add a discussion/internal/resolution note | | connectwise_add_time_entry | write | Log time against a ticket | | connectwise_search_companies | read | Search/list companies | | connectwise_get_company | read | Full detail on one company | | connectwise_search_contacts | read | Search/list contacts | | connectwise_get_contact | read | Full detail on one contact |


The conditions query language

The search tools accept a ConnectWise conditions string (SQL-like):

  • Strings must be double-quoted: status/name="New"
  • Booleans: closedFlag=false
  • Dates use bracket syntax: dateEntered>[2026-01-01T00:00:00Z]
  • Reference fields use /: company/id=123, board/name="Help Desk"
  • Combine with and / or; operators: = != < <= > >=, contains, like
  • Example: company/id=123 and closedFlag=false and summary contains "backup"

Distributing to your organization

  • Build the extension: npm run bundle produces connectwise-manage.mcpb (build → prune dev deps → pack). Host it on an internal share, SharePoint, or a GitHub release, and have staff drag it into Claude Desktop.
  • Publish to npm (enables Option B): npm publish (the package is set to public access; prepublishOnly rebuilds first).
  • Least privilege: the API member's security role governs everything the MCP can see or do. Create a dedicated member with only the access you need.
  • Per-user credentials: with the MCPB path each user enters their own keys, so ConnectWise auditing attributes actions to the right person.

Development

npm run dev      # watch mode (tsx)
npm run build    # compile to dist/
npm run bundle   # produce connectwise-manage.mcpb
npm start        # run compiled server

# Inspect tools interactively:
npx @modelcontextprotocol/inspector node dist/index.js

Project layout

src/
  index.ts            # server bootstrap + tool registration
  constants.ts        # API path, limits, enums
  schemas/common.ts   # shared Zod fragments (conditions, paging, format)
  services/
    client.ts         # auth + HTTP + error normalization
    format.ts         # response/markdown/pagination helpers
  tools/
    system.ts         # connection test
    tickets.ts        # service desk
    companies.ts
    contacts.ts
manifest.json         # MCPB (Claude Desktop extension) manifest + config form

To add agreements, configurations, projects, or invoices: create a new file in src/tools/, follow the pattern in companies.ts, register it in index.ts, and add the tool names to manifest.json. The shared cwRequest client handles auth, paging, and errors for you.


Security notes

  • Credentials are read from environment variables only; nothing is persisted by the server. Claude Desktop stores extension config in its own secure store.
  • The API member's security role governs what the MCP can see and do — scope it to least privilege.
  • Write tools (create_ticket, update_ticket, add_ticket_note, add_time_entry) are annotated as non-read-only so clients can gate them behind confirmation.