Best for
- Developers and operators managing Kubernetes clusters via AI assistants
- Scenarios requiring quick troubleshooting and diagnosis of K8s issues
- Users integrating with MCP clients like Claude Desktop, Codex CLI
The server is powerful but requires caution, especially in production. It is advised to enable non-destructive mode to reduce risk.
Strongest · Documentation 17/20 Weakest · Security and permissions 3/20
Static review · not runListed 2026-08-07
Read the FMRS scoring method →Runtime:Node.js
ALLOW_ONLY_NON_DESTRUCTIVE_TOOLS
Set to true to enable non-destructive mode, disabling delete operations.
ALLOW_ONLY_READONLY_TOOLS
Set to true to enable read-only mode.
ALLOWED_TOOLS
Comma-delimited list of allowed tools to restrict availability.
MASK_SECRETS
Set to false to disable automatic secrets masking in responses.
ENABLE_UNSAFE_STREAMABLE_HTTP_TRANSPORT
Enables Streamable HTTP transport.
ENABLE_UNSAFE_SSE_TRANSPORT
Enables SSE transport.
KUBECONFIG_YAML
Provide kubeconfig as a YAML string.
KUBECONFIG_JSON
Provide kubeconfig as a JSON string.
KUBECONFIG_PATH
Path to kubeconfig file, defaults to ~/.kube/config.
ENABLE_TELEMETRY
Set to true to enable OpenTelemetry observability.
OTEL_EXPORTER_OTLP_ENDPOINT
OTLP endpoint for exporting traces, e.g. a local Jaeger.
OTEL_TRACES_SAMPLER
Trace sampling strategy, e.g. always_on.
{
"mcpServers": {
"kubernetes": {
"command": "npx",
"args": [
"mcp-server-kubernetes"
]
}
}
}
Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"kubernetes": {
"command": "npx",
"args": [
"mcp-server-kubernetes"
]
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
claude mcp add kubernetes -- npx mcp-server-kubernetes
Run it in a terminal; replace any <…> placeholders with your own values first.
Confirm the kubernetes server appears in your client's tool list with tools like kubectl_get and ping, then ask the AI to list your pods — a successful response proves the cluster connection works.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
mcp-server-kubernetes is an MCP server that enables AI assistants to interact with Kubernetes clusters via kubectl. It supports loading kubeconfig from multiple sources and offers a rich set of tools for managing resources, performing Helm operations, port forwarding, node management, and more. The server supports non-destructive and read-only modes, and includes secrets masking for enhanced security.
Upstash's official server providing up-to-date third-party library docs for AI coding assistants
AI-powered NPM package analysis MCP server
An independent control layer that gives AI coding agents budgets, brakes, and receipts
GitHub's official MCP server for managing repos, issues, PRs, and workflows via natural language
Source revision 3d71add20401 Data synced 2026-10-11 Read the FMRS scoring method