Detailed platform-specific instructions for setting up Docker MCP servers.
-
Download Docker Desktop for Mac:
- Apple Silicon (M1/M2/M3): Download here
- Intel Mac: Download here
-
Open the downloaded
.dmgfile -
Drag Docker to Applications folder
-
Launch Docker from Applications
-
Accept the service agreement
- Click Docker icon in menu bar
- Open Preferences → Beta Features
- Enable "Docker MCP Toolkit"
- Click Apply & Restart
- Download from claude.ai/download
- Open the
.dmgfile - Drag Claude to Applications
- Launch Claude and sign in
# Create MCP directories
mkdir -p ~/.docker/mcp/catalogs
# Edit Claude configuration
nano ~/Library/Application\ Support/Claude/claude_desktop_config.jsonAdd the MCP gateway configuration (see Quick Start guide for details).
- Windows 10 64-bit: Pro, Enterprise, or Education (Build 19041 or higher)
- Windows 11 64-bit: Home, Pro, Enterprise, or Education
Open PowerShell as Administrator:
# Enable WSL
wsl --install
# Set WSL 2 as default
wsl --set-default-version 2
# Restart your computer- Download Docker Desktop for Windows
- Run the installer
- Ensure "Use WSL 2 instead of Hyper-V" is selected
- Complete installation and restart
- Launch Docker Desktop
- Go to Settings → General
- Ensure "Use the WSL 2 based engine" is checked
- Go to Beta Features
- Enable "Docker MCP Toolkit"
- Apply & Restart
- Download from claude.ai/download
- Run the installer
- Launch Claude and sign in
Open PowerShell:
# Create MCP directories
mkdir -Force "$HOME\.docker\mcp\catalogs"
# Edit Claude configuration
notepad "$env:APPDATA\Claude\claude_desktop_config.json"Important for Windows paths: Use double backslashes in JSON:
"C:\\Users\\YourUsername\\.docker\\mcp"- Ubuntu 20.04 LTS or later
- Debian 11 or later
- Fedora 36 or later
- Arch Linux (latest)
# Update package index
sudo apt-get update
# Install prerequisites
sudo apt-get install ca-certificates curl gnupg
# Add Docker's official GPG key
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
# Set up repository
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# Install Docker
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
# Add user to docker group
sudo usermod -aG docker $USER
newgrp docker# Install Docker
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
# Start Docker
sudo systemctl start docker
sudo systemctl enable docker
# Add user to docker group
sudo usermod -aG docker $USERDownload the .deb or .rpm package from Docker Desktop for Linux
# For Ubuntu/Debian
sudo dpkg -i docker-desktop-*.deb
# For Fedora
sudo rpm -i docker-desktop-*.rpmCurrently, Claude Desktop requires running through a compatibility layer on Linux. Alternatively, use:
- Cursor IDE with MCP support
- LM Studio
- Custom MCP clients
# Create MCP directories
mkdir -p ~/.docker/mcp/catalogs
# Edit configuration (for Cursor or other clients)
nano ~/.config/[client-name]/mcp_config.json# Check Docker version
docker --version
# Check Docker is running
docker ps
# Test Docker with hello-world
docker run hello-world# Check if MCP commands are available
docker mcp --help
# List available MCP servers
docker mcp server list
# Check secrets management
docker mcp secret list- Build a test server:
cd examples/dice-roller
docker build -t test-mcp .- Check if it appears in Docker:
docker images | grep test-mcp- Restart your MCP client (Claude/Cursor)
- Check if tools appear
macOS:
- Check System Preferences → Security & Privacy
- Ensure Docker has necessary permissions
- Try resetting Docker: Troubleshoot → Reset to factory defaults
Windows:
- Ensure virtualization is enabled in BIOS
- Check WSL 2 is properly installed:
wsl --status - Run as Administrator
Linux:
- Check Docker daemon:
sudo systemctl status docker - Verify user is in docker group:
groups
- Ensure you're on the latest Docker Desktop version
- Beta features must be enabled
- Try reinstalling Docker Desktop
- Verify Docker image exists:
docker images - Check catalog file syntax
- Ensure registry.yaml is properly formatted
- Restart Claude Desktop completely (not just close window)
macOS/Linux:
# Fix Docker socket permissions
sudo chmod 666 /var/run/docker.sock
# Or add user to docker group
sudo usermod -aG docker $USERWindows:
- Run Docker Desktop as Administrator
- Check WSL 2 integration in Docker settings
Common causes:
- Network issues downloading packages
- Dockerfile syntax errors
- Missing dependencies
Debug with:
# Verbose build output
docker build --no-cache --progress=plain -t test .
# Check build logs
docker logs [container-id]✅ Installation complete? Now:
- Try the Quick Start Guide
- Build a custom server with the MCP Builder Prompt
- Learn about Docker MCP Gateway
Need help? Check the Troubleshooting Guide or watch the video tutorial!