{"library":"mcp-server-docker","title":"Docker Command Runner MCP Server","description":"MCP server (v1.0.0) that executes commands inside Docker containers via Model Context Protocol. Provides a single `run_command` tool for running arbitrary commands in allowed Docker Compose service containers. Uses STDIO transport, supports container allowlisting via environment variables, configurable timeouts, and captures stdout/stderr. Minimal dependencies, ships TypeScript types. Released under MIT license. Key differentiator: purpose-built for MCP (Claude) integration rather than generic Docker exec wrappers. Requires Docker socket access and security relies on container isolation.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install mcp-server-docker"],"cli":{"name":"mcp-server-docker","version":null}},"imports":["import { DockerServer } from 'mcp-server-docker'","import { runCommand } from 'mcp-server-docker'","import type { DockerConfig } from 'mcp-server-docker'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { DockerServer } from 'mcp-server-docker';\n\nconst server = new DockerServer({\n  allowedContainers: process.env.ALLOWED_CONTAINERS?.split(',') ?? [\n    'app:app_container',\n  ],\n  defaultService: process.env.DEFAULT_SERVICE ?? 'laravel_app',\n  commandTimeout: parseInt(process.env.COMMAND_TIMEOUT ?? '300000', 10),\n});\n\nserver.start().catch((err: Error) => {\n  console.error('Failed to start server:', err);\n  process.exit(1);\n});","lang":"typescript","description":"Initialize and start the Docker MCP server using environment variables for configuration.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}