mcp-server-kubernetes
- Virtualization
TypeScript implementation of Kubernetes cluster operations for pods, deployments, services.
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
Kubernetes Pods | List of pods in the default namespace |
Kubernetes Deployments | List of deployments in the default namespace |
Kubernetes Services | List of services in the default namespace |
Kubernetes Namespaces | List of all namespaces |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
list_pods | List pods in a namespace |
list_deployments | List deployments in a namespace |
list_services | List services in a namespace |
list_namespaces | List all namespaces |
create_pod | Create a new Kubernetes pod |
create_deployment | Create a new Kubernetes deployment |
delete_pod | Delete a Kubernetes pod |
cleanup | Cleanup all managed resources |
Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
No arguments |
mcp-server-kubernetes
MCP Server that can connect to a Kubernetes cluster and manage it.
https://github.com/user-attachments/assets/f25f8f4e-4d04-479b-9ae0-5dac452dd2ed
<a href="https://glama.ai/mcp/servers/w71ieamqrt"><img width="380" height="200" src="https://glama.ai/mcp/servers/w71ieamqrt/badge" /></a>
Usage with Claude Desktop
The server will automatically connect to your current kubectl context. Make sure you have:
- kubectl installed and in your PATH
- A valid kubeconfig file with contexts configured
- Access to a Kubernetes cluster configured for kubectl (e.g. minikube, Rancher Desktop, GKE, etc.)
You can verify your connection by asking Claude to list your pods or create a test deployment.
If you have errors, open up a standard terminal and run kubectl get pods
to see if you can connect to your cluster without credentials issues.
Features
- Connect to a Kubernetes cluster
- List all pods
- List all services
- List all deployments
- Create a pod
- Delete a pod
- List all namespaces
- [] Port forward to a pod
- [] Get logs from a pod for debugging
- [] Choose namespace for next commands (memory)
- [] Support Helm for installing charts
Development & Testing
Not planned
Authentication / adding clusters to kubectx.
GitHub Badge
Glama performs regular codebase and documentation scans to:
- Confirm that the MCP server is working as expected.
- Confirm that there are no obvious security issues with dependencies of the server.
- Extract server characteristics such as tools, resources, prompts, and required parameters.
Our directory badge helps users to quickly asses that the MCP server is safe, server capabilities, and instructions for installing the server.
Copy the following code to your README.md file: