1:1 mentoring with Big Tech AI engineers
RAG & MCP

MCP Security

What the model reads can carry instructions: why risk belongs to the whole session (the lethal trifecta), how tool poisoning and rug pulls work and what pinning does, why filters fail and the backend must bound the tool, and why every installed server is supply chain.

Last updated

Production10 min readFirst readMCP AuthorizationMCP Discovery

After this section you can

  • Classify the tools of a connected session against the three legs of the lethal trifecta.
  • Explain why a string filter does not bound a tool, and name the backend control that does.
  • Decide what to pin, re-review and refuse for every MCP server you install.
09

MCP Security

Where untrusted text reaches the model, why the risk sits in the whole session, and what to bound, pin and vet.

Key idea

An MCP server lends a steerable model the power to act. Security is deciding, on every request, whose power that is, how far it reaches, and what happens when the model reads text that tries to steer it.

One tool call, five boundaries
Modelwrites tool_use Clientone per server MCP servertools/call Upstream APIyour CRM or mail tool_use tool_result request result API call response 1 untrusted input 2 token audience 3 own credential 4 untrusted text Installed servercode you run 5 supply chain WHERE EACH BOUNDARY IS TAUGHT 1, 4, 5 on this page 2, 3 in MCP Authorization

Numbers follow the call out and back. Grey 2 and 3 are taught in MCP Authorization; teal 1, 4 and 5 are this page. The figure pans on a phone.

Related

More in RAG & MCP

Get full access to all 149 sections with code examples, diagrams, and interactive animations.

Unlock Premium