Guardrailed fleet ops for AI agents: multi-cluster Kubernetes via OCM with policy, approval, audit.
registry version 0.4.0
Python
uvx ocm-mcp-serverPython
uvx ocm-mcp-server@0.4.0Docker
docker run -i --rm ghcr.io/sandeepbazar/ocm-mcp-server:0.4.0
Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"ocm-mcp-server-2": {
"command": "uvx",
"args": [
"ocm-mcp-server"
],
"env": {
"KUBECONFIG": "<YOUR_KUBECONFIG>"
}
}
}
}{
"mcpServers": {
"ocm-mcp-server-2": {
"command": "uvx",
"args": [
"ocm-mcp-server@0.4.0"
],
"env": {
"KUBECONFIG": "<YOUR_KUBECONFIG>"
}
}
}
}Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add --env KUBECONFIG=<YOUR_KUBECONFIG> ocm-mcp-server-2 -- uvx ocm-mcp-server
claude mcp add --env KUBECONFIG=<YOUR_KUBECONFIG> ocm-mcp-server-2 -- uvx ocm-mcp-server@0.4.0
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"ocm-mcp-server-2": {
"command": "uvx",
"args": [
"ocm-mcp-server"
],
"env": {
"KUBECONFIG": "<YOUR_KUBECONFIG>"
}
}
}
}{
"mcpServers": {
"ocm-mcp-server-2": {
"command": "uvx",
"args": [
"ocm-mcp-server@0.4.0"
],
"env": {
"KUBECONFIG": "<YOUR_KUBECONFIG>"
}
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"ocm-mcp-server-2": {
"command": "uvx",
"args": [
"ocm-mcp-server"
],
"env": {
"KUBECONFIG": "<YOUR_KUBECONFIG>"
}
}
}
}{
"servers": {
"ocm-mcp-server-2": {
"command": "uvx",
"args": [
"ocm-mcp-server@0.4.0"
],
"env": {
"KUBECONFIG": "<YOUR_KUBECONFIG>"
}
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"ocm-mcp-server-2": {
"command": "uvx",
"args": [
"ocm-mcp-server"
],
"env": {
"KUBECONFIG": "<YOUR_KUBECONFIG>"
}
}
}
}{
"mcpServers": {
"ocm-mcp-server-2": {
"command": "uvx",
"args": [
"ocm-mcp-server@0.4.0"
],
"env": {
"KUBECONFIG": "<YOUR_KUBECONFIG>"
}
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
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).Distributed as Python, Docker, listed under Developer Tools. Review our MCP security guide before granting access to real data.
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/sandeepbazar/ocm-mcp-server. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/ocm-mcp-server-2/)
HTML
<a href="https://mcpnav.net/server/ocm-mcp-server-2/"><img src="https://mcpnav.net/badge/ocm-mcp-server-2.svg" alt="Listed on MCPNav" height="20"></a>