Skip to content

Docker MCP: A Model Context Protocol implementation for Docker operations, enabling AI assistants to seamlessly manage containers, images, and networks via standardized JSON-RPC interface.

License

Notifications You must be signed in to change notification settings

coolbit-in/docker-mcp

Repository files navigation

Docker MCP (Model Context Protocol)

Docker MCP

Go Version License Go Report Card PRs Welcome

Docker MCP is a powerful tool that implements the Model Context Protocol (MCP) for Docker operations, enabling AI assistants to interact seamlessly with the Docker engine. It provides a unified JSON API interface for AI models to perform common Docker operations, including container lifecycle management, image operations, log retrieval, and more.

The Model Context Protocol (MCP) is an open protocol developed by Anthropic that enables AI systems to interact with various data sources and tools in a standardized way. By implementing MCP for Docker operations, this tool bridges the gap between AI models and Docker infrastructure management.

Features

  • Container Management: Create, start, stop, restart, and remove containers
  • Image Operations: Pull, list, search, and remove Docker images
  • Container Inspection: Get detailed information about containers
  • Log Access: Retrieve container logs with various filtering options
  • Command Execution: Execute commands inside running containers
  • Build Support: Build Docker images from Dockerfiles
  • Flexible Configuration: Customizable Docker socket connection

Installation

Using Pre-built Binaries (Recommended)

  1. Download the latest release for your platform from GitHub Releases
  2. Extract the archive:
    # For Linux/macOS:
    tar xzf docker-mcp_*_*.tar.gz
    
    # For Windows:
    # Extract the zip file using Windows Explorer
  3. Move the binary to a directory in your PATH:
    # Linux/macOS:
    sudo mv docker-mcp /usr/local/bin/
    chmod +x /usr/local/bin/docker-mcp
    
    # Windows:
    # Move docker-mcp.exe to a directory in your PATH

Building from Source

If you prefer to build from source or need a specific version:

git clone https://github.com/coolbit-in/docker-mcp.git
cd docker-mcp
go build ./cmd/docker-mcp

Usage

Command Line Options

About

Docker MCP: A Model Context Protocol implementation for Docker operations, enabling AI assistants to seamlessly manage containers, images, and networks via standardized JSON-RPC interface.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published