# rancher-mcp-server

> rancher-mcp-server is an open-source MCP server for cloud and infrastructure. MCP server giving AI clients access to Rancher, Harvester, Kubernetes, Helm and Fleet. It is available on CLI, API, Linux, macOS, Windows and Self-hosted.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Linux, macOS, Windows, Self-hosted
- **Repository:** https://github.com/mrostamii/rancher-mcp-server
- **GitHub stars:** 12
- **License:** Apache-2.0
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-12-01

## About

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.

## Features

- **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

## Tools

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_list` (name suggests: reads): List VMs with status, namespace, spec and status
- `harvester_vm_action`: Start, stop, restart, pause, unpause or migrate a VM
- `kubernetes_list` (name suggests: reads): List resources by apiVersion and kind
- `kubernetes_describe` (name suggests: reads): Get resource with recent events
- `helm_list` (name suggests: reads): List Helm releases
- `helm_rollback`: Roll back a release to a previous revision
- `fleet_gitrepo_list` (name suggests: reads): List Fleet GitRepos
- `fleet_drift_detect`: Report BundleDeployments with Modified state
- `rancher_cluster_list` (name suggests: reads): List Rancher clusters
- `rancher_token_list` (name suggests: reads): List API tokens with values redacted by default

## 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.

## Alternatives

- [Rancher MCP](https://ai-powered.com/mcp/rancher-mcp): Rancher MCP is an open-source MCP server for cloud and infrastructure.
- [mcp-k8s](https://ai-powered.com/mcp/mcp-k8s): mcp-k8s is an open-source MCP server for cloud and infrastructure.
- [Rancher](https://ai-powered.com/mcp/rancher): Rancher is an open-source MCP server for cloud and infrastructure.
- [k8s-mcp-server](https://ai-powered.com/mcp/k8s-mcp-server): k8s-mcp-server is an open-source MCP server for developer tools.
- [kubectl-mcp-server](https://ai-powered.com/mcp/kubectl-mcp-server): kubectl-mcp-server is an open-source MCP server for cloud and infrastructure.
- [Helm MCP](https://ai-powered.com/mcp/helm-mcp-2): Helm MCP is an open-source MCP server for cloud and infrastructure.
- [awslabs](https://ai-powered.com/mcp/awslabs): awslabs is an open-source MCP server for cloud and infrastructure.
- [Longhorn MCP](https://ai-powered.com/mcp/longhorn-mcp): Longhorn MCP is an open-source MCP server for cloud and infrastructure.

---
Source: https://ai-powered.com/mcp/rancher-mcp-server
