🛡️ mcp-safeguard
The security scanner for MCP servers.
Detect prompt injection · credential leaks · exposed endpoints · tool poisoning
Maintained by Syed Anas Mohiuddin at Cognivators. Public vulnerability record:
接入你的智能体
从发布者处安装。不是 PlugMCP 端点。
远程 URL 还是本机命令? 两种安装方式的区别
来自发布者
The security scanner for MCP servers.
Detect prompt injection · credential leaks · exposed endpoints · tool poisoning
Maintained by Syed Anas Mohiuddin at Cognivators. Public vulnerability record:
🛡️ Security scanner for MCP (Model Context Protocol) servers — prompt injection, credential exposure, SSRF, tool poisoning & source-level credential-handling flaws. pip install mcp-safeguard
🔎 Found CVE-2026-14540 — a server-side request forgery in Google's official MCP Toolbox. Google shipped the fix and credited the report.
pip install mcp-safeguard
mcp-safeguard scan your-config.json
pip install mcp-safeguard
git clone https://github.com/SyedAnas01/mcp-safeguard && cd mcp-safeguard
mcp-safeguard scan examples/demo-vulnerable-config.json
┌─────────────────────────────────────────────────┐
│ mcp-safeguard — MCP Security Scanner │
│ github.com/SyedAnas01/mcp-safeguard │
└─────────────────────────────────────────────────┘
Scanning: examples/demo-vulnerable-config.json
────────────────────────────────────────────────────────────
[CRITICAL] CRED-007 AWS Access Key ID
Location: env.AWS_ACCESS_KEY_ID
Evidence: AKIA************MPLE
CVSS: 9.9
Fix: Rotate AWS credentials. Use IAM roles.
[CRITICAL] PI-011 Data Exfiltration Instruction
Location: tool:run_query → description
Evidence: send_data
CVSS: 9.5
Fix: Immediately audit — designed to exfiltrate data.
[HIGH] TP-002 Covert Operation Descriptor
Location: tool:summarize_document.description
Evidence: |MCP over SSE/stdio| D
D --> E & F & G
E --> M --> N --> O
E --> H & I & J & K & L
H & I & J & K & L --> Q & R
External research confirms the threat is real: MCPTox (2025) found a 72% attack success rate across 45 production MCP servers, demonstrating that tool poisoning and prompt injection attacks are actively exploitable in today's MCP ecosystem.
OWASP officially added MCP Tool Poisoning to their 2026 threat guidance — the same vulnerability category mcp-safeguard's TP-* rules detect.
The gap: The MCP ecosystem grew from zero to 10,000+ servers in 18 months while security tooling lagged behind. mcp-safeguard is an open-source scanner built specifically for MCP's attack surface — tool definitions, server configs, and SSRF exposure via prompt injection.
The vulnerability patterns mcp-safeguard detects are documented with illustrative examples in SECURITY-HALL-OF-SHAME.md. Run mcp-safeguard on your own servers and contribute real scan results via GitHub Issues or Discussions.
Share your results — open a Discussion or submit a PR to SECURITY-HALL-OF-SHAME.md.
Using mcp-safeguard in your pipeline, or found a real issue with it? We welcome scan results and contributions — open a Discussion or PR.
git clone https://github.com/SyedAnas01/mcp-safeguard
cd mcp-safeguard
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest tests/ -v
Issues and PRs welcome — especially:
MIT — see LICENSE.
If this helped you, please ⭐ the repo — it helps others find it.
🛡️ Security scanner for MCP (Model Context Protocol) servers — prompt injection, credential exposure, SSRF, tool poisoning & source-level credential-handling flaws. pip install mcp-safeguard
工具
暂无工具列表。远程服务器在首次健康检查后会获得工具列表。
常见问题
在本页复制适用于 Cursor、Claude Desktop、Claude Code 或 VS Code 的 stdio 配置。它使用发布者的安装方式,而不是 PlugMCP 代理。
此记录未列出必需的环境变量。
MCP Safeguard 通过 stdio 在本地运行。
上次检查时间:2026-10-28。 🛡️ Security scanner for MCP (Model Context Protocol) servers — prompt injection, credential exposure, SSRF, tool poisoning & source-level credential-handling flaws. pip install mcp-safeguard