Cover image
Try Now
2025-04-14

Docker的MCP服务器

3 years

Works with Finder

2

Github Watches

0

Github Forks

2

Github Stars

Docker MCP Server

The Docker MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with Docker Desktop on Windows, enabling advanced automation and interaction capabilities for developers and tools.

Prerequisites

  1. Install Docker Desktop for Windows from Docker's official download page.

  2. In Docker Desktop, go to Settings > General and check the box for
    "Expose daemon on tcp://localhost:2375 without TLS".
    This is required for the MCP server to communicate with Docker Desktop.

    💡 Tip: You can verify that the port is exposed successfully by opening
    http://localhost:2375/version in your browser. If the setup is correct,
    you should see a JSON response with Docker version information. If you're having trouble, check this discussion for a possible solution: WSL and Docker for Windows: Cannot connect to the Docker daemon

Installation

Usage with Claude Desktop

{
  "mcpServers": {
    "docker-mcp-stdio": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "freezeolo/docker-mcp-server"
      ]
    }
  }
}

Tools

Completed 🛠️ In ProgressPlan

Container Lifecycle Management ✅

  • list_containers - Get the list of containers ✅
  • get_container_info - Get details of a specific container ✅
    • container_id: Container ID (string, required)
  • start_container - Start a container ✅
    • container_id: Container ID (string, required)
  • restart_container - Restart a container ✅
    • container_id: Container ID (string, required)
  • stop_container - Stop a container ✅
    • container_id: Container ID (string, required)
  • remove_container - Remove a container ✅
    • container_id: Container ID (string, required)
  • create_container - Create a new container ✅
    • imageName: Image name (string, required)
    • containerName: Container name (string, required)
    • command: Command to run (string, optional)
    • env: Environment variables (string[], optional)
    • ports: Port bindings (string[], optional)
    • volumes: Volume bindings (string[], optional)
    • network: Network name (string, optional)
    • restartPolicy: Restart policy (string, optional)

Network Management ✅

  • list_networks - List all networks ✅
  • get_network_info - Get network information ✅
    • networkId: Network ID (string, required)
  • create_network - Create a new network ✅
    • networkName: Network name (string, required)
    • driver: Network driver (string, required)
    • subnet: Subnet CIDR (string, required)
    • gateway: Gateway IP (string, required)
  • connect_container_to_network - Connect container to network ✅
    • containerId: Container ID (string, required)
    • networkId: Network ID (string, required)
  • disconnect_container_from_network - Disconnect container from network ✅
    • containerId: Container ID (string, required)
    • networkId: Network ID (string, required)
  • remove_network - Remove a network ✅
    • networkId: Network ID (string, required)
  • get_network_containers - Get containers in a network ✅
    • networkId: Network ID (string, required)

Image Management ✅

  • list_images - List all images ✅
  • pull_image - Pull an image from registry ✅
    • imageName: Image name with tag (string, required)
  • push_image - Push an image to registry ✅
    • imageName: Image name with tag (string, required)
  • remove_image - Remove an image ✅
    • imageId: Image ID (string, required)
    • force: Force removal (boolean, optional)
  • tag_image - Tag an image with multiple tags ✅
    • imageId: Image ID (string, required)
    • repository: Repository name (string, required)
    • tags: Array of tags (string[], required)
  • build_image - Build an image from Dockerfile ✅
    • dockerfilePath: Path to Dockerfile (string, required)
    • repository: Repository name (string, required)
    • tags: Array of tags (string[], required)
  • get_image_details - Get image details ✅
    • imageId: Image ID (string, required)

FAQ

Q: How do I install the project?

A: Follow the steps in the Installation section. Make sure you have the required dependencies.

License

This project is licensed under the terms of the MIT open source license. Please refer to MIT for the full terms.

相关推荐

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack

  • dmayboroda
  • 带有可配置容器的本地对话抹布

  • evilsocket
  • 简单的代理开发套件。

  • modelscope
  • 开始以更轻松的方式开始构建具有LLM授权的多代理应用程序。

    Reviews

    3.4 (7)
    Avatar
    user_GGS9rOtf
    2025-04-25

    As a dedicated user of mcp-server-docker, I must say it has revolutionized my server management experience. This product by Freezeu is incredibly efficient, making deployment and scaling seamless. The user-friendly interface and comprehensive documentation are impressive, ensuring even beginners can get started quickly. Highly recommend this for anyone looking to enhance their server operations.

    Avatar
    user_VIHnBIVm
    2025-04-25

    As a dedicated user of mcp-server-docker, I am thoroughly impressed by its efficiency and reliability. Developed by Freezeu, this tool has significantly streamlined our server management, making deployment a breeze. Its user-friendly interface and robust performance have made it an indispensable part of our workflow. Highly recommend to anyone in need of a powerful server solution!

    Avatar
    user_GxzGgJoY
    2025-04-25

    I recently started using mcp-server-docker by Freezeu, and I am thoroughly impressed. This tool has significantly simplified my server management and deployment process. The seamless integration and user-friendly interface make it a must-have for any developer working with Docker. Highly recommended!

    Avatar
    user_SaqdT5oj
    2025-04-25

    As a dedicated user of mcp-server-docker, I am thoroughly impressed by its seamless integration and efficient performance. Freezeu has done an outstanding job crafting this resourceful tool. It's intuitive to set up and offers robust support for containerized environments. Highly recommend it for anyone looking to streamline their server management with Docker.

    Avatar
    user_aFRlbWfo
    2025-04-25

    As a loyal user of mcp-server-docker, I can confidently say this tool is a game-changer for my server management tasks. Created by Freezeu, it offers seamless integration and exceptional performance. Highly recommend it for anyone looking to streamline their server operations!

    Avatar
    user_6E0q7qVV
    2025-04-25

    I've been using mcp-server-docker by Freezeu for my projects and it has been a game changer! The setup was incredibly straightforward, and it integrates seamlessly with my existing Docker environment. The performance is top-notch and the stability is impressive. Highly recommended for anyone looking for a reliable server solution.

    Avatar
    user_yGsu0y4F
    2025-04-25

    I've been using mcp-server-docker by Freezeu and it's simply outstanding! The setup process was seamless with clear instructions, and it integrates perfectly with my existing Docker environment. It's incredibly efficient and stable, making server management a breeze. Highly recommend it to anyone looking to streamline their server operations!