MCPVault

port

MCP tool from Kubernetes MCP Server by containers

(number) - TCP/IP port to expose from the Pod container (Optional, no port exposed if not provided)

How to use it

port is exposed by the Kubernetes MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the port tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install Kubernetes MCP Server

$npx kubernetes-mcp-server@latest --help
FULL KUBERNETES MCP SERVER LISTING

Other tools in Kubernetes MCP Server (39)

all_namespaces

(boolean) - If true, list the resource consumption for all Pods in all namespaces. If false, list the resource consumption for Pods in the provided namespace or the current namespace

command

(array) (required) - Command to execute in the Pod container. The first item is the command to be run, and the rest are the arguments to that command. Example: ["ls", "-l", "/tmp"]

configuration_contexts_list

List all available context names and associated server urls from the kubeconfig file

configuration_view

Get the current Kubernetes configuration content as a kubeconfig YAML

container

(string) - Name of the Pod container where the command will be executed (Optional)

core

Most common tools for Kubernetes management (Pods, Generic Resources, Events, etc.)

events_list

List Kubernetes events (warnings, errors, state changes) for debugging and troubleshooting in the current cluster from all namespaces

fieldSelector

(string) - Optional Kubernetes field selector to filter events by field values (e.g. 'type=Warning', 'involvedObject.name=my-pod'). Supported fields: involvedObject.kind, involvedObject.name, involvedObject.namespace, involvedObject.uid, involvedObject.apiVersion, involvedObject.resourceVersion, inv

helm

Tools for managing Helm charts and releases

image

(string) (required) - Container Image to run in the Pod

kcp

Manage kcp workspaces and multi-tenancy features

kiali

Most common tools for managing Kiali, check the Kiali documentation for more details.

kubevirt

KubeVirt virtual machine management tools, check the KubeVirt documentation for more details.

label_selector

(string) - Kubernetes label selector (e.g. 'node-role.kubernetes.io/worker=') to filter nodes by label (Optional, only applicable when name is not provided)

labelSelector

(string) - Optional Kubernetes label selector (e.g. 'app=myapp,env=prod' or 'app in (myapp,yourapp)'), use this option when you want to filter the pods by label

minified

(boolean) - Return a minified version of the configuration. If set to true, keeps only the current-context and the relevant pieces of the configuration for that context. If set to false, all contexts, clusters, auth-infos, and users are returned in the configuration. (Optional, default true)

name

(string) (required) - Name of the node to get logs from

namespace

(string) - Optional Namespace to retrieve the events from. If not provided, will list events from all namespaces

namespaces_list

List all the Kubernetes namespaces in the current cluster

netobserv

Network observability tools backed by the NetObserv console plugin API (flows, metrics, export). Check the NetObserv documentation for more details.

nodes_log

Get logs from a Kubernetes node (kubelet, kube-proxy, or other system logs). This accesses node logs through the Kubernetes API proxy to the kubelet

nodes_stats_summary

Get detailed resource usage statistics from a Kubernetes node via the kubelet's Summary API. Provides comprehensive metrics including CPU, memory, filesystem, and network usage at the node, pod, and container levels. On systems with cgroup v2 and kernel 4.20+, also includes PSI (Pressure Stall Infor

nodes_top

List the resource consumption (CPU and memory) as recorded by the Kubernetes Metrics Server for the specified Kubernetes Nodes or all nodes in the cluster

pods_delete

Delete a Kubernetes Pod in the current or provided namespace with the provided name

pods_exec

Execute a command in a Kubernetes Pod (shell access, run commands in container) in the current or provided namespace with the provided name and command

pods_get

Get a Kubernetes Pod in the current or provided namespace with the provided name

pods_list

List all the Kubernetes pods in the current cluster from all namespaces

pods_list_in_namespace

List all the Kubernetes pods in the specified namespace in the current cluster

pods_log

Get the logs of a Kubernetes Pod in the current or provided namespace with the provided name

pods_run

Run a Kubernetes Pod in the current or provided namespace with the provided container image and optional name

pods_top

List the resource consumption (CPU and memory) as recorded by the Kubernetes Metrics Server for the specified Kubernetes Pods in the all namespaces, the provided namespace, or the current namespace

previous

(boolean) - Return previous terminated container logs (Optional)

projects_list

List all the OpenShift projects in the current cluster

query

(string) (required) - query specifies services(s) or files from which to return logs (required). Example: "kubelet" to fetch kubelet logs, "/<log-file-name>" to fetch a specific log file from the node (e.g., "/var/log/kubelet.log" or "/var/log/kube-proxy.log")

resources_list

List Kubernetes resources and objects in the current cluster by providing their apiVersion and kind and optionally the namespace and label selector

tail

(integer) - Number of lines to retrieve from the end of the logs (Optional, default: 100)

tailLines

(integer) - Number of lines to retrieve from the end of the logs (Optional, 0 means all logs)

targets_list

List all available targets

tekton

Tekton pipeline management tools for Pipelines, PipelineRuns, Tasks, TaskRuns, and troubleshooting.