Docker MCP Server
Docker MCP サーバー
Docker操作用のモデルコンテキストプロトコル(MCP)サーバー。このサーバーにより、Claudeやその他のAIアシスタントはMCPプロトコルを介してDockerとやり取りできるようになります。
**注意:**この MCP サーバーは標準の Docker CLI コマンドで動作し、現在 Docker Compose 操作をサポートしていません。docker-compose を備えた他の MCP サーバーは、cline ではまだ確実に動作しませんでした。
特徴
Dockerコンテナの一覧表示
Dockerイメージの一覧
Dockerコンテナを実行する
コンテナの実行を停止する
コンテナを削除する
レジストリからDockerイメージをプルする
Related MCP server: Docker MCP Server
インストール
前提条件
Node.js 18以上
システムにDockerがインストールされ、実行されている
npmからインストール
npm install -g docker-mcp-serverソースからインストール
このリポジトリをクローンする
依存関係をインストールします:
cd docker-mcp
npm installプロジェクトをビルドします。
npm run build使用法
サーバーの実行
docker-mcp-serverまたはソースからインストールした場合:
npm startクロードとの設定
付属のインストール スクリプトを使用して、Claude で Docker MCP サーバーを自動的に構成できます。
npm run install-configこのスクリプトは次のことを行います。
Claude のインストールを検出する (デスクトップおよび/または VSCode)
Docker MCPサーバーを含めるように設定ファイルを更新します
システムに適切なパスを設定する
手動設定
手動で構成する場合は、Docker MCP サーバーを MCP 設定構成ファイルに追加する必要があります。
Claude デスクトップ アプリ (macOS)
~/Library/Application Support/Claude/claude_desktop_config.jsonを編集します。
{
"mcpServers": {
"docker-mcp": {
"command": "node",
"args": ["/path/to/docker-mcp/dist/index.js"],
"disabled": false,
"autoApprove": []
}
}
}VSCodeのClaude向け
~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.jsonを編集します。
{
"mcpServers": {
"docker-mcp": {
"command": "node",
"args": ["/path/to/docker-mcp/dist/index.js"],
"disabled": false,
"autoApprove": []
}
}
}注: VS CodeでDocker MCPサーバーを設定した後、Clineに変更を反映させるにはVS Codeの再起動が必要になる場合があります。ClineでDocker MCPサーバーが認識されない、または正常に動作しないという問題が発生した場合は、VS Codeの再起動をお試しください。
利用可能なツール
リストコンテナ
すべての Docker コンテナを一覧表示します。
パラメータ:
all(ブール値、オプション): すべてのコンテナを表示します (デフォルトでは実行中のコンテナのみを表示します)
リスト画像
すべての Docker イメージを一覧表示します。
実行コンテナ
Docker コンテナを実行します。
パラメータ:
image(文字列、必須): 実行するDockerイメージname(文字列、オプション): コンテナの名前detach(boolean, オプション): コンテナをバックグラウンドで実行するports(文字列の配列、オプション): ポートマッピング(例:["8080:80"])volumes(文字列の配列、オプション):ボリュームマッピング(例:["/host/path:/container/path"])env(文字列の配列、オプション): 環境変数 (例: ["KEY=value"])command(文字列、オプション): コンテナ内で実行するコマンド
コンテナを停止する
実行中の Docker コンテナを停止します。
パラメータ:
container(文字列、必須): コンテナIDまたは名前
コンテナを削除する
Docker コンテナを削除します。
パラメータ:
container(文字列、必須): コンテナIDまたは名前force(boolean, オプション): 実行中のコンテナを強制的に削除する
プルイメージ
レジストリから Docker イメージをプルします。
パラメータ:
image(文字列、必須): イメージ名 (例: "nginx:latest")
クロードとの使用例
設定が完了したら、Claude に Docker 操作を実行するよう依頼できます。
「Hello-World Dockerコンテナを実行する」
「すべてのDockerコンテナを一覧表示する」
「最新の nginx イメージをプルする」
「ポート8080でnginxコンテナを実行する」
「nginxコンテナを停止する」
「停止中のコンテナをすべて削除」
MCPマーケットプレイス
この Docker MCP サーバーは Cline MCP Marketplace で入手できるため、ユーザーはワンクリックで簡単に見つけてインストールできます。
MCP マーケットプレイスへの提出用のロゴはassets/logo.pngファイルにあります。
MCP マーケットプレイスの詳細については、以下をご覧ください。
ライセンス
マサチューセッツ工科大学
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables Docker container management directly through Claude using the Model Context Protocol. Provides 14 tools for managing containers, images, volumes, and Docker Compose deployments through natural language commands.
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants like Claude to manage Docker containers, images, and Docker Compose deployments through the Model Context Protocol. Provides secure container lifecycle management, image operations, and multi-host Docker server connections.194MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Docker containers, images, networks, volumes, and Compose services through the Model Context Protocol. It supports system operations, command execution within containers, and integration with Docker Hub and GitHub Container Registry.1352MIT
- AlicenseAqualityDmaintenanceEnables managing Docker containers (run, list, stop, remove, view logs) through Claude Desktop using natural language commands.5163MIT
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/suvarchal/docker-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server