Chapter 3. Deploy and manage MCP servers
After a cluster administrator enables the MCP Lifecycle Operator, you can deploy MCP servers from the AI Hub MCP Catalog and manage their lifecycle. MCP servers expose tools and capabilities that your AI agents and applications can use through the Model Context Protocol.
MCP Catalog is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.
For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope.
Deploying MCP servers from the MCP Catalog requires a cluster administrator to enable the MCP Lifecycle Operator.
3.1. Deploy MCP servers from the MCP Catalog Copy linkLink copied to clipboard!
MCP Lifecycle Operator is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.
For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope.
Deploy an MCP server from the AI Hub MCP Catalog to make it available for use in AI applications and agents in your namespace. The MCP Catalog provides pre-curated MCP servers from Red Hat, technology partners, and the open source community that you can deploy without sourcing container images or writing Kubernetes manifests.
Prerequisites
- A cluster administrator has enabled the MCP Lifecycle Operator on the cluster. For more information, see Enable the MCP Lifecycle Operator.
- You have access to a Red Hat OpenShift AI project with at least the standard user role.
- You have access to the Red Hat OpenShift AI dashboard.
-
If the MCP server you are deploying requires a service account, a
ServiceAccountresource exists in your namespace.
Procedure
-
In the Red Hat OpenShift AI dashboard, navigate to AI hub
MCP servers. Browse available MCP servers.
Each server card displays the server name, a description, supported tools, and the support tier. The support tiers are:
Support tier Description Red Hat
Fully supported by Red Hat.
Partner
Supported by the technology partner who maintains the server.
Community
Best-effort support from the open source community.
- Filter the catalog by deployment mode or supported transport protocols to find the server that meets your requirements.
Click the MCP server you want to deploy to open its details page.
Review the server metadata, including the list of tools it exposes, supported capabilities, and whether the server requires a service account.
Click Deploy MCP server.
NoteThe Deploy MCP server button is disabled if the MCP Lifecycle Operator is not enabled on the cluster. For more information, see Enable the MCP Lifecycle Operator.
In the deployment dialog, review the YAML configuration field.
If the MCP server requires a service account, set the
serviceAccountName:field underruntime:andsecurity:in the YAML:spec: runtime: security: serviceAccountName: <service_account_name>where:
<service_account_name>-
Specifies the name of the
ServiceAccountresource in your namespace.
Confirm the deployment by clicking Deploy in the dialog.
The MCP Catalog submits the deployment request to the MCP Lifecycle Operator. The operator creates an
MCPServercustom resource in your namespace and provisions the required Deployment and Service.
Verification
Confirm that the
MCPServercustom resource shows aREADYstatus ofTrue:$ oc get mcpservers -n <namespace>Replace
<namespace>with your project namespace.The output shows the MCP server with
READYstatus asTrue, for example:NAME READY ACCEPTED IMAGE PORT ADDRESS AGE <mcp_server_name> True True ... ... ... 2m-
In the Red Hat OpenShift AI dashboard, navigate to AI hub
MCP servers and verify that the MCP server is displayed on the Deployments tab.
3.2. Upgrade an MCP server Copy linkLink copied to clipboard!
Upgrade a deployed MCP server to a newer version by using the Red Hat OpenShift AI dashboard or by editing the MCPServer custom resource directly.
Prerequisites
- The MCP Lifecycle Operator is enabled on the cluster.
- You have an MCP server deployed in your namespace.
-
You have access to the Red Hat OpenShift AI dashboard or the OpenShift CLI (
oc).
Procedure
-
In the Red Hat OpenShift AI dashboard, navigate to AI hub
MCP servers and open the Deployments tab. - Locate the deployed server and click its name.
- Click Edit to open the server configuration. Select the new version and save the changes.
Verification
Confirm the
MCPServerstatus isReady:$ oc get mcpservers <mcp_server_name> -n <namespace>The output shows
READYasTruewhen the server is running.
3.3. Scale an MCP server Copy linkLink copied to clipboard!
Scale the number of replicas for a deployed MCP server by patching the spec.runtime.replicas field in its MCPServer custom resource.
Prerequisites
- The MCP Lifecycle Operator is enabled on the cluster.
- You have an MCP server deployed in your namespace.
-
You have access to the Red Hat OpenShift AI dashboard or the OpenShift CLI (
oc).
Procedure
Edit the
MCPServercustom resource to update the replica count:$ oc patch mcpserver <mcp_server_name> -n <namespace> \ --type=merge -p '{"spec":{"runtime":{"replicas":<replica_count>}}}'where:
<mcp_server_name>-
Specifies the name of the
MCPServercustom resource. <namespace>- Specifies the namespace where the MCP server is deployed.
<replica_count>Specifies the number of replicas to run. Set to
0to scale to zero.You can run
oc explain mcpserver.spec.runtimeto view all available runtime configuration fields for the installed CRD version.ImportantBy default, the MCP Lifecycle Operator treats MCP servers as stateful and configures
SessionAffinity: ClientIPon the Kubernetes Service. This pins each client to a single pod, which means scaling to additional replicas does not distribute existing client connections across those replicas.If the MCP server you are scaling is stateless, which means it does not maintain per-client session data, set
spec.mcp.stateless: truein theMCPServercustom resource so that the operator configuresSessionAffinity: Noneand load-balances traffic across all replicas:$ oc patch mcpserver <mcp_server_name> -n <namespace> \ --type=merge -p '{"spec":{"mcp":{"stateless":true},"runtime":{"replicas":<replica_count>}}}'Only set
stateless: trueif the MCP server itself declares that it is stateless.The MCP Lifecycle Operator runs MCP servers as Kubernetes-native workloads on OpenShift but does not manage session state within those servers. If the server maintains session state, managing that state across replicas is the server’s own responsibility.
Verification
Confirm the configured replica count on the
MCPServercustom resource:$ oc get mcpservers <mcp_server_name> -n <namespace> \ -o jsonpath='{.spec.runtime.replicas}{"\n"}'The output shows the replica count you set.
Confirm the
MCPServerstatus isReady:$ oc get mcpservers <mcp_server_name> -n <namespace>The output shows
READYasTruewhen the server is running with the updated replica count.
3.4. Remove an MCP server Copy linkLink copied to clipboard!
Remove a deployed MCP server from your namespace by using the Red Hat OpenShift AI dashboard or by deleting the MCPServer custom resource directly.
Prerequisites
- The MCP Lifecycle Operator is enabled on the cluster.
- You have an MCP server deployed in your namespace.
-
You have access to the Red Hat OpenShift AI dashboard or the OpenShift CLI (
oc).
Procedure
-
In the Red Hat OpenShift AI dashboard, navigate to AI hub
MCP servers and open the Deployments tab. Locate the MCP server and select Delete from the action menu. Confirm the deletion.
Alternatively, delete the
MCPServercustom resource directly:$ oc delete mcpserver <mcp_server_name> -n <namespace>The MCP Lifecycle Operator automatically cleans up the associated Deployment, Service, and other managed resources.
Verification
Confirm no
MCPServerresources remain for the deleted server:$ oc get mcpservers -n <namespace>
3.5. Monitor MCP server health Copy linkLink copied to clipboard!
Check the status and health of deployed MCP servers in your namespace by using the OpenShift CLI (oc).
Prerequisites
- The MCP Lifecycle Operator is enabled on the cluster.
- You have an MCP server deployed in your namespace.
-
You have access to the Red Hat OpenShift AI dashboard or the OpenShift CLI (
oc).
Procedure
Check the status of all MCP servers in your namespace:
$ oc get mcpservers -n <namespace>Review the status conditions for a specific MCP server:
$ oc describe mcpserver <mcp_server_name> -n <namespace>Look for a condition with
type: Readyandstatus: Trueto confirm the server is running and ready to accept connections.