rancher-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| RANCHER_URL | Yes | URL of the Rancher server (e.g., https://rancher.example.com) | |
| RANCHER_TOKEN | Yes | API token for Rancher (format: token-xxxxx:yyyyyyyyyyyy) | |
| RANCHER_VERIFY_TLS | No | Set to 'false' to disable TLS verification (e.g., for self-signed certificates) | |
| RANCHER_MCP_ALLOW_WRITE | No | Set to 'true' to enable write operations like scale_workload and redeploy_workload | |
| RANCHER_MCP_MAX_REPLICAS | No | Maximum replicas for scaling (default 20) |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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