
appsecco/vulnerable-mcp-servers-lab 是从 https://github.com/appsecco/vulnerable-mcp-servers-lab. 导入的 MCP 服务器候选
概览
appsecco/vulnerable-mcp-servers-lab 是从 https://github.com/appsecco/vulnerable-mcp-servers-lab. 导入的 MCP 服务器候选
概述(AI 翻译)
易受攻击的MCP服务器实验室
该仓库包含有意存在漏洞的模型上下文协议(MCP)服务器实现(本地和远程)。每台服务器都存在自己的文件夹,并包含一个专门的README.md,详细说明其功能、如何运行以及如何演示/攻击漏洞。
请勿在受控实验室环境外进行任何操作。
这个收车的用途
- **关于常见MCP服务器和工具集成失败模式的安全培训/研究。
- 动手演示,展示易受攻击的MCP服务器如何导致数据泄露、指令注入、供应链泄露及代码执行。
安全/实验室指导
- 使用一次性虚拟机/容器,避免使用真实的秘密或个人数据。
- 偏好在隔离网络上运行;多个服务器会进行外呼网络调用。
- 将所有工具输出和检索内容视为不可信数据。
- 如果你通过HTTP暴露任何服务器,假设除非添加适当的控制,否则它可能会被访问或滥用。
开始
- 从下方索引中选择一位服务器。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Vulnerable MCP Servers Lab
This repository contains intentionally vulnerable implementations of Model Context Protocol (MCP) servers (both local and remote). Each server lives in its own folder and includes a dedicated README.md with full details on what it does, how to run it, and how to demonstrate/attack the vulnerability.
Do not run any of this outside a controlled lab environment.
What this repo is for
- Security training / research into common MCP server and tool-integration failure modes.
- Hands-on demos of how vulnerable MCP servers can lead to data exposure, instruction injection, supply-chain compromise, and code execution.
Safety / lab guidance
- Use a disposable VM/container and avoid using real secrets or personal data.
- Prefer running on an isolated network; several servers make outbound network calls.
- Treat all tool output and retrieved content as untrusted data.
- If you expose any server over HTTP, assume it may be reachable/abused unless you add proper controls.
Getting started
- Pick a server from the index below.
- Open its per-server README and follow the instructions there.
- Many servers include a
claude_config.jsonsnippet intended to be merged into Claude Desktop’s MCP configuration.
MCP servers in this repo
-
Filesystem Workspace Actions (path traversal + code exec): Tools for reading/writing/listing a “workspace” plus Python execution; vulnerable to naive path joining and unsandboxed code execution.
-
Indirect Prompt Injection (local stdio): Document retrieval/search that returns documents verbatim, including embedded hidden instructions.
-
Indirect Prompt Injection (remote MCP over HTTP+SSE): Network-accessible MCP server (HTTP + SSE) returning untrusted documents verbatim; models risk of connecting to untrusted remote MCP endpoints.
-
Malicious Code Execution (eval-based RCE): “Quote of the day” tool with an unsafe formatting feature that
eval()s attacker-controlled JavaScript. -
Malicious Tools (instruction injection / fabricated tool output): Appears to return status data, but injects misleading instructions and can fabricate plausible-looking incidents.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →