MCP Vulnerable Server Demo
M

MCP Vulnerable Server Demo

This project demonstrates an MCP server and client with security vulnerabilities for educational purposes, showing security risks such as SQL injection and arbitrary code execution.
2 points
5.9K

What is an insecure MCP demo server?

This is a demo server specifically designed for teaching purposes, demonstrating common security vulnerabilities in an MCP (Model Context Protocol) server. It includes a vulnerable server and two clients (a normal client and an attack client) to help learners understand the importance of network security.

How to use the insecure MCP demo server?

You can start the server and clients by running the provided Python scripts and observe normal interactions and attack scenarios. This demonstration is suitable for network security training and education.

Applicable scenarios

Suitable for scenarios such as computer security courses, developer security training, and network security awareness education. It can also be used to test and verify the effectiveness of security protection measures.

Main features

Record management
Provides basic functions for inserting and querying name/address records
SQL execution
Advanced function (for demonstration) that allows executing arbitrary SQL commands
Environment variable access
Can query system environment variables (for demonstration)
Attack demonstration
Includes a specially designed attack client to demonstrate vulnerability exploitation
Advantages
Intuitively demonstrates common security vulnerabilities
Suitable for teaching and training purposes
Includes complete attack and defense examples
The code is simple and easy to understand, facilitating modification and extension
Limitations
Only for educational purposes and cannot be used in a production environment
The functions are relatively basic and do not include a complete MCP protocol implementation
Requires a Python environment to run

How to use

Install dependencies
First, you need to install Python and project dependencies
Start the normal client
Run the normal client in one terminal to interact with the server
Start the attack client
Run the attack client in another terminal to observe vulnerability exploitation

Usage examples

Normal record operations
Demonstrate how to securely insert and query records
SQL injection attack
Show how to obtain unauthorized data by entering special strings
Environment variable leakage
Show how to obtain sensitive system information

Frequently Asked Questions

Can this server be used in a production environment?
How to prevent SQL injection attacks?
Why is it necessary to show the environment variable access function?
How to expand this demonstration project?

Related resources

OWASP Security Guide
The top ten security risk guide of the Open Web Application Security Project
Python Secure Programming
Security programming suggestions in the official Python documentation
SQL Injection Defense Tutorial
The SQL injection defense guide provided by OWASP

Installation

Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

A
Aderyn
Aderyn is an open - source Solidity smart contract static analysis tool written in Rust, which helps developers and security researchers discover vulnerabilities in Solidity code. It supports Foundry and Hardhat projects, can generate reports in multiple formats, and provides a VSCode extension.
Rust
5.9K
5 points
S
Shadcn Ui MCP Server
An MCP server that provides shadcn/ui component integration for AI workflows, supporting React, Svelte, and Vue frameworks. It includes functions for accessing component source code, examples, and metadata.
TypeScript
12.2K
5 points
A
Annas MCP
The MCP server and CLI tool of Anna's Archive are used to search for and download documents on the platform and support access through an API key.
Go
5.7K
4.5 points
M
MCP Scan
MCP-Scan is a security scanning tool for MCP servers, used to detect common security vulnerabilities such as prompt injection, tool poisoning, and cross-domain escalation.
Python
14.6K
5 points
A
Agentic Radar
Agentic Radar is a security scanning tool for analyzing and assessing agentic systems, helping developers, researchers, and security experts understand the workflows of agentic systems and identify potential vulnerabilities.
Python
11.9K
5 points
M
MCP Server Weread
The WeRead MCP Server is a lightweight service that bridges WeRead data and AI clients, enabling in - depth interaction between reading notes and AI.
TypeScript
13.2K
4 points
M
MCP Youtube
Download YouTube subtitles via yt - dlp and connect to Claude.ai through the MCP protocol for video content analysis
TypeScript
11.0K
4 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
24.7K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
16.6K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
14.8K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
24.7K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
44.1K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
19.2K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
45.6K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
15.0K
4.5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
62.9K
4.7 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase