Atera Triage MCP
# Atera Triage MCP
**Ask your AI assistant "what needs me first?" and get a real answer from your Atera help desk.**
An [MCP](https://modelcontextprotocol.io) server that turns Atera tickets, devices and alerts into a
ranked to-do list for an IT team. It works with Claude Desktop, Claude Code and any other MCP client.
[](https://github.com/MikeRiveira/atera-triage-mcp/actions/workflows/tests.yml)
[](https://github.com/MikeRiveira/atera-triage-mcp/actions/workflows/codeql.yml)


[](https://glama.ai/mcp/servers/MikeRiveira/atera-triage-mcp)

## Why another Atera MCP server?
Other Atera MCP servers expose the API one endpoint at a time. That lets an AI *read* your help desk,
but it still has to work out on its own which tickets are urgent, and it sees everything users typed,
phone numbers and all.
This server is built for **triage**, the first job of every help desk morning:
| | Endpoint wrappers | Atera Triage MCP |
|---|---|---|
| "What should I work on first?" | AI pulls every ticket and guesses | `triage_queue` ranks them, with reasons |
| Duplicate tickets (HR forms submitted twice) | Shown twice | Folded into one |
| Phone numbers, emails, SSNs in ticket text | Sent to the AI | Removed first |
| "IGNORE PREVIOUS INSTRUCTIONS" in a ticket | Read like any other text | Fenced as untrusted data |
| Changes to tickets | Usually on | Off unless you turn them on |
| Try it without an Atera account | No | Demo mode with sample data |
## Tools
| Tool | What it answers |
|---|---|
| `morning_brief` | One call: open and critical tickets, the top three to handle, offline devices, active alerts |
| `triage_queue` | Every open ticket ranked by urgency, with the reasons, optionally for one site |
| `get_ticket` | One ticket's details and conversation, redacted and fenced |
| `site_health` | Devices per site: how many are online, which are offline and since when |
| `open_alerts` | Active alerts, most severe and newest first |
| `technician_workload` | Open tickets per technician, their oldest ticket, who's overloaded, and what's unassigned |
| `sla_report` | Weekly SLA check: tickets that missed first response (and by how much), tickets gone stale on IT, and tickets waiting on the user long enough to follow up or close |
| `device_lookup` | Find a machine by name (or a store's name prefix): online or not, last seen, OS, site and its active alerts |
| `weekly_summary` | A look back over the last week (or up to 31 days): tickets opened vs resolved, busiest site, who resolved what, SLA problems, offline devices and new alerts, with plain-English highlights |
| `set_ticket_status` | Change a ticket's status. **Only exists when writes are enabled** |
### How tickets are ranked
```mermaid
flowchart LR
A[Open or Pending ticket] --> B{Who spoke last?}
B -- "IT replied last" --> W[waiting_on_user]
B -- "No IT reply yet, or user replied after IT" --> C[Score: priority + hours waiting]
C --> D{Waiting over 24 h or first-response SLA missed?}
D -- yes --> CR[critical]
D -- no --> E{Score}
E -- "≥ 40" --> H[high]
E -- "< 40" --> N[normal]
```
Every ranked ticket carries plain reasons, such as `first-response SLA missed`,
`waiting on IT over 24 h` or `user replied 40 min ago`, so you can see why it is where it is.
The rules live in [`atera_triage/triage.py`](atera_triage/triage.py) as small pure functions and are
covered by tests.
## Try it in two minutes (demo mode)
With no API key, the server runs on a fictional five-store dealership group: 302 devices, a handful of
offline machines, a duplicate new-hire ticket, an overdue termination ticket, a stale ticket waiting on the user, and one ticket that tries a
prompt injection. Nothing touches a real system.
1. Install [uv](https://docs.astral.sh/uv/).
2. Add this to your Claude Desktop config (`claude_desktop_config.json`):
```json
{
"mcpServers": {
"atera-triage": {
"command": "uvx",
"args": ["--from", "git+https://github.com/MikeRiveira/atera-triage-mcp", "atera-triage-mcp"]
}
}
}
```
3. Restart Claude Desktop and ask: **"Give me my morning brief."**
Claude Code users can run:
```bash
claude mcp add atera-triage -- uvx --from git+https://github.com/MikeRiveira/atera-triage-mcp atera-triage-mcp
```
## Connect your Atera account
1. In Atera, go to **Admin > API** and copy your API key.
2. Add it to the config as an environment variable:
```json
{
"mcpServers": {
"atera-triage": {
"command": "uvx",
"args": ["--from", "git+https://github.com/MikeRiveira/atera-triage-mcp", "atera-triage-mcp"],
"env": { "ATERA_API_KEY": "your-key-here" }
}
}
}
```
| Variable | Default | Meaning |
|---|---|---|
| `ATERA_API_KEY` | *(empty)* | Your Atera API key. Without it, demo mode runs. |
| `ATERA_ALLOW_WRITES` | `false` | Set to `true` to add the `set_ticket_status` tool. |
The key stays on your computer: it is read from the environment, sent only to `app.atera.com`, and never
appears in errors or tool output. An Atera API key has full account access, so keep the config file private.
## Things to ask
- "Give me my morning brief."
- "What tickets at Harbor Point need me first, and why?"
- "Which store has the most machines offline right now?"
- "Summarize ticket 2043 and draft a reply I can send."
- "Are there any critical alerts?"
- "Who on the team is overloaded, and who should take the unassigned ticket?"
- "What's overdue or gone stale this week, by store?"
- "Is SVF-PC-04 online, and does it have any alerts?"
- "Write me a weekly IT update for the owners."
- With writes on: "Mark ticket 2045 as pending."
## Safety
- **Read-only by default.** The write tool isn't registered at all unless `ATERA_ALLOW_WRITES=true`,
and every tool carries MCP annotations (`readOnlyHint`, `destructiveHint`) so clients can ask before running it.
- **Privacy.** Contact fields (email, phone) are dropped, requesters appear as "Dana S.", and ticket text is
scrubbed of phone numbers, email addresses, SSNs and card numbers before the AI sees it.
- **Prompt-injection fencing.** Anything an end user wrote is wrapped in `<ticket_text>` tags, and the server
tells the model to treat it as data, never as instructions. Users can't close the fence early.
- **Rate limits.** Atera allows 700 requests a minute; the client backs off and retries on HTTP 429.
- **No extra dependencies.** The Atera client uses only the Python standard library; the one dependency is the
official MCP SDK.
## Development
```bash
git clone https://github.com/MikeRiveira/atera-triage-mcp
cd atera-triage-mcp
pip install -e ".[test]"
python -m pytest
```
Tests cover the ranking rules, redaction and fencing, the API client (pagination, rate-limit retries, a key-safe
401) and every tool in demo mode. They never touch the network.
```
atera_triage/
client.py Atera REST API v3 client (stdlib only)
triage.py ranking, site health, alerts, morning brief
privacy.py redaction, fencing, short names
demo.py fictional sample data for demo mode
server.py the MCP tools
```
Built against Atera's [REST API v3](https://app.atera.com/apidocs). If Atera returns a field under a different name
on your account, please [open an issue](https://github.com/MikeRiveira/atera-triage-mcp/issues).
## License
MIT. Not affiliated with or endorsed by Atera.
TDQS
Scored across 9 tools
Each tool has an explicit 'use this for' clause and the reporting tools are separated by time horizon and focus (morning_brief = today's snapshot, weekly_summary = retrospective, sla_report = SLA/stale only, triage_queue = ranked work list). The remaining overlap is mild: morning_brief, triage_queue and sla_report all surface urgent tickets, and device_lookup and site_health both report offline machines, though at per-machine versus per-site granularity.
All names are lowercase snake_case and semantically descriptive, giving a predictable noun_phrase convention (site_health, triage_queue, sla_report, open_alerts). The only deviation is get_ticket, which uses a verb prefix unlike the other eight noun phrases.
Nine tools is well within the sweet spot and each maps to a distinct reporting or lookup need for an MSP help desk. No tool feels redundant padding, and no obvious aggregation is missing to the point of forcing many chained calls.
The read path is strong: daily brief, weekly rollup, SLA, workload, queue, per-ticket detail, device and alert views cover triage thoroughly. But the surface is entirely read-only — there is no way to assign or reassign a ticket, change status/priority, add a comment or reply, or acknowledge an alert, even though get_ticket's description invites 'draft a reply', leaving agents at a dead end on write actions.