awesome-mcp-security

Puliczek/awesome-mcp-security Checked 1 day ago

πŸ”₯πŸ”’ Awesome MCP (Model Context Protocol) Security πŸ–₯️

🀝 Show your support - give a ⭐️ if you liked the content Everything you need to know about Model Context Protocol (MCP) security. See also: Tools: Security Considerations (server MUSTs and client SHOULDs) and Authorization.

Summary extracted from the README.


Awesome MCP Security Awesome

Everything you need to know about Model Context Protocol (MCP) security.

Table of Contents

πŸ“” Security Considerations

A short summary of the official MCP specification, revision 2026-07-28. The specification is the source of truth.

[!WARNING] Tools represent arbitrary code execution. Tool descriptions and annotations are untrusted unless they come from a trusted server, and a human SHOULD always be able to deny a tool call.

Key principles (spec)

  • User consent and control - users explicitly consent to data access and actions, and keep control over what is shared
  • Data privacy - hosts get consent before exposing user data to servers and don't send it elsewhere without consent
  • Tool safety - hosts get consent before invoking any tool, and users should understand what each tool does

Attacks covered by the official Security Best Practices

Attack In short
Confused deputy MCP proxy servers to third-party APIs let malicious clients skip user consent
Token passthrough a server accepts and forwards tokens that were not issued to it
SSRF a malicious server makes the client request internal addresses or cloud metadata
State handle hijacking guessed or leaked state handles (cart ID, workflow ID) passed as tool arguments
Local MCP server compromise local servers run with direct access to the user's system
OAuth URL validation malicious authorization URLs lead to XSS or RCE in the client
Mix-up attacks a malicious authorization server tricks the client into sending it codes meant for another
Scope minimization overly broad scopes increase the damage of a leaked token

See also: Tools: Security Considerations (server MUSTs and client SHOULDs) and Authorization.

πŸ“ƒ Papers

πŸ“Ί Videos

πŸ“• Articles, X threads and Blog Posts

2026

2025

πŸ§‘β€πŸš€ Tools and code

Scanners & auditing

Gateways & proxies

Runtime protection & audit

Testing & vulnerable labs

πŸ’Ύ MCP Security Servers

πŸ’» Other Useful Resources

😎 Contributing

πŸ‘πŸŽ‰ First off, thanks for taking the time to contribute! πŸŽ‰πŸ‘

Please read and follow our contributing guide

Thanks! πŸ¦„

🀝 Show your support

βœ”οΈ Disclaimer

This project can only be used for educational purposes. Using this resource against target systems without prior permission is illegal, and any damages from misuse of this software will not be the responsibility of the author.