R
razvanmacovei/k8s-multicluster-mcp
An MCP (Model Context Protocol) server application for Kubernetes operations, providing a standardized API…
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
Install & config
Client config (built from the install command this repo gives)
{
"mcpServers": {
"razvanmacovei-k8s-multicluster-mcp": {
"command": "npx",
"args": ["-y", "@smithery/cli"]
}
}
}Parsed from the README we fetched on 2026-11-10; we have not executed it.
command/args come from the install command the repository states. When it is ambiguous, the project README wins.
VS Code (.vscode/mcp.json - the key is servers)
{
"servers": {
"razvanmacovei-k8s-multicluster-mcp": {
"command": "npx",
"args": ["-y", "@smithery/cli"]
}
}
}Same server, but VS Code keeps it under <code>servers</code>.
Claude Code (command line)
claude mcp add --transport stdio razvanmacovei-k8s-multicluster-mcp -- npx -y @smithery/cli
Claude Code does not read a config file; add the server with this command.
Key names differ by client: Clients & CLI
- Source
- collected from the abordage/awesome-mcp list · type: MCP server
- Harvest history
- first seen 2026-11-11 · last seen 2026-11-14 · seen 4× · listed by 4 sources
- Score
- score 403 · 4 sources · mcp
- Install
npx -y @smithery/cli
FAQ (answers come from our records)
How do I install it?
The repository provides this install command:
npx -y @smithery/cli. It comes from the repository itself; we cannot guarantee it runs as-is in your client.Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
first catalogued 2026-11-11;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.
# 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)
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/razvanmacovei-k8s-multicluster-mcp/)
- Source
- awesome · https://github.com/razvanmacovei/k8s-multicluster-mcp
- Browse by field
- MCP servers
- Listed by
- 4 independent sources
- added
- today
More like this
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.