K8s MCP Server

Enhanced Kubernetes access with AI-friendly port-forward management supporting headless services.

Local server

What is the K8s MCP Server?

K8s MCP Server is an MCP project maintained in the christian-schlichtherle/k8s-mcp repository. The maintainer describes its purpose as “Enhanced Kubernetes access with AI-friendly port-forward management supporting headless services”. Read the project documentation for the complete scope.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get_resource) - Get specific resource details
get_resource_yaml) - Get resource as YAML
list_resources) - List resources with formatting options
list_resources_yaml) - List resources as YAML
query_by_labels) - Advanced label-based queries
query_by_labels_yaml) - Label queries as YAML
troubleshoot_pod) - Comprehensive pod debugging
troubleshoot_pod_yaml) - Pod debugging as YAML
cluster_health) - Overall cluster health assessment
deployment_status) - Deployment rollout analysis
deployment_status_yaml) - Deployment analysis as YAML
resource_usage) - Resource consumption analysis
get_logs) - Retrieve pod logs
list_port_forwards) - List active port-forward sessions
discover_resource_kinds) - Find resource types by keywords
discover_clusters) - List available clusters
discover_cluster_aliases) - List cluster aliases
discover_port_forward_services) - List port-forward configurations
create_resource) - Create new Kubernetes resources
update_resource) - Update existing resources
patch_resource) - Partially update resources
scale_resource) - Change replica counts
apply_manifest) - Apply YAML manifests
connect_to_service_targets) - Connect to configured service environments
setup_port_forward) - Generic port-forward setup
teardown_port_forward) - Close port-forward sessions
delete_resource) - Permanently delete resources (cannot be undone)
execute_in_pod) - Run arbitrary commands in pods (potential security risk)