npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

docker-via-wsl-mcp

v1.2.0

Published

MCP server exposing full Docker CLI via WSL for AI agents

Readme

docker-via-wsl MCP

npm version license

MCP server that exposes full Docker CLI functionality (37 tools) to AI agents by proxying commands through WSL (Windows Subsystem for Linux).

Requirements

  • Windows with WSL2 installed
  • Docker installed inside WSL (Ubuntu or any distro)
  • Node.js 18+ on Windows

Quick Start

No installation needed. Just add to your MCP client config and it runs via npx automatically.

MCP Client Config

Windsurf / Cursor — recommended

{
  "mcpServers": {
    "docker-via-wsl": {
      "command": "npx",
      "args": ["-y", "docker-via-wsl-mcp"],
      "env": {
        "WSL_DISTRO": "Ubuntu"
      }
    }
  }
}

Run wsl -l to find your distro name if it's not Ubuntu.

Alternative — global install

npm install -g docker-via-wsl-mcp
{
  "mcpServers": {
    "docker-via-wsl": {
      "command": "docker-via-wsl-mcp",
      "env": {
        "WSL_DISTRO": "Ubuntu"
      }
    }
  }
}

Configuration

Config is loaded from environment variables first, then config.json (in project root) as fallback.

| Env Var | Default | Description | | ---------------- | -------- | -------------------------------- | | WSL_DISTRO | Ubuntu | WSL distro name | | DOCKER_PATH | docker | Path to docker binary inside WSL | | CMD_TIMEOUT_MS | 30000 | Command timeout in milliseconds |

Optional config.json:

{
  "wslDistro": "Ubuntu",
  "dockerPath": "docker",
  "cmdTimeoutMs": 30000
}

Tools

Containers (9 tools)

| Tool | Description | | ---------------- | ------------------------------------ | | docker_ps | List containers | | docker_run | Run a new container | | docker_start | Start stopped containers | | docker_stop | Stop running containers | | docker_restart | Restart containers | | docker_rm | Remove containers | | docker_exec | Execute command in running container | | docker_logs | Fetch container logs | | docker_inspect | Inspect Docker objects |

Images (7 tools)

| Tool | Description | | ---------------------- | --------------------- | | docker_images | List images | | docker_pull | Pull an image | | docker_push | Push an image | | docker_build | Build from Dockerfile | | docker_rmi | Remove images | | docker_tag | Tag an image | | docker_image_inspect | Inspect images |

Networks (6 tools)

| Tool | Description | | --------------------------- | --------------------------------- | | docker_network_ls | List networks | | docker_network_create | Create a network | | docker_network_rm | Remove networks | | docker_network_inspect | Inspect networks | | docker_network_connect | Connect container to network | | docker_network_disconnect | Disconnect container from network |

Volumes (4 tools)

| Tool | Description | | ----------------------- | --------------- | | docker_volume_ls | List volumes | | docker_volume_create | Create a volume | | docker_volume_rm | Remove volumes | | docker_volume_inspect | Inspect volumes |

Compose (7 tools)

| Tool | Description | | ------------------------ | ------------------------ | | docker_compose_up | Start services | | docker_compose_down | Stop and remove services | | docker_compose_ps | List service containers | | docker_compose_logs | View service logs | | docker_compose_build | Build service images | | docker_compose_pull | Pull service images | | docker_compose_restart | Restart services |

System (4 tools)

| Tool | Description | | --------------------- | ------------------ | | docker_info | System-wide info | | docker_version | Docker version | | docker_system_df | Disk usage | | docker_system_prune | Remove unused data |

Notes

  • WSL paths: For docker_build, docker_compose_* — provide Linux-style paths (e.g. /home/user/app, not C:\...)
  • Timeouts: Long operations like docker_build or docker_compose_up may need a higher CMD_TIMEOUT_MS
  • Non-interactive: docker_exec runs non-interactively; avoid commands that require a TTY

Development

git clone https://github.com/TiepHoangDev/docker-via-wsl-mcp.git
cd docker-via-wsl-mcp
npm install
npm run build
node test.mjs   # smoke test against your local Docker/WSL