dockhand-mcp
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., "@dockhand-mcplist all 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.
dockhand-mcp
An MCP (Model Context Protocol) server that exposes the Dockhand Docker management REST API as tools for LLMs such as Claude.
Runs as a Docker-hosted SSE server — deploy it once, connect any MCP client over HTTP.
Features
Manage containers: list, inspect, create, start, stop, restart, remove, get logs
Manage compose stacks: list, create, start, stop, restart, remove
Manage Git stacks: list, create, deploy
Manage images: list, pull, push, remove, vulnerability scan
Manage volumes: list, create, remove
Manage networks: list, create, remove
Bulk operations: batch start/stop/restart/remove across containers, images, volumes, networks, or stacks
Activity log and schedules: inspect events and scheduled tasks
All long-running operations return synchronous JSON results (no job-polling needed)
Related MCP server: MCP Dockhand
Requirements
Docker + Docker Compose
A running Dockhand instance
Deployment
The image is published automatically to ghcr.io/markhaines/dockhand-mcp:latest on every push to main.
Remote server (recommended)
Copy docker-compose.yml to any machine with Docker and run:
DOCKHAND_URL=http://your-dockhand-host:3001 \
DOCKHAND_COOKIE="connect.sid=s%3A..." \
docker compose up -dNo build step — Docker pulls the pre-built image from the registry.
Local
git clone https://github.com/markhaines/dockhand-mcp
cd dockhand-mcp
DOCKHAND_URL=http://localhost:3000 docker compose up -dConfiguration
Variable | Default | Description |
|
| Base URL of your Dockhand instance |
| (empty) | Session cookie for authenticated instances (e.g. |
|
| Port the MCP server listens on |
| (empty) | Public path prefix when serving behind a reverse proxy sub-path (e.g. |
To get your session cookie when authentication is enabled, log in to Dockhand in your browser and copy the connect.sid cookie value from DevTools > Application > Cookies.
Connecting to Claude
Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"dockhand": {
"url": "http://your-server:8000/sse"
}
}
}Claude Code
claude mcp add --transport sse dockhand http://your-server:8000/sseAvailable Tools
Category | Tool | Description |
Environments |
| List all configured Docker environments |
Environments |
| Get CPU/memory/container stats |
Containers |
| List all containers |
Containers |
| Inspect a container |
Containers |
| Create a new container |
Containers |
| Start a stopped container |
Containers |
| Stop a running container |
Containers |
| Restart a container |
Containers |
| Delete a container |
Containers |
| Fetch container logs |
Bulk |
| Bulk start/stop/restart/remove |
Stacks |
| List compose stacks |
Stacks |
| Create and deploy a stack |
Stacks |
| Start a stack |
Stacks |
| Stop a stack |
Stacks |
| Restart a stack |
Stacks |
| Remove a stack |
Git Stacks |
| List Git-backed stacks |
Git Stacks |
| Create a Git-backed stack |
Git Stacks |
| Deploy a Git stack |
Images |
| List images |
Images |
| Pull an image |
Images |
| Push an image |
Images |
| Remove an image |
Images |
| Vulnerability scan |
Volumes |
| List volumes |
Volumes |
| Create a volume |
Volumes |
| Remove a volume |
Networks |
| List networks |
Networks |
| Create a network |
Networks |
| Remove a network |
Activity |
| Get container event log |
Schedules |
| List scheduled tasks |
Multi-environment support
Every tool accepts an optional env parameter (integer environment ID). Omit it to use the default environment, or pass the ID returned by list_environments to target a specific remote host.
License
MIT
This server cannot be installed
Maintenance
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
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/markhaines/dockhand-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server