CuratedMCP
OpenAI Agents SDK
Free

How to Install Docker MCP in OpenAI Agents SDK

Official Docker integration — manage containers, images, volumes and compose stacks via AI

What Docker MCP does

The official Docker MCP server gives AI agents full control over your Docker environment. Build images, run containers, manage networks, and orchestrate multi-service applications through natural language. Features: - List, start, stop, and remove containers - Build Docker images from Dockerfiles - Manage Docker volumes and networks - Run docker-compose up/down/scale - Stream container logs in real time - Inspect container health and resource usage - Push/pull images from Docker Hub and private registries - Execute commands inside running containers Use cases: - "Start the postgres and redis containers from my compose file" - "Show me logs from the api container in the last 10 minutes" - "Build a new image from the current directory and tag it v2.1" - "Which containers are using more than 500MB of memory?" Built and maintained by Docker. Connects to the local Docker socket — no remote credentials needed.

docker
containers
devops
compose
kubernetes

Installation steps

  1. 1Install: pip install openai-agents
  2. 2Copy the snippet below into your agent code
  3. 3Replace placeholder env values with your real keys
  4. 4Pass mcp_servers=[mcp_server] to your Agent()

Python snippet

Python snippetpython
from agents import Agent
from agents.mcp import MCPServerStdio

mcp_server = MCPServerStdio(
    command="npx",
    args=["-y", "@docker/mcp-server"],
    env={
        "DOCKER_HOST": "unix:///var/run/docker.sock",
    },
)

agent = Agent(
    name="My Agent",
    model="gpt-4o",
    mcp_servers=[mcp_server],
)
Full server details Open Config Editor

Install in other clients

For maintainers

If you maintain Docker MCP, add this badge to your README to show it's verified on CuratedMCP:

CuratedMCP Verified
[![CuratedMCP Verified](https://curatedmcp.com/api/badge/docker-mcp)](https://curatedmcp.com/marketplace/docker-mcp)

Related servers