### Installing Docker MCP via Smithery CLI (Quickstart) Source: https://github.com/quantgeekdev/docker-mcp/blob/main/README.md Shows the command to install the docker-mcp server automatically into Claude Desktop using the Smithery command-line interface tool. This simplifies the setup process. Requires npx (part of npm) and the Smithery CLI. ```bash npx @smithery/cli install docker-mcp --client claude ``` -------------------------------- ### Installing Dependencies using uv (Development Setup) Source: https://github.com/quantgeekdev/docker-mcp/blob/main/README.md Command to synchronize and install project dependencies using the uv package manager, ensuring all necessary libraries for the server are available in the activated virtual environment. Requires uv installed and the virtual environment activated. ```bash uv sync ``` -------------------------------- ### Cloning the docker-mcp Repository (Development Setup) Source: https://github.com/quantgeekdev/docker-mcp/blob/main/README.md Standard git commands to clone the docker-mcp GitHub repository to a local machine and navigate into the project directory, which is the first step for setting up a local development environment. Requires Git installed. ```bash git clone https://github.com/QuantGeekDev/docker-mcp.git cd docker-mcp ``` -------------------------------- ### Configuring Docker MCP in Claude Desktop (Quickstart) Source: https://github.com/quantgeekdev/docker-mcp/blob/main/README.md Provides the JSON configuration snippet to add the docker-mcp server to the Claude Desktop application's MCP server list for quick use. This configuration assumes the server is installed and accessible via uvx. Requires Claude Desktop. ```json { "mcpServers": { "docker-mcp": { "command": "uvx", "args": [ "docker-mcp" ] } } } ``` -------------------------------- ### deploy-compose Tool Input Payload Example (JSON) Source: https://github.com/quantgeekdev/docker-mcp/blob/main/README.md Example JSON structure showing the expected input payload for the `deploy-compose` MCP tool, requiring the project name and the full content of the Docker Compose YAML file as a string to deploy a stack. ```json { "project_name": "example-stack", "compose_yaml": "version: '3.8'\nservices:\n service1:\n image: image1:latest\n ports:\n - '8080:80'" } ``` -------------------------------- ### Configuring Docker MCP for Production in Claude Desktop Source: https://github.com/quantgeekdev/docker-mcp/blob/main/README.md Provides the JSON configuration snippet for Claude Desktop to run the docker-mcp server using uvx, which is suitable for a production or installed setup where the server is globally accessible via uvx. Requires Claude Desktop and uvx. ```json { "mcpServers": { "docker-mcp": { "command": "uvx", "args": [ "docker-mcp" ] } } } ``` -------------------------------- ### get-logs Tool Input Payload Example (JSON) Source: https://github.com/quantgeekdev/docker-mcp/blob/main/README.md Example JSON structure showing the expected input payload for the `get-logs` MCP tool, which requires the name of the specific container from which to retrieve logs. ```json { "container_name": "my-container" } ``` -------------------------------- ### Setting up Python Virtual Environment (Development Setup) Source: https://github.com/quantgeekdev/docker-mcp/blob/main/README.md Commands to create a Python virtual environment named 'venv' within the project directory and activate it, isolating project dependencies and providing a clean environment for development. Requires Python 3.12+ installed. ```bash python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate ``` -------------------------------- ### Launching MCP Inspector for Debugging Source: https://github.com/quantgeekdev/docker-mcp/blob/main/README.md Command to start the Model Context Protocol Inspector utility, connecting it to the locally running docker-mcp server via uv for interactive debugging of the MCP communication and tool calls. Requires npx, @modelcontextprotocol/inspector, uv, and the repository cloned/setup. ```bash npx @modelcontextprotocol/inspector uv --directory run docker-mcp ``` -------------------------------- ### create-container Tool Input Payload Example (JSON) Source: https://github.com/quantgeekdev/docker-mcp/blob/main/README.md Example JSON structure showing the expected input payload for the `create-container` MCP tool, which is used to request the creation of a new standalone Docker container with specified image, name, ports, and environment variables. ```json { "image": "image-name", "name": "container-name", "ports": {"80": "80"}, "environment": {"ENV_VAR": "value"} } ``` -------------------------------- ### list-containers Tool Input Payload Example (JSON) Source: https://github.com/quantgeekdev/docker-mcp/blob/main/README.md Example JSON structure showing the expected input payload for the `list-containers` MCP tool. An empty JSON object is the required input to request a list of all currently running Docker containers. ```json {} ``` -------------------------------- ### Configuring Docker MCP for Development in Claude Desktop Source: https://github.com/quantgeekdev/docker-mcp/blob/main/README.md Provides the JSON configuration snippet for Claude Desktop to run the docker-mcp server directly from a local source code directory using uv, suitable for development and debugging workflows. Requires Claude Desktop, uv, and the cloned repository. ```json { "mcpServers": { "docker-mcp": { "command": "uv", "args": [ "--directory", "", "run", "docker-mcp" ] } } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.