Host, Client, Server and Trust Boundaries
In this article
- Say what the host, each MCP client and the server own in a real setup, and which credential each one holds.
- Mark the untrusted inputs on a host, client and server diagram, including tool descriptions and tool results.
- Spot a host that sends a server more than the tool arguments.
- Explain a confused-deputy attack and put the ownership check in the right place to stop it.
- Terms defined here: confused deputy.
Overview
A customer of the made-up online shop asks Claude Desktop where their order is. The answer travels through three programs and one API: the app on their screen, a small connector inside it, the shop's orders server and the order database behind it. Each of these sees different data and holds a different key. When something goes wrong, such as a reply that shows another customer's order, you need to know which part should have stopped it.
By the end you can name what each part owns, which credential it holds and which text it must not trust. Two common faults follow, and you predict the damage of each before the fix; the second has the shape of a known attack, the confused deputy.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Who owns what
- Three credentials, three checks
- Where untrusted text crosses
- Fault one: the whole chat
- Fault two: someone else's order
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions