Overview
MCP Server for Docker is a management control plane (MCP) tool that allows users to interact with Docker containers using natural language commands and provides statistics and logs for each container.
To use the MCP Server, you can run it locally and interact through natural language prompts to create and manage Docker containers.
- Natural language command processing to compose and manage containers. - Provides container statistics including CPU and memory usage. - Allows fetching logs from containers. - Supports managing Docker images, networks, and volumes.
- Quickly deploy and manage Docker containers without writing complex commands.
- Easily retrieve performance metrics and logs for troubleshooting.
- Resume and clean up projects that were previously created using the server.
Add to your AI client
Use these steps to connect 🐋 Docker MCP server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-server-docker-ckreiling": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-docker-ckreiling"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-server-docker-ckreiling": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-docker-ckreiling"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-docker-ckreiling": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-docker-ckreiling"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-server-docker-ckreiling": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-docker-ckreiling"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-docker-ckreiling": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-docker-ckreiling"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-docker-ckreiling": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-docker-ckreiling"
]
}
}
}FAQ
Can I use sensitive data with MCP Server for Docker?
It is not recommended to configure containers with sensitive data such as API keys or database passwords due to security risks.
What if I want to run MCP Server on my local machine?
Yes, running the MCP Server on your local machine allows for secure handling of sensitive data, as it won't be exposed over the network.
Is there support for creating custom configurations?
Yes, you can configure your development environment using the Python Docker SDK and customize it as per your needs.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":152,"uuid":"fc7f69b3-7d93-4a05-abc5-7a09808bcbc1","name":"mcp-server-docker","title":"🐋 Docker MCP server","description":"MCP server for Docker","avatar_url":"https://avatars.githubusercontent.com/u/26697347?v=4","created_at":"$D2024-12-13T09:01:32.870Z","updated_at":"$D2025-04-18T01:39:03.910Z","status":"created","author_name":"ckreiling","author_avatar_url":"https://avatars.githubusercontent.com/u/26697347?v=4","tags":"[]","category":null,"is_featured":false,"sort":1,"url":"https://github.com/ckreiling/mcp-server-docker","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":"server","metadata":"{\"star\":\"466\",\"license\":\"GPL-3.0 license\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-06-04 22:52:13\"}","user_uuid":"4cd34000-4802-404a-84a9-711a304c2381","tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":"","allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]