Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Docker 4 min read How-to mediumAdept

Simplify AI Development with the Model Context Protocol and Docker

MCP servers can be packaged as Docker images so users can attach them to Claude Desktop with nothing but Docker Desktop installed, as Docker already does for Anthropic's reference servers in the Docker Hub mcp namespace. For uv-based Python or npm TypeScript servers, drop in a template Dockerfile, create a buildx builder with the docker-container driver, and push a multi-platform image for linux/amd64 and linux/arm64. Multi-platform builds matter because most MCP servers still run locally over stdio. Users then add a `docker run -i --rm --pull=always` entry to claude_desktop_config.json.

Assumes: Docker basicsModel Context Protocol basics

Related posts

  • How to add MCP Servers to Claude Desktop with Docker MCP Toolkit

    Docker mediumAdept

    Docker Desktop's MCP Toolkit connects Claude Desktop to containerized MCP servers through a single claude_desktop_config.json entry that runs `docker mcp gateway run`, a gateway that routes tool calls from Claude to whichever servers are enabled. The guide walks through connecting the client and configuring Firecrawl, GitHub (OAuth or personal access token), Sequential Thinking, Context7 and a Node.js Sandbox. It then demos turning a UI screenshot into a React component with Jest tests pushed to GitHub. The sandbox uses a Docker-out-of-Docker pattern via the mounted Docker socket, which spawns resource-limited ephemeral containers but effectively grants root-level host access, so it is suited to local development only.

  • Dynamic MCPs with Docker: Stop Hardcoding Your Agents’ World

    Docker mediumAdept

    Docker MCP Gateway now exposes primordial tools (mcp-find, mcp-add) that let agents search a curated catalog of 270+ MCP servers, add them to the live session, and trigger OAuth or elicitation flows, instead of hand-editing JSON config and restarting. The gateway can also hide added servers' tool definitions from tools/list so they stay discoverable without bloating the context window. A code-mode tool lets agents write JavaScript that composes tools from several MCP servers inside a Docker sandbox, keeping intermediate results out of the model and cutting per-turn token usage. The features ship in Docker Desktop 4.50 and are on by default, and cagent can expose such agents to ACP-enabled editors like Zed and Neovim.

  • Custom MCP Catalogs and Profiles: Advancing Enterprise MCP Adoption

    Docker mediumAdept

    Docker has made Custom MCP Catalogs and Profiles generally available. Catalogs let organizations curate approved Model Context Protocol servers, including ones they build themselves, and ship them as immutable OCI artifacts through existing registries, with access controlled the same way as container images. Profiles are named groupings of MCP servers that persist server configuration and limit which tools are enabled, which keeps agent context windows small and lets a developer switch a client like Claude Code between modes such as coding and planning. A walkthrough covers defining a custom server in YAML, running `docker mcp catalog create`, then pushing and importing the catalog with the CLI or Docker Desktop.

  • Docker Desktop 4.43: Expanded Model Runner, Reimagined MCP Catalog, MCP Server Submissions, and Smarter Gordon

    Docker mediumAdept

    Docker Desktop 4.43 adds new Model Runner commands (docker model ps, df, unload), OpenAI API improvements such as streaming tool calls, OPTIONS support and configurable CORS, plus per-model context size and llama.cpp runtime flags set via Compose. The MCP Catalog is redesigned with over 100 containerized, signed MCP servers with SBOMs, and now accepts submissions as Docker-built or community-built images. The MCP Toolkit gains OAuth for the GitHub server and a one-command VS Code connection. Gordon supports multi-threaded conversations, and Compose Bridge converts a compose.yaml into Kubernetes Namespaces, Deployments, Services, Secrets, NetworkPolicies and PVCs with a single command.

  • How to Add MCP Servers to Claude Code with Docker MCP Toolkit

    Docker mediumAdept

    Docker MCP Toolkit lets Claude Code reach containerized MCP servers through a single Docker MCP Gateway entry in a project's .mcp.json, connected with one click in Docker Desktop or via `docker mcp client connect claude-code`. The guide covers setting up the Atlassian (Jira), GitHub (OAuth or personal access token) and Filesystem (scoped paths) servers. It then walks through a demo where Claude Code scans a Node.js codebase for TODO/FIXME comments, runs git blame, assigns priority by keyword and bulk-creates Jira tickets. Docker claims this cuts a 20–30 minute manual task to about 2 minutes.

The quest for software engineering knowledge.

Look:
Layout: