rancher mcp for VS Code
io.github.rex/rancher-mcp
Capability-aware MCP server for Rancher-managed Kubernetes: discovery, resources, workflows.
client:VS Code
transport:stdio
runtime:pypi
Install rancher mcp in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "rancher-url",
"description": "RANCHER_URL",
"password": true
},
{
"type": "promptString",
"id": "rancher-token",
"description": "RANCHER_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "rancher-verify-ssl",
"description": "RANCHER_VERIFY_SSL",
"password": true
},
{
"type": "promptString",
"id": "rancher-instances-json",
"description": "RANCHER_INSTANCES_JSON",
"password": true
}
],
"servers": {
"rancher-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"rancher-mcp"
],
"env": {
"RANCHER_URL": "${input:rancher-url}",
"RANCHER_TOKEN": "${input:rancher-token}",
"RANCHER_VERIFY_SSL": "${input:rancher-verify-ssl}",
"RANCHER_INSTANCES_JSON": "${input:rancher-instances-json}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs