Docker for AI agents โ containers, compose stacks, logs and databases, locally or over SSH.
Connect Runs on your machine
claude mcp add docker-mcp-server -e DOCKER_MCP_PROFILES_FILE=<DOCKER_MCP_PROFILES_FILE> -e DOCKER_PROFILES=<DOCKER_PROFILES> -e DOCKER_MCP_ALLOW_SSH_FALLBACK=<DOCKER_MCP_ALLOW_SSH_FALLBACK> -e LOG_LEVEL=<LOG_LEVEL> -- npx -y @hypnosis/[email protected]
{
"mcpServers": {
"docker-mcp-server": {
"command": "npx",
"args": [
"-y",
"@hypnosis/[email protected]"
],
"env": {
"DOCKER_MCP_PROFILES_FILE": "<DOCKER_MCP_PROFILES_FILE>",
"DOCKER_PROFILES": "<DOCKER_PROFILES>",
"DOCKER_MCP_ALLOW_SSH_FALLBACK": "<DOCKER_MCP_ALLOW_SSH_FALLBACK>",
"LOG_LEVEL": "<LOG_LEVEL>"
}
}
}
}
{
"mcpServers": {
"docker-mcp-server": {
"command": "npx",
"args": [
"-y",
"@hypnosis/[email protected]"
],
"env": {
"DOCKER_MCP_PROFILES_FILE": "<DOCKER_MCP_PROFILES_FILE>",
"DOCKER_PROFILES": "<DOCKER_PROFILES>",
"DOCKER_MCP_ALLOW_SSH_FALLBACK": "<DOCKER_MCP_ALLOW_SSH_FALLBACK>",
"LOG_LEVEL": "<LOG_LEVEL>"
}
}
}
}
{
"servers": {
"docker-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@hypnosis/[email protected]"
],
"env": {
"DOCKER_MCP_PROFILES_FILE": "<DOCKER_MCP_PROFILES_FILE>",
"DOCKER_PROFILES": "<DOCKER_PROFILES>",
"DOCKER_MCP_ALLOW_SSH_FALLBACK": "<DOCKER_MCP_ALLOW_SSH_FALLBACK>",
"LOG_LEVEL": "<LOG_LEVEL>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
DOCKER_MCP_PROFILES_FILEOptional | Absolute path to the JSON file describing the Docker hosts this agent may reach. Without it the server answers about the Docker on this machine. |
DOCKER_PROFILESOptional | The same profiles JSON inline, used when no profiles file is set. |
DOCKER_MCP_ALLOW_SSH_FALLBACKOptional | Keep going when a profile's SSH key is missing, instead of refusing the profile. Defaults to false. |
LOG_LEVELOptional | Log verbosity: error, warn, info or debug. Defaults to info. |
Details
| Package | @hypnosis/[email protected] (NPM, stdio) |
| First published | 24 Aug 2026 |
| Last updated | 24 Aug 2026 |
| Registry name | io.github.hypnosis/docker-mcp-server |
More cloud and devops servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
