Skip to main content
Glama
Docker & Kubernetes MCP Server

Docker & Kubernetes MCP Server

by TrivCodez

Docker & Kubernetes MCP Server

License Docker Kubernetes MCP

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 dev

Usage

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_containers

  • docker_run_container

  • docker_stop_container

  • docker_build_image

  • docker_logs

Kubernetes:

  • k8s_list_pods

  • k8s_create_deployment

  • k8s_get_services

  • k8s_exec_pod

  • k8s_get_logs

Development

npm run build
npm test

Security

⚠️ 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 tools
docker_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

    B3.4/5.0

    Scored across 9 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness3/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      6
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to manage and analyze containers across Docker and Podman through natural language, providing unified inspection, monitoring, and diagnostics.
      3
      -