Docker & Kubernetes MCP Server
Provides tools for managing Docker containers, images, volumes, and networks.
Provides tools for managing Kubernetes resources such as pods, deployments, services, and namespaces.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Docker & Kubernetes MCP Server list all running Docker containers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Docker & Kubernetes MCP Server
A Model Context Protocol (MCP) server that provides powerful Docker and Kubernetes integration for AI assistants.
Features
🐳 Docker Operations: Container management, image building, volume/network management
☸️ Kubernetes Operations: Pod/Deployment/Service management, namespace operations
🔧 MCP Integration: Seamless AI assistant integration with structured tool calls
Related MCP server: Docker Manager MCP
Quick Start
git clone https://github.com/TrivCodez/docker-kubernetes-mcp.git
cd docker-kubernetes-mcp
npm install
npm run devUsage
Claude Desktop Config
{
"mcpServers": {
"docker-k8s": {
"command": "node",
"args": ["dist/index.js"],
"env": {
"DOCKER_HOST": "unix:///var/run/docker.sock",
"KUBECONFIG": "~/.kube/config"
}
}
}
}Available Tools
Docker:
docker_list_containersdocker_run_containerdocker_stop_containerdocker_build_imagedocker_logs
Kubernetes:
k8s_list_podsk8s_create_deploymentk8s_get_servicesk8s_exec_podk8s_get_logs
Development
npm run build
npm testSecurity
⚠️ Requires Docker socket and Kubernetes cluster access. Use proper RBAC and authentication in production.
License
MIT License - see LICENSE file
Made with ❤️ by TrivCodez
Available Tools
9 toolsdocker_list_containersB
List all Docker containers
Inputs: all.
docker_logsC
Get container logs
Inputs: container (required), tail, follow.
docker_run_containerC
Run a new Docker container
Inputs: image (required), name, ports, env, +1 more.
docker_stop_containerB
Stop a running container
Inputs: container (required).
k8s_create_deploymentC
Create a Kubernetes deployment
Inputs: name (required), image (required), replicas, namespace, +1 more.
k8s_exec_podC
Execute command in pod
Inputs: pod (required), command (required), namespace, container.
k8s_get_logsC
Get pod logs
Inputs: pod (required), namespace, container, tail.
k8s_get_servicesC
Get Kubernetes services
Inputs: namespace.
k8s_list_podsC
List Kubernetes pods
Inputs: namespace, labelSelector.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Tools are clearly divided between Docker and Kubernetes operations, each with distinct purposes. No overlap exists between Docker container management and Kubernetes pod/service management.
All tools follow a consistent pattern: 'docker_' or 'k8s_' prefix followed by verb_noun (e.g., docker_list_containers, k8s_create_deployment). No mixed conventions.
9 tools is a well-scoped number covering essential operations for both Docker and Kubernetes. Not too many to be overwhelming, nor too few to be trivial.
The set covers basic operations like listing, running, and logging, but for both Docker and Kubernetes, critical lifecycle operations (e.g., update, delete, inspect) are missing, leading to notable gaps.
Maintenance
Related MCP Connectors
Manage your own cloud with AI: deploy apps, push and ship custom Docker images, manage resources via your AI agent.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Deploy and run your apps by asking your AI: services, Postgres, logs, traces, rollbacks, costs.
Provides capabilities that let LLM agents perform a range of infrastructure management tasks.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables natural language management of Docker containers, images, networks, and volumes with support for both local and remote Docker engines. Features automated container composition, debugging capabilities, and persistent data management through an intuitive conversational interface.GPL 3.0
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Docker containers, deploy stacks, and monitor services across multiple Docker hosts from one centralized location. Supports container lifecycle management, Docker Compose operations, and infrastructure orchestration through natural language commands.6MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage and analyze containers across Docker and Podman through natural language, providing unified inspection, monitoring, and diagnostics.3-
- AlicenseAqualityCmaintenanceEnables AI assistants to manage Docker containers and Compose stacks through natural language, including lifecycle operations, logs, stats, and secure remote access.2112 npm3MIT