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
Spotify MCP Server
Interact with the Spotify API to manage playlists and control music playback.
Realize MCP - Taboola
Interact with the Taboola advertising platform using natural language via the Taboola Realize API.
fal.ai Ideogram v3
Advanced text-to-image generation model with superior quality and text rendering via the fal.ai API.
Middleware MCP Server
Interact with Middleware to monitor infrastructure, logs, metrics, and traces via the MCP protocol.
BNBChain MCP
Interact with BNB Chain and other EVM-compatible networks using natural language and AI assistance.
Salesforce Order Concierge
An ecommerce assistant for Salesforce, enabling interaction with orders, returns, and customer service operations.
Crypto MCP
Query cryptocurrency prices, market trends, details, and K-line data.
MCP Payment Server
An MCP server for processing payments using stdio transport, configured via environment variables.
FreshMCP
Provides an MCP interface for FreshMCP operations using Azure Cosmos DB and AI Search.
TFT MCP Server
Access Team Fight Tactics (TFT) game data using the Riot Games API.