OpenShift MCP Server logo

OpenShift MCP Server

Manage OpenShift and Kubernetes resources through MCP tools backed by the oc command-line interface.

Install OpenShift MCP Server

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

SSE (Remote)
Server URL
http://localhost:3000/sse

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

OpenShift MCP Server MCP server exposes OpenShift and Kubernetes cluster operations through the oc CLI for MCP clients. It supports authentication, API discovery, resource management, application deployment, scaling, logging, and operator installation. Use it when an AI assistant needs to inspect or modify a cluster, deploy from a Git repository, or investigate workloads. It runs over STDIO or HTTP/SSE and requires Node.js, oc, and cluster access.

Use cases

  • Inspect cluster resources and API schemas
  • Deploy applications from Git repositories
  • Scale OpenShift workloads
  • Retrieve and analyze pod logs
  • Install OpenShift operators

Key features

  • OpenShift and Kubernetes resource management
  • oc CLI-backed MCP tools
  • Git-based application deployment with S2I
  • Workload scaling and log retrieval
  • Operator installation through OLM, Helm, or manifests
  • STDIO and HTTP/SSE transports

Tools13

What OpenShift MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~32 tokens of context

Security & health

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

ActiveLast checked 3d ago

Recent health check succeeded.

7/7 checks healthy over the last 47d

Supply-chain signal

1 high-severity advisory on record for this package. Most advisories affect transitive dependencies and may not be exploitable in this server's actual usage — this is a directional signal, not a security audit.

Critical 1High 0Medium 0Low 0

Scanned 24d ago via OSV.dev · http://localhost:3000/sse (npm)

Adoption & maintenance

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

GitHub stars1Stargazers on the source repository.
Last commit4mo agoMost recent push to the default branch.
Tools exposed13Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How OpenShift MCP Server works

What OpenShift MCP Server MCP server does

OpenShift MCP Server MCP server connects MCP clients to an OpenShift or Kubernetes cluster through the oc command-line interface. It gives an AI assistant tools for logging in, discovering API resources, reading schemas, inspecting objects, and managing resource lifecycles.

The available operations cover common administrative and application workflows. An assistant can retrieve, create, apply, delete, patch, and describe resources such as pods, deployments, services, and routes. It can also deploy an application from a Git repository with an S2I build, change replica counts, retrieve logs, and install operators through OLM, Helm, or manifests.

Read-only MCP resources provide cluster information, project details, and application templates. Prompts supply troubleshooting and monitoring guidance, while log sampling can identify patterns and add context to pod log analysis.

How it works

Each MCP tool maps to an OpenShift CLI operation and returns the resulting cluster information or command outcome to the client. Authentication supports either an access token or username and password. API discovery tools can list resources by API group or namespace scope, and the explanation tool can document a resource or a nested field.

The server offers STDIO for direct local client integration and HTTP/SSE for remote or web-oriented connections. The HTTP mode starts a local HTTP server, which can be reached through an MCP remote connection using the documented SSE endpoint.

Setup and configuration

OpenShift MCP Server MCP server requires Node.js 18 or newer, an installed and configured oc executable, and access to an OpenShift cluster. From a source checkout, install dependencies and build the TypeScript project before starting it.

For a local MCP client, configure the server with Node as the command and point its arguments to dist/index.js. The documented configuration accepts OPENSHIFT_CONTEXT for the OpenShift context and OPENSHIFT_NAMESPACE for the default namespace.

Use npm start for STDIO operation, or npm run start:http for HTTP/SSE. The repository also documents npm test, npm run dev, and npm run build for development workflows.

Tools and capabilities

The server exposes these tool groups:

  • Authentication: oc_login.
  • Discovery and schemas: oc_api_resources, oc_explain.
  • Resource operations: oc_get, oc_create, oc_apply, oc_delete, oc_patch, and oc_describe.
  • Application operations: oc_new_app, oc_scale, and oc_logs.
  • Operator installation: oc_install_operator.

oc_new_app supports deployment from Git repositories with S2I builds. oc_scale handles deployments, deployment configurations, ReplicaSets, and StatefulSets. oc_logs retrieves logs from pods, deployments, and builds with filtering options.

Limitations and notes

OpenShift MCP Server MCP server depends on the local oc CLI and the permissions of the connected cluster identity. It does not replace cluster access controls or provide access without a configured OpenShift connection.

The README identifies OpenShift 4.x and Kubernetes 1.25+ as supported platform versions. Destructive and mutating operations, including deletion, patching, applying manifests, scaling, and operator installation, should be used with the appropriate namespace and cluster permissions. HTTP/SSE is available for remote access, but the documented setup starts the service locally and exposes its SSE endpoint.

Reviews

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

Frequently Asked Questions about OpenShift MCP Server

OpenShift MCP Server is an MCP server that connects AI assistants to OpenShift and Kubernetes clusters through the oc CLI. Its main tools support login, API discovery, resource inspection and changes, Git-based application deployment, workload scaling, log retrieval, and operator installation. It runs over STDIO or HTTP/SSE.

Install it by cloning the repository, running npm install, and building with npm run build. You also need Node.js 18 or newer, the oc CLI, and access to an OpenShift cluster. Start local STDIO mode with npm start, then add the generated dist/index.js path to your MCP client configuration.

Yes, OpenShift MCP Server works with Cursor. Add an MCP server entry that runs Node against the built dist/index.js file, and provide OPENSHIFT_CONTEXT and OPENSHIFT_NAMESPACE in the environment configuration when needed.

Yes, it can deploy an application from a Git repository with the oc_new_app tool.

Use its HTTP/SSE transport for remote access. Start the HTTP server with npm run start:http, then connect an MCP remote client to the documented local SSE endpoint using the SSE-only transport.

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 PreviewOpenShift MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/openshift-mcp-server?style=directory)](https://allmcps.com/mcp/openshift-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/openshift-mcp-server"><img src="https://allmcps.com/api/badge/openshift-mcp-server?style=directory" alt="OpenShift MCP Server on AllMCPs" /></a>