AI Hints
Home›MCP Tutorial›Auth and Validation
MCP · Lesson 99 of 120

Security Checklist

Before you ship.

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

Before you ship a server, run through a short checklist. It catches most problems, in a few minutes.

Security Checklist
From the video: Security Checklist
  • Before shipping
  • A short checklist
  • Catch problems

The checklist

Validate every argument. Give the least access. Keep secrets in the environment. Confirm risky actions with a human. Require tokens for HTTP servers. And log every call.

CheckDone by
Validate argumentsschema + code
Least accessread-only, one folder
Secretsenvironment only
Risky actionselicitation
HTTP authOAuth tokens
Auditlog every call

For hosts and users

Install only trusted servers. Read their tool descriptions. Approve each risky call. And remove servers you no longer use.

keyvalue
Installtrusted only
Readdescriptions
Approverisky calls
Removeunused servers

Summary

Run the checklist before every release. Next, rate limits and abuse.

Key takeaways
  • Validate
  • Least access
  • Log calls
Next up: Rate Limits and Abuse — protect your server