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
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-engineYou can clone to any directory. Replace
~/mcp-docker-enginewith your preferred path — just use that same path in step 5.
2. 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
}Override config path at runtime:
DOCKER_MCP_CONFIG=/other/path/config.json .venv/bin/python3 server.py4. Verify SSH access
ssh -i ~/.ssh/id_rsa ubuntu@your-server.example.com docker ps5. Register with GitHub Copilot
Use the absolute path to your clone. If you used ~/mcp-docker-engine, expand it: run echo ~/mcp-docker-engine to get the full path, then substitute below.
MCP server config
GitHub Copilot CLI (~/.config/github-copilot/mcp.json) — add to your existing mcpServers object, or create the file:
"docker-mcp": {
"command": "/your/path/to/mcp-docker-engine/.venv/bin/python3",
"args": ["/your/path/to/mcp-docker-engine/server.py"]
}VS Code / Copilot in VS Code (.vscode/mcp.json or user settings) — add to your existing servers object, or create the file:
"docker-mcp": {
"type": "stdio",
"command": "/your/path/to/mcp-docker-engine/.venv/bin/python3",
"args": ["/your/path/to/mcp-docker-engine/server.py"]
}Copilot instructions
instructions.md contains example tool usage for all 26 tools. You can:
Add its contents to your existing Copilot instructions file (e.g.
.github/copilot-instructions.mdor your workspace instructions)Use it as-is if you don't have an instructions file yet
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