Multi Cluster Kubernetes MCP Server
@razvanmacovei
关于 Multi Cluster Kubernetes MCP Server
An MCP (Model Context Protocol) server application for Kubernetes operations, providing a standardized API to interact with multiple Kubernetes clusters simultaneously using multiple kubeconfig files.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"kubernetes": {
"command": "uv",
"args": [
"--directory",
"/servers/k8s-multicluster-mcp",
"run",
"app.py"
],
"env": {
"KUBECONFIG_DIR": "/kubeconfigs"
}
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Multi Cluster Kubernetes MCP Server?
An MCP (Model Context Protocol) server for managing multiple Kubernetes clusters simultaneously. It provides 60+ tools covering cluster operations, resource management, monitoring, RBAC, storage, networking, and more, accessible through AI assistants like Claude Desktop. Designed for DevOps engineers and platform teams managing multiple Kubernetes clusters.
How to use Multi Cluster Kubernetes MCP Server?
Install via Smithery with npx -y @smithery/cli install @razvanmacovei/k8s-multicluster-mcp --client claude, or clone the repository and run python3 app.py. Configure the KUBECONFIG_DIR environment variable to point to a directory with kubeconfig files; the server automatically discovers all contexts. Required: Python 3.11+, valid kubeconfig files, and metrics-server for monitoring tools.
Key features of Multi Cluster Kubernetes MCP Server
- Automatic discovery of all Kubernetes contexts across kubeconfig files.
- Partial name matching for cluster selection (e.g.,
prod). - 60+ tools for cluster health, resource CRUD, scaling, rollouts, RBAC, storage, networking.
- Cross-cluster operations: compare resources, health, and configurations.
- Context caching with 30-second TTL for performance.
Use cases of Multi Cluster Kubernetes MCP Server
- Get a health overview of a production cluster via an AI assistant.
- Compare pod counts in the
backendnamespace betweenprodandstaging. - Diagnose application issues in a deployment with automated recommendations.
- Scale a deployment to a specific number of replicas.
- Manage secrets, ConfigMaps, and RBAC across multiple clusters.
FAQ from Multi Cluster Kubernetes MCP Server
What is the difference between this server and using kubectl directly?
This server provides an MCP interface for AI assistants to manage multiple clusters simultaneously, with automatic context discovery and cross-cluster comparison capabilities, unlike direct kubectl usage.
What are the runtime requirements?
Python 3.11 or higher, one or more kubeconfig files with valid cluster credentials, and metrics-server installed in clusters for k8s_top_* and k8s_cluster_info tools.
Where are kubeconfig files located?
By default, the server reads from ~/.kube. You can set the KUBECONFIG_DIR environment variable to any directory containing kubeconfig files.
Are there any known limitations?
Namespace deletion protects system namespaces. The server requires metrics-server for monitoring tools. Pod exec supports quoted arguments fixed in v2.0.0.
What transport or authentication does it use?
The server uses the MCP protocol over stdio (local execution). Authentication relies on the Kubernetes credentials provided in the kubeconfig files.
云与基础设施 分类下的更多 MCP 服务器
GCP MCP
eniayomiA Model Context Protocol (MCP) server that enables AI assistants like Claude to interact with your Google Cloud Platform environment. This allows for natural language querying and management of your GCP resources during conversations.
Supabase MCP Server
supabase-communityConnect Supabase to your AI assistants
AWS MCP Servers
awslabsOpen source MCP Servers for AWS
MCP Gateway
mcp-ecosystem🧩 MCP Gateway - A lightweight gateway service that instantly transforms existing MCP Servers and APIs into MCP servers with zero code changes. Features Docker deployment and management UI, requiring no infrastructure modifications.
Azure DevOps MCP Server
Tiberriver256An MCP server for Azure DevOps
评论