Rancher

Official registry Other

MCP server for Rancher API integration

What can you do with Rancher?

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

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

PYPI package rancher-mcp-server
Claude Code
claude mcp add rancher -e 'RANCHER_API_KEY=<your rancher_api_key>' -e 'RANCHER_API_URL=<RANCHER_API_URL>' -- uvx rancher-mcp-server==0.1.0
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "rancher": {
            "command": "uvx",
            "args": [
                "rancher-mcp-server==0.1.0"
            ],
            "env": {
                "RANCHER_API_KEY": "<your rancher_api_key>",
                "RANCHER_API_URL": "<RANCHER_API_URL>"
            }
        }
    }
}

Environment variables

  • RANCHER_API_KEY required secret API Key for RANCHER
  • RANCHER_API_URL API URL for RANCHER

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. Rancher MCP Server
  2. Rancher Mcp Server
  3. Overview
  4. Features
  5. Installation
  6. Configuration
  7. Quick Start
  8. License

Rancher MCP Server

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

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 .

Configuration

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

Quick Start

from rancher_mcp import RancherMCPServer

# Initialize the server
server = RancherMCPServer()

# Start the server
server.start()

License

MIT License - see LICENSE file for details

Frequently asked questions

What is Rancher?

MCP server for Rancher API integration

How do I install Rancher?

It runs on your machine. In Claude Code: claude mcp add rancher -e 'RANCHER_API_KEY=<your rancher_api_key>' -e 'RANCHER_API_URL=<RANCHER_API_URL>' -- uvx rancher-mcp-server==0.1.0. For other clients, paste the JSON configuration from this page into their MCP settings.

Does Rancher need an API key?

Yes. It expects RANCHER_API_KEY, which you set in its configuration.

Is Rancher open source?

Its code is public on GitHub, but the repository does not declare a standard license.

Who maintains Rancher?

It is published by asklokesh. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.