Rancher

io.github.asklokeshPublished by GitHub account asklokeshv0.1.0Updated Oct 24, 2026

MCP server for Rancher API integration

VerifiedSTDIODesktop onlyCloud & InfrastructureDeveloper Tools

Overview

AI-generated overview

Local MCP server that connects an assistant to the Rancher Kubernetes management API for cluster and deployment operations.

What you can do
  • Work with the Rancher API through broad endpoint coverage, so an assistant can query and act on Rancher-managed Kubernetes resources.
  • Handle authentication against Rancher using the configured API key and API URL.
  • Rely on built-in rate limiting, error handling, retry logic and async calls for steadier API interaction.
  • No individual tools are listed in the manifest, so the exact operations depend on the server's implementation.
When to use it
Useful when you manage Kubernetes clusters through Rancher and want an assistant to reach the Rancher API directly from a local MCP client, for example to inspect or operate on deployments.
Requirements
Runs locally as a Python package (rancher-mcp-server, launched with uvx or pip). Needs the RANCHER_API_KEY secret and the RANCHER_API_URL environment variable, plus network access to your Rancher instance. Desktop client only.
Before you install
The server holds a Rancher API key, which typically grants broad control over clusters; store it carefully and scope it as narrowly as possible. It exposes comprehensive API coverage, so assistant actions may change or delete Kubernetes resources. Point RANCHER_API_URL only at a trusted Rancher endpoint.

Installation

In SourceWeft

  1. Open Rancher in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

Rancher MCP Server

A Model Context Protocol (MCP) server for integrating Rancher with GenAI applications.

Overview

Kubernetes management and deployment platform

Features

  • Comprehensive Rancher API coverage
  • Multiple authentication methods
  • Enterprise-ready with rate limiting
  • Full error handling and retry logic
  • Async support for better performance

Installation

bash
pip install rancher-mcp-server

Or install from source:

bash
git clone https://github.com/asklokesh/rancher-mcp-server.gitcd rancher-mcp-serverpip install -e .

Configuration

Create a .env file or set environment variables according to Rancher API requirements.

Quick Start

python
from rancher_mcp import RancherMCPServer
# Initialize the serverserver = RancherMCPServer()
# Start the serverserver.start()

License

MIT License - see LICENSE file for details

Source: README.md at commit ac4841b

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.0LatestSep 16, 2026

Score

40% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.