MCPSERV.CLUB
ThreatFlux

Docker Server Manager Go MCP

MCP Server

REST API for full Docker lifecycle management

Stale(50)
3stars
1views
Updated Apr 18, 2025

About

A Go‑based RESTful service that offers comprehensive Docker container, image, volume, network, and Compose deployment control. It supports JWT authentication, role‑based access, PostgreSQL/SQLite persistence, and includes Swagger docs and a Go SDK.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

Docker Server Manager Go MCP

Docker Server Manager Go MCP (DSM) is a Go‑based RESTful API that exposes the full breadth of Docker’s capabilities to AI assistants and automation workflows. By translating Docker CLI operations into structured, authenticated endpoints, it removes the friction of manual container orchestration and lets AI agents issue high‑level commands such as “deploy a new service” or “scale the web tier to five replicas.” For developers building AI‑driven DevOps tools, this means a single, consistent interface that can be called from any language or platform supported by the MCP.

The server handles container lifecycle management—creation, start, stop, restart, and removal—as well as image operations like pull, build, tag, and delete. It also manages Docker volumes and networks, providing CRUD operations that mirror the Docker CLI. Beyond basic container handling, DSM supports file operations (copying files to and from containers) and in‑container command execution, enabling AI agents to perform configuration changes or diagnostics without leaving the MCP context. All of these actions are wrapped in a secure, role‑based authentication system that uses JWT tokens and supports token revocation and refresh flows.

A standout feature is Docker Compose integration. The server can parse files, validate them against the Docker schema, and deploy multi‑container stacks. It tracks deployment status, allows dynamic scaling of services, and manages the resources created by Compose (containers, networks, volumes). This capability is particularly valuable for AI assistants that need to orchestrate complex application deployments or roll out new versions in a controlled manner.

DSM’s architecture is built on the Gin framework and leverages GORM for data persistence, supporting both PostgreSQL (ideal for production) and SQLite (suitable for testing or lightweight deployments). Automatic schema migrations keep the database in sync with the API, while the Swagger/OpenAPI specification and a Go client SDK make it easy to integrate into existing toolchains. Security is baked in with JWT authentication, role‑based access control, and secure password handling.

In practice, developers can embed DSM into AI workflows that manage infrastructure: a conversational agent could receive natural language commands to spin up a testing environment, monitor container health, or trigger rollbacks. Because the API is stateless and language‑agnostic, it fits neatly into microservice architectures, CI/CD pipelines, or even serverless functions that need to interact with Docker hosts. DSM turns Docker’s command‑line complexity into a clean, machine‑readable interface that AI assistants can leverage to automate deployment, scaling, and maintenance tasks with confidence.