Basic information
About kubectl MCP Server
Interact with Kubernetes resources using natural language instead of complex kubectl commands. Simplify cluster management with kubectl.
kubectl is a MCP server in the Cloud Infrastructure category listed in the AddMCP.net directory, published by rohitg00. Supported transport: stdio. Runtime: Python. License: MIT. The repository has 920 GitHub stars. Source code is hosted on github.com. Related topics: ai, cloud-infrastructure, community, deployment, developer-tools.
Setup
{
"mcpServers": {
"kubernetes": {
"command": "python",
"args": [
"-m",
"kubectl_mcp_tool.mcp_server"
],
"env": {
"KUBECONFIG": "/path/to/your/.kube/config",
"PATH": "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin"
}
}
}
}
{
"mcpServers": {
"kubernetes": {
"command": "python",
"args": [
"-m",
"kubectl_mcp_tool.mcp_server"
],
"env": {
"KUBECONFIG": "/path/to/your/.kube/config",
"PATH": "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin"
}
}
}
}
{
"servers": {
"kubernetes": {
"command": "python",
"args": [
"-m",
"kubectl_mcp_tool.mcp_server"
],
"env": {
"KUBECONFIG": "/path/to/your/.kube/config",
"PATH": "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin"
}
}
}
}
kubectl MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"kubernetes": {
"command": "python",
"args": [
"-m",
"kubectl_mcp_tool.mcp_server"
],
"env": {
"KUBECONFIG": "/path/to/your/.kube/config",
"PATH": "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin"
}
}
}
}
kubectl MCP Server tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is kubectl?
Kubectl MCP Tool lets you control Kubernetes infrastructure through natural language conversations with AI. It integrates with any MCP-compatible AI assistant and kubectl to manage clusters, debug issues, deploy apps, and audit security.
How to use kubectl?
Install via npx (npx -y kubectl-mcp-server) or pip (pip install kubectl-mcp-server), then add the server configuration to your AI assistant’s MCP settings file (e.g., claude_desktop_config.json or .cursor/mcp.json). Once connected, use natural language commands to interact with your cluster.
Key features of kubectl
- 253 powerful tools and 8 workflow prompts
- AI-powered crash and network diagnostics
- Built-in cost optimization analysis
- Enterprise OAuth 2.1 authentication and RBAC validation
- Interactive HTML dashboards with live metrics
- Works with all major MCP-compatible AI assistants
kubectl tools
What are the dependencies to run Kubectl MCP Tool?
You need Python 3.9+ (for pip) or Node.js 14+ (for npx), kubectl installed and configured, and access to a Kubernetes cluster.
Which AI assistants are supported?
Kubectl MCP Tool works natively with Claude Desktop, Cursor, Windsurf, GitHub Copilot, Gemini CLI, Goose, Roo Code, and 15+ other MCP-compatible clients.
Can I manage multiple Kubernetes clusters?
Yes, the
Use cases of kubectl
- Debugging a crashing pod with logs, events, and resource analysis
- Deploying a Redis cluster with best practices via natural language
- Auditing RBAC permissions and security across all namespaces
- Identifying idle resources and cost optimization opportunities
- Visualizing cluster dashboards with live metrics and event timelines
Videos
Tutorials, guides, and showcases related to kubectl MCP Server. The player loads when you press play.
Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In