Kubectl MCP Server
MCP server by rohitg00 Verified · npm:kubectl-mcp-server
Kubectl MCP Server lets AI assistants manage Kubernetes clusters through natural language. It covers debugging crashed pods, cost checks, deployments, security audits and Helm charts. It suits DevOps engineers and developers.
Install Kubectl MCP Server
Built from the published package, never by AI.
claude mcp add kubectl-mcp-server -- npx -y kubectl-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"kubectl-mcp-server": {
"args": [
"-y",
"kubectl-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"kubectl-mcp-server": {
"args": [
"-y",
"kubectl-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"kubectl-mcp-server": {
"args": [
"-y",
"kubectl-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add kubectl-mcp-server -- npx -y kubectl-mcp-server{
"mcpServers": {
"kubectl-mcp-server": {
"args": [
"-y",
"kubectl-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add kubectl-mcp-server npx -y kubectl-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the kubectl-mcp-server block.
About
Kubectl MCP Server is an MCP server for Kubernetes. It lets an AI assistant work with clusters through natural language, for example to debug crashed pods, find wasted resources, deploy applications, audit security and manage Helm charts. The project describes itself as stateless and part of the CNCF Landscape.
By default the server registers the core and helm toolsets, which give 26 tools. Other toolsets such as diagnostics, certs and gitops are opt-in, and all toolsets together provide 209 tools. It can run over stdio or stateless HTTP, and it is installed through npx, pip, uvx or Docker. The source lists clients including Claude Desktop, Cursor, Windsurf and GitHub Copilot. It is aimed at DevOps engineers and developers who want to run cluster tasks from an AI chat.
Written from the project's README and checked against it.
Tools it gives your assistant
kubectl_getGets resources of any kind, including custom resources, from the cluster.kubectl_describeDescribes a Kubernetes resource in detail.kubectl_logsReads logs from pods to help diagnose problems.kubectl_applyApplies manifests to create or update resources.detect_ecosystemReports which operators are installed and which toolsets cover them.search_toolsFinds tools on demand when tool search mode is enabled.call_toolCalls a discovered tool when tool search mode is enabled.
What you need
- kubectl installed and configured
- Access to a Kubernetes cluster
- Python 3.10+ or uv for pip and uvx installs
- Node.js 18+ for npx installs
Try asking
- Why is my nginx-deployment pod crashing?
- Scale my frontend deployment to 5 replicas
- Audit RBAC permissions in all namespaces
Good to know
- Only 26 tools are registered by default; other toolsets must be enabled.
- The HTTP mode in Docker refuses to start without OAuth or MCP_ALLOW_UNAUTHENTICATED=true.
- Read-only mode, scopes and Secret redaction are described in the source.
Security check
C- Downloads a script from the internet and runs itIn
README.md:curl -fsSL https://raw.githubusercontent.com/agentregistry-dev/agentregistry/main/scripts/install.sh | bash - Runs a script automatically when the package is installedIn
package.json:"postinstall":
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Kubectl MCP Server
All alternatives →Azure MCP Server bundles all Azure MCP tools into one local MCP server. It connects AI agents to Azure services and can be used alone or with the GitHub Copilot for Azure extension in VS Code.
Manages monitors, status pages, incidents and maintenances in an openstatus workspace from Claude, ChatGPT, or Cursor. It suits teams that run uptime monitoring and status pages and want their AI assistant to update them.
SmartBear MCP gives AI assistants access to SmartBear's testing and monitoring tools, including BugSnag, Reflect, Swagger, PactFlow and QTM4J. It is aimed at teams that already use these products. Products are reached through remote servers or a local npm package.
Lets AI assistants manage Fettle uptime monitoring, including monitors, incidents, heartbeats, maintenance windows and status page incidents. Built for developers and operations teams who use Fettle and want to work from Claude, Cursor or Codex.
Superlog is an open-source agentic telemetry system that ingests traces, logs and metrics and groups noisy signals into incidents. It is aimed at teams debugging production systems with OpenTelemetry data.
Microsoft Learn MCP gives AI assistants direct access to official Microsoft documentation and code samples through a remote MCP endpoint. It is for developers who use MCP-compatible clients and want answers based on current Microsoft docs.
Compare with Azure MCP Server, openstatus or SmartBear MCP
Kubectl MCP Server: common questions
Does Kubectl MCP Server support multiple clusters?
The source has a Multi-Cluster Support section and tools to list and switch Kubernetes contexts. It mentions switching to a production cluster context.
Can it run in read-only mode?
The source says the server has a read-only mode, along with OAuth 2.1 auth with per-tool scopes and Secret redaction.
How many tools does it provide?
The source says 26 default tools and 209 tools with every toolset enabled. The declared description mentions a different count, so check the repository for the current number.
How do I install Kubectl MCP Server?
In Claude Code run claude mcp add kubectl-mcp-server -- npx -y kubectl-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Kubectl MCP Server the official server?
Kubectl MCP Server is published by npm:kubectl-mcp-server from its verified domain in the official MCP Registry.
Is Kubectl MCP Server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Kubectl MCP Server safe to use?
It scores 82 of 100. Grades: maintenance B, licence A, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to Kubectl MCP Server?
Similar MCP servers: Azure MCP Server, openstatus, SmartBear MCP, Fettle.
Does Kubectl MCP Server work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
