Connects Claude to Rancher's Kubernetes management platform through its API. Built in Python with async support, rate limiting, and retry logic for production use. Handles multiple authentication methods and covers the Rancher API surface for managing clusters, workloads, and deployments. Useful when you need to query cluster status, deploy applications, or troubleshoot Kubernetes infrastructure through conversation. The implementation includes proper error handling and is designed for enterprise environments where you're already running Rancher to manage multiple Kubernetes clusters. Install via pip or clone from source to get started.
A Model Context Protocol (MCP) server for integrating Rancher with GenAI applications.
Kubernetes management and deployment platform
pip install rancher-mcp-server
Or install from source:
git clone https://github.com/asklokesh/rancher-mcp-server.git
cd rancher-mcp-server
pip install -e .
Create a .env file or set environment variables according to Rancher API requirements.
from rancher_mcp import RancherMCPServer
# Initialize the server
server = RancherMCPServer()
# Start the server
server.start()
MIT License - see LICENSE file for details
RANCHER_API_KEY*secretAPI Key for RANCHER
RANCHER_API_URLAPI URL for RANCHER