Skip to main content
Glama

Kubernetes MCP Server

port-forward

Forward a Kubernetes service to a local port for direct access to cluster resources without exposing them externally. Specify the service name, local port, and target port to establish the connection.

Instructions

Port forward a Kubernetes service to a local port

Input Schema

NameRequiredDescriptionDefault
localPortYesThe local port to forward to
namespaceNoThe namespace of the service (optional, defaults to current context namespace)
serviceYesThe name of the Kubernetes service to port-forward
targetPortYesThe target port on the service

Input Schema (JSON Schema)

{ "properties": { "localPort": { "description": "The local port to forward to", "type": "number" }, "namespace": { "description": "The namespace of the service (optional, defaults to current context namespace)", "type": "string" }, "service": { "description": "The name of the Kubernetes service to port-forward", "type": "string" }, "targetPort": { "description": "The target port on the service", "type": "number" } }, "required": [ "service", "localPort", "targetPort" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thekaranpargaie/kube-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server