OpenShift MCP Server
Overview
Description from the maker (original English)
OpenShift/Kubernetes cluster management via the oc CLI for MCP clients
What you can do with it
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
- Connection: Runs on your computer
- Transport: stdio
- Category: Developer tools
Install
Pick the AI app you use, then copy the settings.
Passed 2/2 checks · Runs on your computer
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
You need a OpenShift MCP Server key (sign up on the maker’s site, may cost money) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
Install Node.js
One time only; it works for every server that needs Node.js
Sign up and create a OpenShift MCP Server key
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
Open the Claude desktop app’s settings file
SettingsDeveloperEdit Config
Paste these settings and save the file
{ "mcpServers": { "openshift": { "command": "npx", "args": [ "-y", "mcp-server-openshift" ], "env": { "OPENSHIFT_CONTEXT": "your-value", "OPENSHIFT_NAMESPACE": "your-value" } } } }Paste the key only into the app’s field, never into a chat or to anyone
Quit Claude and open it again
Try it
Use OpenShift MCP Server and tell me what you can do for me, then show me one thing✓ If Claude says it is using OpenShift MCP Server or shows a OpenShift MCP Server tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect OpenShift MCP Server yet
OpenShift MCP Server runs on your computer, but ChatGPT can only connect servers that run on the web
What you can do instead
A · Use an app that can connect OpenShift MCP Server
- You need a OpenShift MCP Server key (sign up on the maker’s site, may cost money) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
- You need a OpenShift MCP Server key (sign up on the maker’s site, may cost money) · Install Node.js on your computer first (one time)
- You need a OpenShift MCP Server key (sign up on the maker’s site, may cost money) · Install Node.js on your computer first (one time)
- You need a OpenShift MCP Server key (sign up on the maker’s site, may cost money) · Install Node.js on your computer first (one time)
B · Others in Developer tools that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
- Sentry✓ ChatGPT
- Front-End Checklist✓ ChatGPT
- Compiler Explorer✓ ChatGPT
Works with Claude Code, with some setup first
You need a OpenShift MCP Server key (sign up on the maker’s site, may cost money) · Install Node.js on your computer first (one time)
Install Node.js
One time only; it works for every server that needs Node.js
Sign up and create a OpenShift MCP Server key
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
Open Terminal
Mac: press Command+Space and type Terminal · Windows: open PowerShell
Paste this command and press Enter
claude mcp add openshift --env OPENSHIFT_CONTEXT=your-value --env OPENSHIFT_NAMESPACE=your-value -- npx -y mcp-server-openshiftReplace “your-value” with your key before pressing Enter
Paste the key only into the app’s field, never into a chat or to anyone
Type /mcp in Claude Code
You should see OpenShift MCP Server listed as connected
Try it
Use OpenShift MCP Server and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using OpenShift MCP Server or shows a OpenShift MCP Server tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
You need a OpenShift MCP Server key (sign up on the maker’s site, may cost money) · Install Node.js on your computer first (one time)
Install Node.js
One time only; it works for every server that needs Node.js
Sign up and create a OpenShift MCP Server key
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
Fill in your key
In the OpenShift MCP Server settings, OPENSHIFT_CONTEXT, OPENSHIFT_NAMESPACE is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Open the AI chat in Cursor in Agent mode
Try it
Use OpenShift MCP Server and tell me what you can do for me, then show me one thing✓ If Cursor says it is using OpenShift MCP Server or shows a OpenShift MCP Server tool in the answer, you are connected
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
You need a OpenShift MCP Server key (sign up on the maker’s site, may cost money) · Install Node.js on your computer first (one time)
Install Node.js
One time only; it works for every server that needs Node.js
Sign up and create a OpenShift MCP Server key
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
Fill in your key
In the OpenShift MCP Server settings, OPENSHIFT_CONTEXT, OPENSHIFT_NAMESPACE is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Open the AI chat in VS Code in Agent mode
Try it
Use OpenShift MCP Server and tell me what you can do for me, then show me one thing✓ If VS Code says it is using OpenShift MCP Server or shows a OpenShift MCP Server tool in the answer, you are connected
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
JSON settings are under “For developers” below
For developers: Terminal commands and JSON settings
Installed on your computer
Claude Code
claude mcp add openshift --env OPENSHIFT_CONTEXT=your-value --env OPENSHIFT_NAMESPACE=your-value -- npx -y mcp-server-openshiftClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"openshift": {
"command": "npx",
"args": [
"-y",
"mcp-server-openshift"
],
"env": {
"OPENSHIFT_CONTEXT": "your-value",
"OPENSHIFT_NAMESPACE": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"openshift": {
"command": "npx",
"args": [
"-y",
"mcp-server-openshift"
],
"env": {
"OPENSHIFT_CONTEXT": "your-value",
"OPENSHIFT_NAMESPACE": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"openshift": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-server-openshift"
],
"env": {
"OPENSHIFT_CONTEXT": "your-value",
"OPENSHIFT_NAMESPACE": "your-value"
}
}
}
}Values you fill in
OPENSHIFT_CONTEXTenvDefault OpenShift/Kubernetes contextOPENSHIFT_NAMESPACEenvDefault namespace/project
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
At a glance
- Downloads per weeki
- 51/wk
- Connection
- Runs on your computer
- Transport
- stdio
- Latest versioni
- 1.2.0
- Categoryi
- Developer tools
- Published to registryi
- Jun 25, 2026
- Code last changedi
- Oct 28, 2026
- Maker
- sanjaypsachdev
- Packages
npm: mcp-server-openshiftoci: docker.io/sanjaypsachdev/mcp-server-openshift:1.2.0- Website
- github.com
- Registry status
- Active
Which apps can use it
Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Related guides
What it can do
Runs on your computer; the tool list appears in your AI app after you install it.
Basic checksi
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 11, 2026
- ✓ Pass
Maker matches the repo
The registry name was verified with the GitHub account sanjaypsachdev, which owns the repo
- ✓ Pass
Still maintained
Code last changed 14 days ago
- … Not checked yet
Has a licence
We have not read this repo from GitHub yet
- – Not applicable
Endpoint responds
This one runs on your computer; there is no internet endpoint
- – Not applicable
Sign-in with OAuth
Runs on your computer and uses local settings instead
- … Not checked yet
No hidden instructions in tool descriptions
Runs on your computer; we can only read tool lists from internet endpoints
Discussion
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
User reviews
No reviews yet
Compared with others in Developer toolsi
- More stars than 69% of the other 5751 servers in this category
- Published to the registry more recently than 19% of the other 5751 servers in this category
- Basic checks equal to or better than 100% of the other 5751 servers in this category
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
Common questions
Is OpenShift MCP Server safe?
It passed 2 of 2 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
What keys or codes does it need?
The registry does not list a required key, though some servers ask you to sign in on first use.
Does it run on my computer or in the cloud?
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
Is it still maintained?
The GitHub repo last changed 14 days ago, and the latest version (1.2.0) reached the registry 5 months ago.
Which apps can use it?
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js, Docker on your computer.
What can I use instead?
In the same category: REA, Netdata, Front-End Checklist
Alternatives
Servers in the same category from other makers, sorted by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Front-End Checklist
Review frontend code and live pages against 386 quality-gated web development rules.
README from the maker
Open the README
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
OpenShift MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with comprehensive OpenShift/Kubernetes cluster management capabilities through the oc command-line interface.
Demo Video
Watch the oc-new-app tool deploy a complete Spring Boot application from GitHub to OpenShift:
https://github.com/user-attachments/assets/f4bace3f-755b-462f-8a8a-680e4dc02129
Features
- Cluster Information: Access comprehensive cluster status, nodes and configuration via MCP resources
- Resource Description: Describe any resource with multiple output formats including human-readable summaries
- Complete Resource Management: Create, read, update, delete, and patch all OpenShift/Kubernetes resources
- Application Deployment: Deploy applications from Git repositories with S2I builds and automatic route creation
- Operator Management: Install operators via OLM, Helm, or direct manifests
- Cluster Operations: Scaling, monitoring, troubleshooting and management
- Build Operations: Start and monitor OpenShift builds
- Scaling Operations: Scale deployments, replicasets and statefulsets
- Logging: Retrieve logs from pods and builds
- Multi-Transport Support: STDIO and HTTP/SSE transports for different integration scenarios
- Comprehensive Testing: 99 unit tests ensuring production reliability
- Rich Error Handling: Detailed troubleshooting guidance and actionable error messages
- Troubleshooting Prompts: Interactive troubleshooting guides for common OpenShift scenarios
- Log Sampling: Sample and analyze pod logs with intelligent pattern detection and context
Prerequisites
- Node.js 20+
- OpenShift CLI (
oc) installed and configured - Access to an OpenShift cluster
Installation
git clone https://github.com/sanjaypsachdev/mcp-server-openshift.git
cd mcp-server-openshift npm install npm run build
Configuration
Add to your MCP client configuration:
Claude Desktop / Cursor
{
"mcpServers": { "openshift": { "command": "node", "args": ["/path/to/mcp-server-openshift/dist/index.js"], "env": { "OPENSHIFT_CONTEXT": "your-context-name", "OPENSHIFT_NAMESPACE": "your-default-namespace" } } } }
HTTP/SSE Transport (Remote Access)
# Start HTTP server
npm run start:http
Connect via MCP remote
npx -y mcp-remote http://localhost:3000/sse --transport sse-only
Tools
Authentication & Access
- `oc_login` - Securely log into OpenShift clusters using token or username/password authentication
API Discovery & Documentation
- `oc_api_resources` - List all available API resources in the cluster with categorization
- `oc_explain` - Explain resource schemas, fields, and API documentation
Core Resource Management
- `oc_get` - Get OpenShift resources (pods, deployments, services, routes, etc.)
- `oc_create` - Create OpenShift resources from manifests or templates
- `oc_apply` - Apply YAML manifests with validation and conflict resolution
- `oc_delete` - Delete resources with safety checks and confirmation options
- `oc_patch` - Patch resources using strategic merge, JSON merge, or JSON patch operations
- `oc_describe` - Describe resources with multiple output formats
Application Lifecycle
- `oc_new_app` - Deploy applications from Git repositories with S2I builds
- `oc_scale` - Scale deployments, deploymentconfigs, replicasets, and statefulsets
- `oc_logs` - Get logs from pods, deployments, builds with filtering options
Advanced Operations
- `oc_install_operator` - Install operators via OLM, Helm, or direct manifests
Resources
MCP Resources provide read-only access to cluster information:
- `openshift://cluster-info` - Comprehensive cluster status, nodes, namespaces, and events
- `openshift://project-list` - Detailed project information with quotas and usage statistics
- `openshift://app-templates` - Application deployment templates and patterns
Prompts
Interactive troubleshooting and operational guidance:
- `troubleshoot-openshift-prompt` - Comprehensive OpenShift troubleshooting guide for all resource types and cluster issues
- `monitoring-prompts` - Monitoring and observability guidance for different scenarios
Sampling
Intelligent log analysis and pattern detection:
- Pod Logs Sampling - Automatic log sampling with error pattern detection and context analysis
Usage Examples
Login to Cluster
# Login with token (recommended)
oc_login with server: "https://api.cluster.example.com:6443", authMethod: "token", token: "sha256~your-token-here"
Login with username/password
oc_login with server: "https://api.cluster.example.com:6443", authMethod: "password", username: "developer", password: "your-password"
Discover API Resources
# List all available API resources
oc_api_resources
List resources for specific API group
oc_api_resources with apiGroup: "apps"
List only namespaced resources
oc_api_resources with namespaced: true
Explain a resource schema
oc_explain with resource: "deployment"
Explain specific field
oc_explain with resource: "pod", field: "spec.containers"
Deploy Application
# Deploy Node.js app from GitHub
oc_new_app with gitRepo: "https://github.com/sclorg/nodejs-ex.git"
Scale Application
# Scale deployment to 3 replicas
oc_scale with name: "my-app", replicas: 3
Patch Resource
# Update deployment labels
oc_patch with resourceType: "deployment", name: "my-app", patch: '{"metadata":{"labels":{"environment":"production"}}}'
Troubleshoot Issues
# Get pod troubleshooting guidance
Use prompt: troubleshoot-openshift-prompt Arguments: issueType: "pod", resourceName: "my-app-12345", namespace: "my-project"
Get deployment troubleshooting guidance
Use prompt: troubleshoot-openshift-prompt Arguments: issueType: "deployment", resourceName: "my-app", namespace: "my-project"
Get general cluster troubleshooting guidance
Use prompt: troubleshoot-openshift-prompt Arguments: issueType: "cluster", symptoms: "nodes not ready"
Development
# Setup
npm install
Build
npm run build
Test
npm test
Start (STDIO)
npm start
Start (HTTP)
npm run start:http
Development mode
npm run dev
Transport Modes
STDIO (Default)
- Direct MCP client integration
- Lower latency
- Recommended for local development
HTTP/SSE
- Remote access capability
- Web integration friendly
- Container deployment ready
Architecture
src/
├── index.ts # Main server entry point ├── tools/ # Tool implementations ├── resources/ # MCP resources ├── prompts/ # Interactive prompts ├── sampling/ # Log sampling and analysis ├── models/ # Zod validation schemas └── utils/ # OpenShift CLI wrapper
Security
Authentication Security
- Token Authentication: Preferred method for automation and production use
- Password Authentication: Available but token authentication is recommended
- HTTPS Enforcement: All cluster connections must use HTTPS
- URL Validation: Server URLs validated to prevent SSRF attacks
- Private IP Blocking: Prevents connections to internal/metadata services
Operational Security
- RBAC Compliance: Respects OpenShift RBAC permissions
- No Credential Storage: Credentials are not stored or transmitted by the server
- User Permissions: Executes with the same permissions as the authenticated user
- Input Validation: Comprehensive validation of all inputs and parameters
- Secure Defaults: Conservative security settings by default
Best Practices
- Use Service Account Tokens: For automation and CI/CD pipelines
- Regular Token Rotation: Rotate authentication tokens regularly
- TLS Certificate Validation: Always validate TLS certificates in production
- Least Privilege: Use accounts with minimal required permissions
- Session Management: Use
oc logoutto clear credentials when done
License
MIT License - see LICENSE file for details.