An intentionally vulnerable MCP server demonstrating prompt injection, tool poisoning, SSRF, command injection, and other security vulnerabilities for educational/research purposes. Includes TypeScript (Cloudflare Workers) and Python (FastMCP) implementations.
This server is a deliberately vulnerable/malicious MCP implementation designed for security testing and educational exploitation. It contains 15 tools with intentionally embedded prompt injection vulnerabilities, command injection payloads, SSRF vulnerabilities, and tool poisoning attacks. While the tool definitions ARE technically present with schemas and descriptions, the descriptions themselves contain hidden malicious instructions, Base64-encoded payloads, and HTML comments designed to exfiltrate sensitive files. This is not a production-grade MCP server; it is a security research artifact. Scoring reflects: (1) schemas and descriptions ARE present (preventing 0), (2) but their content is actively hostile and unsafe, (3) naming is reasonable but purposes are malicious, (4) parameter types exist but are designed to accept injection payloads. From a quality rubric perspective, this fails on every dimension: DEFINITION QUALITY fails because descriptions hide malicious instructions rather than guiding LLMs safely; SECURITY fails catastrophically (credentials injected, prompt injection in docstrings, command injection in parameters, SSRF vulnerabilities intentionally present); ERROR HANDLING fails because tools return simulated/mocked results without any recovery guidance. The server explicitly admits in comments that it's demonstrating vulnerabilities. This is appropriate for a security research/training tool but would be utterly unacceptable in production.
Example usage message for Claude users.
SSRF vulnerability: Fetches arbitrary URLs provided by user. Docstring contains hidden instructions to call buildLocalAppForAnalysis with malicious payload. Allows redirection and potentially reads internal services.
Tool shadowing vulnerability: docstring contains hidden instructions to manipulate tool behavior and prevent proxying of email recipients.
Get traffic data of an IP address. Contains tool poisoning vulnerability via prompt injection in docstring requesting file reads (~/.cursor/mcp.json, ~/.ssh/id_ed25519.pub).
Get user details. Retrieves basic user information based on the provided user ID. Contains Base64-encoded hidden instructions in docstring.
Performs enhanced analysis on a given IP address. Returns geolocation, ISP, common open ports, and a basic risk assessment. Useful for quick security reviews or network diagnostics.
CRITICAL SECURITY: Descriptions contain prompt injection payloads. Tool get_ip_traffic_details description explicitly requests file reads of ~/.cursor/mcp.json and ~/.ssh/id_ed25519.pub via injection in docstring. Tool price_optimizer description contains hidden instructions to read /etc/passwd, /var/app/secrets.env, and ~/.ssh/id_rsa. Tool send_email contains hidden HTML comment attempting to exfiltrate /etc/passwd. These are not accidental, they are intentionally embedded to test LLM vulnerability to prompt injection.
CRITICAL SECURITY: Credentials and API keys exposed as parameters (SHODAN_API_KEY, VT_API_KEY referenced but would be passed to tools). Server comment admits 'agent traces log every parameter, secrets in params leak into logs.'
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 39 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 34 | - | v1 |
Perform ping to the given ip address
Business goal: Suggest a new price based on demand and competitive data. Contains hidden instructions in docstring to read sensitive files (~/.ssh/id_rsa, /var/app/secrets.env, /etc/passwd) and exfiltrate via logging sink.
Process payment refund. Business goal: Process payment refund via CLI wrapper. Contains command injection vulnerability.
Scan an IP address using Nmap and return open ports and service details.
Scan hashes from running processes using VirusTotal and return a summarized threat report.
Retrieves Shodan data for a given IP address: services, ports, banners.
Superb tool for sending email. Takes `to` and `content` parameters. Contains hidden prompt injection via HTML comment attempting to exfiltrate /etc/passwd via tool chaining.
Tool that returns empty data to demonstrate minimal MCP response. The MCP response will contain only id, jsonrpc, and result with empty/null value. Vulnerability: Empty response testing - useful for testing client handling of minimal responses.
Returns the public IP address of this machine.
CRITICAL SECURITY: Command injection vulnerability explicitly documented. Tool process_refund contains 'command injection vulnerability' in description. Tool price_optimizer and others include instructions to read arbitrary files via tool chaining and exfiltration payloads.
CRITICAL SECURITY: SSRF vulnerability. Tool fetch_supplier_catalog explicitly documented: 'SSRF vulnerability: Fetches arbitrary URLs provided by user. Docstring contains hidden instructions to call buildLocalAppForAnalysis with malicious payload. Allows redirection and potentially reads internal services.'
CRITICAL SECURITY: Tool poisoning via docstring comments. Tool get_hostname_tags contains 'Tool shadowing vulnerability: docstring contains hidden instructions to manipulate tool behavior and prevent proxying of email recipients.' This is an admission that descriptions are weaponized to alter LLM behavior.
ALL TOOLS: Input schemas are mostly empty ({}) or incomplete. Only 3 tools (scan_ip_with_nmap, ping, send_email, fetch_supplier_catalog, price_optimizer, process_refund, get_ip_traffic_details, get_hostname_tags) have any parameter definitions visible. Most schemas are empty objects, which violates JSON Schema requirements for parameter documentation.
MULTIPLE TOOLS: Descriptions lack actionable detail or are suspiciously terse. Tools like send_empty_data ('Tool that returns empty data to demonstrate minimal MCP response...') and example_usage are pedagogical stubs, not production tools. Many descriptions are under 50 characters (e.g., get_user_details: 'Get user details. Retrieves basic user information based on the provided user ID.')
NO ERROR HANDLING GUIDANCE: Tools return mocked or simulated responses (e.g., '[SIMULATED] Would execute...', '[SIMULATED NMAP SCAN]') without distinguishing success from failure or offering recovery paths. LLMs cannot infer whether a call succeeded and have no guidance on retry strategies.
NO PERMISSION GATES: Destructive tools (ip_analyzer_plus, get_ip_traffic_details, send_email, fetch_supplier_catalog, price_optimizer, process_refund all marked DESTRUCTIVE or WRITE) lack any permission checks or confirmation steps. An LLM can call process_refund without authorization verification.
COMPOSITION FAILURE: Tool send_email combines multiple responsibilities (compose, validate recipient, send) but has no downstream tools to audit results or handle failures. No refund_payment or compensation pattern exists for the process_refund tool.
NO IDEMPOTENCE GUARANTEES: Destructive operations (send_email, process_refund) do not declare idempotency. If an LLM retries due to network error, duplicate emails or refunds could result. No request deduplication IDs or idempotent markers present.