What it covers
Kaseya SIEM, SaaS Alerts and Kaseya MDR share one partner API and one key. This server talks to all three of its services: reporting, Respond and Manage.
Events and clients
Events by client, severity, type, user and date. A one-call client summary by severity, user, location and IP. Raw Elasticsearch search, counts and aggregations.
Detections and Respond
Rule and IOC detections, Respond rules, disconnected tenants and response jobs. Approve, reject or remediate a detection with remarks on record.
Suppressions
List, audit, create, rescope and delete suppression rules, matching on any event field, with partner-wide rules behind an explicit confirmation.
Response actions
Block sign-in, expire logins, force a password change or set up MFA for up to 20 accounts. Your own admin accounts can be put out of reach.
What the API can do that the portal can't
From real use by an MSP SOC team, anonymised. The full write-ups, with every tool call, are in docs/EXAMPLES.md.
One tool on one machine
AnyDesk on a single finance PC, for one bookkeeper, for six months. Everywhere else at the client still alerts.
Portal gap: six Datto EDR conditions, each once, and none of them is hostname, detection rule or file path. The API matched all three.
Office IP at every client
An aggregation found which event types the office IP produces, then one partner-wide rule per type, kept in analysis with no tickets.
Portal gap: one event type per rule, and no way to see which types an IP produces before you build them.
Rescope partner-wide rules
Found broad rules, checked which tenants actually trigger them, then narrowed each to the right tenant with tighter filters such as package path or sign-in state.
Portal gap: it lists rules but can't show where their events come from, and doesn't offer those filter fields.
Clear a manual rule's backlog
A manual "MFA disabled" rule timed every trigger out to AUTO_IGNORED. Each was checked, then rejected with a reason on record.
Note: Respond rules themselves are portal-only. The API acts on their detections.
Ask in plain language
"Suppress the AnyDesk detection on FIN-PC03 at Contoso for six months. Reason: bookkeeper remote access, ticket T1234."
The assistant pulls a real detection to get the event type, rule and path, shows you the rule, and creates it once you confirm. Then it reads the rule back.
{
"tool": "ksiem_suppression_write",
"arguments": {
"op": "create",
"scope": "customer",
"customer": "Contoso",
"productType": "DATTO_EDR",
"filters": [
{ "field": "jointType", "value": "…" },
{ "field": "host.hostname", "value": "FIN-PC03" },
{ "field": "rule.uuid", "value": "…" },
{ "field": "file.path", "operator": "contains",
"value": "\\AnyDesk\\" }
],
"startDate": "2026-11-19",
"endDate": "2027-05-19",
"reason": "Bookkeeper remote access. T1234."
}
}
Tools
Every tool that takes a customer accepts its id or any part of its name. An ambiguous name returns the candidates instead of guessing.
| Area | Read-only | Writes (gated) |
|---|---|---|
| Partner and clients | saas_alerts_whoami, saas_alerts_customers, saas_alerts_customer, saas_alerts_users, saas_alerts_billing | saas_alerts_customer_admin |
| Events | saas_alerts_events, saas_alerts_client_alerts, saas_alerts_event, saas_alerts_events_count, saas_alerts_events_search, saas_alerts_events_scroll, saas_alerts_recommended_actions | |
| Detections and Respond | ksiem_detections, ksiem_detection, ksiem_rules, ksiem_respond_status | ksiem_detection_action, ksiem_response_action |
| Suppressions | ksiem_suppressions | ksiem_suppression_write |
| Devices and reports | saas_alerts_devices, ksiem_devices, saas_alerts_scheduled_reports | saas_alerts_report_admin |
| Anything else | saas_alerts_raw (GET) | saas_alerts_raw |
Safe by default
These tools act on live client tenants. The server is built so a mistake, or a malicious event, can't do much on its own.
- Read-only until you turn writes on. Every write is refused unless the server runs with
SAAS_ALERTS_ALLOW_WRITES=1, before the key is even read. - Your admin accounts are protected. List them in
SAAS_ALERTS_PROTECTED_ACCOUNTSand response actions refuse them. - Partner-wide needs a yes. A suppression that hides events at every client requires
confirmPartnerWide.
- Changes are on record. Detection actions return before and after; suppression updates and deletes return the old rule; reject and ignore need remarks.
- Tenant text is labelled. Rule names, user names and descriptions come from client tenants and are wrapped as untrusted data, never instructions.
- Your key stays local. It's read from an environment variable or a mode-600 file and sent only to the Kaseya API.
Quick start
Node.js 18 or later and a partner API key (Kaseya SIEM > Settings > API).
- Clone the repo.
- Run
./set-credentials.shin a terminal. It asks for the key with echo off, saves it to~/.config/saas-alerts/credentials.jsonand checks it. - Register the server with your MCP client and restart it.
- Ask your assistant to run
saas_alerts_whoami.
git clone https://github.com/moosesystems/kaseya-siem-mcp.git cd kaseya-siem-mcp ./set-credentials.sh # Claude Code, read-only claude mcp add -s user saas-alerts -- \ node "$PWD/server.mjs"