Docker MCP Server
by xiispace
The Docker MCP Server provides tools and resources for interacting with Docker containers and images using the Model Context Protocol (MCP). It leverages the stream HTTP transport method and the Python Docker SDK for Docker operations.
Last updated: N/A
What is Docker MCP Server?
The Docker MCP Server is a server that exposes Docker functionalities through the Model Context Protocol (MCP). It allows MCP clients to manage Docker containers and images using a standardized interface.
How to use Docker MCP Server?
The server can be run using Docker Compose, Docker directly, or locally for development. Configuration is done via environment variables, such as MCP_PORT
for enabling SSE transport and MCP_AUTH_TOKEN
for authentication. MCP clients can then interact with the server to manage Docker resources.
Key features of Docker MCP Server
List Docker containers and images
Run, stop, and remove containers
View container logs
Pull Docker images
Inspect container details
Access Docker information as resources
Use cases of Docker MCP Server
Automated container management
Remote Docker control
Integration with MCP-based systems
Centralized Docker resource access
FAQ from Docker MCP Server
What is MCP?
What is MCP?
MCP stands for Model Context Protocol, a protocol for interacting with different services and resources.
What is the default transport method?
What is the default transport method?
The default transport method is stdio. You can enable SSE transport by setting the MCP_PORT
environment variable.
How do I enable authentication?
How do I enable authentication?
Enable authentication by setting the MCP_AUTH_TOKEN
environment variable when using SSE transport.
What tools are available?
What tools are available?
Available tools include docker_ps
, docker_images
, docker_inspect
, docker_run
, docker_stop
, docker_rm
, docker_logs
, and docker_pull
.
What resources are available?
What resources are available?
Available resources include docker://containers
, docker://images
, and docker://container/{container_id}
.