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
📥 Clone the repository:
git clone <repository-url> cd DVMCP📦 Install dependencies:
pip install -r requirements.txt
Usage
▶️ Link the MCP Server with Copilot:
vscode://settings/mcpAdd the server configuration to the
settings.jsonfile in VS Code:"servers": { "DVMCP": { "command": "uv", "args": [ "run", "--with", "mcp[cli]", "mcp", "run", "/Users/pfelilpe/Documents/DVMCP/server.py" ], "env": {} } }Click on Start Server.
Interact with Copilot in Agent mode, for example:
1+1 with additionExperiment with code injection to explore potential OS Injection vulnerabilities… 🕵️♂️
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: ☕️

Damn Vulnerable MCP Server Demo
Project Details
- pfelilpe/DVMCP
- MIT License
- Last Updated: 4/15/2025
Recomended MCP Servers
MCP Server for Microsoft Dynamics 365
This is a Model Context Protocol (MCP) server that provides access to the Shodan API. It allows you...
🐍 ☁️ An MCP server for listing and trading tokens on KaiaFun and interacting with the Kaia blockchain
API Market MCP Servers
A Cloudflare Worker that serves as an MCP (Model Context Protocol) server for code explanation. It analyzes and...
强大的MCP翻译服务器!#AiryLarkMCP 🌐 专为专业翻译人员设计: • 三阶段翻译流程:分析规划、精准翻译、全文审校 • 自动识别专业领域术语 • 提供全面翻译质量评估 • 支持多语种互译 • 保持原文风格与专业性 💯 无缝集成Claude/Cursor等支持MCP的AI助手,让AI翻译达到专业水准!
ChromaDB-powered local indexing support for Cursor, exposed as an MCP server
An experimental MCP Server for foundry built for Solidity devs
revit-mcp





