MCP.so
ログイン

Docker MCP Server

@makbn

Docker MCP Server について

Model Context Protocol MCP Server for Docker Commands. Provides Docker and Docker Swarm commands as MCP Tools.

基本情報

カテゴリ

クラウドとインフラ

ライセンス

GPL-3.0 license

ランタイム

java

トランスポート

stdio

公開者

makbn

設定

標準の設定はありません

このサーバーの README には解析可能な MCP 設定ブロックが含まれていません。インストール手順はリポジトリをご確認ください。

リポジトリ

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is Docker MCP Server?

A Java-based Model Context Protocol (MCP) server that exposes Docker CLI commands as MCP tools. Built on the MCP Mediator framework, it automatically generates tool definitions from Docker service methods, optionally annotated with @McpTool. Intended for developers and AI agents to manage Docker containers, images, volumes, networks, services, and swarms through MCP-compatible clients like Claude Desktop.

How to use Docker MCP Server?

Run the JAR or native executable with CLI options to set the Docker host, TLS settings, server name, and max connections. For example: java -jar docker-mcp-server.jar --docker-host=tcp://localhost:2376 --server-name=my-server. Then configure an MCP client (e.g., Claude Desktop) to launch the server using java -jar or the native binary, passing the same options.

Key features of Docker MCP Server?

  • Automatic generation of MCP tools from Docker service methods
  • Supports annotation-free inference for non-annotated methods
  • Exposes 50+ Docker commands as individual MCP tools
  • Runs as a Java JAR or a standalone GraalVM native image
  • Configurable via CLI options and environment variables
  • TLS verification support for secure Docker daemon connections

Use cases of Docker MCP Server?

  • Let an AI assistant start, stop, or inspect containers via MCP tools
  • Automate image builds, pushes, and pulls from a registry
  • Manage Docker Swarm nodes, services, and tasks programmatically
  • Retrieve container logs, stats, and filesystem changes on demand

FAQ from Docker MCP Server?

How does Docker MCP Server generate tools automatically?

It uses the MCP Mediator core framework to scan methods in a Docker service class. Methods annotated with @McpTool are explicitly registered; other methods can be inferred automatically by setting createForNonAnnotatedMethods(true).

What are the runtime requirements?

Java 17+ (for JAR execution) or GraalVM (for building a native image). The server connects to a Docker daemon, by default at unix:///var/run/docker.sock.

Can I securely connect to a remote Docker daemon?

Yes. Use --tls-verify, --cert-path, and --docker-host to enable TLS client authentication. The cert path must contain the client certificate, key, and CA.

What Docker commands are available as MCP tools?

The README lists over 50 tools, including docker_start_container, docker_stop_container, docker_list_containers, docker_build_image_file, docker_push_image, docker_pull_image, docker_inspect_volume, docker_create_network, docker_join_swarm, and many more.

How do I configure logging?

Set the environment variable DOCKER_MCP_LOG_LEVEL (default: DEBUG) and optionally DOCKER_MCP_LOG_FILE (default: logs/docker_mcp_server.log).

コメント

「クラウドとインフラ」の他のコンテンツ