MCP Openshift logo

MCP Openshift

Connects AI agents to OpenShift and Kubernetes clusters for guarded inspection, troubleshooting, and selected workload operations.

Install MCP Openshift

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-openshift": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-openshift"
      ],
      "env": {
        "OPENSHIFT_SERVER": "YOUR_VALUE_HERE",
        "OPENSHIFT_TOKEN": "YOUR_VALUE_HERE",
        "OPENSHIFT_USERNAME": "YOUR_VALUE_HERE",
        "OPENSHIFT_PASSWORD": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @dockndevai/mcp-openshift

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Connects OpenShift and Kubernetes clusters through the mcp-openshift MCP server, exposing tools for projects, resources, pods, logs, deployments, routes, services, builds, and imagestreams. It authenticates with a console token or cluster username and password, then registers tools according to a read-only, read-write, or admin mode. Namespace restrictions, confirmation prompts, dry runs, audit logging, and optional risk checks constrain mutating actions. Reach for it when an agent needs cluster visibility or carefully controlled scaling, restarts, manifest application, or deletion.

Use cases

  • Inspect cluster resources and namespaces
  • Retrieve pod logs and recent events
  • Scale Deployments or DeploymentConfigs
  • Restart Deployments
  • Apply or delete resources with approval gates

Key features

  • Read-only cluster inspection
  • OpenShift token or password authentication
  • Pod logs and namespace events
  • Deployment scaling and restarts
  • Manifest apply and resource deletion controls
  • Namespace restrictions, dry runs, and audit logging

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 62d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · @dockndevai/mcp-openshift (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads369Package downloads in the last 30 days.
Last commit6d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Openshift works

What mcp-openshift does

The mcp-openshift MCP server gives an MCP-compatible agent access to selected OpenShift and Kubernetes cluster operations. It can verify the current identity, show accessible projects or namespaces, inspect resources by kind, retrieve pod logs, and read recent namespace events. Resource inspection can include specifications and status, while list operations support namespace and label-selector filters.

Operational tools are separated by capability level. Read-only mode exposes discovery and troubleshooting functions. Read-write mode adds workload scaling and Deployment restarts. Applying manifests and deleting resources require additional configuration and higher authorization, rather than becoming available automatically when a connection is established.

How it works

The server runs as an npm command through npx -y @dockndevai/mcp-openshift and communicates with the cluster API. Set the API endpoint in OPENSHIFT_SERVER, then authenticate with either a bearer token or a username and password. Tokens can come from the OpenShift web console or oc whoami -t. Password authentication uses the cluster's local OAuth flow and stores a cached token at ~/.mcp-openshift/token.json with restrictive permissions.

The mcp-openshift MCP server applies its own safety checks in addition to the account's Kubernetes or OpenShift RBAC. Tools above the configured mode are not registered. Write operations can be limited to an allowlisted set of namespaces, while system namespaces remain readable but cannot be changed. Apply, delete, and scale-to-zero operations require human approval through MCP elicitation.

Setup and configuration

A client configuration needs the server URL and a credential. OPENSHIFT_MODE defaults to read-only; use read-write or admin only when the broader operation set is appropriate. For clusters using a private certificate authority, provide OPENSHIFT_CA_CERT. OPENSHIFT_INSECURE_TLS=true disables certificate verification and is intended only for development.

Applying resources additionally requires OPENSHIFT_ALLOW_APPLY and a confirmation. Deletion requires admin mode, OPENSHIFT_ALLOW_DELETE, and confirmation. OPENSHIFT_DRY_RUN makes Kubernetes validate and admission-check writes without persisting them. Namespace controls are available through OPENSHIFT_NAMESPACE_ALLOWLIST and OPENSHIFT_PROTECTED_NAMESPACES.

The server can emit one JSON audit record per guarded operation to stderr with OPENSHIFT_AUDIT_LOG; Secret values are redacted. An optional OPENSHIFT_GUARD_MODE setting can make apply and delete consult a local laya-guard daemon. That guard can allow, request confirmation, or block an operation, and it fails closed.

Tools and capabilities

Available read-only tools include:

  • whoami for checking the authenticated identity
  • list_projects for visible projects or namespaces
  • list_resources for listing arbitrary resource kinds
  • get_resource for retrieving a resource's full specification and status
  • pod_logs for reading container logs
  • list_events for recent namespace events

Higher modes add scale for Deployments or DeploymentConfigs and rollout_restart for Deployments. With the relevant gates enabled, apply_resource creates or updates resources from manifests using server-side apply, and delete_resource removes a resource.

Limitations and notes

The server does not replace cluster RBAC: the connected account still determines what the API permits. Console tokens are short-lived and may need to be renewed; username/password authentication can re-login when its cached token expires. Passwords are sent to the cluster's OAuth endpoint and are not logged or written to disk.

The mcp-openshift MCP server is distributed under the MIT license. Its bundled openshift-safe-operations skill documents authentication, safety rules, and common triage workflows, but the server's enforced mode and approval gates remain the controlling safeguards.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Openshift

mcp-openshift is an MCP server that connects AI agents to OpenShift and Kubernetes clusters. Its main tools inspect projects, resources, pod logs, and events, while higher modes support scaling, Deployment restarts, manifest application, and deletion under configurable safety gates and human approval.

Install it by running `npx -y @dockndevai/mcp-openshift` from an MCP client configuration. Set `OPENSHIFT_SERVER` and either `OPENSHIFT_TOKEN` or the username/password variables, then choose an operation mode if the default read-only access is not sufficient.

Authenticate with an OpenShift bearer token or with a cluster username and password. You can copy a token from the web console's login command or use `oc whoami -t`; password authentication uses the cluster's local OAuth endpoint and refreshes an expired cached token.

Yes, mcp-openshift documents Cursor configuration alongside Claude Code, Codex, VS Code, and Windsurf. Configure the command as `npx` with `-y` and `@dockndevai/mcp-openshift`, then provide the cluster URL and credential through environment variables.

Set `OPENSHIFT_MODE=read-only` to expose only inspection tools. You can also use namespace allowlists and protected namespaces; applying or deleting resources requires separate enablement flags, and guarded operations can require human confirmation or run with Kubernetes dry-run validation.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Openshift AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-openshift?style=directory)](https://allmcps.com/mcp/mcp-openshift)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-openshift"><img src="https://allmcps.com/api/badge/mcp-openshift?style=directory" alt="MCP Openshift on AllMCPs" /></a>