Skip to main content
Glama
flaviagaia

rancher-mcp-server

by flaviagaia

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
RANCHER_URLYesURL of the Rancher server (e.g., https://rancher.example.com)
RANCHER_TOKENYesAPI token for Rancher (format: token-xxxxx:yyyyyyyyyyyy)
RANCHER_VERIFY_TLSNoSet to 'false' to disable TLS verification (e.g., for self-signed certificates)
RANCHER_MCP_ALLOW_WRITENoSet to 'true' to enable write operations like scale_workload and redeploy_workload
RANCHER_MCP_MAX_REPLICASNoMaximum replicas for scaling (default 20)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_clustersA

List all Rancher-managed clusters with state and capacity summary.

list_nodesA

List the nodes of a cluster with roles, state and requested resources.

list_projectsA

List Rancher projects of a cluster (project ids are needed to inspect workloads).

list_workloadsA

List workloads (deployments, daemonsets...) of a project, optionally filtered by namespace.

list_podsA

List pods of a project. Set only_unhealthy=True to see only pods in CrashLoopBackOff/Error/Pending states or with more than 3 restarts.

get_pod_logsB

Fetch the last N log lines of a pod. Use previous=True to read logs from the previous (crashed) container instance.

get_eventsB

List recent Kubernetes events of a cluster (Warning events by default).

diagnose_workloadA

One-shot diagnosis of a workload: state, unhealthy pods, restart counts and related Warning events. Ideal first call when something is failing.

scale_workloadA

Scale a workload to N replicas. Requires RANCHER_MCP_ALLOW_WRITE=true. Capped by RANCHER_MCP_MAX_REPLICAS (default 20).

redeploy_workloadB

Trigger a rolling redeploy of a workload (equivalent to the Rancher UI 'Redeploy' button). Requires RANCHER_MCP_ALLOW_WRITE=true.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/flaviagaia/rancher-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server