mcp-kubernetes
MCP Kubernetes
Documentation
MCP Kubernetes
A Model Context Protocol (MCP) server for executing Kubernetes commands from Claude Desktop or any MCP-compatible client.
Installation
You can install this tool directly using Go:
go install github.com/BhagyaAmarasinghe/mcp-kubernetes@latestUsage
Starting the server
Run the MCP Kubernetes server:
mcp-kubernetesBy default, the server runs using stdio transport. You can specify a different port for HTTP transport with the `-port` flag:
mcp-kubernetes -port 8080Using with Claude Desktop
1. Configure Claude Desktop to use the MCP Kubernetes server by adding it to your `claude_desktop_config.json`:
{
"mcpServers": {
"kubernetes": {
"command": "mcp-kubernetes"
}
}
}2. You can now use Claude to execute Kubernetes commands, such as:
Available Commands
The MCP Kubernetes server supports the following MCP requests:
execute
Executes a kubectl command:
{
"command": "get pods -n default"
}get-contexts
Retrieves a list of available Kubernetes contexts:
{}current-context
Gets the current Kubernetes context:
{}set-context
Sets the current Kubernetes context:
{
"context": "minikube"
}Security
This MCP server executes kubectl commands directly on your machine, so it should only be used in trusted environments. It does not implement authentication or authorization controls by default.
Requirements
- Go 1.23 or higher
- kubectl installed and in your PATH
- A valid kubeconfig file
License
MIT
Frequently asked questions
What is mcp-kubernetes?
mcp-kubernetes is MCP Kubernetes
How do I install mcp-kubernetes?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-kubernetes open source?
Yes — it is hosted on GitHub at https://github.com/BhagyaAmarasinghe/mcp-kubernetes.
Related MCP tools
eBPF-powered network observability for Kubernetes. Indexes L4/L7 traffic with full K8s context, decrypts TLS without keys. Queryable by AI agents via MCP and humans via dashboard.
GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.
The missing open-source Kubernetes UI with a built-in MCP server for AI agents. See what's broken, why, and what changed. Issues, Topology, event timeline, Helm, GitOps, live service traffic, and cluster audits - all in one Go binary.
mcp-language-server gives MCP enabled clients access semantic tools like get definition, references, rename, and diagnostics.
The Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.
Run MATLAB® using AI applications with the official MATLAB MCP Server from MathWorks®. This MCP server for MATLAB supports a wide range of coding agents like Claude Code® and Visual Studio® Code.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP