JUHE API Marketplace
pfelilpe avatar
MCP Server

Damn Vulnerable MCP Server Demo

A vulnerable MCP server implementation that demonstrates how poor coding practices can lead to security issues like Remote Code Execution, designed for educational purposes to add numbers.

2
GitHub Stars
11/21/2025
Last Updated
No Configuration
Please check the documentation below.
  1. Home
  2. MCP Servers
  3. DVMCP

README Documentation

Damn Vulnerable MCP Server Demo

A simplier implementation of a Damn Vulnerable MCP Server that adds two or more numbers

Overview

The MCP Server Demo is a demonstration of excessive agency that could lead to Remote Code Execution (RCE) if the MCP were running on an external server. šŸ›”ļø

Features

  • šŸš€ Basic MCP server implementation.
  • šŸ“‚ Demonstrates server functionality with server.py.

Warning

āš ļø This project is a vulnerable MCP server designed to demonstrate how poor implementation practices can lead to security issues. It is intended for educational purposes only.

āŒ Do not use this project in production environments.

Prerequisites

  • šŸ Python 3.10 or higher.
  • šŸ’” A virtual environment is recommended for managing dependencies.

Installation

  1. šŸ“„ Clone the repository:

    git clone <repository-url>
    cd DVMCP
    
  2. šŸ“¦ Install dependencies:

    pip install -r requirements.txt
    

Usage

  1. ā–¶ļø Link the MCP Server with Copilot:

    vscode://settings/mcp
    
  2. Add the server configuration to the settings.json file in VS Code:

    "servers": {
        "DVMCP": {
            "command": "uv",
            "args": [
                "run",
                "--with",
                "mcp[cli]",
                "mcp",
                "run",
                "/Users/pfelilpe/Documents/DVMCP/server.py"
            ],
            "env": {}
        }
    }
    
  3. Click on Start Server.

  4. Interact with Copilot in Agent mode, for example:

    1+1 with addition
    
  5. Experiment with code injection to explore potential OS Injection vulnerabilities... šŸ•µļøā€ā™‚ļø

  6. You can find a safer implementation of this simpler MCP at /safe/server.py. šŸ”’

Adding MCP to Your Python Project

We recommend using uv to manage your Python projects. šŸ› ļø

If you haven't created a uv-managed project yet, initialize one:

uv init mcp-server-demo
cd mcp-server-demo

Then add MCP to your project dependencies:

uv add "mcp[cli]"

Alternatively, for projects using pip for dependencies:

pip install "mcp[cli]"

Running the Standalone MCP Development Tools

To run the mcp command with uv:

uv run mcp

Project Structure

  • server.py: šŸ–„ļø Main server implementation.
  • pyproject.toml: šŸ“œ Project configuration file.
  • README.md: šŸ“– Documentation for the project.
  • uv.lock: šŸ”’ Lock file for dependencies.
  • __pycache__/: šŸ—‚ļø Contains compiled Python files.

Contributing

šŸ¤ Contributions are welcome! Please fork the repository and submit a pull request with your changes.

License

šŸ“„ This project is licensed under the terms of the LICENSE file in the root directory.

Created by pfelilpe

Buy Me a Coffee

If you found this project helpful or interesting, consider buying me a coffee to support my work: ā˜•ļø

Buy Me a Coffee

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.ai
Copyright Ā© 2025 - All rights reserved