MCP · Lesson 91 of 120
Why Security Matters
Tools can act.
MCP gives models real power. Tools can read private data, send messages, and cancel orders. If the wrong text reaches the model, or the wrong server is installed, that power can be misused.

- Tools can act
- Private data
- Power can be misused
The main risks
Prompt injection hides instructions in data the model reads. Tool poisoning hides them in a server's own descriptions. Too much access turns a small mistake into a big one. And leaked secrets let others in.
| Risk | Where it hides |
|---|---|
| Prompt injection | tool results, documents |
| Tool poisoning | tool descriptions |
| Too much access | broad permissions |
| Leaked secrets | code, logs, results |
The mindset
Treat everything a tool returns as untrusted data. Give each server the least access it needs. And let a human confirm anything that can't be undone.
| key | value |
|---|---|
| Tool results | untrusted data |
| Access | the least needed |
| Risky actions | human confirms |
| Servers | only trusted ones |
Summary
Tools can act, so treat their data as untrusted, limit access, and confirm risky actions. Next, prompt injection.
Key takeaways- Untrusted data
- Least access
- Human confirms
Next up: Prompt Injection — through tool results