
Save MCP-Server Context usage with Docker's Dynamic MCP
The Problem We All Face
When Anthropic introduced the Model Context Protocol (MCP), it genuinely changed the game. All of a sudden we could hook up actual applications and services directly to AI assistants—stuff that used to be completely out of reach for them. Super powerful… but there's a catch.
Every single MCP server that starts up claims some of your context window right from the beginning. The more of them you have running, the less room the AI actually has to think and work. And the problem is that most setups just load pretty much every useful MCP server by default - whether you're actually using them that session or not. It quietly eats up space you might really need later.

Docker's Dynamic MCP: The Game-Changer
The solution comes from an unexpected source. Docker took on this problem and saw it as an opportunity to expand its own system. Instead of loading the MCP Server at the beginning, they implemented lightweight management tools which helps the AI Assistant to discover available MCP Servers via Docker infrastructure. These can be preinstalled or also install on demand as the AI Assistant can discover available but installed MCP Servers. This gives not only easy handling but also pure flexibility.
With MCP Toolkit + Gateway, Docker turns static pain into dynamic power:
- Connect once to the Gateway (single MCP entry point).
- Your agent gets lightweight management tools only: mcp-find, mcp-add, mcp-remove, mcp-list, and experimental code-mode.
- When needed, the agent searches the 310+ trusted catalog, adds the right server on-demand, uses it, then removes it.
- Tools will be load only when relevant. This will drop the baseline context from around 60–120k to ~5–10k tokens.
Bonus: code-mode lets agents write JavaScript to compose tools into custom, secure functions running in Docker sandboxes. No more flooding context with raw results, store state in volumes, send summaries only.

Get it running
Just install Docker and Docker Desktop on your machine. Once that's done, you'll spot a new section on the left sidebar called “MCP Toolkit”.
Inside there:
- Under My Servers - you can see all the MCP servers you've already got installed and running.
- Under Catalog - browse and grab any of the available servers you want.
- Under Clients - this is where you link the Docker MCP Toolkit up to your AI assistant (like Claude Desktop or Claude Code).
Then head over to the OAuth section to connect any servers that need authentication—like hooking the GitHub MCP server up to your actual GitHub account via OAuth.
And honestly… that's pretty much it. Quick setup, dead simple, but insanely powerful once it's going.

Final Thoughts
Stop hardcoding your agent's world. Let it discover, add, and compose tools as needed—that's what MCP was meant for.
Docker's dynamic mode isn't hype; it's the fix most AI users on LinkedIn still miss. I've been running it for weeks—leaner, faster, more creative sessions.
Try the setup above. Run the GitHub demo prompt. You'll see why this is the 2026 default.