Skip to content
项目

Puliczek/awesome-mcp-security

在 GitHub 查看

关于

🔥🔒 精选 MCP(模型上下文协议)安全资源 🖥️

安全与隐私

这些数字如何统计

实测星标增长

24小时
0
7天
+4
15天
+4
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文
🤝 Show your support - give a ⭐️ if you liked the content

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

🤝 Show your support - give a ⭐️ if you liked the content

✔️ 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.

探索相关项目

加载中…