- Docker Mcp Server
What is Docker MCP Server?
Docker MCP Server is a Model Context Protocol (MCP) server designed to facilitate interaction with Docker containers and images using the stream HTTP transport method and the Python Docker SDK.
How to use Docker MCP Server?
To use Docker MCP Server, you can either run it using Docker Compose or directly with Docker commands. For Docker Compose, clone the repository and run docker-compose up -d. For direct usage, build the Docker image and run the container with the appropriate environment variables.
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?
- Managing Docker containers in a streamlined manner.
- Automating Docker image management tasks.
- Integrating with other applications that require Docker operations.
FAQ from Docker MCP Server?
- What are the prerequisites for using Docker MCP Server?
You need Docker and optionally Docker Compose for easier deployment.
- How do I enable authentication?
Set the
MCP_AUTH_TOKENenvironment variable when running the server with SSE transport.
- Can I run the server without Docker?
No, Docker is required to run the Docker MCP Server.
Server Config
{
"mcpServers": {
"docker": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-v",
"/var/run/docker.sock:/var/run/docker.sock",
"mcp-docker-server"
]
}
}
}