Docker MCP Server
@makbn
关于 Docker MCP Server
Model Context Protocol MCP Server for Docker Commands. Provides Docker and Docker Swarm commands as MCP Tools.
基本信息
配置
工具
未检测到工具
工具是从 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 服务器
Azure DevOps MCP Server
Tiberriver256An MCP server for Azure DevOps
Awesome DevOps MCP Servers
rohitg00A curated list of awesome MCP servers focused on DevOps tools and capabilities.
AWS MCP
RafalWilinskiTalk with your AWS using Claude. Model Context Protocol (MCP) server for AWS. Better Amazon Q alternative.
🐳 docker-mcp
QuantGeekDevA docker MCP Server (modelcontextprotocol)
Query | MCP server for Supabase
alexander-zuevQuery MCP enables end-to-end management of Supabase via chat interface: read & write query executions, management API support, automatic migration versioning, access to logs and much more.
评论