UNPKG

@thelord/mcp-server-docker-npx

Version:

🐋 Docker MCP Server with NPX support - Manage Docker containers, images, networks, and volumes with natural language. Includes Docker socket access and remote Docker support via SSH/TCP.

70 lines (60 loc) 1.25 kB
# NPX Configuration Examples ## Using NPX Wrapper ### Local Docker ```bash npx mcp-server-docker-npx ``` ### Remote Docker via TCP ```bash npx mcp-server-docker-npx --docker-host tcp://192.168.1.100:2376 ``` ### Remote Docker via SSH ```bash DOCKER_HOST=ssh://user@hostname npx mcp-server-docker-npx ``` ## Claude Desktop Configuration ### NPX Local ```json { "mcpServers": { "docker": { "command": "npx", "args": ["mcp-server-docker-npx"] } } } ``` ### NPX Remote TCP ```json { "mcpServers": { "docker": { "command": "npx", "args": ["mcp-server-docker-npx", "--docker-host", "tcp://192.168.1.100:2376"], "env": { "DOCKER_TLS_VERIFY": "1", "DOCKER_CERT_PATH": "/path/to/certs" } } } } ``` ### NPX Remote SSH ```json { "mcpServers": { "docker": { "command": "npx", "args": ["mcp-server-docker-npx"], "env": { "DOCKER_HOST": "ssh://user@hostname" } } } } ``` ## Environment Variables - `DOCKER_HOST`: Docker daemon host URL - `MCP_SERVER_DOCKER_HOST`: Override Docker host specifically for MCP server - `DOCKER_TLS_VERIFY`: Enable TLS verification (1 for true) - `DOCKER_CERT_PATH`: Path to TLS certificates directory