Rancher MCP logo

Rancher MCP

Operate Rancher-managed Kubernetes through discovery, generic resource APIs, curated workflows, and guarded MCP tools.

Install Rancher MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "rancher-mcp": {
      "command": "uvx",
      "args": [
        "rancher-mcp"
      ],
      "env": {
        "RANCHER_URL": "YOUR_VALUE_HERE",
        "RANCHER_TOKEN": "YOUR_VALUE_HERE",
        "RANCHER_READ_ONLY": "YOUR_VALUE_HERE",
        "RANCHER_INSTANCES_JSON": "YOUR_VALUE_HERE",
        "RANCHER_DEFAULT_INSTANCE": "YOUR_VALUE_HERE",
        "RANCHER_TOOLSETS": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx rancher-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

rancher-mcp connects MCP clients to Rancher-managed Kubernetes through both the Norman /v3 and Steve /v1 API planes. It combines capability discovery, generic CRUD and action access, typed tools for common Kubernetes and Rancher domains, and operator workflows such as health checks and rollout waits. Safety controls include per-instance read-only settings, mutation confirmation, audit logging, rate limiting, and masking for sensitive values. Reach for it when an agent needs Rancher management-plane access across one or more instances instead of direct kubectl-style access.

Use cases

  • Discover Rancher capabilities and schemas before running an operation
  • Inspect cluster health, failing pods, and stalled rollouts
  • Manage resources across multiple Rancher instances
  • Apply guarded workload and node operations
  • Watch resources and wait for rollout completion

Key features

  • Norman and Steve API-plane support
  • Generic CRUD, actions, links, and watches
  • Curated Kubernetes and Rancher operator tools
  • Per-instance read-only controls
  • Audit logging, rate limiting, confirmations, and masking
  • Multi-instance configuration

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 83d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · rancher-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit11d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Rancher MCP works

What rancher-mcp does

rancher-mcp exposes Rancher-managed Kubernetes operations through the Model Context Protocol. It is designed for Rancher environments where management data and cluster resources may be exposed through different API surfaces. The server works with Rancher’s Norman /v3 API, Steve /v1 API, and Kubernetes resources reached through Rancher’s proxy.

Its tool registry covers discovery, schema inspection, generic resource operations, typed reads, guarded mutations, and higher-level operator tasks. The registry includes 207 tools: 179 read-only tools, 28 write tools, and 5 destructive tools. Supported areas include clusters, nodes, projects, namespaces, workloads, pods, services, storage, networking, RBAC, authentication, applications, catalogs, monitoring, logging, policy reports, compliance, backups, Longhorn, Fleet, provisioning, alerts, and settings.

How it works

The server separates its capabilities into three layers. Discovery tools identify the Rancher version, available schemas, API planes, and supported capability domains. The generic engine then provides resource listing, retrieval, creation, updates, deletion, actions, links, and watches for resources exposed by either API plane. Curated tools provide typed inputs and shaped responses for common operational tasks, with suggested next steps included in responses.

Operator rollups combine several checks into focused workflows. Examples include cluster health checks, failing-pod searches, stalled-rollout detection, project health summaries, and waiting for a rollout to complete. Every configured instance can be selected with an optional instance argument.

Safety controls apply around these operations. An instance marked read_only rejects mutations before sending them, and its HTTP client only performs reads. Requests are constrained to the resource named by their arguments, while confirmation phrases, human approval, audit logging, rate limiting, and data masking provide additional controls. Secret values and certificate keys are masked in tool output.

Setup and configuration

The normal runtime requires uv and Python 3.12 or newer, which uv supplies when using the published package. A Rancher API token is also required. The simplest client configuration runs uvx rancher-mcp with RANCHER_URL and RANCHER_TOKEN environment variables. Source checkouts can be started with uv run --directory /path/to/mcp-rancher rancher-mcp, and the development setup uses the repository’s make setup and make dev commands.

Multiple Rancher installations can be configured with RANCHER_INSTANCES_JSON. Each instance can define its URL, token, SSL verification behavior, and read-only status. RANCHER_DEFAULT_INSTANCE selects the default, and must refer to a configured instance. The RANCHER_READ_ONLY setting can be used as an additional read-only control.

The server communicates over stdio and can be registered with Claude Code, Claude Desktop, or another MCP client that accepts a JSON server entry. Tool exposure can be reduced for constrained hosts with RANCHER_TOOLSETS; otherwise, the full registry remains available.

Tools and capabilities

Representative tool groups include:

  • Discover Rancher versions, schemas, and capability domains.
  • List and manipulate generic Norman or Steve resources.
  • Inspect pods, deployments, Longhorn volumes, policy reports, and other typed domains.
  • Scale or restart deployments, suspend CronJobs, cordon nodes, and create secrets through guarded write tools.
  • Run cluster, project, pod, and rollout operator workflows.
  • Watch resources and wait for rollout changes.

The generic engine is useful when a Rancher resource does not have a dedicated curated tool. Curated tools are intended for common paths where typed models and structured output are preferable.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Rancher MCP

rancher-mcp is an MCP server that connects AI clients to Rancher-managed Kubernetes through Rancher’s Norman /v3 and Steve /v1 APIs. Its main tools support discovery, generic resource CRUD, actions, links, watches, typed operational reads, guarded writes, and operator workflows across configured Rancher instances.

Install it through `uvx rancher-mcp`, which fetches the package from PyPI and runs it with Python 3.12 or newer. Configure `RANCHER_URL` and `RANCHER_TOKEN` in the MCP client environment. A source checkout can instead run with `uv run --directory /path/to/mcp-rancher rancher-mcp`.

Yes, rancher-mcp supports multiple configured instances through `RANCHER_INSTANCES_JSON`. Each entry can define its URL, token, SSL verification setting, and read-only mode. Set `RANCHER_DEFAULT_INSTANCE` to choose the default, and use the optional `instance` argument on tools to select another instance.

Set an instance’s `read_only` value to `true` in `RANCHER_INSTANCES_JSON`, or use `RANCHER_READ_ONLY=true` for the single-instance configuration. A read-only instance rejects mutations at the configuration layer, and its HTTP client sends only read requests.

Yes, rancher-mcp works with Claude Code and Claude Desktop over stdio. Claude Code can register it with `claude mcp add`, while Claude Desktop and clients accepting JSON MCP server entries can use `uvx rancher-mcp` with the Rancher URL and token in the environment.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewRancher MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/rancher-mcp?style=directory)](https://allmcps.com/mcp/rancher-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/rancher-mcp"><img src="https://allmcps.com/api/badge/rancher-mcp?style=directory" alt="Rancher MCP on AllMCPs" /></a>