
A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

A Kubernetes management MCP server for retrieving cluster information, performing resource operations, monitoring status, and analyzing resources.
MCP Kubernetes Server is cataloged as an MCP server attributed to guolisen. A Kubernetes management MCP server for retrieving cluster information, performing resource operations, monitoring status, and analyzing resources. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP Kubernetes Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
The server supports stdio, SSE, or both as transport options.
When running inside a cluster, it automatically uses the in-cluster configuration with the service account token and certificate.
README.md · 945d1ac87931 · Fetched 2026-11-13 10:43:15 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A Kubernetes management MCP (Model Context Protocol) server that provides interfaces for getting information about Kubernetes clusters, performing operations, monitoring status, and analyzing resources.



git clone https://github.com/yourusername/mcp-k8s-server.git
cd mcp-k8s-server
pip install -e .
pip install mcp-k8s-server
# Run with default settings
mcp-k8s-server
# Specify transport type
mcp-k8s-server --transport sse
# Specify port for SSE transport
mcp-k8s-server --port 8000
# Specify config file
mcp-k8s-server --config /path/to/config.yaml
The Dockerfile uses the command and args pattern to run the server:
CMD ["python", "-m", "mcp_k8s_server.main", \
"--transport", "sse", \
"--port", "8000", \
"--host", "0.0.0.0", \
"--config", "/etc/rancher/rke2/rke2.yaml", \
"--debug"]
To build and run the Docker container:
# Build the Docker image
docker build -t mcp-k8s-server .
# Run the Docker container
docker run -p 8000:8000 -v ~/.kube:/home/mcp/.kube mcp-k8s-server
Alternatively, you can use the provided script:
# Make the script executable
chmod +x docker-run.sh
# Run the script
./docker-run.sh
This script builds the Docker image and runs the container with the necessary volume mounts.
# Apply the Kubernetes manifests
kubectl apply -f k8s/
When deploying to Kubernetes, the server will automatically use the in-cluster configuration. The Kubernetes manifests in the k8s/ directory are set up to:
You can customize the deployment by editing the manifests:
# k8s/deployment.yaml (example)
apiVersion: apps/v1
kind: Deployment
metadata:
name: mcp-k8s-server
# ...
spec:
# ...
template:
# ...
spec:
serviceAccountName: mcp-k8s-server # Uses the ServiceAccount defined in rbac.yaml
containers:
- name: mcp-k8s-server
# ...
command:
- python
- -m
- mcp_k8s_server.main
args:
- --transport
- sse
- --port
- "8000"
- --host
- "0.0.0.0"
- --config
- "/app/config/config.yaml"
- --debug
This approach uses the command and args pattern to configure the server, which is a common pattern in Kubernetes. The command specifies the executable to run, and the args specify the command-line arguments to pass to the executable.
The KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT environment variables are automatically set by Kubernetes when the pod is created, so you don't need to specify them in your deployment manifest.
The server can be configured using a YAML configuration file, environment variables, or command-line arguments.
When running inside a Kubernetes cluster, the server automatically uses the in-cluster configuration. This relies on the following:
Environment variables:
KUBERNETES_SERVICE_HOST: Set by Kubernetes to the IP address of the Kubernetes API serverKUBERNETES_SERVICE_PORT: Set by Kubernetes to the port of the Kubernetes API serverService account token and certificate:
/var/run/secrets/kubernetes.io/serviceaccount/token: Service account token/var/run/secrets/kubernetes.io/serviceaccount/ca.crt: CA certificateThese are automatically set by Kubernetes when running in a pod. If you're running the server outside a Kubernetes cluster but want to test the in-cluster configuration, you would need to manually set these environment variables and create the token and certificate files.
When running outside a cluster, the server falls back to using the kubeconfig file.
If you want to test the in-cluster configuration locally (outside a Kubernetes cluster), you can manually set up the required environment variables and files:
Set the environment variables:
export KUBERNETES_SERVICE_HOST=<kubernetes-api-server-ip>
export KUBERNETES_SERVICE_PORT=<kubernetes-api-server-port>
You can get these values by running:
kubectl cluster-info
Create the service account token and certificate directories:
mkdir -p /var/run/secrets/kubernetes.io/serviceaccount/
Copy your Kubernetes certificate and create a token:
# Copy the CA certificate
kubectl config view --raw -o jsonpath='{.clusters[0].cluster.certificate-authority-data}' | base64 -d > /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
# Create a token file (you can use a service account token or generate a temporary one)
echo "your-service-account-token" > /var/run/secrets/kubernetes.io/serviceaccount/token
Note that this approach requires root privileges to create files in /var/run/secrets/. Alternatively, you can modify the code to use different paths for testing purposes.
# config.yaml
server:
name: mcp-k8s-server
transport: both # stdio, sse, or both
port: 8000
host: 0.0.0.0
kubernetes:
config_path: ~/.kube/config
context: default
namespace: default
The server provides access to Kubernetes resources through the Model Context Protocol (MCP). Resources are identified by URI patterns following the k8s:// protocol.
Resources are organized in a hierarchical structure:
k8s://resources - List of all available Kubernetes resourcesk8s://namespaces - List of all Kubernetes namespacesk8s:///{namespace} - Overview of all resources in a namespacek8s://{namespace}/{resource_type} - List resources of a specific type in a namespace
k8s://default/pods - All pods in the 'default' namespacek8s://{namespace}/{resource_type}/{name} - Get a specific namespaced resource
k8s://default/deployments/nginx - The 'nginx' deployment in the 'default' namespaceSupported resource types:
podsdeploymentsservicespersistentvolumeclaimseventsk8s:///{resource_type} - List cluster-scoped resources of a specific type
k8s:///nodes - All nodes in the clusterk8s:///{resource_type}/{name} - Get a specific cluster-scoped resource
k8s:///nodes/worker-1 - The 'worker-1' nodeSupported resource types:
nodespersistentvolumesnamespacesThe server provides the following MCP tools:
get_resources: Get a list of resources of a specific typeget_resource: Get detailed information about a specific resourceget_resource_status: Get the status of a specific resourceget_resource_events: Get events related to a specific resourceget_resource_logs: Get logs for a specific resourcecreate_resource: Create a new resourceupdate_resource: Update an existing resourcedelete_resource: Delete a resourcescale_deployment: Scale a deploymentrestart_deployment: Restart a deploymentexecute_command: Execute a command in a podget_cluster_status: Get the overall status of the clusterget_node_status: Get the status of cluster nodesget_resource_metrics: Get metrics for a specific resourceget_cluster_metrics: Get metrics for the entire clustercheck_cluster_health: Perform a comprehensive health check of the cluster and get a detailed summaryMIT
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP Kubernetes Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp_k8s_server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.