Advent Calendar Day 5: Giving Claude Read-Only Eyes on Veeam

// Table of Contents

Advent Calendar Day 5: Giving Claude Read-Only Eyes on Veeam

Disclaimer: I’m not a professional developer, and this content is intended to demonstrate the “art of the possible” rather than serve as production-ready guidance. Use these features with caution, and test thoroughly in your environment before relying on them for critical tasks.

Welcome back to Day 5 of our Veeam Blog Advent Calendar! Yesterday we turned a Veeam malware event into a ServiceNow ticket, and today we’re giving Claude read-only eyes on our backup server.

A dashboard is great, but sometimes I just want to ask a question in plain English and have the answer come from my actual backup server. Which jobs have I got? How did last night go? How much room’s left on my repositories? Wouldn’t it be nice to just ask?

If this sounds a bit familiar, it’s because it’s Day 2 all over again. The plan was to build my own MCP (Model Context Protocol) server on top of the REST API, and then I remembered Veeam already publishes an official one. So why build my own?

And the timing couldn’t be better. Veeam Backup & Replication 13.2 got released earlier this week, which is epic timing, and the new Veeam Backup & Replication MCP Server is right there in the 13.2 What’s New. So naturally, I patched my lab and got cracking.

Top up that coffee or grab a beer, it’s December, who cares, and let’s get into it!

Why MCP?

I’m keeping this bit short, because this isn’t meant to be a general AI explainer.

The REST API already knows the answer to everything I wanted to ask. What it doesn’t speak is plain English. Without something in the middle, you’re the one getting a token, finding the right endpoint and stitching the JSON together, when all you wanted to know was whether last night’s jobs worked.

MCP is that something in the middle. It’s a standard way for an AI assistant to find out which tools it’s got, what each one does and how to call it. If that sounds a bit abstract, think of it like the USB-C moment for AI, as it’s been referred to. USB-C can plug into anything: iPhone, iPad or a laptop, it doesn’t really matter. They all speak the same language and it’s a universal format. Same idea here: anything that speaks MCP can use Veeam’s server without needing to know the exact layout of how Veeam APIs work. The MCP is doing the translation, so to speak, so you’re not locked into the assistant I happen to use. I use Claude but you may prefer Gemini or another tool, it doesn’t matter, they all speak MCP.

Veeam’s Official MCP Servers

So now with that little explainer out the way, let’s move on to Veeam’s official MCP.

Veeam keeps its MCP servers in one open source repo, veeam-ai/veeam-mcp-server, and there are actually two of them in there:

  • The Veeam Backup & Replication MCP server exposes the REST API itself as tools: jobs, sessions, backups, restores, infrastructure, licensing and more.
  • The Veeam Intelligence MCP server passes your question to Veeam Intelligence on the VBR server, which answers from your environment’s data. It also works with Veeam ONE and the Veeam Service Provider Console.

Today’s all about the first one. It hands Claude 49 tools, and Claude decides which ones to call. 29 of them only read, and the rest can change things, like starting a job or kicking off a restore. Every tool is labelled as read-only or destructive, so Claude knows to stop and ask before a destructive call.

What I really like is how straight the README is about where the real control lives: every call runs with the rights of the VBR account you give it, so constrain it there. That’s exactly what the Backup Viewer role is for. Claude can look, but it can’t touch!

Setting It Up

Read the Safety Section First

Before pointing anything at my backup server, I read the README’s safety and permissions section, and I’d really encourage you to do the same. Of the 49 tools, 29 only read. The other 20 change something, and the README calls out 12 of those that can interrupt protection or destroy data:

  • Restores that can overwrite an existing VM, file share or bucket (restore_vsphere_vm, restore_file_share, restore_object_storage)
  • Starting, migrating and unmounting Instant Recovery for vSphere VMs
  • Stopping or disabling a job (stop_job, disable_job)
  • Infrastructure changes: SOBR extent maintenance and sealed mode, and updating managed server components
  • Revoking a license unit (revoke_license)

The server doesn’t have a permissions model of its own. Every call runs with the full rights of the VBR account you give it, so that’s where the control goes. For today that’s a Backup Viewer, which can read jobs, sessions and repositories but can’t change a thing. (I did give it a bit more than that to begin with, and you’ll see why!)

Creating the Account

My VBR is the Veeam Software Appliance, so the account is a local appliance user, created in Host Management (port 10443 on the appliance):

  • Log into Host Management as a Host Administrator
    • Navigate to Users and Roles and click Add
    • User: the name mcp-vbr, a password and a description
    • Role: User
    • VBR Role: Backup Viewer

Host Management Users and Roles page filtered to mcp, listing mcp-vbr with the role User and MFA Disabled

Then sign in to the VBR web UI once as mcp-vbr, because a new User account has to set its own password the first time it logs in.

For the first run, though, I bumped it up to Backup Administrator, because I wanted to see it start a job and make changes too. This is a homelab after all. We’ll take that away again further down, and that’s where it gets interesting!

Running the Server

The server runs in Docker (I use OrbStack on my Mac), so it’s a clone and a build:

bash
git clone https://github.com/veeam-ai/veeam-mcp-server.git
cd veeam-mcp-server/servers/vbr-mcp
docker build -f docker/Dockerfile -t vbr-mcp .

The README has you copy .env.example to .env in that folder. I keep mine in ~/.config/veeam-mcp/ instead, readable only by me, so the password lives nowhere near a Git repo:

ini
VBR_BASE_URL=https://192.168.20.55:9419
VBR_USERNAME=mcp-vbr
VBR_PASSWORD=<redacted>
VBR_VERIFY_TLS=false

Docker reads that file literally, so no quotes around the values. VBR_VERIFY_TLS=false is a lab choice, because my appliance uses its self-signed certificate. The README shows how to keep verification on by pointing SSL_CERT_FILE at the certificate instead, and that’s what I’d do outside the lab.

Connecting Claude

I use Claude Code in the Claude desktop app, which picks up a .mcp.json from whatever folder you open a session in. So the server got a folder of its own, with this in it:

json
{
  "mcpServers": {
    "vbr": {
      "command": "/usr/local/bin/docker",
      "args": ["run", "-i", "--rm", "--env-file", "/Users/<you>/.config/veeam-mcp/vbr-mcp.env", "vbr-mcp"]
    }
  }
}

Claude starts a fresh container for each session and talks to it over stdin and stdout, so there’s no port to open and nothing left running afterwards. Open a session in that folder, approve the “vbr” server when it asks, and the tools turn up. If you’re on the Claude Code CLI, claude mcp add does the same job, and the README has the Claude Desktop and VS Code configs too.

Then I just asked Claude whether it was connected:

Claude confirming the vbr MCP server is connected, with the server name lab-vbr-01, VBR build 13.2.0.193, Linux, PostgreSQL 17.12 and the server time

That’s with the account still a Backup Administrator. Remember that build number, because we’re coming back to it!

The First Questions

Now for the fun part! I asked three questions, then checked every answer against VBR itself. And because this server works through the REST API, we get to see exactly which calls Claude made to get each answer.

What Backup Jobs Have I Got?

Claude answering which backup jobs exist and how each last ran, with the list sessions and list jobs calls expanded and a table showing Proxmox VMs, Incident-Demo-VM and Incident-Demo-Priority-Zero as Success and Incident-Demo-BackupCopy as Running

Eight jobs, seven of them successful, and a backup copy job that was running while I asked (the other four rows carry on below the screenshot). Every row you can see there matched VBR.

Have a look at what it did in the middle, though. The copy job had no last result, so Claude went off to check its history. Filtering by the job ID came back empty, so it looked at the current session and searched by name instead. That makes sense, because my copy job runs a session for each VM, and each of those sessions has a job ID of its own. One of its calls failed along the way and it still got there!

How Much Space Have I Got Left?

Claude answering how much free space is left: Unifi NAS 6,658.1 GB free of 7,443.9 GB, Veeam-Incident-Demo-Vault 1,012.6 GB free of 1,024 GB, and Default Backup Repository 179.6 GB free of 222.2 GB

It checked for scale-out repositories as well, without being asked, and I don’t have any. The 1,024 GB on the Vault is the 1 TB limit I set on it.

And here are the NAS and the default repository in the Web UI. It shows the NAS in TB, so Claude’s 7,443.9 GB and 6,658.1 GB are the same 7.3 TB and 6.5 TB:

VBR web UI Backup Repositories list: Default Backup Repository with 222.2 GB capacity and 179.6 GB free, and Unifi NAS with 7.3 TB capacity and 6.5 TB free, both Online

Any Malware Events This Week?

Claude reporting 10 Infected events on lab-demo-01 in the last 7 days, all marked false positive, listed by day and time from 27 November to 2 December

Ten of them! Don’t panic, if you’ve been following along, those are the demo alerts Wazuh sends through the Incident API, the same ones we used on Days 3 and 4. They get marked as false positives every time I reset the demo, and Claude picked that up too. All ten matched VBR, right down to the times.

I asked about “this week”, which could mean two things, right? Claude told me it was counting the last seven days, and then gave me the number since Monday as well.

Can It Touch Anything?

A read-only account is only worth something if it holds, so let’s put it to the test.

With Backup Administrator

First up, the same account, still a Backup Administrator:

Claude starting the Incident-Demo-VM job with the start job tool call expanded, and reporting it Running since 14:13:25

And off it went! VBR’s session shows Incident-Demo-VM starting at 14:13:25, initiated by mcp-vbr, and three minutes later it had finished successfully. Exactly what I asked for, because the account was allowed to do it.

With Backup Viewer

Now let’s take that away. This bit’s in the VBR web UI:

  • Log into the VBR web UI as a Backup Administrator
    • Open Users & Roles, select mcp-vbr and click Edit
    • Untick Backup Administrator, tick Backup Viewer, and save

VBR web UI Users and Roles page with mcp-vbr listed as Backup Viewer, and the Edit User window open with only Backup Viewer ticked in the role list

Then I opened a new session. Remember that build number?

Claude asked which VBR build is running, with the get server status call failed and the message The VBR account is not authorized to perform this action

Not any more! Right, so what about starting that job?

Claude asked to start Incident-Demo-VM as a Backup Viewer: list jobs, get job states and list repositories worked, and start job failed with The VBR account is not authorized to perform this action

VBR said no, and nothing ran. Claude told me straight that the job didn’t start and that it hadn’t tried again, and it could still read the job, its last run and the repository it writes to.

Same server, same tools, same question. The only thing that changed was the role on the account, and that’s the whole point of today!

So, How Did It Go?

Everything I’ve shown you here matched VBR: the jobs, the space on my repositories and all ten malware events. As a Backup Administrator, Claude could start a job for real. As a Backup Viewer, it could still read my jobs, repositories and malware events, and VBR turned down the build, the license details and starting a job.

mcp-vbr is a Backup Viewer again now, exactly where it should be.

My take? The answers were great, but what I liked most is that I never had to take Claude’s word for it. Every call it made is right there in the session, so you can open it up and see where the answer came from. And when it came to changing things, I didn’t have to hope Claude would behave, because VBR made that call.

Would I leave it on a Backup Administrator account? No, and you don’t need to. Asking questions is where I’ll get the most out of this, and a Backup Viewer does that just fine.

A Few Things Worth Knowing

  • Give it its own account. The server signs in to the REST API on its own, so it gets a dedicated account with only the role it needs. REST API sign-ins don’t support MFA, so the account has to be marked as a service account, or it’ll stop signing in once you switch MFA on. That matters in this calendar, because it gets switched on for everyone else on Day 8!
  • Check which roles are ticked. The role list lets you tick more than one. This one caught me out: I ticked Backup Viewer, Backup Administrator was still ticked as well, and Claude happily started the job again!
  • Open a new session after changing the role. A session that’s already open carries on with the sign-in it has. One I’d opened before the change could still tell me the build, so close the old ones and start fresh.
  • Mind the password expiry. Local appliance accounts made in Host Management have passwords that expire after 60 days by default, so put a reminder in the calendar or adjust the password policy for this one.
  • The permissions do the safety work. The read-only and destructive labels are hints for your MCP client to act on, and the README says so plainly. The account’s role is what VBR enforces.
  • Check the API version. 13.2 brings REST API revision 1.3-rev3, and the server sends 1.3-rev2 by default. There’s a VBR_API_VERSION setting if you ever want to move it along.
  • Keep Docker running. Claude starts the container when the session opens, so if Docker (OrbStack, in my case) isn’t running, the server won’t connect.

For the record, this was VBR 13.2.0.193, the MCP server repo at commit deac916, and Claude Code 2.1.331 in the Claude desktop app.

Wrapping Up

One clone, one Docker build, a couple of small config files and a Backup Viewer account, and now I can ask my backup server a question in plain English and check where the answer came from. And just like Day 2, I didn’t write a single line of code to get there!

If you’re running 13.2, give it a go in your lab. Start with a Backup Viewer and ask it something you already know the answer to. Then ask it to do something it shouldn’t, and watch VBR say no.

See you tomorrow for Day 6, where we bring in its sibling, the Veeam Intelligence MCP server, and find out whether Claude can explain last night’s backup failures! ๐ŸŽ„


Stay curious, stay informed, and as always, happy backing up! ๐ŸŽ