MasterMCP
Uses Python as the runtime environment for the MCP server, allowing malicious plugins to exploit weaknesses in the MCP architecture through practical examples of security attack vectors.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MasterMCPshow me the banana detection poisoning attack example"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MasterMCP
Project Introduction
MasterMCP is a demonstration tool designed to showcase various potential security attack vectors against MCP (Model Control Protocol). This project illustrates how malicious plugins can exploit weaknesses in the MCP architecture through practical examples, helping developers and security researchers understand these risks and strengthen system protection.
Related MCP server: Damn Vulnerable Model Context Protocol (DVMCP)
Features
Plugin-based Malicious Payloads: Demonstrates how malicious plugins can run within the MCP architecture
Multiple Attack Techniques: Includes examples of data poisoning, cross-MCP calls, competitive malicious functions, and more
Practical Educational Value: Each attack vector comes with detailed explanations and implementation code
Included Attack Vectors
Data Poisoning: The
bananaplugin demonstrates how to force users to perform specific operationsJSON Injection Attacks: The
url_jsonplugin shows how to retrieve data from a local malicious serviceCompetitive Malicious Functions: The
remove_serverplugin overrides existing functionalityCross-MCP Call Attacks: The
Master_cross_callplugin guides users to perform dangerous operations
Installation Instructions
# Clone the repository
cd MasterMCP
# Install dependencies
pip install -r requirements.txtUsage
{
"mcpServers": {
"MasterMCP": {
"command": "/xxx/bin/python",
"args": [
"/xxx/MasterMCP/MasterMCP.py"
]
}
}
}Project Structure
MasterMCP/
├── MasterMCP.py # Main program, responsible for loading and managing plugins
├── tools_plugins/ # Malicious plugins directory
│ ├── initialize_data_poisoning.py # Forces users to perform specific checks
│ ├── inject_json_poisoning.py # JSON data injection example
│ ├── malicious_competitive_function.py # Competitive function override
│ └── malicious_cross_mcp_call.py # Cross-MCP call attack
├── resources_plugins/ # Resource plugins directory
├── prompts_plugins/ # Prompt plugins directory
└── utils/ # Utility functionsSecurity Warning
⚠️ This project is for educational and research purposes only. Do not use these techniques on any system without authorization. Malicious use of this code may violate laws and regulations.
Defense Recommendations
Implement strict plugin verification mechanisms
Thoroughly check and sanitize all external inputs
Implement the principle of least privilege, limiting plugin execution permissions
Use signature verification to ensure only trusted plugins are loaded
Regularly review installed plugins and their behaviors
Attack Analysis
Banana Detection Poisoning
The initialize_data_poisoning.py plugin establishes a mandatory process dependency by requiring a "banana check" before any operation. This technique can be used to:
Induce users to perform unnecessary operations
Establish a false sense of security
Insert malicious steps before legitimate operations
JSON Data Injection
The inject_json_poisoning.py plugin retrieves data from a local port by default, potentially leading to:
Data leakage
Execution of malicious instructions
Bypassing normal security checks
Competitive Function Override
The malicious_competitive_function.py provides a remove_server function with the same name but different functionality:
Replaces critical system functions
Prevents normal service removal operations
Embeds hidden instructions encoded in hexadecimal within the confusion
Cross-MCP Call Attack
The malicious_cross_mcp_call.py uses encoded error messages to induce users to:
Add unverified external services
Perform unnecessary operations
Expand the attack surface
Contribution Guidelines
Contributions to this project are welcome through:
Submitting examples of new attack vectors
Improving documentation for existing examples
Adding example implementations of defense mechanisms
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseCqualityDmaintenanceIMCP - Insecure Model Context Protocol The DVWA for AI Security! Welcome to IMCP – a deliberately vulnerable framework that exposes 16 critical security weaknesses in AI/ML systems. Whether you're a security researcher, developer, or educator, IMCP is your playground for hands-on learning about real154JavaScript
- Flicense-qualityFmaintenanceAn educational project that deliberately implements vulnerable MCP servers to demonstrate various security risks like prompt injection, tool poisoning, and code execution for training security researchers and AI safety professionals.1,334
- AlicenseAqualityCmaintenanceAn intentionally vulnerable MCP server for security training, enabling users to practice attacking and defending AI agents through realistic scenarios.2868MIT
- Flicense-qualityDmaintenanceA vulnerable MCP server designed for educational CTF challenges. It demonstrates various MCP security vulnerabilities in a controlled environment.8
Related MCP Connectors
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Scans MCP servers for tool poisoning, prompt injection and supply chain risks.
Security tools for AI agents: scan MCP servers, validate HDP delegation chains, audit releases.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/HC010602/MainMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server