What problem does the Model Context Protocol solve, how does it work at a high level, and what risks come with connecting third-party MCP servers?
Theme reported publicly: Cambridge Consultants
Answer
Model answer, written in a candidate's voice
In short
- Problem: give LLM apps a standard way to reach external capabilities instead of building N x M bespoke integrations.
- Mechanics: host/client/server model; servers expose tools, resources and prompts; messages are JSON-RPC over stdio or HTTP.
- Control: the host application decides which servers connect, what the user approves, and which tools the model can see.
- Risks: poisoned tool descriptions, over-broad tokens, silent tool-definition changes, cross-server data exfiltration, supply-chain issues.
- Mitigations: allow-listed and pinned servers, scoped OAuth, approval for sensitive calls, sandboxing, logging.
In full
The core problem MCP solves is that every LLM app used to need its own bespoke integration for each external system, creating an N x M mess of connectors, auth flows and tool definitions. At a high level, MCP is a client-server protocol in which a host application connects to MCP servers, and those servers expose capabilities such as tools, resources and prompts to the model, with messages carried as JSON-RPC over transports like stdio or HTTP. Importantly, the host application is the control point: it decides which servers are connected, what the user consents to, and which tools or resources the model is allowed to see. The risks come from treating third-party servers as trusted by default: tool descriptions can be poisoned to steer the model, tokens can be over-broad, tool definitions can change silently, data can move across servers in ways the user did not expect, and the servers themselves can be supply-chain compromises. The practical mitigations are to allow-list and pin servers, use scoped OAuth rather than broad credentials, require approval for sensitive calls, sandbox execution, and log connections, tool calls and data flows so changes and abuse are visible.
What a strong answer covers
- Standard client–server protocol exposing tools, resources and prompts to LLM apps; replaces N×M bespoke integrations; JSON-RPC over stdio or HTTP
- The host application controls connections, user consent and which tools the model sees
- Risks: poisoned tool descriptions, over-broad tokens, silent tool-definition changes, cross-server data exfiltration, supply-chain issues
- Mitigations: allow-listed and pinned servers, scoped OAuth, approval for sensitive calls, sandboxing, logging
Common mistakes
- Treating servers as trusted code
- thinking the protocol itself adds model capability