home / mcp / docker mcp server

Docker MCP Server

Provides a comprehensive MCP server to manage Docker containers, images, networks, volumes, registries, and compose through natural language.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "alisaitteke-docker-mcp": {
      "command": "npx",
      "args": [
        "@alisaitteke/docker-mcp"
      ]
    }
  }
}

Available tools

docker_list_containers

List all containers, with options to include stopped containers and filter by status.

docker_create_container

Create a new container from a specified image with given configuration such as ports, environment variables, and labels.

docker_start_container

Start a stopped container by its ID or name.

docker_stop_container

Stop a running container gracefully.

docker_restart_container

Restart a running or stopped container.

docker_kill_container

Forcefully terminate a running container.

docker_remove_container

Remove a container, with optional confirmation step.

docker_inspect_container

Retrieve detailed information about a container.

docker_container_logs

Fetch and stream container logs, with options for tail and follow.

docker_container_stats

Display real-time statistics for a container, such as CPU and memory usage.

docker_pause_container

Pause a running container.

docker_unpause_container

Unpause a paused container.

docker_list_images

List available images in the local daemon and registries.

docker_pull_image

Pull an image from a registry, with optional tag and authentication.

docker_push_image

Push a local image to a registry.

docker_tag_image

Tag an existing image with a new repository or tag.

docker_remove_image

Remove a local image from the daemon.

docker_inspect_image

Get metadata and details about a specific image.

docker_image_history

Show the history of an image, including layer information.

docker_list_networks

List all Docker networks.

docker_create_network

Create a new Docker network with specified driver and options.

docker_remove_network

Remove a Docker network.

docker_inspect_network

Inspect details of a Docker network.

docker_connect_container

Connect a container to a network.

docker_disconnect_container

Disconnect a container from a network.

docker_list_volumes

List all Docker volumes.

docker_create_volume

Create a Docker volume for persistent storage.

docker_remove_volume

Remove a Docker volume.

docker_inspect_volume

Inspect details of a Docker volume.

docker_system_info

Get Docker daemon information and capabilities.

docker_version

Retrieve the Docker daemon version.

docker_prune_system

Prune all unused Docker resources across the system.

docker_prune_images

Prune unused images from the daemon.

docker_prune_containers

Prune stopped containers.

docker_prune_volumes

Prune unused volumes.

docker_prune_networks

Prune unused networks.

docker_exec

Execute a command inside a running container, with optional TTY support.

docker_inspect_exec

Inspect details of an active exec session.

docker_compose_up

Start Docker Compose services for a project.

docker_compose_down

Stop and remove Docker Compose services.

docker_compose_ps

List Docker Compose services and their status.

docker_compose_logs

View logs for Docker Compose services.

docker_compose_config

Parse and validate a docker-compose.yml file.

docker_compose_build

Build Docker Compose services.

docker_compose_restart

Restart Docker Compose services.

docker_compose_stop

Stop Docker Compose services.

docker_compose_start

Start Docker Compose services.

dockerhub_search

Search repositories on Docker Hub.

dockerhub_get_tags

Get tags for a Docker Hub repository.

dockerhub_authenticate

Authenticate with Docker Hub.

dockerhub_pull

Pull an image from Docker Hub.

dockerhub_push

Push an image to Docker Hub.

ghcr_authenticate

Authenticate with GitHub Container Registry.

ghcr_pull

Pull an image from GHCR.

ghcr_push

Push an image to GHCR.