
rancher-mcp-server
MCP server giving AI clients access to Rancher, Harvester, Kubernetes, Helm and Fleet
The repository was last updated 49 days ago and is published under Apache-2.0.
rancher-mcp-server is an open-source MCP server for cloud and infrastructure. It is available on CLI, API, Linux, macOS, Windows and Self-hosted.
- Pricing
- Open source
- Platforms
- CLI, API, Linux
- GitHub stars
- 12
- Last commit
- Language
- Go
Similar MCP servers
About rancher-mcp-server
Gives AI assistants a set of tools for managing multi-cluster Kubernetes environments run through Rancher. Each toolset covers a different part of the stack: Harvester virtual machines, storage, networks and addons; Rancher clusters, projects and management APIs; generic Kubernetes resources; Helm releases; and Fleet GitOps sources and drift checks.
The server runs locally over stdio, or as a Streamable HTTP endpoint, and authenticates to Rancher with a bearer token. Operations are read-only by default, and write and delete actions are opt-in through flags. Sensitive token and credential fields are redacted in responses unless explicitly disabled.
It suits platform and infrastructure engineers who already operate Rancher and want an assistant to inspect clusters, troubleshoot workloads or make controlled changes from their editor or chat client.
Tools this server provides (10)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 7 of 10 tools read data; 3 names don't say.
From the server's own tool labels and tool names; not verified by us.
- harvester_vm_listName suggests: reads
- List VMs with status, namespace, spec and status
- harvester_vm_action
- Start, stop, restart, pause, unpause or migrate a VM
- kubernetes_listName suggests: reads
- List resources by apiVersion and kind
- kubernetes_describeName suggests: reads
- Get resource with recent events
- helm_listName suggests: reads
- List Helm releases
- helm_rollback
- Roll back a release to a previous revision
- fleet_gitrepo_listName suggests: reads
- List Fleet GitRepos
- fleet_drift_detect
- Report BundleDeployments with Modified state
- rancher_cluster_listName suggests: reads
- List Rancher clusters
- rancher_token_listName suggests: reads
- List API tokens with values redacted by default
What it does
- Harvester VM management
- List, inspect, start, stop, snapshot and back up virtual machines, images, volumes and networks on Harvester.
- Kubernetes resource access
- List, get, describe and optionally create, patch or delete resources by API version and kind, with events and pod logs.
- Helm release tools
- List, inspect and review history for Helm releases, with install, upgrade and rollback available when writes are enabled.
- Fleet GitOps visibility
- Browse GitRepos, bundles and downstream clusters, and detect drift in BundleDeployments.
- Read-only by default
- Write operations and deletes are disabled unless explicitly turned on, and sensitive Norman fields are masked.
- Flexible configuration
- Settings can be passed as flags, environment variables or a YAML or TOML file.
Good for
- Inspect Harvester VM status and resource usage across clusters from an AI assistant
- Troubleshoot failing Kubernetes pods by pulling events, describe output and recent logs
- Review Helm release revisions and roll back a release when writes are enabled
- Check Fleet GitRepo sync state and detect configuration drift in managed clusters
- Audit Rancher users, role bindings and API tokens with secrets masked
Pricing
Open source
Free and open source under Apache-2.0
rancher-mcp-server FAQ
Which clients can connect to rancher-mcp-server?
Setup examples are given for Cursor and Claude Desktop over stdio, and for Claude Code and other clients over Streamable HTTP at the /mcp path.
Is rancher-mcp-server read-only by default?
Yes. Write operations require adding --read-only=false, and delete operations also require --disable-destructive=false.
How does rancher-mcp-server authenticate to Rancher?
It uses a Rancher API token passed as a bearer token, configured through a flag or the RANCHER_MCP_RANCHER_TOKEN environment variable.
What platforms can run the server?
macOS on Apple Silicon and Intel, Linux on x64 and ARM64, and Windows on x64 are listed as supported. It can be installed via npm or run from a Docker image.
Is rancher-mcp-server free?
Yes. rancher-mcp-server is open source, so you can use and self-host it for free.
What are the best alternatives to rancher-mcp-server?
The closest alternatives to rancher-mcp-server are Rancher MCP, mcp-k8s, Rancher, k8s-mcp-server and kubectl-mcp-server.
Where this comes from
- Description: written from the project's README.

