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

@ams-dev/docker-manager

v0.1.3

Published

MCP server for managing and inspecting Docker containers

Readme

@ams-dev/docker-manager

MCP server for managing and inspecting Docker containers

Overview

A Model Context Protocol (MCP) server that enables AI assistants like Claude Code to control and inspect Docker containers, making it easy to manage development environments, databases, and services.

Features

  • 🐳 List, start, stop, and restart Docker containers
  • 📋 Execute commands inside running containers
  • 📊 Retrieve and stream container logs
  • 🔍 Inspect container configuration and state
  • 🚀 Create containers from images with full configuration
  • 🔌 Port mappings and volume mounts support

Installation

# Global installation
npm install -g @ams-dev/docker-manager

# Or use with npx
npx @ams-dev/docker-manager

Requirements

  • Node.js >= 18.0.0
  • Docker Engine or Docker Desktop running
  • Docker socket accessible (usually /var/run/docker.sock)

Usage

Add to your Claude Code MCP configuration (~/.config/claude/mcp.json):

{
  "mcpServers": {
    "docker-manager": {
      "command": "npx",
      "args": ["-y", "@ams-dev/docker-manager"]
    }
  }
}

Available Tools

list_containers

List Docker containers with optional filtering.

Input:

{
  all?: boolean;           // Include stopped containers
  filters?: {
    status?: string[];     // ['running', 'exited', etc.]
    label?: string[];
    name?: string;
  };
}

start_container

Start an existing container or create and start from an image.

Input:

{
  containerId?: string;    // Existing container
  image?: string;          // Or create from image
  name?: string;
  ports?: Record<string, string>; // "3000": "3000"
  env?: Record<string, string>;
  volumes?: Record<string, string>; // "/host/path": "/container/path"
}

Example:

{
  "image": "postgres:15",
  "name": "dev-postgres",
  "ports": { "5432": "5432" },
  "env": {
    "POSTGRES_PASSWORD": "dev",
    "POSTGRES_DB": "myapp"
  }
}

stop_container

Stop a running container.

Input:

{
  containerId: string;
  timeout?: number;        // Seconds before force kill
}

restart_container

Restart a container.

Input:

{
  containerId: string;
  timeout?: number;
}

get_container_logs

Retrieve container logs.

Input:

{
  containerId: string;
  since?: number;          // Unix timestamp
  tail?: number;           // Number of lines
  follow?: boolean;        // Stream logs
  timestamps?: boolean;
}

exec_command

Execute a command inside a running container.

Input:

{
  containerId: string;
  command: string[];       // ["ls", "-la", "/app"]
  workDir?: string;
  env?: Record<string, string>;
}

Example:

{
  "containerId": "postgres-dev",
  "command": ["psql", "-U", "postgres", "-c", "SELECT version();"]
}

inspect_container

Get detailed container information.

Input:

{
  containerId: string;
}

Example Workflows

Start a PostgreSQL Database

Developer: "Set up a local PostgreSQL database"
Claude:
- Creates: postgres:15 container
- Configures: Port 5432, password, database name
- Reports: "PostgreSQL ready on localhost:5432"

Debug a Container Issue

Developer: "Check why the API container keeps restarting"
Claude:
- Inspects: Container state and config
- Gets: Recent logs
- Executes: Health check commands
- Reports: Specific error found in logs

Execute Database Migration

Developer: "Run migrations in the database container"
Claude:
- Executes: Migration command in container
- Monitors: Output and exit code
- Reports: Success or specific errors

Development

# Install dependencies
pnpm install

# Build
pnpm build

# Watch mode
pnpm dev

# Run tests
pnpm test

Troubleshooting

Cannot connect to Docker daemon

Ensure Docker is running:

docker ps

Check Docker socket permissions (Linux):

sudo chmod 666 /var/run/docker.sock

Container not found

Use container ID or exact name:

docker ps -a  # List all containers

License

MIT © mastoica

Related