Docker MCP
Provides remote Docker management capabilities via SSH, including container lifecycle, image management, compose operations, and system monitoring.
Click on "Install 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 |
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 installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Isak-Landin/mcp-docker-engine'
If you have feedback or need assistance with the MCP directory API, please join our Discord server