MCP.so
Sign In

Docker MCP Server

@makbn

About Docker MCP Server

Model Context Protocol MCP Server for Docker Commands. Provides Docker and Docker Swarm commands as MCP Tools.

Basic information

Category

Cloud & Infrastructure

License

GPL-3.0 license

Runtime

java

Transports

stdio

Publisher

makbn

Config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

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 Docker MCP Server?

A Java-based Model Context Protocol (MCP) server that exposes Docker CLI commands as MCP tools. Built on the MCP Mediator framework, it automatically generates tool definitions from Docker service methods, optionally annotated with @McpTool. Intended for developers and AI agents to manage Docker containers, images, volumes, networks, services, and swarms through MCP-compatible clients like Claude Desktop.

How to use Docker MCP Server?

Run the JAR or native executable with CLI options to set the Docker host, TLS settings, server name, and max connections. For example: java -jar docker-mcp-server.jar --docker-host=tcp://localhost:2376 --server-name=my-server. Then configure an MCP client (e.g., Claude Desktop) to launch the server using java -jar or the native binary, passing the same options.

Key features of Docker MCP Server?

  • Automatic generation of MCP tools from Docker service methods
  • Supports annotation-free inference for non-annotated methods
  • Exposes 50+ Docker commands as individual MCP tools
  • Runs as a Java JAR or a standalone GraalVM native image
  • Configurable via CLI options and environment variables
  • TLS verification support for secure Docker daemon connections

Use cases of Docker MCP Server?

  • Let an AI assistant start, stop, or inspect containers via MCP tools
  • Automate image builds, pushes, and pulls from a registry
  • Manage Docker Swarm nodes, services, and tasks programmatically
  • Retrieve container logs, stats, and filesystem changes on demand

FAQ from Docker MCP Server?

How does Docker MCP Server generate tools automatically?

It uses the MCP Mediator core framework to scan methods in a Docker service class. Methods annotated with @McpTool are explicitly registered; other methods can be inferred automatically by setting createForNonAnnotatedMethods(true).

What are the runtime requirements?

Java 17+ (for JAR execution) or GraalVM (for building a native image). The server connects to a Docker daemon, by default at unix:///var/run/docker.sock.

Can I securely connect to a remote Docker daemon?

Yes. Use --tls-verify, --cert-path, and --docker-host to enable TLS client authentication. The cert path must contain the client certificate, key, and CA.

What Docker commands are available as MCP tools?

The README lists over 50 tools, including docker_start_container, docker_stop_container, docker_list_containers, docker_build_image_file, docker_push_image, docker_pull_image, docker_inspect_volume, docker_create_network, docker_join_swarm, and many more.

How do I configure logging?

Set the environment variable DOCKER_MCP_LOG_LEVEL (default: DEBUG) and optionally DOCKER_MCP_LOG_FILE (default: logs/docker_mcp_server.log).

Comments

More Cloud & Infrastructure MCP servers