Docker MCP Server
by makbn
This module provides an implementation of a Model Context Protocol (MCP) server for Docker commands, powered by the `mcp_mediator` core framework. It utilizes automatic server generation to expose existing Docker commands as MCP Tools.
Last updated: N/A
What is Docker MCP Server?
The Docker MCP Server is a server that exposes Docker commands as MCP Tools using the Model Context Protocol. It leverages the mcp_mediator
framework for automatic server generation, making Docker commands accessible and discoverable.
How to use Docker MCP Server?
To use the Docker MCP Server, you can either run the provided JAR file using java -jar
with specified command-line options (e.g., docker host, TLS settings, server name, version, max connections, docker config) or build a standalone executable using GraalVM native image. Configuration examples are provided for integrating with Claude Desktop. You can then interact with the exposed Docker commands as MCP Tools.
Key features of Docker MCP Server
Automatic MCP Tool generation from Docker commands
Integration with
mcp_mediator
frameworkSupport for annotated and non-annotated methods
Configurable Docker host, TLS settings, and other options
Standalone executable creation using GraalVM native image
Use cases of Docker MCP Server
Automating Docker operations through MCP
Integrating Docker commands into MCP-based workflows
Providing a standardized interface for Docker management
Enhancing discoverability and usability of Docker commands
FAQ from Docker MCP Server
What is MCP?
What is MCP?
MCP stands for Model Context Protocol. It's a protocol for managing and interacting with models and tools.
What is mcp_mediator
?
What is mcp_mediator
?
mcp_mediator
is a core framework used by the Docker MCP Server for automatic server generation.
How do I build the executable?
How do I build the executable?
Use mvn clean compile package
to create a JAR file, then native-image -jar mcp-mediator-implementation-docker-[version].jar
to create a standalone executable.
Are annotations required for MCP Tool generation?
Are annotations required for MCP Tool generation?
No, annotations are optional. MCP Mediator supports automatic generation for non-annotated methods by inferring details.
What Docker commands are supported?
What Docker commands are supported?
A wide range of Docker commands are supported, including container management, image operations, network management, swarm operations, and more. See the 'Supported Docker Commands as MCP Server Tools' section in the README for a full list.