Back to Home
kenforthewin icon

docker-mcp-server

Verified Safe

by kenforthewin

Overview

A Model Context Protocol (MCP) server for containerized execution and file operations, enabling AI assistants to interact with a Docker environment via HTTP.

Installation

Run Command
npm run docker:up

Environment Variables

  • NODE_ENV
  • AUTH_TOKEN
  • ALLOWED_TOOLS

Security Notes

The server implements bearer token authentication and supports workspace isolation via an 'Execution-Id' header, enhancing security. Tool filtering via `ALLOWED_TOOLS` environment variable is a good practice for reducing the attack surface. Direct shell command execution is inherently powerful and relies on the trustworthiness of the client (AI agent) and the container's isolated environment. The default `Access-Control-Allow-Origin: *` setting for CORS is broad and should be restricted in production environments. The authentication token is auto-generated and logged to stdout, requiring careful handling in production to prevent exposure. The `docker-compose.yml` explicitly comments out a dangerous `/var/run/docker.sock` mount, indicating awareness of container escape risks.

Similar Servers

Stats

Interest Score21
Security Score8
Cost ClassLow
Avg Tokens1000
Stars5
Forks2
Last Update2025-12-27

Tags

ContainerizedMCPAI AssistantDockerDevelopment Tools