Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
MCP serverCẩn thậnĐăng nhập & bảo mậtDễ cho người mới

awesome-mcp-security

Puliczek · Puliczek/awesome-mcp-security

Một danh sách tuyệt vời cung cấp tài nguyên và cân nhắc toàn diện về bảo mật Giao thức Ngữ cảnh Mô hình (MCP), bao gồm các thực hành tốt nhất cho máy chủ và máy khách.

🔥🔒 Awesome MCP (Model Context Protocol) Security 🖥️

741 sao266Giấy phép: Không có giấy phépCập nhật 8 tháng trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Hiểu các cân nhắc bảo mật MCP chính thức và các thực hành tốt nhất để xây dựng máy chủ MCP an toàn.
  • Học cách triển khai kiểm soát truy cập và xác thực đầu vào phù hợp cho các công cụ MCP.
  • Xác định các rủi ro bảo mật tiềm ẩn và triển khai các biện pháp bảo vệ phía máy khách khi sử dụng công cụ MCP với tác nhân AI.

Kiểm tra an toàn

Cẩn thận

Dùng được, nhưng nên đọc ghi chú trước.

  • ●Không có giấy phép rõ ràng: hỏi tác giả trước khi dùng cho sản phẩm thương mại.

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

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


**Awesome MCP Security **

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

Table of Contents

📔 Security Considerations

Official Security Considerations from the Official MCP Specification Rev: 2025-03-26

[!NOTE] 15.04.2025: The current MCP auth specification is in progress of being replaced by a more robust specification. Please join the conversation if you have concerns around the current auth specification.

  • Servers MUST:

    • Validate all tool inputs
    • Implement proper access controls
    • Rate limit tool invocations
    • Sanitize tool outputs
  • Clients SHOULD:

    • Prompt for user confirmation on sensitive operations
    • Show tool inputs to the user before calling the server, to avoid malicious or accidental data exfiltration
    • Validate tool results before passing to LLM
    • Implement timeouts for tool calls
    • Log tool usage for audit purposes

[!WARNING]
For trust & safety and security, clients MUST consider tool annotations to be untrusted unless they come from trusted servers.

[!WARNING]
For trust & safety and security, there SHOULD always be a human in the loop* with the ability to deny tool invocations.

Applications SHOULD:

  • Provide UI that makes clear which tools are being exposed to the AI model.
  • Insert clear visual indicators when tools are invoked.
  • Present confirmation prompts to the user for operations, to ensure a human is in the loop.

[!NOTE]
*Human-in-the-Loop (HITL) means that user help monitor and guide automated tasks, like deciding whether to accept tool requests in Cursor.

📃 Papers

📺 Videos

📕 Articles, X threads and Blog Posts

Xem mã nguồn trên GitHub