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
संबंधित सर्वर
Maestro MCP Server
Interact with the Bitcoin blockchain using the Maestro API to explore blocks, transactions, and addresses.
RateSpot
Access real-time mortgage rate data from the RateSpot.io API.
CData SAP Concur
A read-only MCP server to query live SAP Concur data, powered by CData.
Akamai MCP Server
Automate Akamai resource actions using a conversational AI client. Requires Akamai API credentials.
Solana Agent Kit MCP Server
Interact with the Solana blockchain using the Solana Agent Kit.
AWS SES
Send emails using AWS Simple Email Service (SES). Supports plain text, HTML, CC, BCC, reply-to, and email scheduling.
Agent Safe Email MCP
A Remote MCP Server that checks every email before your agent acts on it. Connect via MCP protocol, pay per use with Skyfire.
LicenseSpring
Interact with LicenseSpring's License API and Management API.
WebsitePublisher.ai
Publish complete websites directly from any AI client via API — no hosting setup, CMS, or configuration required.
Authless Remote MCP Server
A remote MCP server without authentication, deployable on Cloudflare Workers.