Kubernetes MCP Server
Connect your AI assistant to Kubernetes clusters for cluster management, pod inspection, deployment automation, and troubleshooting.
Kubernetes MCP Server
Connect your AI assistant directly to Kubernetes clusters for real-time cluster management and troubleshooting.
What it Does
- Cluster Inspection: List nodes, namespaces, and cluster resources
- Pod Management: View pod status, logs, and descriptions
- Deployment Operations: Create, update, and scale deployments
- Service Management: Inspect and manage services, ingress, and networking
- Troubleshooting: Get events, describe resources, and diagnose issues
Installation
# Using npx
npx -y @anthropic-ai/mcp-server-kubernetes
# Using Docker
docker run -i --rm -v ~/.kube:/root/.kube mcp/kubernetes
Configuration
{
"mcpServers": {
"kubernetes": {
"command": "npx",
"args": ["-y", "@anthropic-ai/mcp-server-kubernetes"],
"env": {
"KUBECONFIG": "${HOME}/.kube/config"
}
}
}
}
Example Prompts
- "Show me all pods in the default namespace"
- "What deployments are failing in production?"
- "Get logs from the api-server pod"
- "Scale the web deployment to 5 replicas"
- "List all services with external IPs"
Security Notes
- Use read-only service accounts for production clusters
- Limit RBAC permissions to only required resources
- Never expose kubeconfig with admin credentials to AI assistants
Related Articles
Supavec MCP Server: Vector Database for AI Applications
Supavec MCP servers enable AI models to interact with vector databases, providing capabilities for storing, searching, and managing vector embeddings for AI applications.
X (Twitter) MCP Server
X (Twitter) MCP servers enable AI models to interact with X platforms, providing capabilities for tweet management, account operations, list organization, and content search.
Sequential Thinking MCP Server: AI Step-by-Step Problem Solving
Sequential Thinking MCP servers enable AI models to perform structured, step-by-step problem-solving with support for thought revision, branching reasoning, and dynamic context management.