R
razvanmacovei/k8s-multicluster-mcp
An MCP (Model Context Protocol) server application for Kubernetes operations, providing a standardized API…
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
安装与配置
客户端配置(取自该仓库的安装命令)
{
"mcpServers": {
"razvanmacovei-k8s-multicluster-mcp": {
"command": "npx",
"args": ["-y", "@smithery/cli"]
}
}
}解析自我们于 2026-11-10 抓取的该仓库 README;我们未执行过。
command/args 来自仓库写明的安装命令;不确定时请以该项目 README 为准。
VS Code(.vscode/mcp.json —— 键名是 servers)
{
"servers": {
"razvanmacovei-k8s-multicluster-mcp": {
"command": "npx",
"args": ["-y", "@smithery/cli"]
}
}
}VS Code 顶层键是 <code>servers</code>,其余与上面那份相同。
Claude Code(命令行)
claude mcp add --transport stdio razvanmacovei-k8s-multicluster-mcp -- npx -y @smithery/cli
Claude Code 不收 JSON 文件,用这条命令直接加。
配置项的键名以你的客户端为准:客户端与 CLI
- 来源明细
- 收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-11-11 · 最近见到 2026-11-14 · 共见到 4 次 · 被 4 个来源列出
- 评分构成
- 综合分 403 · 4 个来源 · mcp
- 安装
npx -y @smithery/cli
常见问题(答案都来自我们的记录)
怎么安装?
该仓库给出的安装命令是
npx -y @smithery/cli。我们的记录里它是仓库自己提供的;不保证在你的客户端上直接可用。它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-11;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
# Multi Cluster Kubernetes MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
An MCP (Model Context Protocol) server for managing multiple Kubernetes clusters simultaneously. Provides 60+ tools covering cluster operations, resource management, monitoring, RBAC, storage, networking, and more -- all accessible through AI assistants like Claude Desktop.
## Quick Start
### Installing via Smithery
bash
npx -y @smithery/cli install @razvanmacovei/k8s-multicluster-mcp --client claude
### Manual Installation
bash
git clone https://github.com/razvanmacovei/k8s-multicluster-mcp.git
cd k8s-multicluster-mcp
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
python3 app.py
### Docker
bash
docker build -t k8s-mcp .
docker run -v ~/.kube:/root/.kube k8s-mcp
## Configuration
### Claude Desktop / MCP Client
Add to your MCP client configuration:
json
"mcpServers": {
"kubernetes": {
"command": "python3",
"args": ["/path/to/k8s-multicluster-mcp/app.py"],
"env": {
"KUBECONFIG_DIR": "/path/to/your/kubeconfigs"
### Environment Variables
| Variable | Default | Description |
| KUBECONFIG_DIR | ~/.kube | Directory containing kubeconfig files. Each file can contain one or more contexts. |
Place your kubeconfig files in the configured directory. The server discovers all contexts across all files automatically.
### Prerequisites
Python 3.11 or higher
One or more kubeconfig files with valid cluster credentials
metrics-server installed in clusters for k8s_top_ and k8s_cluster_info tools
## Multi-Cluster Management
This server is purpose-built for managing multiple Kubernetes clusters:
Automatic Discovery: Scans all kubeconfig files in KUBECONFIG_DIR and aggregates contexts
Partial Name Matching: Use prod instead of arn:aws:eks:us-east-1:123456:cluster/prod-cluster
Cross-Cluster Operations: Compare resources, health, and configurations across clusters
Context Caching: Efficient 30-second TTL cache avoids re-reading kubeconfig files on every call
Centralized Management: Manage dev, staging, and production from a single interface
## Tools Reference (60+ tools)
### Cluster & Context Management (6 tools)
| Tool | Description |
| k8s_get_contexts | List all available contexts across all kubeconfig files |
| k8s_get_namespaces | List all namespaces in a cluster |
| k8s_create_ns | Create a new namespace with optional labels/annotations |
| k8s_delete_ns | Delete a namespace (protects system namespaces) |
| k8s_get_nodes | List all nodes with status, roles, capacity, and version |
| k8s_cluster_info | Comprehensive cluster health summary (nodes, pods, deployments, warnings) |
### Resource Discovery & Inspection (7 tools)
| Tool | Description |
| k8s_get_resources | List resources of any kind (pods, deployments, services, ingress, etc.) |
| k8s_get_resource | Get the complete definition of a single resource |
| k8s_get_pod_logs | Get pod logs with duration filtering and container selection |
| k8s_get_events | List cluster events in a namespace, sorted by most recent |
| k8s_describe | Detailed resource description similar to kubectl describe |
| k8s_apis | List all available API groups and resources in the cluster |
| k8s_crds | List all Custom Resource Definitions with versions and scope |
### Metrics & Monitoring (3 tools)
## Quick Start
### Installing via Smithery
bash
npx -y @smithery/cli install @razvanmacovei/k8s-multicluster-mcp --client claude
### Manual Installation
bash
git clone https://github.com/razvanmacovei/k8s-multicluster-mcp.git
cd k8s-multicluster-mcp
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
python3 app.py
### Docker
bash
docker build -t k8s-mcp .
docker run -v ~/.kube:/root/.kube k8s-mcp
## Configuration
### Claude Desktop / MCP Client
Add to your MCP client configuration:
json
"mcpServers": {
"kubernetes": {
"command": "python3",
"args": ["/path/to/k8s-multicluster-mcp/app.py"],
"env": {
"KUBECONFIG_DIR": "/path/to/your/kubeconfigs"
### Environment Variables
| Variable | Default | Description |
| KUBECONFIG_DIR | ~/.kube | Directory containing kubeconfig files. Each file can contain one or more contexts. |
Place your kubeconfig files in the configured directory. The server discovers all contexts across all files automatically.
### Prerequisites
Python 3.11 or higher
One or more kubeconfig files with valid cluster credentials
metrics-server installed in clusters for k8s_top_ and k8s_cluster_info tools
## Multi-Cluster Management
This server is purpose-built for managing multiple Kubernetes clusters:
Automatic Discovery: Scans all kubeconfig files in KUBECONFIG_DIR and aggregates contexts
Partial Name Matching: Use prod instead of arn:aws:eks:us-east-1:123456:cluster/prod-cluster
Cross-Cluster Operations: Compare resources, health, and configurations across clusters
Context Caching: Efficient 30-second TTL cache avoids re-reading kubeconfig files on every call
Centralized Management: Manage dev, staging, and production from a single interface
## Tools Reference (60+ tools)
### Cluster & Context Management (6 tools)
| Tool | Description |
| k8s_get_contexts | List all available contexts across all kubeconfig files |
| k8s_get_namespaces | List all namespaces in a cluster |
| k8s_create_ns | Create a new namespace with optional labels/annotations |
| k8s_delete_ns | Delete a namespace (protects system namespaces) |
| k8s_get_nodes | List all nodes with status, roles, capacity, and version |
| k8s_cluster_info | Comprehensive cluster health summary (nodes, pods, deployments, warnings) |
### Resource Discovery & Inspection (7 tools)
| Tool | Description |
| k8s_get_resources | List resources of any kind (pods, deployments, services, ingress, etc.) |
| k8s_get_resource | Get the complete definition of a single resource |
| k8s_get_pod_logs | Get pod logs with duration filtering and container selection |
| k8s_get_events | List cluster events in a namespace, sorted by most recent |
| k8s_describe | Detailed resource description similar to kubectl describe |
| k8s_apis | List all available API groups and resources in the cluster |
| k8s_crds | List all Custom Resource Definitions with versions and scope |
### Metrics & Monitoring (3 tools)
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/razvanmacovei-k8s-multicluster-mcp/)
- 来源
- awesome · https://github.com/razvanmacovei/k8s-multicluster-mcp
- 按领域浏览
- MCP 服务
- 收录来源
- 4 个独立来源
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。