Skip to main content
Glama

docker-mcp

by QuantGeekDev

🐳 docker-mcp

Docker 操作用の強力な Model Context Protocol (MCP) サーバー。Claude AI を通じてシームレスなコンテナーと Compose スタックの管理を可能にします。

✨ 特徴

  • 🚀 コンテナの作成とインスタンス化
  • 📦 Docker Compose スタックのデプロイメント
  • 🔍 コンテナログの取得
  • 📊 コンテナの一覧表示とステータス監視

🎬 デモ

Docker Composeスタックのデプロイ

https://github.com/user-attachments/assets/b5f6e40a-542b-4a39-ba12-7fdf803ee278

コンテナログの分析

https://github.com/user-attachments/assets/da386eea-2fab-4835-82ae-896de955d934

🚀 クイックスタート

Claude デスクトップ アプリでこれを試すには、claude 構成ファイルに以下を追加します。

{ "mcpServers": { "docker-mcp": { "command": "uvx", "args": [ "docker-mcp" ] } } }

Smithery経由でインストール

Smithery経由で Claude Desktop 用の Docker MCP を自動的にインストールするには:

npx @smithery/cli install docker-mcp --client claude

前提条件

  • UV(パッケージマネージャー)
  • Python 3.12以上
  • DockerデスクトップまたはDockerエンジン
  • クロードデスクトップ

インストール

クロードデスクトップ構成

Claude Desktop 構成ファイルにサーバー構成を追加します。

MacOS : ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows : %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "docker-mcp": { "command": "uv", "args": [ "--directory", "<path-to-docker-mcp>", "run", "docker-mcp" ] } } }
{ "mcpServers": { "docker-mcp": { "command": "uvx", "args": [ "docker-mcp" ] } } }

🛠️ 開発

ローカルセットアップ

  1. リポジトリをクローンします。
git clone https://github.com/QuantGeekDev/docker-mcp.git cd docker-mcp
  1. 仮想環境を作成してアクティブ化します。
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
  1. 依存関係をインストールします:
uv sync

🔍 デバッグ

デバッグのために MCP Inspector を起動します。

npx @modelcontextprotocol/inspector uv --directory <path-to-docker-mcp> run docker-mcp

インスペクターは、デバッグ インターフェイスにアクセスするための URL を提供します。

📝 利用可能なツール

サーバーは次のツールを提供します。

コンテナの作成

スタンドアロンのDockerコンテナを作成する

{ "image": "image-name", "name": "container-name", "ports": {"80": "80"}, "environment": {"ENV_VAR": "value"} }

デプロイ-コンポーズ

Docker Composeスタックをデプロイする

{ "project_name": "example-stack", "compose_yaml": "version: '3.8'\nservices:\n service1:\n image: image1:latest\n ports:\n - '8080:80'" }

ログを取得する

特定のコンテナからログを取得します

{ "container_name": "my-container" }

リストコンテナ

すべてのDockerコンテナを一覧表示します

{}

🚧 現在の制限

  • コンテナの組み込み環境変数サポートなし
  • ボリューム管理なし
  • ネットワーク管理なし
  • コンテナのヘルスチェックなし
  • コンテナ再起動ポリシーなし
  • コンテナリソースの制限なし

🤝 貢献する

  1. docker-mcpからリポジトリをフォークする
  2. 機能ブランチを作成する
  3. 変更をコミットする
  4. ブランチにプッシュする
  5. プルリクエストを開く

📜 ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。

✨ 著者


❤️で作りました

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Docker 操作用の強力な Model Context Protocol (MCP) サーバー。Claude AI を通じてシームレスなコンテナーと Compose スタックの管理を可能にします。

  1. ✨ 特徴
    1. 🎬 デモ
  2. 🚀 クイックスタート
    1. Smithery経由でインストール
    2. 前提条件
    3. インストール
  3. 🛠️ 開発
    1. ローカルセットアップ
    2. 🔍 デバッグ
  4. 📝 利用可能なツール
    1. コンテナの作成
    2. デプロイ-コンポーズ
    3. ログを取得する
    4. リストコンテナ
  5. 🚧 現在の制限
    1. 🤝 貢献する
      1. 📜 ライセンス
        1. ✨ 著者

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A beginner-friendly Model Context Protocol (MCP) server that helps users understand MCP concepts, provides interactive examples, and lists available MCP servers. This server is designed to be a helpful companion for developers working with MCP. Also comes with a huge list of servers you can install.
            Last updated -
            3
            9
            36
            JavaScript
            Apache 2.0
          • -
            security
            F
            license
            -
            quality
            Provides a scalable, containerized infrastructure for deploying and managing Model Context Protocol servers with monitoring, high availability, and secure configurations.
            Last updated -
          • -
            security
            A
            license
            -
            quality
            An MCP server that allows managing Docker containers through natural language, enabling users to compose, introspect, and debug containers without running commands themselves.
            Last updated -
            440
            Python
            GPL 3.0
            • Apple
          • -
            security
            -
            license
            -
            quality
            A specialized server that helps users create new Model Context Protocol (MCP) servers by providing tools and templates for scaffolding projects with various capabilities.
            Last updated -
            1
            TypeScript

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/QuantGeekDev/docker-mcp'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server