Kubernetes & OpenShift MCP Server

Inspect Kubernetes and OpenShift resources with the containers project’s MCP server. Compare cluster contexts, workload tools and read-only configuration.

Local serverstdioPython

What is the Kubernetes & OpenShift MCP Server?

The containers project’s Kubernetes MCP server connects assistants to Kubernetes and OpenShift operations. It can provide cluster and workload context without treating container packaging as the integration’s purpose. The project documents configuration, toolsets and dedicated guidance for a read-only Kubernetes setup.

Investigate a workload in the correct context

Start with the cluster context, namespace and workload name. Retrieve its state and relevant diagnostic information before forming an explanation. Keep the observed resource identifiers with the result so a deployment in another namespace is not mistaken for the target.

Register the server and choose access

The README provides npx -y kubernetes-mcp-server@latest as a local launch. It also describes other distribution methods and configuration through a TOML file. Select the intended kubeconfig and review the read-only setting and toolsets. Actual cluster access is limited by the Kubernetes identity used for the connection.

Maintainer’s setup and tool reference. Browse kubernetes MCP servers for related workflows.

How to install the Kubernetes & OpenShift MCP Server

{
  "mcpServers": {
    "kubernetes": {
      "command": "npx",
      "args": [
        "-y",
        "kubernetes-mcp-server@latest"
      ]
    }
  }
}

Select the intended kubeconfig and review read_only and toolsets in the project configuration guide.

Configuration

Access to a Kubernetes or OpenShift cluster through the configured identity and kubeconfig.

Example prompts to try

  • “Inspect this deployment in the named cluster and namespace, then explain the observed workload state.”

Frequently asked questions

No. This project specifically exposes Kubernetes and OpenShift operations.