MCP Kubernetes
Execute Kubernetes commands using kubectl from any MCP-compatible client. Requires a valid kubeconfig file.
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@latest
Usage
Starting the server
Run the MCP Kubernetes server:
mcp-kubernetes
By default, the server runs using stdio transport. You can specify a different port for HTTP transport with the -port flag:
mcp-kubernetes -port 8080
Using with Claude Desktop
- Configure Claude Desktop to use the MCP Kubernetes server by adding it to your
claude_desktop_config.json:
{
"mcpServers": {
"kubernetes": {
"command": "mcp-kubernetes"
}
}
}
- You can now use Claude to execute Kubernetes commands, such as:
- "Show me the pods in the default namespace"
- "List all services across all namespaces"
- "Check the status of my deployment named my-app"
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
Servidores relacionados
Railway MCP Server
Manage Railway infrastructure through natural language using the Railway API.
Stock Market MCP Server
Provides real-time US stock market data and company financial information using the Alpha Vantage API.
Linode
Interact with the Linode API to manage cloud resources.
StreamNative MCP Server
Integrate AI agents with StreamNative Cloud resources and Apache Kafka/Pulsar messaging systems.
AWS Cost Explorer & Bedrock Logs
Retrieve AWS spend data from Cost Explorer and Amazon Bedrock usage data from CloudWatch logs.
Preloop
Preloop is an event-driven AI automation platform with built-in human-in-the-loop safety based on MCP proxying.
Cisco Hyperfabric MCP
An MCP server that enables LLMs to interact with Cisco Intersight APIs.
Alpha Vantage
Access real-time financial data, including stock prices, forex rates, and cryptocurrencies from Alpha Vantage.
Remote MCP Server (Authless)
A remote MCP server deployable on Cloudflare Workers without authentication.
MCP Status Observer
Monitors the operational status of major digital platforms.