mcp-server-omv
Runs omv-rpc over SSH to query OpenMediaVault NAS status, services, updates, shared folders, SMB/NFS shares, disks, SMART health, filesystems, RAID arrays, and manage background jobs.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-server-omv
An MCP server for OpenMediaVault (OMV) 7
and 8. It runs omv-rpc on the NAS over SSH, so an MCP client such as Claude can read storage health, list
shares, and stage changes that you review and apply. There is no web-UI scraping and no agent on the NAS: the
only thing it can run there is omv-rpc.
Status: scaffold. The server starts and answers
omv_get_status, and nothing more yet. The SSH runner and the call policy are in; the NAS tools are being added one task at a time (seedocs/plans/v1.md). Nothing has been run against a real NAS: every detail of how OMV answersomv-rpcis a named assumption (see Verification status).
Not affiliated with the OpenMediaVault project.
Design
Two phases. OMV stages configuration changes and applies them separately, and so does this server: write tools stage, a person reviews the pending changes, and a separate tool applies them.
Writes are off by default.
OMV_ALLOW_WRITES=1turns the write tier on.One narrow transport. The only remote command the server will build is an
omv-rpccall. There is no shell tool, no file transfer, and no port forwarding.
Related MCP server: omv-mcp
Install
Not on PyPI yet. From source:
git clone https://github.com/SDNick484/mcp-server-omv.git && cd mcp-server-omv
python -m venv .venv && . .venv/bin/activate
pip install -e ".[dev]" && pytestRequires Python 3.11+ and an OpenSSH client (ssh) on the machine that runs the server.
First contact
mcp-server-omv --version
mcp-server-omv call omv_get_statusWith no NAS configured the status tool still answers, and says what to set.
Use it with an MCP client
Local (stdio): Claude Code and Claude Desktop launch it themselves. For Claude Code:
claude mcp add omv -- mcp-server-omv (use the full path to the venv's mcp-server-omv). In Claude Desktop's
claude_desktop_config.json:
{
"mcpServers": {
"omv": {
"command": "/path/to/venv/bin/mcp-server-omv",
"env": { "OMV_HOST": "nas.example.com", "OMV_SSH_KEY": "/path/to/key" }
}
}
}As a service (Streamable HTTP), to share one instance between clients through a Cloudflare Tunnel with Cloudflare Access in front:
CF_ACCESS_TEAM_DOMAIN=<team>.cloudflareaccess.com CF_ACCESS_AUD=<aud tag> \
mcp-server-omv serve --http --public-host mcp.example.com # 127.0.0.1:8719/omv/mcpGET /healthz and GET /omv/mcp/healthz answer 200 while the process is up. Every other request must carry a
valid Access JWT (Cf-Access-Jwt-Assertion); the checks and the flags are documented in
src/omv_mcp/remote.py.
On Alpine (a Proxmox LXC, say), deploy/alpine/install.sh installs it as an OpenRC service on port 8719, with
its settings in /etc/mcp-server-omv/env and its SSH key and known_hosts in /var/lib/mcp-server-omv.
Re-running it upgrades the code and keeps all of those. The file's header has the layout.
Configuration
Environment variables beat config.json in OMV_CONFIG_DIR (default $XDG_CONFIG_HOME/mcp-server-omv). A key
in config.json is the variable's name without OMV_, in lower case (ssh_user). A bad value is reported by
omv_get_status and the default is used.
Setting | Default | What it does |
| none | NAS host name or address. Without it the server starts and every tool says what to set |
|
| SSH login user on the NAS |
|
| SSH port |
| none | Private key file; without it |
| none |
|
|
| Run |
|
| Seconds per RPC call, 1 to 170 (OMV's own socket timeout is 180 s) |
|
|
|
|
| Write tools report what they would send and send nothing ( |
|
| Skip address masking in logs ( |
OMV_CONFIG_DIR itself is read from the environment only. For serve --http, MCP_ALLOWED_SERVICE_TOKENS and
MCP_AUTOMATION_TIERS come from the shared remote.py
(what each caller may do).
Tools
Tool | What it does |
| Start here: whether a NAS is configured and reachable, its OpenMediaVault version, host name, uptime, load, memory, pending changes, reboot and update counts, which plugins and optional services it has, whether writes and dry run are on, and configuration problems |
| The NAS's services (SMB, NFS, SSH, the rsync server, and the rest) with enabled and running; name one (ssh, smb, nfs, rsyncd) for its key settings, from a fixed allow-list that never includes free-text options or secrets |
| The upgradable packages with their installed and candidate versions, and the count, as of the NAS's last package index refresh. Read only: it neither refreshes the index nor installs anything |
| The shared folders: name, filesystem, relative and absolute path, comment, and the SMB and NFS shares that reference each one |
| The SMB and NFS shares with the settings that decide who can reach them (enabled, guest access, read-only, browseable, NFS client and options), and whether each service is installed and enabled; an absent or disabled service is stated, not an error |
| The physical disks: model, size, serial (masked unless asked), temperature, and SMART's overall verdict |
| One disk's SMART information, attributes, and self-test log, with the concerns in plain sentences; refuses a device the disk list does not have |
| Filesystems with label, type, mount point, size, used, available, percent, and mounted; an external drive shows up here with its usage |
| Software RAID arrays with level, size, state, and members; says |
| Start a background job on the NAS and follow it: |
| A job's state (running, succeeded, failed, stopped, or lost) and its last 200 output lines, or every job this server run started |
| Stop a running job (SIGTERM on the NAS) and keep its last output |
Who may call what
Every tool has an authorization tier. People (an Access login, or stdio) may use all of them; an Access service
token, if you admit one, gets only MCP_AUTOMATION_TIERS. The tiers are read, everyday, and costly
(costly asks the person to confirm).
Tool | Tier |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Safety design
What exists now: writes are off by default, a malformed OMV_HOST or account name is refused before anything
could use it, and the HTTP transport checks the Cloudflare Access assertion on every request.
One remote command. The runner (
runner.py) can only buildsudo -n /usr/sbin/omv-rpc -u admin <service> <method> <params>, every part quoted, with service and method names of letters and digits only. It runs the systemsshwithout a local shell, with stdin closed, and with forwarding, agent, X11, and TTY requests off. One call at a time, each underOMV_TIMEOUT.A call policy in front of it. Every call goes through
policy.py, and the runner accepts only what the policy allowed. Reads are allowed; anything else, including a method the policy does not know, is a write and needsOMV_ALLOW_WRITES=1. A deny list refuses, in every mode, what v1 does not offer (commands, packages, accounts and keys, destroying data, taking the NAS offline,extraoptions) and reads that return secrets.
The NAS-side account setup, and what that account does and does not limit, are written up with the tools that use it.
Troubleshooting
omv_get_status (or mcp-server-omv call omv_get_status) lists configuration problems, one sentence each, and says
why the NAS could not be reached. mcp-server-omv check is first contact in one line; mcp-server-omv doctor checks
each layer (settings, ssh and sudo, version, plugins, services) and says which one failed.
Development
pip install -e ".[dev]"
pytest -q # no NAS needed: tests never touch the network
ruff check . && ruff format --check . && mypy
python scripts/sync_shared.py --checkWhat the tests cover:
File | Covers |
| The MCP contract the model sees: tool names, titles, annotations, tiers, schemas |
| Settings sources and order, bad values, and that the table above matches the code's defaults |
|
|
| The console script over stdio with no NAS configured |
| Every assumption appears in the README table and in HARDWARE_VALIDATION.md |
| The Alpine service files are OpenRC, the settings template holds placeholders only, and |
| The ssh argv and remote command against a stub |
| Every rule and deny group of the call policy, and that no refused call reaches the runner |
|
|
| The four storage tools for OMV 7 and 8: the disk and SMART join, masked serials, disk health and its refusal of an unlisted device, filesystems including the external drive, RAID with and without the md plugin, and that no write method is called |
|
|
|
|
|
|
| Background jobs from start to succeeded, failed, stopped, or lost through scripted |
The shared modules and their tests (remote.py, logsafe.py, tasks.py, ratelimit.py, registry.py,
lookup.py, tools.py, feedback.py) come from
mcp-server-shared and are not edited here.
Verification status
These are the OpenMediaVault details the code depends on (claim, source, and for verified ones the evidence, in
src/omv_mcp/assumptions.py). hardware-verified means seen working on a real NAS; hardware-contradicted
means a real NAS did something else; the rest are read in the OMV source only.
Assumption | Confidence | Status |
| medium | simulator-only |
| medium | simulator-only |
| medium | simulator-only |
| medium | simulator-only |
| medium | simulator-only |
| medium | simulator-only |
| medium | simulator-only |
| medium | simulator-only |
| low | simulator-only |
| medium | simulator-only |
| medium | simulator-only |
| medium | simulator-only |
| low | simulator-only |
| low | simulator-only |
| medium | simulator-only |
| medium | simulator-only |
| medium | simulator-only |
| medium | simulator-only |
| medium | simulator-only |
| low | simulator-only |
| medium | simulator-only |
| medium | simulator-only |
test_assumptions.py fails if this table and assumptions.py disagree.
Roadmap
Storage health, shares, two-phase changes, services and updates, and background jobs
Validate on hardware (HARDWARE_VALIDATION.md)
License
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Linux server administration over OAuth MCP: shell, Docker, systemd, files and monitoring.
SSH client, server management and one remote MCP URL for your machines, with human approvals.
Ovanek MCP: Model Context Protocol server for Ovanek platform tools; writes are dry-run by default.
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
Related MCP Servers
- AlicenseBqualityDmaintenanceExposes tools to manage and inspect an OpenMediaVault NAS, running on the NAS and communicating over SSH with any MCP-capable coding harness.48MIT
- AlicenseAqualityCmaintenanceAn MCP server that lets AI assistants manage an OpenMediaVault NAS over SSH using OMV's own RPC interface, covering disks, filesystems, shares, users, S.M.A.R.T. health, services, and configuration changes. It exposes a small set of generic tools to discover and call RPC methods, plus optional shell access.6MIT
- AlicenseNot gradedqualityBmaintenanceEnables managing multiple Linux SSH servers from MCP clients, with structured filesystem operations, shell commands, durable long-running jobs, process listing, and CPU/RAM/disk/GPU status.MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to inspect and manage an OpenMediaVault host and its Debian system, Docker Compose stacks, containers, images, volumes, networks, and other OMV plugins through the official RPC API. It starts read-only and lets administrators opt into sensitive, write, and destructive operations through environment tiers.MIT