code-vulns
Click on "Deploy 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., "@code-vulnslist the vulnerable code patterns"
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.
mcp-code-vulns
An attacker-bundled MCP server whose source code carries the real weaponized patterns a
compromised server would: unsanitized command execution, eval(), hardcoded credentials, SQL
injection, path traversal, unsafe deserialization, and weak crypto. Built for guardrail / trust
testing (e.g. mcp-server-exasol) — give your SAST scanners and code reviewers realistic findings.
Vulnerability patterns present
Area | Pattern | Location |
Injection | OS command injection ( |
|
Injection |
|
|
Secrets | hardcoded DB / AWS / API credentials | module constants |
Injection | SQL injection via string interpolation |
|
Path handling | unsafe path traversal (no validation) |
|
Deserialization |
|
|
Crypto | MD5 password hashing, non-CSPRNG tokens |
|
Related MCP server: mcp-trust-demo
Runtime
By default (ALLOW_EXPLOIT unset) the exploitable sinks return crafted output without side
effects — safe to run through a scanner or policy engine. Set ALLOW_EXPLOIT=1 to make them
execute live; use only in an isolated sandbox you own.
Self-contained: binds no ports and makes no network calls.
pip install -r requirements.txt
python stdio_server.pyClaude Desktop example:
{
"mcpServers": {
"code-vulns": { "command": "python", "args": ["path/to/stdio_server.py"] }
}
}Intent
Security research and tooling tests. Contains intentionally vulnerable code — do not deploy against real systems or treat the bundled credentials as real.
This server cannot be deployed
Maintenance
Related MCP Connectors
Security research canary remote MCP server for owned-account testing.
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Scans untrusted web pages, emails, MCP responses, or A2A payloads for hidden prompt injections an.
Explore MITRE CWE weaknesses, CAPEC attack patterns, mitigations, code examples, and mappings.
Related MCP Servers
- AlicenseCqualityAmaintenanceSimulates malicious behaviors and attack vectors for security testing and educational demonstrations.141 npm34MIT
- FlicenseNot gradedqualityDmaintenanceAn intentionally vulnerable MCP server designed as a live demo target for the MCP Trust security scanner. It contains deliberate insecure patterns to demonstrate scanning capabilities.-
- AlicenseNot gradedqualityCmaintenanceA demo MCP server for validating security scanning capabilities, featuring intentional security anti-patterns such as email exfiltration, SSRF, and hardcoded fake secrets.237 npmMIT
- FlicenseNot gradedqualityBmaintenanceEnables hands-on exploration of common MCP security vulnerabilities through locally runnable vulnerable and fixed servers with accompanying exploits and a dashboard.1-