Tác nhân / NAVIN RESEARCH
Secure an MCP Server Before Connecting AI Agents
A deployment checklist for authentication, authorization, consent, validation, and least-privilege Model Context Protocol tools.

A deployment checklist for authentication, authorization, consent, validation, and least-privilege Model Context Protocol tools.
Tóm tắt: Treat an MCP server as a security boundary. Authenticate clients, authorize every operation, validate all arguments, minimize tool scope, protect tokens, and require user confirmation for consequential actions. A trusted model does not make an untrusted tool safe.
Các bước triển khai
- Threat-model the server, upstream APIs, client, and transport separately.
- Issue short-lived credentials with the narrowest scopes and bind them to the intended audience.
- Validate redirect URIs and prevent token passthrough to downstream systems.
- Log security events without storing prompts, secrets, or sensitive tool results unnecessarily.
Danh sách kiểm tra
- Attempt cross-tenant access and confused-deputy flows.
- Test prompt-injected arguments against server-side authorization.
- Confirm revoked credentials fail immediately or within the documented window.
Sai lầm thường gặp
- Using one administrator token for all users.
- Relying on natural-language instructions as access control.
- Automatically approving writes because they originated from an agent.
Quyết định thực tế
Hãy triển khai thiết kế nhỏ nhất vượt qua các bước kiểm tra ở trên. Ghi lại phiên bản mô hình, prompt, công cụ, dữ liệu và runtime đã dùng để kiểm thử để những thay đổi sau này có thể được so sánh thay vì phỏng đoán. Kiểm tra lại tài liệu được liên kết trước khi dựa vào giới hạn, tên mô hình, giá hoặc tính năng thử nghiệm của nhà cung cấp.








