Using MCP Servers: From Quick Tools to Multi-Agent Systems
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.
Related posts
- Dynamic MCPs with Docker: Stop Hardcoding Your Agents’ World
Docker mediumAdeptDocker 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.
- How to add MCP Servers to Claude Desktop with Docker MCP Toolkit
Docker mediumAdeptDocker 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.
- How to Add MCP Servers to ChatGPT with Docker MCP Toolkit
Docker mediumAdeptDocker MCP Toolkit lets ChatGPT's Developer Mode call real tools by running MCP servers in isolated containers behind a Docker MCP Gateway exposed to ChatGPT via an ngrok tunnel. The guide walks through initializing a gateway from the chatgpt-app-basic template, running it with Docker Compose on port 8811 with streaming transport, and registering it as a custom connector. It then configures seven servers (Firecrawl, SQLite, Stripe, GitHub, Node.js Sandbox, Sequential Thinking, Context7) to build a competitive repricing agent that scrapes competitor prices, updates Stripe prices, logs decisions to SQLite and pushes audit reports to GitHub.
- Build a Multi-Agent System in 5 Minutes with cagent
Docker mediumAdeptcagent is an open-source Docker tool that defines multi-agent AI systems declaratively in a single YAML file. Each agent's model (OpenAI, Anthropic, Gemini or local via Docker Model Runner), instructions, MCP toolsets and sub-agents are specified there, and the runtime handles delegation and context passing. A three-agent example (coordinator, researcher with DuckDuckGo MCP, writer) runs with `cagent run` and can be pushed to Docker Hub so teammates run the identical setup. Example use cases include PR triage, research summarization and knowledge routing with PII redaction.
- Custom MCP Catalogs and Profiles: Advancing Enterprise MCP Adoption
Docker mediumAdeptDocker 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.