mcpField
O
OCM MCP Server

OCM MCP Server

Local
github.com/judexzhuDeveloper Tools0Updated 30w ago

About OCM MCP Server

OCM MCP Server provides read-only access to Red Hat OpenShift Cluster Manager data for cluster operators and administrators. Its tools cover cluster details, monitoring, infrastructure, and account operations, with automatic detection of HCP and Classic clusters.

Key features

  1. 01Search clusters and inspect status
  2. 02View logs, alerts, and metrics
  3. 03Inspect networking and cluster configuration
  4. 04Look up accounts, subscriptions, and organizations
  5. 05Detect HCP and Classic cluster types

Use cases

  1. 01Check cluster health and provisioning status
  2. 02Review alerts, logs, and node metrics
  3. 03Inspect pools, networking, or access settings
  4. 04Retrieve subscription and organization details

MCP support

Exposes 30 read-only tools for MCP clients to query the OCM clusters, service logs, and accounts APIs.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

OCM MCP Server

Python 3.13+ MCP Compatible UV

A Model Context Protocol (MCP) server for Red Hat OpenShift Cluster Manager (OCM) API operations. Provides 30 read-only tools for cluster management, monitoring, account operations, and infrastructure inspection. Supports both HCP (Hosted Control Plane) and Classic clusters with automatic type detection.

Installation

Prerequisites
  • Python 3.13+
  • uv package manager
Setup
  1. Clone and Install

    git clone <repository-url>
    cd mcp-ocm
    uv sync
    
  2. Environment Configuration Create a .env file with your Red Hat API credentials:

    # Required: Your Red Hat API offline token
    RH_API_OFFLINE_TOKEN=your_offline_token_here
    
    # Optional: OCM API base URL (defaults to https://api.openshift.com)
    OCM_BASE_URL=https://api.openshift.com
    

    Get your offline token from Red Hat API Tokens.

Usage

MCP Client Configuration
{
  "mcpServers": {
    "ocm": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/your/mcp-ocm",
        "run",
        "ocm_mcp_server.py"
      ],
      "env": {
        "RH_API_OFFLINE_TOKEN": "your_actual_offline_token_here"
      }
    }
  }
}

Tools Reference (30 tools)

Cluster Info & Search
ToolPurpose
ocm_get_clusterCluster details with HCP/Classic detection
ocm_search_clustersSearch clusters by name, state, region, etc. (OCM search syntax)
ocm_get_cluster_statusCluster status (DNS readiness, provisioning state, health)
ocm_get_cluster_resourcesCurrently available cluster resources (CPU, memory)
Pools & Nodes
ToolPurpose
ocm_get_cluster_machine_poolsMachine pools (Classic) or node pools (HCP) — auto-detected
Logs
ToolPurpose
ocm_get_cluster_service_logsService logs with pagination (page/size params)
ocm_get_cluster_install_logsInstallation logs and history
ocm_get_cluster_uninstall_logsUninstall logs
Monitoring & Metrics
ToolPurpose
ocm_get_cluster_alertsCluster alerts with severity breakdown
ocm_get_cluster_operatorsOperator status with condition summaries
ocm_get_cluster_cpu_metricsCPU metrics by node role and OS
ocm_get_cluster_socket_metricsSocket metrics by node role and OS
ocm_get_cluster_node_metricsNode metrics
Networking
ToolPurpose
ocm_get_cluster_vpcVPC info with subnet analysis (public/private)
ocm_get_cluster_ingressIngress configuration and DNS info
ocm_get_cluster_private_linkAWS Private Link configuration
Auth & Access
ToolPurpose
ocm_get_cluster_identity_providersIdentity provider configuration
ocm_get_cluster_groupsRBAC groups and their users
Configuration
ToolPurpose
ocm_get_cluster_addonsInstalled add-ons
ocm_get_cluster_autoscalerCluster autoscaler configuration
ocm_get_cluster_kubelet_configsKubelet configurations
ocm_get_cluster_upgrade_policiesUpgrade policies (Classic + HCP control plane + node pool)
Support & Diagnostics
ToolPurpose
ocm_get_cluster_limited_support_reasonsLimited support reasons
ocm_get_cluster_inflight_checksInflight checks (provisioning debugging)
AWS / Infrastructure
ToolPurpose
ocm_get_cluster_sts_operator_rolesSTS operator IAM roles
ocm_get_cluster_provision_shardProvision shard info
Accounts API
ToolPurpose
ocm_get_accounts_by_emailAccount lookup by email
ocm_get_subscriptionSubscription details
ocm_get_organizationOrganization details
ocm_get_current_accountCurrently authenticated user info

API Coverage

Clusters Management API (clusters_mgmt/v1)
  • Cluster search, details, status, resources
  • Machine pools / node pools
  • Upgrade policies (cluster, control plane, node pool)
  • VPC, ingresses, identity providers
  • Alerts, operators, CPU/socket/node metrics
  • Addons, autoscaler, kubelet configs, groups
  • Limited support reasons, inflight checks
  • AWS Private Link, STS operator roles, provision shard
  • Install/uninstall logs
Service Logs API (service_logs/v1)
  • Cluster service logs with pagination
Accounts Management API (accounts_mgmt/v1)
  • Account search by email
  • Subscriptions, organizations
  • Current account

Dependencies

  • httpx — Async HTTP client
  • mcp[cli] — Model Context Protocol framework
  • python-dotenv — Environment variable management

License

This project is licensed under the MIT License.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.