AI Hints
Home›MCP Tutorial›Security Threats
MCP · Lesson 91 of 120

Why Security Matters

Tools can act.

⏱ 2 min read▶ Video at 1:21:11🎓 Free
Watch this lesson in the MCP courseWatch on YouTube ↗Full MCP course

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.

Why Security Matters
From the video: Why Security Matters
  • 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.

RiskWhere it hides
Prompt injectiontool results, documents
Tool poisoningtool descriptions
Too much accessbroad permissions
Leaked secretscode, 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.

keyvalue
Tool resultsuntrusted data
Accessthe least needed
Risky actionshuman confirms
Serversonly 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