mcp-kubernetes
@Azure
About mcp-kubernetes
A Model Context Protocol (MCP) server that enables AI assistants to interact with Kubernetes clusters. It serves as a bridge between AI tools (like Claude, Cursor, and GitHub Copilot) and Kubernetes
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"kubernetes": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount",
"type=bind,src=/home/username/.kube/config,dst=/home/mcp/.kube/config",
"ghcr.io/azure/mcp-kubernetes"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is mCP-kubernetes?
mcp-kubernetes is a Model Context Protocol (MCP) server that enables AI assistants to interact with Kubernetes clusters. It bridges AI tools (like Claude, Cursor, and GitHub Copilot) and Kubernetes by translating natural language requests into Kubernetes operations and returning results that AI tools can understand.
How to use MCP-kubernetes?
Install via Docker or locally (requires kubectl and optionally helm). Configure it as an MCP server in your AI client (e.g., Claude Desktop, Cursor) using the provided JSON configuration. The server exposes a single call_kubectl tool (by default) that accepts any kubectl command, or legacy specialized tools if USE_LEGACY_TOOLS=true is set. Commands are filtered by access level (readonly, readwrite, or admin) set via the --access-level argument.
Key features of MCP-kubernetes
- Single unified
call_kubectltool that reduces context consumption. - Access levels (
readonly,readwrite,admin) filter available operations. - Optional legacy tools (e.g.,
kubectl_resources,kubectl_workloads). - Supports additional tools: Helm, Cilium, and Hubble via
--additional-tools. - Runs over stdio, SSE, or streamable-http transports.
- Configurable timeout, namespace filtering, and OTLP telemetry.
Use cases of MCP-kubernetes
- Query cluster status, pod states, and deployments using natural language.
- Debug a failing pod by viewing logs or events.
- Scale a deployment or apply a configuration file.
- Check RBAC permissions with
kubectl auth can-i. - Switch kubectl contexts or list all available contexts.
FAQ from MCP-kubernetes
What transport mechanisms are supported?
Stdio (default), SSE, and streamable-http. The transport is set via the --transport flag. SSE and streamable-http also require --host and --port arguments.
What access levels are available and what do they do?
readonly (default) allows only read operations (get, describe, logs, etc.). readwrite allows create, delete, apply, etc. admin allows all operations including cordon, drain, and taint. Tools are filtered at registration time so AI assistants only see permitted operations.
What environment variables are required or optional?
KUBECONFIG – path to your kubeconfig file (used when running locally). USE_LEGACY_TOOLS – set to true to use multiple specialized kubectl tools instead of the unified call_kubectl tool (default is false).
How do I control which namespaces are accessible?
Use the --allow-namespaces command-line argument with a comma-separated list of namespaces. An empty list means all namespaces are allowed.
Can I extend the server with tools beyond kubectl?
Yes. Use the --additional-tools flag with a comma-separated list: helm, cilium, and/or hubble. These tools become available as separate MCP tools (call_helm, call_cilium, call_hubble).
Frequently asked questions
What transport mechanisms are supported?
Stdio (default), SSE, and streamable-http. The transport is set via the `--transport` flag. SSE and streamable-http also require `--host` and `--port` arguments.
What access levels are available and what do they do?
`readonly` (default) allows only read operations (get, describe, logs, etc.). `readwrite` allows create, delete, apply, etc. `admin` allows all operations including cordon, drain, and taint. Tools are filtered at registration time so AI assistants only see permitted operations.
What environment variables are required or optional?
`KUBECONFIG` – path to your kubeconfig file (used when running locally). `USE_LEGACY_TOOLS` – set to `true` to use multiple specialized kubectl tools instead of the unified `call_kubectl` tool (default is `false`).
How do I control which namespaces are accessible?
Use the `--allow-namespaces` command-line argument with a comma-separated list of namespaces. An empty list means all namespaces are allowed.
Can I extend the server with tools beyond kubectl?
Yes. Use the `--additional-tools` flag with a comma-separated list: `helm`, `cilium`, and/or `hubble`. These tools become available as separate MCP tools (`call_helm`, `call_cilium`, `call_hubble`).
Basic information
More Cloud & Infrastructure MCP servers
MCP Server that interacts with Azure AI Foundry (experimental)
azure-ai-foundryA MCP Server for Azure AI Foundry: it's now moved to cloud, check the new Foundry MCP Server
Terraform MCP Server
hashicorpThe Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.
Azure DevOps MCP Server
Tiberriver256An MCP server for Azure DevOps
aws-finops-mcp-server
ravikiranvmAn MCP (Model Context Protocol) server that brings powerful AWS FinOps capabilities directly into your AI assistant. Analyze cloud costs, audit for waste, and get budget insights using natural language, all while keeping your credentials secure on your local machine.

Nippy
NippyNippy is drag-and-drop hosting (nippy.host) with an MCP server: connect it and your assistant can publish HTML, folders of photos, or file downloads to a live *.nippy.site URL — and keep editing the site in place at the
Comments