Multicluster MCP server
The Multi-Cluster MCP Server provides a robust gateway for Generative AI (GenAI) systems to interact with multiple Kubernetes clusters through the Model Context Protocol (MCP). It facilitates comprehensive operations on Kubernetes resources, streamlined multi-cluster management, and delivered interactive cluster observability.
๐ Features
๐ Kubernetes Cluster Operations
โ
Fully supports kubectl
to interact with your cluster
โ Create, update, and list resources (Deployments, Pods, Services, etc.)
โ Create, update, and retrieve resources based on the CRD (the tool retrieves and compresses the CRD, preserving all information while reducing tokens for the LLM).
Kubernetes Operations
๐ Cluster Observability
โ Retrieve and analyze metrics, logs, and alerts from integrated clusters
๐ Multi-Cluster Management (via Open Cluster Management)
โ Access and manage resources across multiple Kubernetes clusters
โ Interact with multi-cluster APIs, including Managed Clusters, Policies, Add-ons, and more
๐ Installation
๐ Note: Ensure kubectl
is installed. By default, the tool uses the KUBECONFIG
environment variable to access the cluster. In a multi-cluster setup, it treats the configured cluster as the hub cluster, accessing others through it.
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
1{ 2 "mcpServers": { 3 "y": { 4 "command": "/path/to/multicluster-mcp-server/build/index.js" 5 } 6 } 7}
License
This project is licensed under the MIT License.