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

mcp-docker-server

v1.0.1

Published

MCP server for Docker — manage containers, images, volumes, and compose services from your IDE

Readme

mcp-server-docker

npm version npm downloads CI TypeScript License: MIT

Control Docker containers, images, and services from your AI coding assistant. List, start, stop, read logs, run commands inside containers, and check resource usage.

npx mcp-docker-server

Compatible with Claude Desktop, Cursor, VS Code Copilot, and any MCP-compatible client. No API keys needed. Connects to your local Docker socket automatically.

MCP server for Docker containers, logs, and resource monitoring

Demo built with remotion-readme-kit

Why

If you work with Docker daily, you know the routine: switch to a terminal, type docker ps, scroll through logs, copy container IDs, restart services. It adds up. This MCP server lets your AI assistant handle those tasks for you while you stay focused on code. Ask it to check which containers are running, pull up logs from a failing service, or restart something that got stuck. It talks to Docker's API through the local socket, so there's nothing to configure and no credentials to manage.

Tools

| Tool | What it does | | ------------------- | ------------------------------------------------------------------- | | list_containers | List running (or all) containers with status, ports, and image info | | container_logs | Get recent logs from a container | | start_container | Start a stopped container | | stop_container | Stop a running container | | restart_container | Restart a container | | remove_container | Remove a container (with optional force) | | exec_command | Execute a command inside a running container | | container_stats | Get live CPU, memory, and network stats | | list_images | List all Docker images on the host | | remove_image | Remove a Docker image |

Quick Start

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "docker": {
      "command": "npx",
      "args": ["-y", "mcp-docker-server"]
    }
  }
}

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "docker": {
      "command": "npx",
      "args": ["-y", "mcp-docker-server"]
    }
  }
}

VS Code

Add to user settings or .vscode/mcp.json:

{
  "mcp": {
    "servers": {
      "docker": {
        "command": "npx",
        "args": ["-y", "mcp-docker-server"]
      }
    }
  }
}

Examples

  • "List all running Docker containers"
  • "Show me the logs from the nginx container"
  • "Restart the api-server container"
  • "What's the CPU and memory usage of my postgres container?"
  • "Execute ls -la /app inside the web container"
  • "List all Docker images and their sizes"
  • "Stop all containers that are using the old image"

Prerequisites

  • Docker must be running on your machine
  • The server connects to the Docker socket at /var/run/docker.sock (Linux/macOS) or the named pipe on Windows
  • No API keys or tokens required

Development

git clone https://github.com/ofershap/mcp-server-docker.git
cd mcp-server-docker
npm install
npm test
npm run build

See also

More MCP servers and developer tools on my portfolio.

Author

Made by ofershap

LinkedIn GitHub


README built with README Builder

License

MIT © 2026 Ofer Shapira