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-setup

v1.0.1

Published

One-command Docker-based MCP server setup for AI coding clients (VS Code, Claude, Kiro, Trae, OpenCode)

Readme

MCP Docker Setup

MIT License CI

One-command Docker-based MCP server setup with auto-generated configs for all major AI coding clients.

npx mcp-docker-setup init

Quick Start

# Run the interactive setup wizard
npx mcp-docker-setup init

This will:

  1. Check prerequisites (Docker, Node.js)
  2. Create .env from .env.example
  3. Prompt to edit .env with your API keys
  4. Generate client configuration files
  5. Offer to symlink configs into client app directories
  6. Start Docker containers

Architecture

Clients (VS Code, Claude, OpenCode, Trae, Kiro)
  │  docker exec -i <container> <command>
  ▼
Docker Containers (node:20-alpine)
  │  npx -y <mcp-server-package>
  ▼
MCP Servers (Context7, GitHub, Jira, Slack, Filesystem)

All communication uses docker exec -i — no ports are exposed. Each server runs in an isolated container with sleep infinity and is only activated when a client sends a command.

CLI Reference

Usage: npx mcp-docker-setup <command>

Commands:
  init       Interactive setup wizard (first-time setup)
  start      Start Docker Compose services
  stop       Stop Docker Compose services
  status     Show container status
  generate   Generate client configuration files
  ui         Launch web UI at http://localhost:3456
  logs       Tail Docker Compose logs
  help       Show this help message

Available Servers

| Server | Package | Required Env Vars | |---|---|---| | Context7 | @upstash/context7-mcp | CONTEXT7_API_KEY | | GitHub | @modelcontextprotocol/server-github | GITHUB_PERSONAL_ACCESS_TOKEN | | Filesystem | @modelcontextprotocol/server-filesystem | FILESYSTEM_PATH | | Jira | @tarasrushchak/jira-mcp-server | JIRA_HOST, JIRA_EMAIL, JIRA_API_TOKEN | | Slack | @modelcontextprotocol/server-slack | SLACK_BOT_TOKEN, SLACK_TEAM_ID |

Manual Setup

If you prefer not to use the CLI wizard:

git clone https://github.com/abiamarulloh/mcp-docker-setup.git
cd mcp-docker-setup
cp .env.example .env
# Edit .env with your API keys
npm run generate
npm run start:mcp

Web UI

Launch a browser-based env var manager and connection tester:

npx mcp-docker-setup ui
# or
npm run ui

Opens at http://localhost:3456. Features:

  • Edit environment variables per server
  • Test connections (GitHub, Jira, Slack, Context7, Filesystem)
  • Toggle servers on/off
  • Auto-generates configs on save

Client Configuration

After running npm run generate, config files are created in generated/. Link them to your clients:

VS Code (macOS)

ln -sf "$PWD/generated/vscode.json" "$HOME/Library/Application Support/Code/User/mcp.json"

Claude Desktop (macOS)

ln -sf "$PWD/generated/claude.json" "$HOME/Library/Application Support/Claude/claude_desktop_config.json"

OpenCode

ln -sf "$PWD/generated/opencode.json" "$HOME/.config/opencode/opencode.json"

Trae (macOS)

ln -sf "$PWD/generated/trae.json" "$HOME/Library/Application Support/Trae/User/mcp.json"

Kiro

ln -sf "$PWD/generated/kiro.json" "$HOME/.kiro/settings/mcp.json"

Restart the client after creating the symlink.

How It Works

  1. docker-compose.yml — Defines node:20-alpine containers for each server, all running sleep infinity and reading env vars from .env
  2. source.json — Source of truth mapping server names to commands, args, and env var references (${VAR_NAME})
  3. generate.js — Reads source.json, resolves env vars, applies format transformations for each client, produces files in generated/
  4. Container path mapping — Generates docker exec commands for OpenCode and Trae that translate host paths to container paths using volume mappings from docker-compose.yml

Adding a New Server

  1. Add a service to docker-compose.yml
  2. Add an entry to source.json:
{
  "mcpServers": {
    "my-server": {
      "command": "npx",
      "args": ["-y", "@org/my-mcp-server"],
      "env": {
        "MY_API_KEY": "${MY_API_KEY}"
      }
    }
  }
}
  1. Add defaults to .env.example
  2. Run npm run generate

Docker Management

npm run start:mcp    # Start all containers
npm run stop:mcp     # Stop all containers
npm run status:mcp   # Check container health
npm run logs:mcp     # Follow logs

Environment Variables

See .env.example for all available variables and their descriptions.

Troubleshooting

| Issue | Solution | |---|---| | "Not connected" in client | Run npm run status:mcp — check all containers are healthy | | FILESYSTEM_PATH not found | Set the path in .env — the server needs it as a CLI argument | | Container won't start | npm run logs:mcp to see errors; check env vars are set | | Port conflicts | No ports are exposed — all communication uses docker exec -i | | Generated configs outdated | Run npm run generate after changing source.json |

License

MIT