Chapter 1. MCP server overview (Technology Preview)
The MCP server is a Model Context Protocol (MCP) server that provides access to the Red Hat Advanced Cluster Management for Kubernetes search database, which stores information about Kubernetes resources across managed clusters.
You must have Red Hat Advanced Cluster Management installed to use the MCP server. See Get started with Red Hat Advanced Cluster Management.
Use the MCP server to query cluster resources from AI assistants and other MCP clients. The server shows tools that search the same data that powers the Red Hat Advanced Cluster Management search service.
The MCP server provides output controls and filters for your artificial intelligence agents to use.
-
Available tools: The MCP server provides the
find_resourcestool for advanced Kubernetes resource search across all managed clusters. -
Basic filters:
kind,name,namespace,cluster,status -
Advanced filters:
labelSelector,clusterSelector,textSearch,ageNewerThan,ageOlderThan -
Output control:
outputMode(list,count,summary, orhealth),groupBy,sortBy,sortOrder,limit,countOnly
Learn how to install the MCP server and configure OpenShift Lightspeed or Claude Code to use it:
1.1. Install the MCP server (Technology Preview) Copy linkLink copied to clipboard!
Install the MCP server from the published Helm repository on your Red Hat Advanced Cluster Management hub cluster. The Helm chart automatically discovers your Red Hat Advanced Cluster Management MultiClusterHub installation, extracts database credentials, and deploys the MCP server with the required configuration.
Required access: Cluster administrator
Prerequisites
- You must have a OpenShift Container Platform cluster with Red Hat Advanced Cluster Management installed. See Get started with Red Hat Advanced Cluster Management.
- You must have Helm 3.x installed locally. For more information, see Installing Helm.
-
You need to access to the cluster using the
occommand. See Getting started with the OpenShift CLI in the OpenShift Container Platform documentation.
Procedure
Add the MCP server Helm repository. Run the following command:
helm repo add acm-search https://raw.githubusercontent.com/stolostron/search-mcp-server/main/charts helm repo updateInstall the MCP server with auto-discovery. Run the following command:
helm install acm-mcp-server acm-search/acm-mcp-server \ --create-namespace \ --namespace acm-searchThe Helm chart automatically completes the following tasks:
-
Discovers your Red Hat Advanced Cluster Management
MultiClusterHubinstallation - Builds the complete database connection URL
- Deploys the MCP server with the required configuration
-
Discovers your Red Hat Advanced Cluster Management
Verify that the MCP server is running in the
acm-searchnamespace. Run the following command:oc get pods -n acm-searchAfter you install the MCP server, you can connect your AI assistants or MCP clients.
1.2. Configure OpenShift Lightspeed to use the MCP server (Technology Preview) Copy linkLink copied to clipboard!
Configure OpenShift Lightspeed to use the MCP server so that you can query Red Hat Advanced Cluster Management search data from the Lightspeed assistant.
Required access: Cluster administrator
Prerequisites
- The MCP server is installed on your Red Hat Advanced Cluster Management hub cluster. See Installing the MCP server.
- OpenShift Lightspeed is installed and configured on the Red Hat Advanced Cluster Management hub cluster where you want to add the MCP server. For more information, see Red Hat OpenShift Lightspeed installation documentation.
Important:
-
If you already have MCP servers configured in your
OLSConfigcustom resource, add the MCP server to the existing list rather than replacing it. - Use the exact configuration that is shown in this topic for proper functionality.
-
The
acm-search, which is the default namespace for the Helm chart, is used as the service URL.
Procedure
Edit the
OLSConfigcustom resource to add the MCP server. Run the following command:oc edit olsconfig clusterIf you do not have MCP servers configured in your
OLSConfigcustom resource, addfeatureGatesandmcpServersto the following configuration:spec: featureGates: - MCPServer mcpServers: - headers: - name: Authorization valueFrom: type: kubernetes name: acm timeout: 30 url: 'http://acm-mcp-server.acm-search.svc.cluster.local/mcp'-
If your
OLSConfigcustom resource already has MCP servers configured, add the MCP server to the existingmcpServerslist. Your configuration might resemble the following example:
mcpServers: - name: existing-server # ... existing server config ... - name: acm streamableHTTP: enableSSE: false headers: kubernetes-authorization: kubernetes sseReadTimeout: 10 timeout: 30 url: 'http://acm-mcp-server.acm-search.svc.cluster.local/mcp'
Additional resources
1.3. Configure Claude Code to use the MCP server (Technology Preview) Copy linkLink copied to clipboard!
Configure and run Claude Code on your machine to connect to the MCP server that is installed on your Red Hat Advanced Cluster Management hub cluster. After you configure Claude Code, you can query Red Hat Advanced Cluster Management search data.
Prerequisites
- You must install Red Hat Advanced Cluster Management for Kubernetes. See Get started with Red Hat Advanced Cluster Management.
- The MCP server is installed on your Red Hat Advanced Cluster Management hub cluster. See Installing the MCP server.
- Claude Code is installed on the machine where you run this procedure.
Procedure
Log in to the Red Hat Advanced Cluster Management hub cluster by using the
occommand. Note: If your cluster uses a self-signed certificate, start Claude by setting theNODE_TLS_REJECT_UNAUTHORIZEDenvironment variable to0in your command-line environment:export NODE_TLS_REJECT_UNAUTHORIZED=0Retrieve the route that was created by the MCP server installation in the
acm-searchnamespace:export ROUTE=$(oc get route acm-mcp-server -n acm-search -o jsonpath='{.spec.host}')Run the following command to add the MCP server to Claude Code:
claude mcp add --transport http -s project acm-search https://${ROUTE}/mcp --header "Authorization: Bearer $(oc whoami -t)"-
Log in to Claude Code, connect to the MCP server named
acm-search, use the tools.