---
title: "Claude Code: how to use MCP servers without worrying about “context bloat”"
url: "https://zuey.me/articles/claude-code-giai-phap-dung-mcp-servers-ma-khong-lo-context-bloat?lang=en"
locale: en
access: free
full_text: true
published_at: "2025-11-10T00:16:20.000Z"
tags: ["Claude Code", "MCP", "AI Agents", "Context Engineering"]
translations:
  vi: "https://zuey.me/articles/claude-code-giai-phap-dung-mcp-servers-ma-khong-lo-context-bloat.md?lang=vi"
  zh: "https://zuey.me/articles/claude-code-giai-phap-dung-mcp-servers-ma-khong-lo-context-bloat.md?lang=zh"
  ko: "https://zuey.me/articles/claude-code-giai-phap-dung-mcp-servers-ma-khong-lo-context-bloat.md?lang=ko"
  ja: "https://zuey.me/articles/claude-code-giai-phap-dung-mcp-servers-ma-khong-lo-context-bloat.md?lang=ja"
---
# Claude Code: how to use MCP servers without worrying about “context bloat”

> Subagents get their own context window, so why not stuff all your MCP servers in there? An mcp-manager subagent + mcp-management skills keep the main context squeaky clean, even with 80 MCP servers 💪

Right after I finished reading Anthropic's "[Code execution with MCP](https://www.anthropic.com/engineering/code-execution-with-mcp)" post, an idea suddenly flashed through my head...

As you may already know, subagents have their own context windows, while the way we use MCP today bloats the main context (anyone who's used Chrome Devtools MCP or Playwright MCP knows how much upfront context their pile of tools eats up).

> **INFO:** So: **why don't we load all the MCP stuff into a subagent's context instead?**

I tried it out right away...

### The idea: mcp-manager subagent + mcp-management skills

The idea is dead simple: an `mcp-manager` subagent + `mcp-management` skills.

1. The `mcp-management` skills contain scripts that initialize an MCP Client from `.claude/.mcp.json` (move your `.mcp.json` file here so the main agent doesn't auto-load it into context from the start)
2. The `mcp-manager` subagent is then equipped with the `mcp-management` skills

### How it flows

Whenever a tool needs to be called, here's what happens:

```mermaid
flowchart TD
  A["Main agent needs to call a tool"] --> B["Summon the mcp-manager subagent"]
  B --> C["Activate mcp-management skills"]
  C --> D["Load MCP servers"]
  D --> E["Subagent gets the list of tools, analyzes and picks one"]
  E --> F["Call the tool and get the result"]
  F --> G["Return the result to the main agent"]
```

> **TIP:** Voilà! The main context stays as pure as fresh spring water, even if you're running 80 MCP servers :))

### Upgrade: offloading MCP handling to gemini-cli

Actually, I upgraded it a bit after that, because even though processing such a huge number of MCP server tools doesn't pollute the main context, it still... burns tokens, so you hit your subscription plan's limit fast.

So I handed that MCP processing off to... `gemini-cli` 😂

| Approach | Main context | Subscription plan tokens |
| --- | --- | --- |
| Load MCP straight into the main agent | Bloated from the start | Burned |
| `mcp-manager` subagent | Clean | Still burned when handling lots of tools |
| Subagent + `gemini-cli` | Clean | MCP processing moved to `gemini-cli` |

### Where's the code?

The code is... 🤌 ...right here: [mrgoonie/claudekit-skills](https://github.com/mrgoonie/claudekit-skills)

And of course, all the CKers already have the latest version 😜
