# Spanning Cloud Backup [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/WYRE-AI/spanning-mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/spanning-cloud-backup

## Description
MCP server for Spanning Cloud Backup — M365/GWS/Salesforce backups, restores, audit.

## Tools
Capabilities this server exposes over MCP:

- **spanning_list_users** — List backed-up users in the org
- **spanning_get_user** — Fetch a single user's detail
- **spanning_list_services** — List services covered for a user
- **spanning_list_backups** — List backup runs for a user + service
- **spanning_queue_restore** — Queue a restore (DESTRUCTIVE — requires confirmation)
- **spanning_get_restore_status** — Check restore progress
- **spanning_list_audit_log** — Admin audit log (date-range elicitation)
- **spanning_get_license_usage** — Seats used vs purchased
- **spanning_status** — Server status / health

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/WYRE-AI/spanning-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install
```

2. Run:

```sh
npm run build
```

3. Start the server:

```sh
npm start                       # stdio
```

4. Start the server:

```sh
CONDUIT_S2S_SECRET="$(openssl rand -hex 32)" MCP_TRANSPORT=http npm start
```

5. Start the server:

```sh
MCP_TRANSPORT=http MCP_ALLOW_INSECURE_DEV=1 npm start
```

6. Install:

```sh
docker build --secret id=npmrc,src=$HOME/.npmrc -t spanning-mcp .
```

## Documentation

## What Spanning Cloud Backup does

Spanning Cloud Backup connects MCP clients to the Spanning Cloud Backup API for Microsoft 365, Google Workspace, and Salesforce environments. It provides administrative visibility into backup coverage and lets an authorized user initiate and monitor restores.

The available operations cover the main backup-management workflow:

- Enumerate users with backups in the organization.
- Retrieve details for an individual user.
- See which services are covered for that user.
- Review backup runs for a selected user and service.
- Queue a restore after confirmation and check its progress.
- Query the administrator audit log over a selected date range.
- Compare used seats with purchased license capacity.
- Check server health and status.

`spanning_queue_restore` changes backup state and is marked destructive. The audit-log operation uses date-range elicitation to collect its time window.

## How it works

The server can run over stdio or HTTP. In stdio mode, it reads the Spanning platform and administrator credentials from environment variables and communicates directly with an MCP client. The supported platform values are `m365`, `gws`, and `salesforce`.

HTTP deployments use a service-to-service HMAC secret to authenticate `/mcp` requests with the `X-Gateway-S2S` header. The signed timestamp must be within 300 seconds of the server clock. Hosted gateway mode also expects platform, administrator email, and API-token headers on each MCP request rather than reading static `SPANNING_*` values from the process environment.

An unauthenticated `/health` endpoint remains available for health checks. Local development can bypass the HMAC requirement with `MCP_ALLOW_INSECURE_DEV=1`; that mode logs a warning and forces the HTTP listener to loopback.

In MCP Apps hosts such as Claude Desktop or Claude web, `spanning_get_user` can render a read-only status card containing backup status, license state, the most recent backup, and service coverage. Other hosts receive the normal JSON result.

## Setup and configuration

For a local installation, install dependencies, build the project, and start the process:

```sh
npm install
npm run build
npm start
```

Set `SPANNING_PLATFORM`, `SPANNING_ADMIN_EMAIL`, and `SPANNING_API_TOKEN` for stdio or for HTTP running with `AUTH_MODE=env`. HTTP otherwise requires a real `CONDUIT_S2S_SECRET`; generate one with `openssl rand -hex 32`. `MCP_TRANSPORT` selects `stdio` or `http`, while `MCP_HTTP_HOST` and `MCP_HTTP_PORT` control the HTTP listener. The default port is 8080.

Docker and Compose use gateway mode by default. The container listens on port 8080, and Compose publishes it on loopback. Gateway deployments receive Spanning credentials through request headers. Image builds require a GitHub Packages npmrc supplied as a Docker build secret.

The embedded status card can be rebuilt with `npm run build:ui`. Its branding can be adjusted through `MCP_BRAND_*` variables or a `window.__BRAND__` injection.

## Limitations and notes

Credential handling differs by transport and authorization mode. Gateway mode does not fall back to `SPANNING_*` environment variables, and requests missing required authentication headers receive HTTP 401. Never commit real API tokens or service secrets. The insecure development option is intended for local use only and binds to `127.0.0.1`.

_Full upstream README: https://allmcps.com/mcp/spanning-cloud-backup/readme_

