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
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
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).
More Cloud & Infrastructure MCP servers
Mcp K8s Go
strowkMCP server connecting to Kubernetes
MCP Server that interacts with Azure AI Foundry (experimental)
azure-ai-foundryA MCP Server for Azure AI Foundry: it's now moved to cloud, check the new Foundry MCP Server
Lambda MCP Server Demo (Streamable HTTP)
mikegc-awsCreates a simple MCP tool server with "streaming" HTTP.
container-use
daggerDevelopment environments for coding agents. Enable multiple agents to work safely and independently with your preferred stack.
aws-finops-mcp-server
ravikiranvmAn MCP (Model Context Protocol) server that brings powerful AWS FinOps capabilities directly into your AI assistant. Analyze cloud costs, audit for waste, and get budget insights using natural language, all while keeping your credentials secure on your local machine.
Comments