harishsg993010/damn-vulnerable-MCP-server

Damn Vulnerable MCP Server

What it solves

This project provides a hands-on, educational environment to learn about security risks inherent in the Model Context Protocol (MCP). It helps developers and security researchers understand how malicious actors might exploit AI-connected systems by providing a series of intentionally vulnerable servers.

How it works

The project consists of 15 distinct challenges, each running as a separate HTTP MCP server. Users can connect these servers to an MCP-compatible client (like the Cline VSCode extension) to practice identifying and exploiting security flaws. The challenges are categorized by difficulty and type, ranging from basic prompt injection to complex supply chain attacks.

Who it’s for

It is designed for security researchers, developers, and AI safety professionals who want to gain practical experience in identifying and mitigating vulnerabilities in MCP-based applications.

Highlights

  • 15 progressive challenges covering topics like Prompt Injection, Tool Poisoning, and Token Theft.
  • Organized by difficulty levels: Easy, Medium, Hard, Identity, and Supply Chain.
  • Includes dedicated solution guides for self-paced learning.
  • Easily deployable via Docker for a consistent testing environment.
  • Demonstrates real-world attack vectors such as Indirect Prompt Injection and Dependency Confusion.

Related

  • Project
  • Project
  • Project
  • Project