CM

ckreiling/mcp-server-docker

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

749 stars 98 forks 品質 79 トレンド 30GPL-3.0

Docker 用 MCP サーバー

概要

自然言語でDockerを管理するMCPサーバー! - 🚀 自然言語によるコンテナの合成 - 🔍 実行中のコンテナの内省とデバッグ - 📀 Dockerボリュームを用いた永続データの管理 - サーバー管理者:例えば公開ウェブサイトの管理のためにリモートDockerエンジンに接続。- Tinkerers:ローカルでコンテナを稼働させ、Dockerをサポートするオープンソースアプリを試す。- AI愛好家:LLMの限界に挑戦する! 自然言語を使ったWordPressのデプロイメントを示す簡単なデモです: https://github.com/user-attachments/assets/65e35e67-bce0-4449-af7e-9f4dd773b4b3 MacOSでは:~/ライブラリ/アプリケーション\サポート/Claude/claude_desktop_config.json Windowsでは:%APPDATA%/Claude/claude_desktop_config.json UVがインストールされていない場合は、システムのインストール手順に従ってください:リンク

概要(AI 翻訳)

自然言語でDockerを管理するMCPサーバー!

🪩 何ができる?

  • 🚀 自然言語を用いたコンテナの作成
  • 🔍 内省およびデバッグ実行中のコンテナ
  • 📀 Dockerボリュームによる永続データの管理

❓ これは誰のため?

  • サーバー管理者:例えば 公開ウェブサイト。
  • ティンカーラーズ:コンテナをローカルで実行し、オープンソースアプリの実験を行う Dockerのサポート。
  • AI愛好家の皆さん:LLMの限界を押し広げましょう!

デモ

自然言語を使ったWordPressのデプロイメントを示す簡単なデモです:

https://github.com/user-attachments/assets/65e35e67-bce0-4449-af7e-9f4dd773b4b3

🏎️ クイックスタート

インストール

クロードデスクトップ

MacOSでは: ~/Library/Application\ Support/Claude/claude_desktop_config.json

Windows版:%APPDATA%/Claude/claude_desktop_config.json

PyPiからUVでインストールしてください

uvをインストールしていない場合は、インストール手順に従ってください システム: リンク

その後、MCPサーバーファイルに以下を追加してください:

Dockerでインストール

利便性のため、サーバーはDockerコンテナ上で動作させることができます。

このリポジトリをクローンした後、Dockerイメージを構築します:

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

🐋 Docker MCP server

An MCP server for managing Docker with natural language!

🪩 What can it do?

  • 🚀 Compose containers with natural language
  • 🔍 Introspect & debug running containers
  • 📀 Manage persistent data with Docker volumes

❓ Who is this for?

  • Server administrators: connect to remote Docker engines for e.g. managing a public-facing website.
  • Tinkerers: run containers locally and experiment with open-source apps supporting Docker.
  • AI enthusiasts: push the limits of that an LLM is capable of!

Demo

A quick demo showing a WordPress deployment using natural language:

https://github.com/user-attachments/assets/65e35e67-bce0-4449-af7e-9f4dd773b4b3

🏎️ Quickstart

Install

Claude Desktop

On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json

On Windows: %APPDATA%/Claude/claude_desktop_config.json

📝 Prompts

🎻 docker_compose

Use natural language to compose containers. See above for a demo.

Provide a Project Name, and a description of desired containers, and let the LLM do the rest.

This prompt instructs the LLM to enter a plan+apply loop. Your interaction with the LLM will involve the following steps:

  1. You give the LLM instructions for which containers to bring up
  2. The LLM calculates a concise natural language plan and presents it to you
  3. You either:
    • Apply the plan
    • Provide the LLM feedback, and the LLM recalculates the plan

Examples

  • name: nginx, containers: “deploy an nginx container exposing it on port 9000”
  • name: wordpress, containers: “deploy a WordPress container and a supporting MySQL container, exposing Wordpress on port 9000”

Resuming a Project

When starting a new chat with this prompt, the LLM will receive the status of any containers, volumes, and networks created with the given project name.

GitHub で README 全文を見る

インストール

uvx mcp-server-docker
MCP 初心者?mcpskill.org のガイドから始めましょう →