Deploying MCP Server With Operator
June 2, 2025 ยท View on GitHub
The ToolHive Kubernetes Operator manages MCP (Model Context Protocol) servers in Kubernetes clusters. It allows you to define MCP servers as Kubernetes resources and automates their deployment and management.
Prerequisites
- Kind cluster with the ToolHive Operator installed
- kubectl installed
Deploy MCP Server
With the ToolHive Operator running, you can deploy an MCP server into the cluster by running the following:
kubectl apply -f https://raw.githubusercontent.com/stacklok/toolhive/main/examples/operator/mcp-servers/mcpserver_mkp.yaml
You should now be able to see the MCP server pods being created/running:
kubectl get pods -n toolhive-system
Accessing MCP Server
Depending on how you want to access the created MCP server, you can follow the relevant guides: