io.github.sandeepbazar/ocm-mcp-server

Official registry Cloud and DevOps

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).

PYPI package ocm-mcp-server
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
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "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

  • KUBECONFIG required Path to the kubeconfig with the OCM hub context (and optional spoke contexts).
  • OCM_MCP_HUB_CONTEXT Kubeconfig context name of the OCM hub cluster (defaults to the current context).
  • OCM_MCP_READ_ONLY Set to 'true' to disable the gated write path entirely (read-only fleet access).
OCI package ghcr.io/sandeepbazar/ocm-mcp-server:0.4.0
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>' -- docker run -i --rm ghcr.io/sandeepbazar/ocm-mcp-server:0.4.0
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "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

  • KUBECONFIG required Path (inside the container) to the mounted kubeconfig with the OCM hub context.
  • OCM_MCP_HUB_CONTEXT Kubeconfig context name of the OCM hub cluster (defaults to the current context).
  • OCM_MCP_READ_ONLY Set 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.