SaaS Alerts MCP Server
Monitors Dropbox tenants of an MSP's customers through the SaaS Alerts API, surfacing security events such as failed or foreign logins, external file sharing, OAuth grants and admin changes, with querying, counting and recommended response actions for those events.
Provides Elasticsearch-style query tools over SaaS Alerts security events, including advanced search, count and scroll (paged) retrieval using Elasticsearch query bodies.
Monitors Google Workspace tenants of an MSP's customers through the SaaS Alerts API, exposing security events (logins, file sharing, OAuth grants, admin changes) for querying, counting and Elasticsearch-style search.
Monitors Salesforce tenants of an MSP's customers through the SaaS Alerts API, providing security event triage data, event queries and counts, and recommended response actions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SaaS Alerts MCP Servershow critical security events for my customers in the last 7 days"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SaaS Alerts MCP Server
An MCP server for the SaaS Alerts partner API. SaaS Alerts monitors an MSP's customers' Microsoft 365, Google Workspace, Salesforce and Dropbox tenants and raises security events (failed and foreign logins, external file sharing, OAuth grants, admin changes). This server lets an AI agent query and count those events, run Elasticsearch searches over them, list customers, users, devices, billing and scheduled reports and, on explicit request, manage customers, whitelists, scheduled reports and report branding.
Transport: MCP Streamable HTTP at
POST /mcp, health probe atGET /healthStateless and multi-tenant: the API key arrives on every request as an HTTP header and is never stored; every tool is listed from the first
tools/listPython 3.12, uv, FastMCP, httpx
License: Apache-2.0, Copyright 2026 MSPbots.ai
Authentication headers
Header | Required | Type | Default | Allowed values | Description | Example |
| Yes | string | none | - | SaaS Alerts partner API key |
|
Where to get it: a SaaS Alerts partner administrator generates an API key in the SaaS Alerts partner portal. The key acts on the whole partner account (all customers).
How the key is sent to SaaS Alerts: in the api_key header of every call to
https://us-central1-the-byway-248217.cloudfunctions.net/reportApi/api/v1/..., the API
address published in the SaaS Alerts API reference.
A request to /mcp without the key gets HTTP 401.
Related MCP server: proofpoint-essentials-mcp
Tools
All tools return a JSON string. Event tools return triage fields only (time, type, severity,
description, user, customer, product, IP, location) unless verbose: true is passed.
Paging: saas_alerts_events_query returns {events, count, has_more, next_from} (also with verbose);
pass next_from as from to continue; the API gives no total, use saas_alerts_events_count. Lists the
API returns in full (customers, partner and customer users, scheduled reports, device organizations and
the mapped / unmapped / ignored devices, recommended actions) take offset / limit and return
next_offset. When a result is cut to fit the 20,000-character limit, next_from / next_offset start
right after the last record returned. Elasticsearch results (events_query_advanced, events_scroll)
that are cut leave out _scroll_id, which would skip the rest: run the search again with a smaller
size. saas_alerts_recommended_actions returns one record per event type; pass event_type for one.
Tool | Purpose | Parameters (required in bold) |
| Describe the tools of one area (changes nothing) | domain ( |
| Check the connection (the key works) and list the areas | - |
| Query events by filters | customer_id, alert_status ( |
| Count events by filters | customer_id, alert_status, event_type [..], start_date, end_date |
| Elasticsearch search over events | query (search body), scroll, verbose |
| Count events matching an Elasticsearch query | query |
| Next page of a scrolled search | scroll_id, scroll (default |
| Recommended response per event type | event_type, offset, limit |
| List customers | offset, limit |
| One customer | customer_id |
| Create a customer (write) | body {name, email} |
| Change a customer's name / email (write) | customer_id, body {name, email} |
| Delete a customer (write, needs | customer_id, confirm |
| Replace a customer's whitelist (write) | customer_id, body {inheritanceWl, asnList, ipRanges, countries} |
| Replace a customer's account-level whitelist (write) | customer_id, body (as above) |
| The MSP user the key belongs to | - |
| The partner's own users | - |
| A customer's monitored accounts | customer_id |
| Device organizations | - |
| Devices mapped to accounts | organization_ids [..] |
| Devices not mapped, with suggestions | organization_ids [..], confidence (0-1, default 0) |
| Devices excluded from mapping | organization_ids [..] |
| Billing periods | - |
| Billing details of one period | billing_date |
| Scheduled reports | - |
| One scheduled report | report_id |
| Schedule a report (write) | body {reportName, reportId, customerName, frequency, recipients {to, cc, bcc}, branding, metadata} |
| Delete a scheduled report (write, needs | report_id, confirm |
| The partner profile | - |
| Replace report branding (write) | body {display, color, logo, reportOptions {hideSaasAlertsCoBranding}} |
start_date / end_date take ISO 8601 or epoch milliseconds and are sent as ISO 8601 UTC.
Body objects are checked against the fields the API documents; an unknown field is rejected
with invalid_argument before anything is sent.
Errors come back as a JSON envelope instead of an exception:
{"error": {"code": "unauthorized", "message": "SaaS Alerts returned HTTP 401 for customers: Unauthorized", "retryable": false}}code is one of not_configured, unauthorized, not_found, invalid_argument,
rate_limited, upstream_error. Reads are retried with backoff on 429, 5xx and network
errors; writes are retried only on 429.
Run locally
uv sync
uv run python -m saas_alerts_mcp # listens on 0.0.0.0:8080or with Docker:
docker build --platform linux/amd64 -t saas-alerts-mcp:dev .
docker run --rm -p 8080:8080 saas-alerts-mcp:devConfiguration (environment variables, all optional): MCP_HTTP_HOST (default 0.0.0.0),
MCP_HTTP_PORT (default 8080), LOG_LEVEL (default INFO). The key is never read from the
environment.
Testing example
# list tools
curl -s http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "X-SaaS-Alerts-API-Key: your-saas-alerts-api-key" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
# critical events of the last day
curl -s http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "X-SaaS-Alerts-API-Key: your-saas-alerts-api-key" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"saas_alerts_events_query","arguments":{"alert_status":"critical","start_date":"2026-01-01T00:00:00Z","size":20}}}'Unit tests (no network access needed):
uv run pytestDelivery notes
Tool count (30). Kept as is because the tool names are an existing contract.
API contract. Requests follow the SaaS Alerts API reference (version 3.362.0). Event filters map to the API's
customerId,alertStatus, repeatedeventType,userEmail,start/end,from,sizeandtimeSortquery parameters.Elasticsearch tools.
queryis the search body itself (the API wraps it asbody).saas_alerts_events_query_advancedaccepts an optionalscrolllifetime so the response carries a_scroll_idforsaas_alerts_events_scroll, which sends the API's required scroll lifetime (default1m).Devices. The API requires a
confidencevalue for unmapped devices; it defaults to 0 (all suggestions). The formeronly_with_suggestionsflag had no API parameter and was removed.Billing.
billing_dateis sent as thebillingDatequery parameter, which the API reference does not list; use a value returned bysaas_alerts_billing_list_dates.Writes. Whitelist and branding tools replace the current settings and are annotated as destructive. Deletes need
confirm: true.
License
This server cannot be deployed
Maintenance
Related MCP Connectors
SOAR security playbooks for AI agents: fetch, full-text search, and count. Metered via Stripe.
CTEM for your Trusteed tenant: security summary, findings, compliance gaps, and scans via OAuth.
Context and control for any AI. Agent identity, scoped access, and proof across tools.
Gmail, Outlook, Drive, OneDrive and calendars for AI agents. Many accounts, one endpoint, audit log.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables AI-powered security operations through natural language, managing endpoint security, email threats, firewall policy, and more across multiple Sophos tenants with 334 tools, designed for MSP/MSSP teams.10023 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to manage MSP-multi-tenant email security: organizations, domains, users, licensing, features, subscription packages, and email flow reporting.Apache 2.0
- 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
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to read and act on managed security data from the Huntress API, covering accounts, organizations, protected endpoints, incident reports and their remediations, escalations, signals, users, invoices and summary reports. Read operations are safe by default, while data-changing actions such as resolving incidents, approving remediations, and managing organizations or users require explicit write and confirm flags.Apache 2.0