Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Manages Docker containers, images, and Compose stacks on a remote host over SSH, with file sync and deploy orchestration.

README.md

mcp-remote-docker

An MCP (Model Context Protocol) server that bridges your local development environment with a remote Docker host over SSH. Manage containers, stream logs, transfer files, and orchestrate deployments — all from your AI-powered IDE.

Features

  • Docker Management — List, start, stop, restart, remove, run, and inspect containers remotely
  • Docker Compose — Run any docker compose subcommand on the remote server
  • Image Builds — Build Docker images on the remote server
  • Log Fetching — Tail container or compose logs with filtering by time range
  • File Transfer — Sync files to the remote server via rsync (falls back to scp)
  • Remote Execution — Run arbitrary shell commands on the remote server
  • Deploy Orchestration — One-command pipeline: sync files → build → restart → fetch logs

Prerequisites

  • Node.js >= 18
  • SSH access to your remote Docker host (key-based auth recommended)
  • Docker installed on the remote server
  • rsync on both local and remote machines (optional, falls back to scp)

Installation

git clone https://github.com/luisf371/Docker-mcp-server.git
cd Docker-mcp-server
npm install

Configuration

All configuration is via environment variables:

| Variable | Default | Description | |---|---|---| | SSH_HOST | user@your-remote-server | SSH connection string | | SSH_PORT | 22 | SSH port | | SSH_KEY_PATH | (none) | Path to SSH private key | | REMOTE_PATH | /home/user/app | Default remote working directory | | SSH_TIMEOUT | 30 | SSH connection timeout (seconds) | | DEFAULT_LOG_LINES | 100 | Default number of log lines to tail |

MCP Configuration

VS Code (Copilot)

Add to your .vscode/mcp.json or VS Code settings.json:

{
  "mcpServers": {
    "remote-docker": {
      "command": "node",
      "args": ["/path/to/Docker-mcp-server/dist/index.js"],
      "env": {
        "SSH_HOST": "deploy@192.168.1.100",
        "REMOTE_PATH": "/home/deploy/myapp"
      }
    }
  }
}

Claude Code

Add to your Claude Code MCP settings:

{
  "mcpServers": {
    "remote-docker": {
      "command": "node",
      "args": ["/path/to/Docker-mcp-server/dist/index.js"],
      "env": {
        "SSH_HOST": "deploy@192.168.1.100",
        "REMOTE_PATH": "/home/deploy/myapp"
      }
    }
  }
}

Using npx (without cloning)

{
  "mcpServers": {
    "remote-docker": {
      "command": "npx",
      "args": ["-y", "mcp-remote-docker"],
      "env": {
        "SSH_HOST": "deploy@192.168.1.100",
        "REMOTE_PATH": "/home/deploy/myapp"
      }
    }
  }
}

Available Tools

Docker Management

| Tool | Description | |---|---| | docker_list_containers | List containers (optionally include stopped) | | docker_start | Start a container | | docker_stop | Stop a container | | docker_restart | Restart a container | | docker_remove | Remove a container | | docker_run | Run a new container with ports, volumes, env vars | | docker_build | Build a Docker image | | docker_compose | Run any docker compose subcommand | | docker_inspect | Inspect a container's details |

Logging

| Tool | Description | |---|---| | docker_logs | Fetch logs from a specific container | | docker_compose_logs | Fetch logs from docker compose services |

File Transfer

| Tool | Description | |---|---| | file_sync | Sync local files to remote server (rsync/scp) |

Remote Execution

| Tool | Description | |---|---| | remote_exec | Execute any command on the remote server |

Deploy

| Tool | Description | |---|---| | deploy | Full pipeline: sync → build → restart → logs |

Example Usage

Once configured, you can use natural language in your AI assistant:

  • "List all running containers on the remote server"
  • "Show me the last 200 lines of logs from the web container"
  • "Deploy my local ./src folder to the remote server and restart"
  • "Run docker compose up -d on the remote server"
  • "Sync my project files excluding node_modules and .git"

Security Notes

  • SSH keys should have minimal required permissions
  • Consider using a dedicated deploy user with limited sudo access
  • The remote_exec tool can run arbitrary commands — restrict access as needed
  • Never commit SSH keys or credentials to the repository

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Cloud & DevOps servers.