---
title: "Dynamic MCPs with Docker: Stop Hardcoding Your Agents’ World"
description: "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."
url: "https://swe.quest/articles/dynamic-mcps-with-docker-stop-hardcoding-your-agents-world-a530a7120388ea63"
canonical: "https://www.docker.com/blog/dynamic-mcps-stop-hardcoding-your-agents-world/"
source: "Docker"
published: "2025-11-06"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 11
tags: ["ai-agents","llms","sandboxing","containers","developer-tools"]
---

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

A post on [Docker](https://swe.quest/sources/docker.md), published 2025-11-06, 11 min read, Announcement. Original: [https://www.docker.com/blog/dynamic-mcps-stop-hardcoding-your-agents-world/](https://www.docker.com/blog/dynamic-mcps-stop-hardcoding-your-agents-world/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Sandboxing & isolation](https://swe.quest/tags/sandboxing.md) (Security)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- Model Context Protocol basics
- LLM tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- Docker containers ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))

## Keywords

Model Context Protocol, Docker MCP Gateway, Docker MCP Catalog, code-mode, cagent, Agent Client Protocol, CodeAct

## Related posts

- [Using MCP Servers: From Quick Tools to Multi-Agent Systems](https://swe.quest/articles/using-mcp-servers-from-quick-tools-to-multi-agent-systems-25a421c78bb6b492.md): Docker · 2026-01-22 · Easy · 6 min read · AI agents, Containers, LLMs
  Containerizing MCP servers addresses three practical problems: language runtime sprawl, secret injection, and N×N client-to-server wiring.
- [Building AI Agents with Docker MCP Toolkit: A Developer’s Real-World Setup](https://swe.quest/articles/building-ai-agents-with-docker-mcp-toolkit-a-developer-s-real-world-setup-988aee07496da75c.md): Docker · 2025-08-19 · Medium · 6 min read · AI agents, Containers, LLMs
  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.
- [How to add MCP Servers to Claude Desktop with Docker MCP Toolkit](https://swe.quest/articles/how-to-add-mcp-servers-to-claude-desktop-with-docker-mcp-toolkit-2bef3464ab3fe16c.md): Docker · 2025-10-27 · Medium · 18 min read · AI agents, Containers, AI for coding, Developer tools
  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.
- [Custom MCP Catalogs and Profiles: Advancing Enterprise MCP Adoption](https://swe.quest/articles/custom-mcp-catalogs-and-profiles-advancing-enterprise-mcp-adoption-d31dad454df8e6ad.md): Docker · 2026-05-15 · Medium · 7 min read · AI agents, Developer tools, Containers
  Docker has made Custom MCP Catalogs and Profiles generally available.
- [Docker MCP Gateway: Open Source, Secure Infrastructure for Agentic AI](https://swe.quest/articles/docker-mcp-gateway-open-source-secure-infrastructure-for-agentic-ai-8fe8cf36e09a039e.md): Docker · 2025-07-09 · Medium · 3 min read · AI agents, Containers, Security, Open source
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
