Skip to content

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

Docker 11 min read Announcement mediumAdept

Dynamic MCPs with Docker: Stop Hardcoding Your Agents’ World

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.

Assumes: Model Context Protocol basicsLLM tool callingDocker containers

Related posts

  • Using MCP Servers: From Quick Tools to Multi-Agent Systems

    Docker easyNovice

    Containerizing MCP servers addresses three practical problems: language runtime sprawl, secret injection, and N×N client-to-server wiring. Three integration paths are laid out in order of complexity: Docker's MCP Toolkit and Catalog for one-click containerized servers wired to clients like Claude Desktop or VS Code, cagent for declarative YAML-defined multi-agent systems with per-agent tool scoping, and code-first frameworks like LangGraph, CrewAI or ADK for full orchestration control. All three route through the open-source MCP Gateway, which centralizes routing, authentication and a single endpoint, and a comparison table maps each option to who it suits and what you manage.

  • Building AI Agents with Docker MCP Toolkit: A Developer’s Real-World Setup

    Docker mediumAdept

    A GitHub repository question-answering agent is built by running the GitHub MCP Gateway (docker/mcp-gateway) as a container under Docker Compose and connecting a Python agent to it over streamable-http via MCPTools. The gateway lists files, fetches content and searches code, and GPT-4o reasons over the results. Setup takes a few commands: store a GitHub token with `docker mcp secret set`, run `docker compose up`, then run app.py. The main argument is that containerized MCP connectors keep integration code out of the agent and give consistent environments, and new tools such as Jira or Slack can be added as extra Compose services.

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

  • 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 MCP Gateway: Open Source, Secure Infrastructure for Agentic AI

    Docker mediumAdept

    Docker's MCP Gateway, now open source, is a single enforcement point between AI agents and the MCP servers they call, aggregating multiple containerized servers behind one interface and integrating with Docker Compose. The `docker mcp` CLI covers browsing the catalog, storing secrets such as API keys, writing per-server host config, and running gateways that expose chosen servers and a restricted set of tools over transports like SSE. Security interceptors can be switched on at startup to verify container image signatures, block secret-like content in payloads, and log tool calls. It ships in Docker Desktop and works with any community edition of Docker.

The quest for software engineering knowledge.

Look:
Layout: