openshift-mcp-server

hardikvjoshi/openshift-mcp-server

3.1

If you are the rightful owner of openshift-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The OpenShift MCP Server is a Model Context Protocol server designed to integrate seamlessly with OpenShift clusters, enabling efficient management of namespaces, applications, and administrative tasks.

šŸš€ OpenShift MCP Server - Complete System

A complete Model Context Protocol (MCP) Server system for OpenShift cluster management with AI-powered tools.

šŸ—ļø System Architecture

ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”    ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”    ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│   MCP Host      │    │   MCP Client    │    │   MCP Server    │
│  (User Interface)│◄──►│  (Tool Executor) │◄──►│ (OpenShift + LLM)│
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜    ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜    ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜
         │                       │                       │
         ā–¼                       ā–¼                       ā–¼
   User Commands           Tool Execution          OpenShift Cluster

šŸ“ Folder Structure

  • mcp_server/ - MCP server with OpenShift tools and LLM integration
  • mcp_client/ - Various MCP client implementations
  • mcp_host/ - Host applications with user interfaces

šŸŽÆ What You Have

āœ… MCP Server (Running)

  • 20 powerful tools (15 OpenShift + 5 LLM)
  • Connected to OpenShift cluster
  • Gemini AI integration working
  • Ready for client connections

āœ… Working Host Application

  • mcp_host/final_working_host.py - FULLY WORKING!
  • Can execute OpenShift tools
  • Provides real cluster data
  • Interactive user interface

āœ… MCP Clients

  • Various client implementations
  • Protocol-based and direct access options

šŸš€ Quick Start

1. Start the Working Host (Recommended)

cd mcp_host
source ../.venv/bin/activate
python final_working_host.py

2. Use Available Commands

  • help - Show commands
  • test-tools - Test all tools
  • List all namespaces - Execute OpenShift tool
  • AI help with troubleshooting - Use LLM integration

šŸ”§ System Status

  • MCP Server: āœ… Running with 20 tools
  • OpenShift Cluster: āœ… Connected (hardikvjoshi-dev, openshift-virtualization-os-images)
  • LLM Integration: āœ… Gemini working
  • Host Application: āœ… Fully functional
  • Tool Execution: āœ… Working (list_namespaces, list_pods, ask_llm)

šŸŽ‰ Success Metrics

Your system successfully:

  • āœ… Connects to OpenShift cluster
  • āœ… Lists real namespaces
  • āœ… Executes MCP tools
  • āœ… Provides AI-powered responses
  • āœ… Tracks conversation history

šŸ“š Documentation

  • Server: See mcp_server/README.md
  • Client: See mcp_client/README.md
  • Host: See mcp_host/README.md

šŸ”— Dependencies

  • Python 3.11+
  • OpenShift cluster credentials
  • Gemini API key
  • Virtual environment with requirements installed

šŸ’” Architecture Benefits

  1. Separation of Concerns: Server, client, and host are isolated
  2. Modularity: Each component can be developed independently
  3. Scalability: Easy to add new tools and clients
  4. Maintainability: Clear organization and documentation

šŸŽÆ Next Steps

  1. Use the working host for daily OpenShift management
  2. Connect external MCP clients (Claude Desktop, etc.)
  3. Extend with new tools as needed
  4. Customize the host interface for your workflow

šŸŽ‰ Your OpenShift MCP system is fully operational and ready for production use!