Rancher MCP Server
by rexio.github.rex/rancher-mcpv1.59.0
Capability-aware MCP server for Rancher-managed Kubernetes: discovery, resources, workflows.
context tax
queued
security
queued
cold start
queued
freshness
Active6d ago
Install Rancher MCP server
Install in Claude Code
claude mcp add rancher-rex -e RANCHER_URL='<rancher-url>' -e RANCHER_TOKEN='<rancher-token>' -e RANCHER_INSTANCES_JSON='<rancher-instances-json>' -- uvx rancher-mcpInstall in Cursor
{
"mcpServers": {
"rancher-rex": {
"command": "uvx",
"args": [
"rancher-mcp"
],
"env": {
"RANCHER_URL": "<rancher-url>",
"RANCHER_TOKEN": "<rancher-token>",
"RANCHER_INSTANCES_JSON": "<rancher-instances-json>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"rancher-rex": {
"command": "uvx",
"args": [
"rancher-mcp"
],
"env": {
"RANCHER_URL": "<rancher-url>",
"RANCHER_TOKEN": "<rancher-token>",
"RANCHER_INSTANCES_JSON": "<rancher-instances-json>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"rancher-rex": {
"type": "stdio",
"command": "uvx",
"args": [
"rancher-mcp"
],
"env": {
"RANCHER_URL": "<rancher-url>",
"RANCHER_TOKEN": "<rancher-token>",
"RANCHER_INSTANCES_JSON": "<rancher-instances-json>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"rancher-rex": {
"command": "uvx",
"args": [
"rancher-mcp"
],
"env": {
"RANCHER_URL": "<rancher-url>",
"RANCHER_TOKEN": "<rancher-token>",
"RANCHER_INSTANCES_JSON": "<rancher-instances-json>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| RANCHER_URL | yes | — | Rancher server URL (single-instance mode) |
| RANCHER_TOKEN | yes | yes | Rancher API token (token-xxxxx:yyyyyyyyy) |
| RANCHER_VERIFY_SSL | — | — | Verify TLS certificates (default true) |
| RANCHER_INSTANCES_JSON | — | yes | Multi-instance config JSON (overrides single-instance mode; supports per-instance read_only) |
Freshness
Active — last maintenance signal 6d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-04 · 6d ago · GitHub
Latest release
2026-08-25 · 45d ago · GitHub · v1.59.0
Package published
no data · npm/PyPI
Registry entry updated
2026-08-25 · 45d ago · official registry · v1.59.0
FAQ
›How do I install the Rancher MCP server in Claude Code?
Run: claude mcp add rancher-rex -e RANCHER_URL='<rancher-url>' -e RANCHER_TOKEN='<rancher-token>' -e RANCHER_INSTANCES_JSON='<rancher-instances-json>' -- uvx rancher-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Rancher require an API key?
Yes. It expects RANCHER_URL, RANCHER_TOKEN, RANCHER_INSTANCES_JSON, of which 2 are secrets.
›Can I use Rancher as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Rancher in the official MCP registry?
Yes, as io.github.rex/rancher-mcp.
Alternatives to Rancher
Other devops & ci/cd MCP servers.