Docker MCP
Provides remote Docker management capabilities via SSH, including container lifecycle, image management, compose operations, and system monitoring.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Docker MCPlist all running containers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Docker MCP
Personal note: Keep in mind that all AIs are essentially retarded geniuses. Refactor instructions as needed if your child acts up.
Remote Docker management over SSH — exposed as a local MCP server for GitHub Copilot sessions.
No server-side component required. The MCP runs locally and SSHes into the remote host to execute Docker commands.
Tools
Tool | Description |
| List containers |
| Fetch logs (tail, since, grep) |
| Run command inside container |
| Start new container |
| Lifecycle control |
| Remove container(s) |
| Detailed container/image info |
| Resource usage snapshot |
| Processes inside container |
| List images |
| Image management |
| Compose operations |
| Disk usage |
| System info |
| Network & volume listing |
Related MCP server: dokploy-logs
Setup
1. Clone the repository
git clone git@github.com:Isak-Landin/mcp-docker-engine.git ~/mcp-docker-engine
cd ~/mcp-docker-engine2. Install dependencies
sudo apt install python3.12-venv
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt3. Configure SSH target
cp config.example.json config.json
# Edit config.json with your server detailsconfig.json fields:
{
"host": "your-server.example.com",
"user": "ubuntu",
"key_path": "~/.ssh/id_rsa",
"port": 22
}4. Verify SSH access
Using the values from your config.json:
ssh -i <key_path> <user>@<host> docker ps5. Register with GitHub Copilot
Copilot CLI — mcp-config.json
Add the docker-mcp entry to the mcpServers object in your Copilot home's mcp-config.json:
"docker-mcp": {
"command": "/home/<your-username>/mcp-docker-engine/.venv/bin/python3",
"args": ["/home/<your-username>/mcp-docker-engine/server.py"]
}VS Code — .vscode/mcp.json
Add the docker-mcp entry to the servers object:
"docker-mcp": {
"type": "stdio",
"command": "/home/<your-username>/mcp-docker-engine/.venv/bin/python3",
"args": ["/home/<your-username>/mcp-docker-engine/server.py"]
}Copilot instructions — copilot-instructions.md
Add the contents of copilot-instructions.md to your Copilot home's copilot-instructions.md or instructions.md.
Notes
The SSH connection uses
StrictHostKeyChecking=accept-new- safe for known hosts, will warn on key changes.docker_buildanddocker_pulluse a 5-10 min timeout; adjusttimeoutinserver.pyif needed.For Compose tools,
project_diris the remote path containingdocker-compose.yml.docker_logsanddocker_execredirect stderr to stdout so output is always captured.
This server cannot be deployed
Maintenance
Related MCP Connectors
Run commands and read/write files on your servers over Termalin's keyless tunnels (hosted MCP).
Manage CloudPepper servers, Odoo instances, backups, and deployments over MCP.
Securely use files, terminals, screenshots and processes on computers you pair with ReMCP.
Remote MCP server to read and manage your Atako AI agents, messages, files, and integrations.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables secure Docker command execution from isolated environments like containers through MCP protocol. Provides tools for managing Docker containers, images, and Docker Compose services with security validation and async operation support.MIT
- -licenseNot gradedqualityNot gradedmaintenanceEnables reading Docker container logs and stats from remote servers via SSH, supporting container listing, log retrieval, stats, inspection, and Docker Compose logs.-
- FlicenseNot gradedqualityDmaintenanceManages Docker containers, images, and Compose stacks on a remote host over SSH, with file sync and deploy orchestration.-
- FlicenseNot gradedqualityDmaintenanceEnables Docker container management and test execution via MCP tools, supporting image building, container operations, and automated test runs.-