What is MCP, and when do you need multiple agents?
What is the Model Context Protocol (MCP), and when do you need a multi-agent system?
TL;DR
MCP is an open protocol that standardizes how AI applications connect to tools and data. An MCP server exposes tools (actions), resources (readable data) and prompts (templates) through one interface; any MCP client (a chat app, an IDE, your own agent) can use them. It replaces writing a custom integration for every app-and-tool pair: build a GitHub or database MCP server once, and every compatible client can use it. Multi-agent systems split work across several agents, typically an orchestrator that delegates to sub-agents with their own instructions, tools and clean context. They help when a task has independent parallel parts or would overflow one agent's context, but they cost more tokens and are harder to debug, so start with a single agent.
Key points
- MCP transports: stdio for local servers, streamable HTTP for remote ones (with OAuth for auth).
- MCP security: tool descriptions and tool outputs go into the model's context, so a malicious or compromised server can inject instructions (tool poisoning). Install only trusted servers, scope their permissions, and require approval for sensitive actions.
- MCP doesn't decide what to do; the model and your app still choose when to call tools.
- Multi-agent patterns: orchestrator and workers (research fan-out), pipelines of specialists, and an independent reviewer or critic.
- Sub-agents return summaries, not their full transcripts, which keeps the orchestrator's context small.
- Costs: several times more tokens, coordination failures, and duplicated work. Use them when parallelism or context isolation pays for that.
Example
User: "Compare the pricing pages of our 5 competitors."
Orchestrator → spawns 5 research sub-agents in parallel (one per competitor)
Each sub-agent: browse → extract prices → return a 200-token summary
Orchestrator: merge 5 summaries → final comparison tableCommon follow-ups
- How is MCP different from plain function calling? Function calling is how a model asks for a tool inside one app. MCP is how tools are packaged and discovered across apps, so they're reusable.
- How do you debug a multi-agent system? Trace every agent's inputs, tool calls and outputs with one shared trace ID, and evaluate each role separately.
What interviewers look for
Tip
MCP as a standard interface (servers, clients, tools and resources), its prompt-injection risk, and a clear-eyed view of when multi-agent is worth its cost.
- Red flag: "more agents means better results."