Datto SaaS Protection MCP Server
Integrates with Datto's SaaS Protection partner REST API to read protected customers and their backup health, list seats (users, shared mailboxes, sites, teams, shared drives), inspect per-application backup history and statistics, and, on explicit request, license, pause, or unlicense seats for Microsoft 365 and Google Workspace tenants.
Supports reading backup health and application backup history for Google Workspace tenants, including Gmail and Google Drive, through the Datto SaaS Protection integration. Provides access to seats such as shared drives and their protection state.
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., "@Datto SaaS Protection MCP Servershow backup health for all my protected Microsoft 365 customers"
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.
Datto SaaS Protection MCP Server
An MCP server for the SaaS Protection part of the Datto partner REST API, which backs up Microsoft 365 and Google Workspace tenants. It lets an AI agent read protected customers and their backup health, seats (users, shared mailboxes, sites, teams, shared drives) and per-application backup history and, on explicit request, license, pause or unlicense seats.
Transport: MCP Streamable HTTP at
POST /mcp, health probe atGET /healthStateless and multi-tenant: the key pair arrives on every request as HTTP headers 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 | - | Datto partner portal REST API public key |
|
| Yes | string | none | - | The secret key paired with it |
|
| No | string |
|
| Accepted for compatibility; Datto serves the SaaS Protection API from one host for every region |
|
Where to get them: in the Datto partner portal open Admin -> Integrations, choose the REST API option and create an API key; the portal shows the public key and the secret key. The same key pair serves Datto BCDR and SaaS Protection.
How the keys are sent to Datto: every call goes to https://api.datto.com/v1/saas/... with
HTTP Basic authentication (public key as user name, secret key as password).
A request to /mcp without both keys gets HTTP 401 naming the missing one; an unknown region
gets HTTP 400.
Related MCP server: proofpoint-essentials-mcp
Tools
All tools return a JSON string. When an account has a single SaaS Protection customer,
saasCustomerId may be omitted on the read tools; with several customers the tool returns the
list of names and ids to choose from.
Tool | Purpose | Parameters (required in bold) |
| Customers (M365 tenants / Google domains): saasCustomerId, externalSubscriptionId, seats used, backup health | search |
| A customer's seats with type, state (Active / Paused / Archived / Unprotected), billable flag, counts by state | saasCustomerId, seatType ( |
| One seat by remoteId or mainId (email / site URL) | seatId, saasCustomerId |
| Backup history per suite and application (Exchange, OneDrive, SharePoint, Teams, Gmail, Drive) | saasCustomerId, daysUntil |
| Overall backup percentage and each application's latest window status, plus apps not fully successful | saasCustomerId |
| License, pause or unlicense up to 100 seats of one type (write) | saasCustomerId, externalSubscriptionId, seatType, actionType ( |
Errors come back as a JSON envelope instead of an exception:
{"error": {"code": "unauthorized", "message": "Datto returned HTTP 401 for saas/domains", "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; the seat change is retried only on 429. Datto's documented limit is 10,000 requests
per hour per organization.
Run locally
uv sync
uv run python -m datto_saas_protection_mcp # listens on 0.0.0.0:8080or with Docker:
docker build --platform linux/amd64 -t datto-saas-protection-mcp:dev .
docker run --rm -p 8080:8080 datto-saas-protection-mcp:devConfiguration (environment variables, all optional): MCP_HTTP_HOST (default 0.0.0.0),
MCP_HTTP_PORT (default 8080), LOG_LEVEL (default INFO). The keys are 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-Datto-SaaS-Public-Key: your-public-key" \
-H "X-Datto-SaaS-Secret-Key: your-secret-key" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
# protected customers and their backup health
curl -s http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "X-Datto-SaaS-Public-Key: your-public-key" \
-H "X-Datto-SaaS-Secret-Key: your-secret-key" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"datto_saas_list_domains","arguments":{}}}'Unit tests (no network access needed):
uv run pytestDelivery notes
Tool count (6). Kept as is because the tool names are an existing contract.
Seat changes need
confirm: true.datto_saas_bulk_seat_changechanges protection and billing. Withoutconfirm: trueit only returns a summary of the change for the user to approve; it never asks the user mid-call, which a stateless gateway cannot relay.Built on the documented endpoints. Older versions read
.../detailedBackupStats, which is not in Datto's API contract.datto_saas_get_backup_statsnow combines the customer'sbackupStats(fromsaas/domains) with the latest window of each application (fromsaas/{id}/applications). The undocumentedincludeRemoteIDoption was dropped.No interactive prompts. Older versions asked the user to pick a customer when
saasCustomerIdwas omitted; now the only customer is used, or the choices are returned.Region. The EU host the old version could select (
api.eu.datto.com) does not serve the API, so every region usesapi.datto.com.
License
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only account intelligence for Customer Success and Account Management teams.
Read-only sales CRM for AI clients: leads, pipeline, AI-agent chats, calls, ad attribution.
Give AI agents secure access to RevDesk calling, SMS, phone numbers, caller IDs, and usage.
- HAVNOAuthapp.havnre
Read-only AI access to HAVN properties, leads, tasks, files, media, and analytics.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to securely access and manage Commvault environments, including job control, backup schedules, client/storage management, SLA monitoring, and optional DocuSign envelope backup integration.17Apache 2.0
- 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
- AlicenseAqualityBmaintenanceEnables AI agents to read Microsoft 365 tenant data, such as users, license usage, and stale accounts, while enforcing least-privilege by refusing to run with excessive Azure permissions.4MIT
- FlicenseAqualityBmaintenanceProvides read-only visibility into CyberQP privileged access management data, including customer and account metadata, tenant event logs, and Just-In-Time account status and policies, for AI assistants.10-