io.github.sandeepbazar/ocm-mcp-server
Guardrailed fleet ops for AI agents: multi-cluster Kubernetes via OCM with policy, approval, audit.
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).
ocm-mcp-serverclaude mcp add ocm-mcp-server -e 'KUBECONFIG=<KUBECONFIG>' -e 'OCM_MCP_HUB_CONTEXT=<OCM_MCP_HUB_CONTEXT>' -e 'OCM_MCP_READ_ONLY=<OCM_MCP_READ_ONLY>' -- uvx ocm-mcp-server==0.4.0
{
"mcpServers": {
"ocm-mcp-server": {
"command": "uvx",
"args": [
"ocm-mcp-server==0.4.0"
],
"env": {
"KUBECONFIG": "<KUBECONFIG>",
"OCM_MCP_HUB_CONTEXT": "<OCM_MCP_HUB_CONTEXT>",
"OCM_MCP_READ_ONLY": "<OCM_MCP_READ_ONLY>"
}
}
}
}
Environment variables
KUBECONFIGrequired Path to the kubeconfig with the OCM hub context (and optional spoke contexts).OCM_MCP_HUB_CONTEXTKubeconfig context name of the OCM hub cluster (defaults to the current context).OCM_MCP_READ_ONLYSet to 'true' to disable the gated write path entirely (read-only fleet access).
ghcr.io/sandeepbazar/ocm-mcp-server:0.4.0claude mcp add ocm-mcp-server -e 'KUBECONFIG=<KUBECONFIG>' -e 'OCM_MCP_HUB_CONTEXT=<OCM_MCP_HUB_CONTEXT>' -e 'OCM_MCP_READ_ONLY=<OCM_MCP_READ_ONLY>' -- docker run -i --rm ghcr.io/sandeepbazar/ocm-mcp-server:0.4.0
{
"mcpServers": {
"ocm-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/sandeepbazar/ocm-mcp-server:0.4.0"
],
"env": {
"KUBECONFIG": "<KUBECONFIG>",
"OCM_MCP_HUB_CONTEXT": "<OCM_MCP_HUB_CONTEXT>",
"OCM_MCP_READ_ONLY": "<OCM_MCP_READ_ONLY>"
}
}
}
}
Environment variables
KUBECONFIGrequired Path (inside the container) to the mounted kubeconfig with the OCM hub context.OCM_MCP_HUB_CONTEXTKubeconfig context name of the OCM hub cluster (defaults to the current context).OCM_MCP_READ_ONLYSet to 'true' to disable the gated write path entirely (read-only fleet access).
Frequently asked questions
What is io.github.sandeepbazar/ocm-mcp-server?
Guardrailed fleet ops for AI agents: multi-cluster Kubernetes via OCM with policy, approval, audit.
How do I install io.github.sandeepbazar/ocm-mcp-server?
It runs on your machine. In Claude Code: claude mcp add ocm-mcp-server -e 'KUBECONFIG=<KUBECONFIG>' -e 'OCM_MCP_HUB_CONTEXT=<OCM_MCP_HUB_CONTEXT>' -e 'OCM_MCP_READ_ONLY=<OCM_MCP_READ_ONLY>' -- uvx ocm-mcp-server==0.4.0. For other clients, paste the JSON configuration from this page into their MCP settings.
Does io.github.sandeepbazar/ocm-mcp-server need an API key?
Yes. It expects KUBECONFIG, which you set in its configuration.
Is io.github.sandeepbazar/ocm-mcp-server open source?
Its code is public on GitHub, but the repository does not declare a standard license.
Who maintains io.github.sandeepbazar/ocm-mcp-server?
It is published by sandeepbazar. 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.