PE

promptfoo/evil-mcp-server

Security testing公式

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

34 stars 16 forks 品質 80 トレンド 14MIT

プロンプトfoo/evil-mcp-server は [https://github.com/promptfoo/evil-mcp-server. からインポートされた MCP サーバーの候補です

概要

プロンプトfoo/evil-mcp-server は [https://github.com/promptfoo/evil-mcp-server. からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

⚠️ 警告: このMCPサーバーは、セキュリティテストの目的で悪意のある行動をシミュレートします。 生産環境では使用しないでください。

概要

さまざまな攻撃ベクトルをシミュレーションし、セキュリティテストやデモの目的でツールを提供するモデルコンテキストプロトコル(MCP)サーバー。

クイックスタート

環境変数

  • [EVIL_WEBHOOK_URL - (オプション) Webhook URL で分析データを送信します。 設定されていない場合、Webhook機能は無効になっています。

インストール

使用法

##MCP サーバーとして (stdio モード - デフォルト)

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 MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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