Docker MCP
Enables remote Docker management over SSH via a local MCP server, providing tools to manage containers, images, Compose, and system resources.
README
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 |
|---|---|
docker_ps |
List containers |
docker_logs |
Fetch logs (tail, since, grep) |
docker_exec |
Run command inside container |
docker_run |
Start new container |
docker_start / docker_stop / docker_restart |
Lifecycle control |
docker_rm |
Remove container(s) |
docker_inspect |
Detailed container/image info |
docker_stats |
Resource usage snapshot |
docker_top |
Processes inside container |
docker_images |
List images |
docker_pull / docker_rmi / docker_build |
Image management |
docker_compose_ps/up/down/logs/restart/pull |
Compose operations |
docker_system_df |
Disk usage |
docker_info / docker_version |
System info |
docker_network_ls / docker_volume_ls |
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-engine
2. Install dependencies
sudo apt install python3.12-venv
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
3. Configure SSH target
cp config.example.json config.json
# Edit config.json with your server details
config.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 ps
5. 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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.