O

Ocm MCP Server

by ocm-mcp-server · io.github.ocm-mcp-server/ocm-mcp-server

An MCP server that enables AI agents to safely operate multi-cluster Kubernetes fleets through an Open Cluster Management hub, with policy enforcement, human approval, and audit tracing.

pypi Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-ocm-mcp-server-ocm-mcp-server": {
      "command": "uvx",
      "args": [
        "ocm-mcp-server"
      ],
      "env": {
        "KUBECONFIG": "<VALUE>",
        "OCM_MCP_HUB_CONTEXT": "",
        "OCM_MCP_READ_ONLY": "",
        "OCM_MCP_HOME": "~/.ocm-mcp",
        "OCM_MCP_ISSUER": "ocm-mcp",
        "OCM_MCP_AUDIENCE": "ocm-mcp-server",
        "OCM_MCP_AUDIT_ECHO": "",
        "OCM_MCP_CLIENT_TTL": "600",
        "OCM_MCP_SIGNER_KEY": "~/.ocm-mcp/approval_ed25519",
        "OCM_MCP_APPROVAL_TTL": "3600",
        "OCM_MCP_HEALTH_LIMIT": "500",
        "OCM_MCP_METRICS_HOST": "127.0.0.1",
        "OCM_MCP_METRICS_PORT": "",
        "OCM_MCP_VERIFIER_KEY": "~/.ocm-mcp/approval_ed25519.pub",
        "OCM_MCP_SPOKE_TIMEOUT": "30",
        "OCM_MCP_FANOUT_WORKERS": "8",
        "OCM_MCP_REQUIRE_DIGEST": "",
        "OCM_MCP_SPOKE_CONTEXTS": "<VALUE>",
        "OCM_MCP_MAX_HPA_REPLICAS": "100",
        "OCM_MCP_MAX_PROPOSAL_BYTES": "262144",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-ocm-mcp-server-ocm-mcp-server": {
      "command": "uvx",
      "args": [
        "ocm-mcp-server"
      ],
      "env": {
        "KUBECONFIG": "<VALUE>",
        "OCM_MCP_HUB_CONTEXT": "",
        "OCM_MCP_READ_ONLY": "",
        "OCM_MCP_HOME": "~/.ocm-mcp",
        "OCM_MCP_ISSUER": "ocm-mcp",
        "OCM_MCP_AUDIENCE": "ocm-mcp-server",
        "OCM_MCP_AUDIT_ECHO": "",
        "OCM_MCP_CLIENT_TTL": "600",
        "OCM_MCP_SIGNER_KEY": "~/.ocm-mcp/approval_ed25519",
        "OCM_MCP_APPROVAL_TTL": "3600",
        "OCM_MCP_HEALTH_LIMIT": "500",
        "OCM_MCP_METRICS_HOST": "127.0.0.1",
        "OCM_MCP_METRICS_PORT": "",
        "OCM_MCP_VERIFIER_KEY": "~/.ocm-mcp/approval_ed25519.pub",
        "OCM_MCP_SPOKE_TIMEOUT": "30",
        "OCM_MCP_FANOUT_WORKERS": "8",
        "OCM_MCP_REQUIRE_DIGEST": "",
        "OCM_MCP_SPOKE_CONTEXTS": "<VALUE>",
        "OCM_MCP_MAX_HPA_REPLICAS": "100",
        "OCM_MCP_MAX_PROPOSAL_BYTES": "262144",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-ocm-mcp-server-ocm-mcp-server": {
      "command": "uvx",
      "args": [
        "ocm-mcp-server"
      ],
      "env": {
        "KUBECONFIG": "<VALUE>",
        "OCM_MCP_HUB_CONTEXT": "",
        "OCM_MCP_READ_ONLY": "",
        "OCM_MCP_HOME": "~/.ocm-mcp",
        "OCM_MCP_ISSUER": "ocm-mcp",
        "OCM_MCP_AUDIENCE": "ocm-mcp-server",
        "OCM_MCP_AUDIT_ECHO": "",
        "OCM_MCP_CLIENT_TTL": "600",
        "OCM_MCP_SIGNER_KEY": "~/.ocm-mcp/approval_ed25519",
        "OCM_MCP_APPROVAL_TTL": "3600",
        "OCM_MCP_HEALTH_LIMIT": "500",
        "OCM_MCP_METRICS_HOST": "127.0.0.1",
        "OCM_MCP_METRICS_PORT": "",
        "OCM_MCP_VERIFIER_KEY": "~/.ocm-mcp/approval_ed25519.pub",
        "OCM_MCP_SPOKE_TIMEOUT": "30",
        "OCM_MCP_FANOUT_WORKERS": "8",
        "OCM_MCP_REQUIRE_DIGEST": "",
        "OCM_MCP_SPOKE_CONTEXTS": "<VALUE>",
        "OCM_MCP_MAX_HPA_REPLICAS": "100",
        "OCM_MCP_MAX_PROPOSAL_BYTES": "262144",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-ocm-mcp-server-ocm-mcp-server": {
      "command": "uvx",
      "args": [
        "ocm-mcp-server"
      ],
      "env": {
        "KUBECONFIG": "<VALUE>",
        "OCM_MCP_HUB_CONTEXT": "",
        "OCM_MCP_READ_ONLY": "",
        "OCM_MCP_HOME": "~/.ocm-mcp",
        "OCM_MCP_ISSUER": "ocm-mcp",
        "OCM_MCP_AUDIENCE": "ocm-mcp-server",
        "OCM_MCP_AUDIT_ECHO": "",
        "OCM_MCP_CLIENT_TTL": "600",
        "OCM_MCP_SIGNER_KEY": "~/.ocm-mcp/approval_ed25519",
        "OCM_MCP_APPROVAL_TTL": "3600",
        "OCM_MCP_HEALTH_LIMIT": "500",
        "OCM_MCP_METRICS_HOST": "127.0.0.1",
        "OCM_MCP_METRICS_PORT": "",
        "OCM_MCP_VERIFIER_KEY": "~/.ocm-mcp/approval_ed25519.pub",
        "OCM_MCP_SPOKE_TIMEOUT": "30",
        "OCM_MCP_FANOUT_WORKERS": "8",
        "OCM_MCP_REQUIRE_DIGEST": "",
        "OCM_MCP_SPOKE_CONTEXTS": "<VALUE>",
        "OCM_MCP_MAX_HPA_REPLICAS": "100",
        "OCM_MCP_MAX_PROPOSAL_BYTES": "262144",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-ocm-mcp-server-ocm-mcp-server": {
      "command": "uvx",
      "args": [
        "ocm-mcp-server"
      ],
      "env": {
        "KUBECONFIG": "<VALUE>",
        "OCM_MCP_HUB_CONTEXT": "",
        "OCM_MCP_READ_ONLY": "",
        "OCM_MCP_HOME": "~/.ocm-mcp",
        "OCM_MCP_ISSUER": "ocm-mcp",
        "OCM_MCP_AUDIENCE": "ocm-mcp-server",
        "OCM_MCP_AUDIT_ECHO": "",
        "OCM_MCP_CLIENT_TTL": "600",
        "OCM_MCP_SIGNER_KEY": "~/.ocm-mcp/approval_ed25519",
        "OCM_MCP_APPROVAL_TTL": "3600",
        "OCM_MCP_HEALTH_LIMIT": "500",
        "OCM_MCP_METRICS_HOST": "127.0.0.1",
        "OCM_MCP_METRICS_PORT": "",
        "OCM_MCP_VERIFIER_KEY": "~/.ocm-mcp/approval_ed25519.pub",
        "OCM_MCP_SPOKE_TIMEOUT": "30",
        "OCM_MCP_FANOUT_WORKERS": "8",
        "OCM_MCP_REQUIRE_DIGEST": "",
        "OCM_MCP_SPOKE_CONTEXTS": "<VALUE>",
        "OCM_MCP_MAX_HPA_REPLICAS": "100",
        "OCM_MCP_MAX_PROPOSAL_BYTES": "262144",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-ocm-mcp-server-ocm-mcp-server": {
      "command": "uvx",
      "args": [
        "ocm-mcp-server"
      ],
      "env": {
        "KUBECONFIG": "<VALUE>",
        "OCM_MCP_HUB_CONTEXT": "",
        "OCM_MCP_READ_ONLY": "",
        "OCM_MCP_HOME": "~/.ocm-mcp",
        "OCM_MCP_ISSUER": "ocm-mcp",
        "OCM_MCP_AUDIENCE": "ocm-mcp-server",
        "OCM_MCP_AUDIT_ECHO": "",
        "OCM_MCP_CLIENT_TTL": "600",
        "OCM_MCP_SIGNER_KEY": "~/.ocm-mcp/approval_ed25519",
        "OCM_MCP_APPROVAL_TTL": "3600",
        "OCM_MCP_HEALTH_LIMIT": "500",
        "OCM_MCP_METRICS_HOST": "127.0.0.1",
        "OCM_MCP_METRICS_PORT": "",
        "OCM_MCP_VERIFIER_KEY": "~/.ocm-mcp/approval_ed25519.pub",
        "OCM_MCP_SPOKE_TIMEOUT": "30",
        "OCM_MCP_FANOUT_WORKERS": "8",
        "OCM_MCP_REQUIRE_DIGEST": "",
        "OCM_MCP_SPOKE_CONTEXTS": "<VALUE>",
        "OCM_MCP_MAX_HPA_REPLICAS": "100",
        "OCM_MCP_MAX_PROPOSAL_BYTES": "262144",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
KUBECONFIG Yes Kubeconfig file path(s). Defaults to ~/.kube/config.
OCM_MCP_HUB_CONTEXT Yes The kubeconfig context that points at the OCM hub cluster. Required. Empty uses current context.
OCM_MCP_READ_ONLY No Set to '1'/'true' for read-only mode. Default off.
OCM_MCP_HOME No State directory. Default ~/.ocm-mcp. Default: ~/.ocm-mcp
OCM_MCP_ISSUER No Token issuer. Default ocm-mcp. Default: ocm-mcp
OCM_MCP_AUDIENCE No Token audience. Default ocm-mcp-server. Default: ocm-mcp-server
OCM_MCP_AUDIT_ECHO No Set to '1' to echo audit lines to stderr. Default off.
OCM_MCP_CLIENT_TTL No Client cache TTL in seconds. Default 600. Default: 600
OCM_MCP_SIGNER_KEY No Path to the private Ed25519 signing key. Recommended to set off the server. Default OCM_MCP_HOME/approval_ed25519. Default: ~/.ocm-mcp/approval_ed25519
OCM_MCP_APPROVAL_TTL No Approval token lifetime in seconds. Default 3600. Default: 3600
OCM_MCP_HEALTH_LIMIT No Max pods/deployments fetched by get_cluster_health. Default 500. Default: 500
OCM_MCP_METRICS_HOST No Interface for metrics endpoint. Default 127.0.0.1. Default: 127.0.0.1
OCM_MCP_METRICS_PORT No Port to expose Prometheus metrics. Default off.
OCM_MCP_VERIFIER_KEY No Path to the public verifier key. Default OCM_MCP_HOME/approval_ed25519.pub. Default: ~/.ocm-mcp/approval_ed25519.pub
OCM_MCP_SPOKE_TIMEOUT No Spoke read timeout in seconds. Default 30. Default: 30
OCM_MCP_FANOUT_WORKERS No Concurrent spoke scans during get_fleet_health. Default 8. Default: 8
OCM_MCP_REQUIRE_DIGEST No Set to '1' to require digest-pinned images. Default off.
OCM_MCP_SPOKE_CONTEXTS No Comma-separated <managed-cluster-name>=<kubeconfig-context> pairs for accessing spoke clusters (events, logs, health). Optional for hub-level tools.
OCM_MCP_MAX_HPA_REPLICAS No Max HPA maxReplicas. Default 100. Default: 100
OCM_MCP_MAX_PROPOSAL_BYTES No Max proposal size in bytes. Default 262144. Default: 262144
OTEL_EXPORTER_OTLP_ENDPOINT No Set to emit OTel trace spans per tool call. Unset disables tracing.

Similar servers