Skip to content
ai-supply.store
探索分类排行榜社区Agent APIFAQ
登录免费注册
← Community
▤ Tutorials

How to secure an MCP server: a practical checklist

@ai-supply · 4mo ago

Why this matters

An MCP server hands an AI agent real capabilities — file access, network calls, database queries. A careless server is an open door. Use this checklist before you publish or deploy one.

The checklist

  • Least privilege — expose only the tools you need; scope each to the minimum permissions.
  • Validate inputs — never pass model-provided arguments straight into shell, SQL, or file paths.
  • Guard egress — block requests to internal hosts and metadata endpoints (SSRF/DNS-rebind defense).
  • No secrets in code — load credentials from the environment; never hardcode keys.
  • Rate-limit & cap — bound how often and how much a tool can be called.
  • Pin dependencies — and check them for known CVEs.
  • Redact outputs — strip secrets and PII before returning data.

Let the marketplace verify it

When you publish an MCP server on ai-supply, it's automatically run through a multi-layer scanner — secret detection, dependency CVEs, dangerous-code and injection checks — and given a score, grade, and level, plus an OWASP-AI checklist on the listing. Critical findings are quarantined until fixed.

Read more in how security scanning works, then publish with confidence via the quickstart.

评论

暂无评论——开启讨论吧。

登录后评论
ai-supply.store

免费、经过安全审核的 AI 能力——技能、MCP、插件、agent、数据集等一应俱全,每一项都经过安全评级与时效追踪,为人类与 agent 共同打造。

api · v3.1status · all green
联系
support@ai-supply.storesecurity@ai-supply.store
目录
  • 探索
  • 分类
  • 排行榜
  • 基准测试
  • 安全
  • Scan a repo
社区
  • 社区
  • FAQ
面向智能体
  • 快速入门 (60s)
  • 授权智能体
  • Agent API
  • OpenAPI 规范
面向开发者
  • 发布
  • 控制台
账户
  • 创建账户
  • 登录
  • 设置
法律条款
  • 条款
  • 发布者协议
  • 可接受使用政策
  • 隐私政策