longhorn-mcp
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., "@longhorn-mcp list all Longhorn volumes and their replica counts"
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.
longhorn-mcp
An MCP server for the Longhorn distributed storage manager API. Full read/write coverage of Longhorn's REST API (volumes, snapshots, backups, backing images, nodes, settings, engine images, recurring jobs, and more), a --read-only mode, both stdio and Streamable HTTP transports, and an official Helm chart.
AI-assisted development. The majority of this codebase — implementation, tests, and this documentation — was written with AI assistance (Claude). Review accordingly, especially before running write-mode tools against a production Longhorn cluster.
Quick start
npx -y longhorn-mcp --longhorn-url=http://<longhorn-manager-host>:9500Longhorn's manager API is unauthenticated — reachability is the only access control. If you're not running this against an in-cluster Longhorn (see Connecting popular MCP clients → Remote/HTTP), you'll need a VPN, SSH tunnel, or kubectl port-forward svc/longhorn-backend 9500:9500 to reach it safely. Never expose Longhorn's manager API directly to an untrusted network.
Related MCP server: Rancher MCP Server
CLI reference
Flag | Default | Description |
| off (stdio) | Serve Streamable HTTP instead of stdio. |
|
| HTTP listen port (with |
|
| HTTP listen address (with |
| off | Register only read tools; the client also refuses any non-GET request. |
|
| Base URL of the Longhorn manager API. Standard Kubernetes cluster-local DNS by default — a cluster with a custom cluster domain overrides this via |
|
| Comma-separated |
Deploying with Helm
An official chart is published alongside every release:
helm install longhorn-mcp oci://ghcr.io/rafaelgaspar/longhorn-mcp/charts/longhorn-mcp --version 0.1.0 \
--set args[0]=--http \
--set args[1]=--longhorn-url=http://longhorn-backend.longhorn-system.svc.cluster.local:9500Key values:
Value | Default | Notes |
|
| |
|
| Append |
|
| |
|
| Optional, vendor-neutral core Gateway API |
|
|
Full schema: chart/values.yaml / chart/values.schema.json.
The chart is also attached as an OCI referrer directly on the image manifest, for tooling that discovers charts via the OCI Referrers API instead of pulling a separately tagged artifact:
oras discover ghcr.io/rafaelgaspar/longhorn-mcp:0.1.0Connecting popular MCP clients
Each client's exact config file path/key can drift between versions — check the client's own docs if these don't work. All of them accept the same underlying command/args shape for a local stdio server.
Claude Code
claude mcp add longhorn -- npx -y longhorn-mcp --longhorn-url=http://localhost:9500Claude Desktop
Edit claude_desktop_config.json:
{
"mcpServers": {
"longhorn": {
"command": "npx",
"args": ["-y", "longhorn-mcp", "--longhorn-url=http://localhost:9500"]
}
}
}Cursor
Edit .cursor/mcp.json (project-scoped) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"longhorn": {
"command": "npx",
"args": ["-y", "longhorn-mcp", "--longhorn-url=http://localhost:9500"]
}
}
}VS Code (Copilot Chat)
.vscode/mcp.json uses a servers key (not mcpServers):
{
"servers": {
"longhorn": {
"command": "npx",
"args": ["-y", "longhorn-mcp", "--longhorn-url=http://localhost:9500"]
}
}
}Remote/HTTP
To point a client at an already-running Streamable HTTP instance (e.g. this server deployed in-cluster, see Deploying with Helm) instead of spawning a local npx process, use that client's remote-MCP configuration with the server's /mcp URL. Clients without native remote-HTTP MCP support can bridge via mcp-remote.
Running behind a gateway
Longhorn's manager API — and by extension this server — has no authentication of its own; reachability is the access control (see Quick start). For a multi-tenant or externally-reachable deployment, fronting --http mode with an MCP-aware gateway (e.g. Envoy AI Gateway or similar) for auth, rate limiting, and routing is a good idea. It's not required, though — a private network boundary (VPN, SSH tunnel, cluster-internal only) is a perfectly reasonable standalone posture too, and is exactly what the Helm chart defaults to (route.enabled: false, no external exposure).
Destructive-action guardrails
--read-only is an enforced, structural guarantee (see below); the following is a softer, model-facing one — it shapes what a well-behaved LLM should do, not what the server can refuse.
Every tool whose action is destructive or hard to reverse (deletes, force-detaches, reverts, restores cluster-wide state, evicts a node, deploys an arbitrary engine image, redirects a backup target, etc.) has its description suffixed with an explicit instruction not to call it unless the user has explicitly authorized that specific action in the current conversation, and never proactively, speculatively, or as a side effect of an unrelated task. The server's MCP instructions field (surfaced by clients that support it, in addition to each tool's own description) repeats the same guidance at the server level as a backstop for tools called without reading their full description closely.
This is advisory, not enforced — a client or model can ignore it. It reduces the chance of an LLM calling volume_delete or systemrestore_create as an unprompted "helpful" side effect; it is not a substitute for --read-only where that's the guarantee you actually need.
Longhorn documentation links
Most tool descriptions end with a Longhorn docs: <url> link to the relevant page in Longhorn's official documentation, pinned to the Longhorn version this server's default --longhorn-url target runs (currently 1.13.0) rather than "latest," so the linked content matches the API version actually in use. A handful of tools with no clearly corresponding doc page (instancemanager_*, volumeattachment_*, longhorn_events, volume_job_list, the longhorn_raw_request/longhorn_list_resource_types/longhorn_describe_resource_type introspection tools) don't have one.
Action links
Every Longhorn resource returned by this server (a volume, node, backing image, ...) embeds an actions map of the RPC actions currently valid for it, e.g. a volume's actions.attach. Longhorn's own API returns these as URLs pointing at the manager's in-cluster address — useless to an MCP client, which can only call tools, not arbitrary HTTP endpoints. This server rewrites each one into the MCP tool that performs it instead, alongside that tool's parameter shape (name -> compact type, ? suffix for optional) so a client can call it without a separate schema lookup, e.g.:
"actions": {
"attach": {
"tool": "volume_attach",
"shape": { "name": "string", "hostId": "string", "disableFrontend": "boolean?", "attachedBy": "string?", "attacherType": "string?", "attachmentID": "string?" }
},
"updateReplicaCount": {
"tool": "volume_update_setting",
"shape": { "name": "string", "setting": "enum(19 values)", "value": "string|number|boolean" },
"args": { "setting": "replicaCount" }
}
}args (as above on updateReplicaCount) appears when the action already pins down one of the tool's parameters — Longhorn's ~19 single-field volume update* actions all route through the one volume_update_setting tool, distinguished only by which setting value to pass. shape always lists every parameter the tool takes, including ones already pinned via args, so a pinned value can always be resolved against shape without a separate lookup.
Every action every resource type's schema currently declares maps to a named tool this way — including volume's undocumented jobList, via volume_job_list (Longhorn publishes no input/output schema for it, so that tool accepts an open-ended extra object; see longhorn_describe_resource_type('volume') to check the deployed version's exact shape). Any action a future Longhorn version adds that this server hasn't caught up to yet falls back to longhorn_raw_request instead, with args.method/args.path pre-filled from the original URL. Since Longhorn only lists actions currently valid for a resource's state (e.g. salvage only appears on a faulted volume), this reflects what's actually callable right now, not just what the tool schema allows.
Read-only mode
--read-only enforces itself two ways:
Registration-time filtering — every write tool is simply never advertised in
tools/list, so a read-only instance's tool set is a strict subset of the read-write one.Client-layer guard —
LonghornClientrefuses any non-GETrequest regardless of which tool triggered it. This is what protectslonghorn_raw_request, the one escape-hatch tool that stays registered in both modes (its write-ness isn't known until it's actually called).
Run both a read-write and a read-only instance under different names in the same client config if you want an LLM session to default to read-only but have an explicit, differently-named write-capable tool set available:
{
"mcpServers": {
"longhorn": { "command": "npx", "args": ["-y", "longhorn-mcp", "--longhorn-url=http://localhost:9500"] },
"longhorn-readonly": { "command": "npx", "args": ["-y", "longhorn-mcp", "--read-only", "--longhorn-url=http://localhost:9500"] }
}
}Development
npm ci
npm run typecheck
npm test
npm run buildscripts/introspect-schema.ts dumps a live Longhorn manager's self-described /v1/schemas — useful for cross-checking this package's hand-written tool coverage against whatever Longhorn version you're actually running:
npm run introspect-schema -- http://localhost:9500
npm run introspect-schema -- http://localhost:9500 volume # one resource type in fullContributing
Contributions are welcome — see CONTRIBUTING.md for dev setup, coding conventions, and how releases work.
License
MIT — see LICENSE.
Available Tools
104 toolsbackingimage_backup_createBack up a backing imageB
Create a backup of a backing image. Longhorn does not publish a dedicated input schema for this action in /v1/schemas — use longhorn_describe_resource_type('backingImage') to check the deployed version's exact body shape, or pass fields via extra. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/backing-image/
Inputs: name (required), extra.
backingimage_cleanupClean up backing image copiesA
Clean up backing image file copies on the given disks. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/backing-image/
Inputs: name (required), disks (required).
backingimage_createCreate backing imageA
Create a new backing image. With sourceType "download", Longhorn fetches parameters.url server-side from its own network position — only use with a URL the user has explicitly provided and trusts. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/backing-image/
Inputs: name (required), parameters (required), sourceType (required), extra.
backingimage_deleteDelete backing imageA
Delete a backing image. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/backing-image/
Inputs: name (required).
backingimage_getGet backing imageA
Get a single backing image by name. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/backing-image/
Inputs: name (required).
backingimage_listList backing imagesB
List Longhorn backing images. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/backing-image/
Inputs: no named parameters.
backingimage_update_min_copiesUpdate backing image min copiesA
Update the minimum number of ready copies required for a backing image. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/backing-image/
Inputs: name (required), minNumberOfCopies (required).
backingimage_uploadUpload backing imageA
Trigger backing image upload. Longhorn does not publish a dedicated input schema for this action in /v1/schemas — use longhorn_describe_resource_type('backingImage') to check the deployed version's exact body shape, or pass fields via extra. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/backing-image/
Inputs: name (required), extra.
backupbackingimage_deleteDelete backup backing imageA
Delete a backup backing image from the backup target. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/backing-image/
Inputs: name (required).
backupbackingimage_getGet backup backing imageA
Get a single backup backing image by name. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/backing-image/
Inputs: name (required).
backupbackingimage_listList backup backing imagesA
List backed-up backing images on the backup target. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/backing-image/
Inputs: no named parameters.
backupbackingimage_restoreRestore backup backing imageC
Restore a backing image from the backup target. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/backing-image/
Inputs: name (required), secret, dataEngine, secretNamespace.
backup_getGet backupA
Get a single backup by id (plain read-only GET — available in --read-only mode). Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/backup-and-restore/
Inputs: id (required).
backup_listList backupsA
List all backups across all backup volumes (plain read-only GET — available in --read-only mode). Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/backup-and-restore/
Inputs: no named parameters.
backuptarget_createCreate backup targetB
Create a new backup target. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/backup-and-restore/
Inputs: name (required), extra.
backuptarget_deleteDelete backup targetA
Delete a backup target. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/backup-and-restore/
Inputs: name (required).
backuptarget_getGet backup targetA
Get a single backup target by name. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/backup-and-restore/
Inputs: name (required).
backuptarget_listList backup targetsB
List configured backup targets. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/backup-and-restore/
Inputs: no named parameters.
backuptarget_syncSync backup targetC
Force Longhorn to resync backup target/backup volume state. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/backup-and-restore/
Inputs: name (required), syncBackupTarget, syncBackupVolume, syncAllBackupTargets, +1 more.
backuptarget_updateUpdate backup targetA
Update a backup target (e.g. backupTargetURL, credentialSecret, pollInterval). Fields you omit are left unchanged (read-merge-write under the hood — the API itself does a full replace on PUT). Repointing backupTargetURL changes where future backups go and can break restore access to existing ones. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/backup-and-restore/
Inputs: name (required), extra, pollInterval, backupTargetURL, +1 more.
backuptarget_update_nameUpdate backup target name referenceB
Update the backupTargetName reference on a backup target record. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/backup-and-restore/
Inputs: name (required), backupTargetName (required).
backupvolume_backup_deleteDelete backupA
Delete a specific backup belonging to a backup volume. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/backup-and-restore/
Inputs: name (required), backupName (required).
backupvolume_backup_getGet backup (via backup volume)A
Get a specific backup belonging to a backup volume via the volume-scoped action (requires write access — use backup_get for read-only introspection). Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/backup-and-restore/
Inputs: name (required), backupName (required).
backupvolume_backup_listList backups (via backup volume)A
List backups belonging to a backup volume via the volume-scoped action (requires write access — use backup_list for read-only introspection). Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/backup-and-restore/
Inputs: name (required).
backupvolume_backup_list_by_volumeList backups by volumeC
List backups for a backup volume, scoped by the source volume. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/backup-and-restore/
Inputs: name (required).
backupvolume_deleteDelete backup volumeA
Delete a backup volume record from the backup target. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/backup-and-restore/
Inputs: name (required).
backupvolume_getGet backup volumeB
Get a single backup volume by name. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/backup-and-restore/
Inputs: name (required).
backupvolume_listList backup volumesA
List Longhorn backup volumes (backup-target-side volume records). Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/backup-and-restore/
Inputs: no named parameters.
backupvolume_syncSync backup volumeC
Force a resync of a backup volume against the backup target. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/backup-and-restore/
Inputs: name (required).
backupvolume_updateUpdate backup volumeA
Update a backup volume record. Fields you omit are left unchanged (read-merge-write under the hood — the API itself does a full replace on PUT). Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/backup-and-restore/
Inputs: name (required), extra.
engineimage_createDeploy engine imageA
Deploy a new Longhorn engine image. image is not validated against a known-good list. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/deploy/upgrade/
Inputs: image (required).
engineimage_deleteDelete engine imageA
Delete a Longhorn engine image. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/deploy/upgrade/
Inputs: name (required).
engineimage_getGet engine imageA
Get a single engine image by name. Longhorn docs: https://longhorn.io/docs/1.12.1/deploy/upgrade/
Inputs: name (required).
engineimage_listList engine imagesA
List Longhorn engine images. Longhorn docs: https://longhorn.io/docs/1.12.1/deploy/upgrade/
Inputs: no named parameters.
instancemanager_getGet instance managerA
Get a single instance manager by name.
Inputs: name (required).
instancemanager_listList instance managersB
List Longhorn instance manager pods/records.
Inputs: no named parameters.
longhorn_describe_resource_typeDescribe a Longhorn resource typeA
Describe one resource type's fields and available actions via GET /v1/schemas/{id} (e.g. "volume", "backupTarget", "node").
Inputs: id (required).
longhorn_eventsList eventsA
List Kubernetes events Longhorn has recorded against its own resources.
Inputs: no named parameters.
longhorn_list_resource_typesList Longhorn resource typesA
List every resource type Longhorn's manager API exposes, self-described at runtime via GET /v1/schemas.
Inputs: no named parameters.
longhorn_list_tagsList tagsA
List node/disk/backing-image tags known to Longhorn, optionally filtered by type. Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/nodes/
Inputs: type.
longhorn_raw_requestRaw Longhorn API requestA
Escape hatch for any Longhorn API endpoint not covered by a named tool. In --read-only mode, only GET requests succeed — everything else is refused before it reaches Longhorn. GET is always safe to call freely; for POST/PUT/DELETE, treat this exactly like the destructive tools elsewhere in this server — do not call with a mutating method unless the user has explicitly authorized that specific action in this conversation.
Inputs: path (required), method (required), body.
node_disk_updateUpdate node disksA
Update the disk configuration for a node. disks is the raw array of Longhorn Disk objects (path, allowScheduling, storageReserved, tags, diskType, ...) — inspect the node via node_get first to see the current shape. Disabling scheduling or shrinking storageReserved on a disk can strand replicas. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/nodes/
Inputs: name (required), disks (required).
node_getGet nodeB
Get a single Longhorn node record by name. Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/nodes/
Inputs: name (required).
node_listList nodesA
List Longhorn node records (scheduling state, disks, conditions). Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/nodes/
Inputs: no named parameters.
node_updateUpdate nodeA
Update a Longhorn node record (e.g. allowScheduling, evictionRequested, tags). Fields you omit are left unchanged (read-merge-write under the hood — the API itself does a full replace on PUT). evictionRequested: true drains all replicas/backing images off the node. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/nodes/
Inputs: name (required), tags, allowScheduling, evictionRequested.
orphan_getGet orphanA
Get a single orphan record by id. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/data-cleanup/orphaned-data-cleanup/
Inputs: id (required).
orphan_listList orphansA
List orphaned replica/engine instance directories Longhorn has detected. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/data-cleanup/orphaned-data-cleanup/
Inputs: no named parameters.
recurringjob_createCreate recurring jobC
Create a new Longhorn recurring job. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/scheduling-backups-and-snapshots/
Inputs: cron (required), name (required), task (required), retain (required), +4 more.
recurringjob_deleteDelete recurring jobA
Delete a Longhorn recurring job. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/scheduling-backups-and-snapshots/
Inputs: name (required).
recurringjob_getGet recurring jobA
Get a single recurring job by name. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/scheduling-backups-and-snapshots/
Inputs: name (required).
recurringjob_listList recurring jobsB
List Longhorn recurring jobs. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/scheduling-backups-and-snapshots/
Inputs: no named parameters.
recurringjob_updateUpdate recurring jobA
Update an existing Longhorn recurring job. Fields you omit are left unchanged (read-merge-write under the hood — the API itself does a full replace on PUT). Lowering retain can prune existing snapshots/backups beyond the new limit. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/scheduling-backups-and-snapshots/
Inputs: name (required), cron, task, groups, +4 more.
setting_getGet settingA
Get a single Longhorn setting by name. Longhorn docs: https://longhorn.io/docs/1.12.1/references/settings/
Inputs: name (required).
setting_listList settingsA
List all Longhorn global settings. Longhorn docs: https://longhorn.io/docs/1.12.1/references/settings/
Inputs: no named parameters.
setting_updateUpdate settingA
Update a Longhorn global setting value. Some settings (Longhorn's own "Danger Zone" category) affect every volume in the cluster. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/references/settings/
Inputs: name (required), value (required).
shard_getGet shardB
Get a single shard by id. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/v2-data-engine/sharding/
Inputs: id (required).
shardgroup_getGet shard groupB
Get a single shard group by id. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/v2-data-engine/sharding/
Inputs: id (required).
shardgroup_listList shard groupsA
List shard groups (erasure-coding sets of shards) backing V2 data engine sharded volumes (experimental feature). Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/v2-data-engine/sharding/
Inputs: no named parameters.
shard_listList shardsA
List erasure-coded shards backing V2 data engine sharded volumes (experimental feature). Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/v2-data-engine/sharding/
Inputs: no named parameters.
snapshot_getGet snapshotB
Get a single snapshot by id (plain read-only GET — available in --read-only mode). Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/setup-a-snapshot/
Inputs: id (required).
snapshot_listList snapshotsA
List all snapshots across all volumes (plain read-only GET — available in --read-only mode). Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/setup-a-snapshot/
Inputs: no named parameters.
supportbundle_getGet support bundleA
Get a single support bundle by id. Longhorn docs: https://longhorn.io/docs/1.12.1/troubleshoot/support-bundle/
Inputs: id (required).
supportbundle_listList support bundlesA
List generated Longhorn support bundles. Longhorn docs: https://longhorn.io/docs/1.12.1/troubleshoot/support-bundle/
Inputs: no named parameters.
systembackup_createCreate system backupB
Create a new Longhorn system backup. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/system-backup-restore/
Inputs: name (required).
systembackup_deleteDelete system backupA
Delete a Longhorn system backup. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/system-backup-restore/
Inputs: name (required).
systembackup_getGet system backupA
Get a single system backup by name. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/system-backup-restore/
Inputs: name (required).
systembackup_listList system backupsA
List Longhorn system backups. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/system-backup-restore/
Inputs: no named parameters.
systemrestore_createCreate system restoreA
Restore the Longhorn system from a system backup — restores cluster-wide Longhorn state. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/system-backup-restore/
Inputs: name (required), systemBackup (required).
systemrestore_deleteDelete system restoreA
Delete a Longhorn system restore record. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/system-backup-restore/
Inputs: name (required).
systemrestore_getGet system restoreA
Get a single system restore by name. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/system-backup-restore/
Inputs: name (required).
systemrestore_listList system restoresA
List Longhorn system restore operations. Longhorn docs: https://longhorn.io/docs/1.12.1/advanced-resources/system-backup-restore/
Inputs: no named parameters.
volume_activateActivate volumeC
Activate a standby (DR) volume. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/setup-disaster-recovery-volumes/
Inputs: name (required), frontend.
volume_attachAttach volumeC
Attach a volume to a node. Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/volumes/create-volumes/
Inputs: name (required), hostId (required), attachedBy, attacherType, +2 more.
volumeattachment_getGet volume attachmentA
Get a single VolumeAttachment record by name.
Inputs: name (required).
volumeattachment_listList volume attachmentsA
List Longhorn VolumeAttachment records (attachment tickets per volume).
Inputs: no named parameters.
volume_cancel_expansionCancel volume expansionA
Cancel an in-progress volume expansion. Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/volumes/create-volumes/
Inputs: name (required).
volume_createCreate volumeC
Create a new Longhorn volume. Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/volumes/create-volumes/
Inputs: name (required), size (required), numberOfReplicas (required), extra, +8 more.
volume_deleteDelete volumeA
Delete a Longhorn volume. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/volumes/create-volumes/
Inputs: name (required).
volume_detachDetach volumeA
Detach a volume. forceDetach: true risks data corruption if the volume is mid-write. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/volumes/create-volumes/
Inputs: name (required), hostId, forceDetach, attachmentID.
volume_engine_upgradeUpgrade volume engine imageA
Upgrade the engine image used by a volume. image is not validated against a known-good list — a bad image can make the volume inoperable. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/deploy/upgrade/
Inputs: name (required), image (required).
volume_expandExpand volumeC
Expand a volume to a new size. Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/volumes/create-volumes/
Inputs: name (required), size (required).
volume_getGet volumeA
Get a single Longhorn volume by name. Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/volumes/create-volumes/
Inputs: name (required).
volume_job_listList volume jobsA
List a volume's background async jobs via its "jobList" action. Longhorn does not publish a dedicated input or output schema for this action in /v1/schemas, and it has no corresponding docs page — use longhorn_describe_resource_type('volume') to check the deployed version's exact shape, or pass fields via extra.
Inputs: name (required), extra.
volume_listList volumesA
List all Longhorn volumes. Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/volumes/create-volumes/
Inputs: no named parameters.
volume_pvc_createCreate PersistentVolumeClaim for volumeB
Create a Kubernetes PersistentVolumeClaim bound to this Longhorn volume's PV. Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/volumes/create-volumes/
Inputs: name (required), pvcName, namespace.
volume_pv_createCreate PersistentVolume for volumeC
Create a Kubernetes PersistentVolume backed by this Longhorn volume. Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/volumes/create-volumes/
Inputs: name (required), fsType, pvName, secretName, +2 more.
volume_recurring_job_addAdd recurring job to volumeC
Attach a recurring job (or job group) to a volume. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/scheduling-backups-and-snapshots/
Inputs: name (required), jobName (required), isGroup.
volume_recurring_job_deleteRemove recurring job from volumeA
Detach a recurring job (or job group) from a volume — this can remove the volume's only backup/snapshot schedule. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/scheduling-backups-and-snapshots/
Inputs: name (required), jobName (required), isGroup.
volume_recurring_job_listList volume recurring jobsA
List recurring jobs attached to a volume. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/scheduling-backups-and-snapshots/
Inputs: name (required).
volume_replica_removeRemove volume replicaA
Remove a specific replica from a volume. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/volumes/create-volumes/
Inputs: name (required), replicaName (required).
volume_salvageSalvage volumeA
Salvage a volume from a list of (potentially stale) replica names. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/volumes/create-volumes/
Inputs: name (required), replicaNames (required).
volume_snapshot_backupBack up a volume snapshotB
Create a backup from a volume snapshot. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/backup-and-restore/
Inputs: name (required), labels, backupMode, snapshotName.
volume_snapshot_cr_createCreate VolumeSnapshot CRC
Create a snapshot via the newer VolumeSnapshot CRD-backed action (equivalent to volume_snapshot_create). Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/setup-a-snapshot/
Inputs: name (required), labels, snapshotName.
volume_snapshot_cr_deleteDelete VolumeSnapshot CRA
Delete a CRD-backed snapshot for a volume. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/setup-a-snapshot/
Inputs: name (required), snapshotName (required).
volume_snapshot_createCreate volume snapshotC
Create a snapshot of a volume. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/setup-a-snapshot/
Inputs: name (required), labels, backupMode, snapshotName.
volume_snapshot_cr_getGet VolumeSnapshot CRB
Get one CRD-backed snapshot for a volume. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/setup-a-snapshot/
Inputs: name (required), snapshotName (required).
volume_snapshot_cr_listList VolumeSnapshot CRsB
List CRD-backed snapshots for a volume. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/setup-a-snapshot/
Inputs: name (required).
volume_snapshot_deleteDelete volume snapshotA
Delete a snapshot of a volume. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/setup-a-snapshot/
Inputs: name (required), snapshotName (required).
volume_snapshot_getGet volume snapshotA
Get one snapshot of a volume via the volume-scoped action (requires write access — use snapshot_get for read-only introspection). Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/setup-a-snapshot/
Inputs: name (required), snapshotName (required).
volume_snapshot_listList volume snapshotsA
List snapshots for a volume via the volume-scoped action (requires write access — use snapshot_list for read-only introspection). Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/setup-a-snapshot/
Inputs: name (required).
volume_snapshot_purgePurge volume snapshotsB
Purge removed snapshots of a volume. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/setup-a-snapshot/
Inputs: name (required).
volume_snapshot_revertRevert volume to snapshotA
Revert a volume to a snapshot, discarding all changes made since. Destructive. Do not call this unless the user has explicitly authorized it in this conversation — never proactively, speculatively, or as a side effect of another task. Longhorn docs: https://longhorn.io/docs/1.12.1/snapshots-and-backups/setup-a-snapshot/
Inputs: name (required), snapshotName (required).
volume_trim_filesystemTrim volume filesystemC
Trim the filesystem on a volume. Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/volumes/create-volumes/
Inputs: name (required).
volume_update_settingUpdate a volume settingC
Update one of Longhorn's per-volume settings. Valid "setting" values: replicaCount, replicaAutoBalance, rebuildConcurrentSyncLimit, dataLocality, accessMode, snapshotDataIntegrity, snapshotMaxCount, snapshotMaxSize, replicaRebuildingBandwidthLimit, ublkQueueDepth, ublkNumberOfQueue, backupCompressionMethod, unmapMarkSnapChainRemoved, replicaSoftAntiAffinity, replicaZoneSoftAntiAffinity, replicaDiskSoftAntiAffinity, freezeFilesystemForSnapshot, backupTargetName, offlineReplicaRebuilding. Longhorn docs: https://longhorn.io/docs/1.12.1/nodes-and-volumes/volumes/create-volumes/
Inputs: name (required), value (required), setting (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 104 tools
Multiple tool groups are explicit duplicates or near-duplicates: volume_snapshot_create is described as 'equivalent to' volume_snapshot_cr_create, and there are three snapshot-list paths (snapshot_list, volume_snapshot_list, volume_snapshot_cr_list) plus duplicate backup getters (backup_get vs backupvolume_backup_get). An agent must read fine-print warnings about write-access requirements to avoid selecting the wrong accessor.
The dominant resource_action pattern (volume_list, node_get, setting_update, backuptarget_create) is consistent and predictable. Deviations are mostly the longhorn_* meta tools (longhorn_list_tags, longhorn_raw_request) which place the verb in the middle rather than the end, plus minor oddities like volume_recurring_job_add using 'add' instead of 'create'.
104 tools is extreme by any standard, placing this far beyond the 50+ threshold. While Longhorn is a genuinely broad system, much of the bloat comes from redundant surface variants (volume-scoped vs global vs CRD-backed accessors for the same snapshot/backup data) rather than distinct capabilities, and the presence of a raw_request escape hatch further suggests the set is uncurated.
Coverage of the Longhorn domain is remarkably deep: full lifecycle for volumes, snapshots, backups, backing images, engine images, recurring jobs, system backup/restore, nodes, and settings. Notable gaps exist though — there is no restore-backup-to-volume tool and support bundles only have list/get (no create) — but the longhorn_raw_request escape hatch mitigates these dead ends.
Maintenance
Related MCP Connectors
MCP server for Superserve sandboxes: create, exec, and manage Firecracker microVMs
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
Ovanek MCP: Model Context Protocol server for Ovanek platform tools; writes are dry-run by default.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Related MCP Servers
- AlicenseBqualityCmaintenanceModel Context Protocol (MCP) server for the Rancher ecosystem: multi-cluster Kubernetes, Harvester HCI (VMs, storage, networks), and Fleet GitOps.1012Apache 2.0
- FlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server that exposes the Rancher Manager v2.x API to LLM clients.113-
- AlicenseNot gradedqualityDmaintenanceA standalone MCP server that exposes Rancher-side tools, forwards Authorization headers or uses configured credentials, and supports HTTP and stdio transports.MIT
- AlicenseAqualityCmaintenanceMCP server for Proxmox VE and Proxmox Datacenter Manager, covering every API endpoint via six consolidated tools for list, describe, and call operations with a read-only safety gate.611 npm2AGPL 3.0