Skip to main content
Glama

MCP Kubernetes Server

by abhijeetka

port_forward

Forward a Kubernetes pod, deployment, or service to an external port, enabling access to resources outside the cluster. Specify the object, namespace, and ports for deployment.

Instructions

Port forward a resource to the outside world k8s_object can be a pod, deployment or a service and it should be in the format pod/<name>, deployment/<name>, service/<name>

Input Schema

NameRequiredDescriptionDefault
k8s_objectYes
nameYes
namespaceNodefault
portNo
target_portNo

Input Schema (JSON Schema)

{ "properties": { "k8s_object": { "title": "K8S Object", "type": "string" }, "name": { "title": "Name", "type": "string" }, "namespace": { "default": "default", "title": "Namespace", "type": "string" }, "port": { "default": 80, "title": "Port", "type": "integer" }, "target_port": { "default": 80, "title": "Target Port", "type": "integer" } }, "required": [ "k8s_object", "name" ], "title": "port_forwardArguments", "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/abhijeetka/mcp-k8s-server'

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