psa-mcp-connector
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
psa-mcp-connector
An MCP server that gives an AI agent access to one MSP client's tickets, and only what that client's data policy allows the model to see.
It is a working example of the three rules I'd want before letting an agent near a ticketing system (PSA) that an MSP shares across many clients:
The tenant is fixed when the server starts, never chosen by the model. One server process per client. No tool takes a tenant argument, so nothing written inside a ticket ("ignore previous instructions and update ticket 1001…") can point the agent at another client's data. Another client's ticket id behaves exactly like an id that doesn't exist.
Everything that leaves the server passes one redaction step. Emails and phone numbers are masked, card numbers are masked (checked with Luhn, so order numbers survive), and a ticket that contains an SSN or a credential (passwords, AWS/OpenAI/GitHub/Slack keys, private keys) is withheld entirely. The policy is per client:
redact,blockorallowfor each data type.Writes are off by default and go through the same policy.
add_internal_noteonly exists when the MSP turns writes on. A note that contains a credential is rejected; contact details are masked before the note is stored. Every call, read or write, goes to an audit log with counts of what was found, never the values.
The data here is synthetic (two made-up clients, example.com addresses, 555-01xx numbers, a public test card and AWS's documentation key). The PSA is an in-memory store behind a four-method interface (src/types.ts); a HaloPSA, ConnectWise or Autotask adapter would implement the same interface against their API.
Tools
Tool | What it returns | Writes |
| id, summary, status, priority of open tickets, newest first | no |
| one ticket with its notes, after redaction, or an error if the policy withholds it | no |
| ids and summaries; matches only text the model is allowed to see | no |
| adds an internal note as | yes |
Related MCP server: openstack-incidents
Run it
npm install
npm run build
npm run demo # starts the real server over stdio and makes the calls an agent would
npm test # 52 testsnpm run demo output: docs/demo-output.txt. For example, the model asks for ticket 1001 and receives Call Maria at [PHONE] when fixed., and ticket 2001, which contains a pasted AWS key and a planted instruction, comes back as an error so neither reaches the model.
Use it from an MCP client (Claude Desktop, Cursor, an agent runtime):
{
"mcpServers": {
"psa-harbor-dental": {
"command": "node",
"args": ["/path/to/psa-mcp-connector/dist/index.js"],
"env": { "PSA_TENANT": "harbor-dental", "PSA_ALLOW_WRITES": "false", "PSA_AUDIT_LOG": "/var/log/psa-harbor-dental.jsonl" }
}
}
}How it was tested
52 tests (
test/): redaction cases that must be caught and look-alikes that must not be (order refs, serials that fail Luhn, IPs, dates, invalid SSN ranges, "reset the password" without a password), tenant isolation, a planted instruction trying to write to another client, writes off by default, rejected notes storing nothing, input validation, and the audit log never containing values.Search can't be used as an oracle. The first version searched the raw ticket text, so searching for a guessed password would reveal which ticket held it. Search now matches only the redacted text; there is a test for it.
Load: 2,000 concurrent calls across 20 tenant servers sharing one store, each checked for crossed data. Runs in well under a second.
The tests were checked against deliberate bugs: removing the tenant filter in
getTicketfails 3 tests; returning unredacted output fails 3 tests.
Limits
Pattern-based detection: it will miss personal data that has no fixed shape (names, addresses, free-text medical details). For those, a model-based or allow-list approach on top of this is needed.
One tenant per process is simple and hard to get wrong, but costs one process per client. A hosted version would keep the same rule with a tenant bound to the caller's credentials on the server side.
The in-memory PSA is not a real integration; the adapter interface is where a real one plugs in, with its own rate limits and pagination.
Built by Haseeb Ur Rehman (github.com/HaseeburRehma), November 2026, with an AI coding assistant; every behaviour above is covered by a test I ran. MIT licence.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Amazon Ads, Seller Central, Vendor Central and AMC data for AI agents. Read-only by default.
Governed access to sensitive data, secrets and APIs for AI agents. A signed proof for each decision.
Helpdesk tickets from your AI: find, reply, take, hold, complete — within your own role. OAuth.
Private agent backups, saved work, status dashboards and reviewed recovery with scoped access.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to audit and analyze Zendesk instances through a read-only MCP interface, providing tools for triggers, automations, analytics, and cross-reference queries.74MIT
- AlicenseBqualityCmaintenanceEnables MCP-compatible agents to perform read-only incident investigations by querying logs, building timelines, searching runbooks, validating evidence, and creating ticket drafts only with explicit approval.7MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to read protected customers and their backup health, seats, and per-application backup history, and on explicit request to license, pause, or unlicense seats.Apache 2.0
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to retrieve and manage support tickets, comments, and attachments, and to search help center articles as a knowledge base, with each request carrying the operator's own OAuth-authenticated permissions.-