TractorBeeam365 MCP
A Model Context Protocol server that connects to Veeam Backup for Microsoft 365 to review backup configuration, find protection gaps, and optionally run jobs and restores with opt-in safety controls.
README
TractorBeeam365 MCP
A Model Context Protocol server for Veeam Backup for Microsoft 365 (VB365). It talks directly to the VB365 REST API so an MCP client (Claude Code / Claude Desktop) can review your backup configuration, find protection gaps, spot trends, verify cloud immutability — and, when you explicitly opt in, run jobs and orchestrate restores.
Independent project — not affiliated with, endorsed by, or supported by Veeam Software. "Veeam" is a registered trademark of Veeam Software; the "Beeam" spelling is a deliberate, distinct play on words. Use at your own risk.
🔱 The name: a tractor beam pulls your data back in — and Beeam winks at the backup product underneath. Read-only review is the safe default; the "pull" (restore/actions) is opt-in.
Two tiers
| Tier | Default | What it can do |
|---|---|---|
| Read-only review | ✅ always on | GET-only. Cannot change anything. Config/health, gap-analysis, trends, cloud-lock cross-check. |
| Action / Restore | ⛔ off | Opt-in via TB_* env flags. Run/stop jobs, generate reports, sync orgs, define + execute restores. Every write is confirm-token gated and audited. |
If you never set the TB_* flags, this is a pure read-only reviewer that
physically cannot modify your environment — the action/restore tools aren't even
registered.
Read-only tools (always available)
| Tool | What it returns |
|---|---|
vb365_health_summary |
One-shot review: orgs, jobs + last status, repos, cloud storage (B2/S3/Azure), proxies, license, trend anomalies, and a flags list. Start here. |
vb365_trends |
Per-job success/failure drift, repo capacity-full projection, restore-test cadence per org, RPO compliance. |
gap_coverage_summary / gap_unprotected_objects |
Backup coverage % and unprotected live M365 objects, by comparing Microsoft Graph against what jobs protect (needs GRAPH_*). |
cloud_lock_audit |
Cross-checks Object Lock mode/retention/versioning at the bucket vs what VB365 reports (needs B2_*/S3_*). |
vb365_api_root |
Resource list + version (confirms connectivity). |
vb365_list_organizations / vb365_org_inventory |
Protected orgs; an org's users/groups/sites/teams. |
vb365_list_jobs / vb365_get_job / vb365_job_scope |
Jobs, one job's config, and exactly what a job protects (selected/excluded). |
vb365_list_job_sessions |
Recent run results (optionally per job). |
vb365_list_repositories / vb365_list_restore_points |
Repos (capacity/retention/immutability); restore points. |
vb365_list_object_storage / vb365_get_object_storage |
Cloud/object storage (B2/S3/Azure/Wasabi/IBM/Glacier). |
vb365_list_proxies / vb365_license |
Proxies + status; license/edition/expiry. |
vb365_get |
Read-only GET to any other /<version>/... resource. |
Action / Restore tools (opt-in, gated)
Registered only when the matching flag is set. Two-call confirm pattern: call
once to get a preview + a one-time confirm_token; call again with
confirm=<token> to execute. Every execution is appended to TB_AUDIT_LOG.
| Tool (flag) | What it does |
|---|---|
action_job (TB_ALLOW_JOB_CONTROL) |
start / stop / enable / disable a backup job |
action_generate_report (TB_ALLOW_REPORTS) |
mailbox/onedrive/sharepoint/teams/user protection, license, storage reports → file |
action_org_sync (TB_ALLOW_ORG_SYNC) |
trigger a directory resync for an org |
action_proxy (TB_ALLOW_PROXY) |
rescan / maintenance-mode a proxy |
restore_session_start → restore_browse / restore_search → restore_define → restore_execute → restore_status → restore_session_stop (TB_ALLOW_RESTORE) |
Full restore orchestration across Exchange / OneDrive / SharePoint / Teams: open a point-in-time session, browse/search restorable items, then define (pick items + target + options) and execute a restore. |
Restore: define what, where, how
restore_session_start(scope="job", scope_id="<jobId>", workload="exchange")
→ { session_id } # opens a point-in-time explore session
restore_browse(session_id) # list mailboxes
restore_browse(session_id, parent_id=<mailboxId>) # list items in a mailbox
restore_define(session_id, parent_id=<mailboxId>, item_ids=[...], target="export")
→ { confirm_token, preview } # DRY RUN — nothing changed
restore_execute(session_id, confirm=<confirm_token>) # executes + audits
restore_session_stop(session_id)
- target =
export(safest — reads backup to a local file; no M365 creds),alternate(writes to a different M365 location), ororiginal(writes back to the original location — destructive; also passconfirm_overwrite_original=True). - options may carry an alternate
mailbox/folderand the M365 target credentials VB365 uses to write back (userName/userPassword/applicationId), or setVB365_RESTORE_*in.env. - PST export requires 64-bit Outlook 2010+ installed on the VB365 server
(a Veeam requirement); without it,
exportToPstreturns a server-side error.
Setup
-
Install Python 3.10+ where Claude Code runs.
-
From this folder:
python -m venv .venv .\.venv\Scripts\Activate.ps1 pip install -r requirements.txt -
Copy
.env.exampleto.envand fill inVB365_HOST,VB365_USERNAME,VB365_PASSWORD(keepVB365_PORT=4443,VB365_API_VERSION=v8unless yours differ). Optionally addGRAPH_*,B2_*/S3_*, and theTB_*flags.The REST API account needs to be a VB365 administrator (or restore operator) — VB365 has no read-only API role. The read-only review tools are GET-only regardless.
New-VB365ReviewAccount.ps1creates a dedicated service account on the VB365 server. Keep.envout of source control.
Register with Claude Code
# Replace <repo> with the absolute path to your clone.
claude mcp add tractorbeeam365 --scope user -- "<repo>\.venv\Scripts\python.exe" "<repo>\server.py"
On Linux/macOS use forward slashes and
<repo>/.venv/bin/python.
It is also published to the MCP Registry
as io.github.Ringosystems/tractorbeeam-mcp (an OCI image on GHCR), so MCP
clients that support the registry can install it directly. To run the published
image as a stdio server:
docker run -i --rm \
-e VB365_HOST=... -e VB365_USERNAME=... -e VB365_PASSWORD=... \
ghcr.io/ringosystems/tractorbeeam-mcp:latest
Then ask: "Run a VB365 health summary and tell me if anything is misconfigured."
Enabling the action / restore tier
The action/restore tools stay hidden until you opt in. In .env:
TB_ENABLE_ACTIONS=true # master switch
TB_ALLOW_JOB_CONTROL=true # + any of the per-category flags you want
TB_ALLOW_RESTORE=true
TB_AUDIT_LOG=audit/actions.jsonl
The action/restore tools are not registered over an HTTP transport unless you also set
TB_ALLOW_WRITE_OVER_HTTP=true, because that transport has no per-caller identity. Run the operator tier over stdio, or only behind your own authenticating reverse proxy.
Safety model: tools are only registered when enabled, every mutation needs a second call with a one-time confirm token, restores default to a safe target (original-location overwrite needs an explicit acknowledgement), and every action is written to an append-only audit log. Recommended: run a separate "operator" instance with the flags on, and the default instance read-only.
Run as a persistent service (Docker / UNRAID)
The image runs streamable-http on 0.0.0.0:8000 inside the container,
read-only (no TB_* flags). No credentials are baked in. The HTTP transport
fails closed: it refuses to start unless you set MCP_AUTH_TOKEN (clients
then send Authorization: Bearer <token>), or you explicitly accept the risk
with MCP_ALLOW_UNAUTHENTICATED_HTTP=true.
# Put MCP_AUTH_TOKEN=<a long random secret> in .env first.
docker compose up -d --build # builds locally and runs read-only
# MCP is live at http://<host>:8766/mcp ; attach with:
claude mcp add --transport http tractorbeeam365 http://<host>:8766/mcp \
--header "Authorization: Bearer <token>"
Prebuilt images
Each GitHub Release publishes a multi-tag image via CI (.github/workflows/publish.yml):
# GitHub Container Registry (published automatically on every release):
docker pull ghcr.io/ringosystems/tractorbeeam-mcp:latest
# Docker Hub (published when the DOCKERHUB_USERNAME / DOCKERHUB_TOKEN repo
# secrets are configured):
docker pull ringosystems/tractorbeeam365-mcp:latest
To publish manually instead:
docker build -t <dockerhubuser>/tractorbeeam365-mcp:latest .
docker push <dockerhubuser>/tractorbeeam365-mcp:latest
Security: the MCP HTTP transport has no per-caller identity. This build binds loopback by default, requires
MCP_AUTH_TOKENbefore it will serve HTTP, and hides the write/restore tools over HTTP unlessTB_ALLOW_WRITE_OVER_HTTP=true. Still keep the port on a trusted network and front it with TLS + auth. The audit log and any generated PST/report files live in the mountedaudit/anddownloads/volumes. See SECURITY.md.
Quick connectivity test (no MCP client needed)
.\.venv\Scripts\Activate.ps1
python -c "import server; print(server.vb365_api_root())"
Notes
.gitignoreexcludes.env, the venv, and the operator-tieraudit/,downloads/,*.pstartifacts. Never commit credentials or restored data.- VB365 ships a self-signed cert, so
VB365_VERIFY_SSLdefaults tofalse. That leaves the link to VB365 open to an active man-in-the-middle, so prefer settingVB365_CA_BUNDLEto the server's certificate (verification on against it), orVB365_VERIFY_SSL=truewith a trusted cert. The server warns at startup when the channel is unverified. - Endpoint names vary slightly by VB365 version. If a curated tool 404s, call
vb365_api_rootand usevb365_getwith the exact resource name.
Trademarks
This is an independent project and is not affiliated with, endorsed by, or sponsored by any of the companies below. Product names are used only for identification (nominative use).
- "Veeam" is a registered trademark of Veeam Software. The "Beeam" spelling is a deliberate, distinct wordplay and is not the trademark.
- Microsoft, Microsoft 365, Microsoft Graph, Outlook, and the Office Deployment Tool are trademarks of the Microsoft group of companies.
- Backblaze and B2 are trademarks of Backblaze, Inc.
- Amazon Web Services, AWS, Amazon S3, and S3 Glacier are trademarks of Amazon.com, Inc. or its affiliates.
- Wasabi, IBM and IBM Cloud, Azure, and Google Cloud are trademarks of their respective owners.
License
Released under the MIT License. See SECURITY.md for the security model and reporting, and CONTRIBUTING.md to contribute.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。