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).

评论

云与基础设施 分类下的更多 MCP 服务器