Best MCP Servers for Docker & Kubernetes in 2026
Container infrastructure is powerful but verbose. MCP servers let your AI agent inspect running containers, tail pod logs, scale deployments, and diagnose failures — all in plain English.
Updated March 2026 · 8 min read
Why Use an MCP Server for Container Management?
Kubectl commands are powerful but require memorizing flags, YAML schemas, and resource names. Docker CLI is similarly verbose. MCP servers bridge your AI assistant directly to container runtimes so you can ask natural-language questions like "which pods are crash-looping?" or "show me the last 100 lines from the api container" and get immediate, actionable answers.
The result: faster incident response, easier onboarding for junior devs, and a tighter feedback loop between writing code and running it.
Top MCP Servers for Docker & Kubernetes
1. Docker MCP Server (Official)
The official Docker MCP server exposes the Docker Engine API through a clean set of tools: list containers, inspect images, tail logs, exec into containers, start/stop services, and manage networks and volumes. It works against your local Docker daemon or a remote host via DOCKER_HOST.
- List running and stopped containers with status and port mappings
- Pull and inspect images, check sizes and layers
- Tail container logs (with line limits and timestamps)
- Start, stop, restart, and remove containers
- Exec commands inside running containers
- Inspect Docker Compose project state
Best for: Local development, Docker Compose workflows, quick container debugging.
2. Kubernetes MCP Server
The Kubernetes MCP server connects to your cluster via kubeconfig and exposes a wide set of tools for reading and managing cluster state. You can query pods, deployments, services, config maps, and secrets — and apply or patch manifests on the fly.
- Get pods, deployments, services, ingresses across namespaces
- Tail pod logs with container selection
- Describe resources (events, conditions, resource requests)
- Apply YAML manifests from text or file
- Scale deployments and stateful sets
- Port-forward to pods for local debugging
- List and decode secrets (with appropriate RBAC)
Best for: Day-to-day cluster operations, incident response, platform engineers who want AI assistance without context switching.
3. Helm MCP Server
Helm charts are the standard packaging format for Kubernetes, but values.yaml files and release histories are hard to navigate. The Helm MCP server lets your AI list releases, inspect values, check upgrade history, and even render templates — so you can understand what's deployed without digging through charts manually.
- List all Helm releases across namespaces
- Get current values for any release
- Show release history and rollback options
- Render chart templates with custom values
- Search Helm repositories for available charts
Best for: Teams using Helm for deployments, understanding what version of a chart is deployed and why.
4. mcp-server-k8s-lens (Lens Integration)
Lens is one of the most popular Kubernetes IDEs. This MCP server hooks into the Lens API to surface the same cluster context inside your AI chat. If your team already uses Lens, this gives AI access to the same view without needing raw kubeconfig access.
Best for: Teams already on Lens who want AI chat alongside the visual dashboard.
5. Prometheus + Alertmanager MCP Server
Observability and container management overlap heavily. Prometheus MCP servers let you execute PromQL queries, inspect alert rules, and check active alerts — so your AI can correlate "pod is crash-looping" with "error rate spiked 3 minutes ago" in a single conversation.
- Execute arbitrary PromQL queries
- List active and pending alerts
- Inspect alert rule definitions
- Get metric cardinality and label values
Best for: Site reliability engineers combining deployment context with metrics during incidents.
Real-World Use Cases
Incident Triage
When something breaks in production, ask your AI: "List all pods not in Running state and show me the last 50 log lines from each." Instead of running five kubectl commands and mentally correlating output, you get a single synthesized summary with the most likely root cause highlighted.
Deployment Review
Before releasing, have your AI check: "What's the current image tag on the api deployment, what resource limits are set, and are there any recent warning events?" This catches misconfigurations that slip through code review.
Cost Optimization
Ask "which deployments have no resource requests set" or "show me pods using more than 500m CPU" — questions that are tedious to answer manually become instant with an MCP-connected AI.
Onboarding New Engineers
A new engineer can ask "explain the architecture of our Kubernetes cluster" and get a plain-English walkthrough of namespaces, services, and ingress rules derived from live cluster state — not outdated documentation.
Setting Up the Kubernetes MCP Server
Here's the minimal config for Claude Desktop (or any MCP-compatible client):
{
"mcpServers": {
"kubernetes": {
"command": "npx",
"args": ["-y", "@flux159/mcp-server-kubernetes"],
"env": {
"KUBECONFIG": "/home/youruser/.kube/config"
}
}
}
}Make sure the service account or user in your kubeconfig has appropriate RBAC permissions. For read-only use (monitoring, inspection), a ClusterRole with get, list, and watch on core resources is sufficient.
Docker Compose Config
For local Docker development, the Docker MCP server needs socket access:
{
"mcpServers": {
"docker": {
"command": "npx",
"args": ["-y", "@docker/mcp-server"],
"env": {
"DOCKER_HOST": "unix:///var/run/docker.sock"
}
}
}
}On macOS with Docker Desktop, the socket path is usually /var/run/docker.sock or ~/.docker/run/docker.sock depending on the version.
Security Considerations
Container management MCP servers have significant blast radius. Follow these practices:
- Use read-only RBAC in production. Separate read and write kubeconfigs and only give the MCP server write access when you need it.
- Review before apply. For manifest apply operations, have the AI show you the diff first.
- Never expose the Docker socket remotely without TLS and authentication — it's equivalent to root access to the host.
- Audit log all MCP tool calls in production environments where compliance matters.
Choosing the Right Tool for Your Setup
Start with the official Docker MCP server if you're primarily working locally with Docker Compose. Add the Kubernetes MCP server once you move to a cluster environment — it unlocks the most useful day-to-day workflows. Layer in Helm MCP if your team uses Helm charts, and consider Prometheus MCP if you want AI-assisted incident response.
The combination of a container MCP server with a code editor MCP (like GitHub) gives you end-to-end visibility from code commit to running pod — all in a single AI conversation.
Browse All Container MCP Servers
EveryMCP indexes Docker, Kubernetes, and cloud-native MCP servers — including community tools, specialized integrations, and enterprise options.