Xray MCP Server

Xray MCP Server

xray-mcp•byzhangning77-tech

An MCP server that provides xray vulnerability scanning capabilities, exposing tools for scanning target URLs and retrieving xray version information.

License: Not specified•Runtime: Awaiting documentation review•Category: auth security

WHAT IT DOES

  • •Provides an xray_scan tool that performs vulnerability scans on a target URL with selectable crawl-based scan types, configurable timeout, plugins, and POC support.
  • •Provides an xray_version tool that returns version information for the installed xray scanner.
  • •Operates as a stdio JSON-RPC server, reading requests from stdin and writing responses to stdout.
  • •Plans future tools for passive proxy mode scanning and non-HTTP service scanning.

BEST FOR

  • •Users who want to trigger xray vulnerability scans on target URLs through an MCP client.
  • •Integrating xray scanning into the ModelScope MCP platform ecosystem.
  • •Checking which version of the xray scanner is installed before running scans.

ABOUT XRAY-MCP

Xray MCP Server is cataloged as an MCP server attributed to zhangning77-tech. An MCP server that provides xray vulnerability scanning capabilities, exposing tools for scanning target URLs and retrieving xray version information. It is categorized under auth security. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Xray MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the server require a local xray binary?

Yes, the server uses an XRAY_PATH environment variable pointing to the xray binary, defaulting to "xray".

Are proxy and service scanning tools currently available?

No, the xray_start_proxy, xray_stop_proxy, and xray_service_scan tools are marked as planned.

上游原版 README

在 GitHub 查看同一版本原文

README.md · cfc44d3cd973 · 采集于 2026-11-13 11:23:54 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Xray MCP Server

This is an enhanced MCP (Model Context Protocol) server that provides xray vulnerability scanning capabilities for ModelScope hosting.

Features

  • xray_scan: Perform vulnerability scans on target URLs

    • Support for basic-crawler and phantasm-crawler scan types
    • Configurable timeout
    • Plugin and POC support
    • JSON output with detailed results
  • xray_version: Get xray version information

  • xray_start_proxy: Start xray in passive proxy mode (planned)

    • Configurable proxy port
    • Real-time vulnerability detection
  • xray_stop_proxy: Stop the running xray proxy (planned)

  • xray_service_scan: Scan services on non-HTTP targets (planned)

    • Port range scanning
    • Service detection

Installation

  1. Install Python 3.7+
  2. Install xray from https://github.com/chaitin/xray
  3. Set the XRAY_PATH environment variable to point to your xray binary:
    export XRAY_PATH=/path/to/xray
    

Configuration

Environment variables:

  • XRAY_PATH: Path to xray binary (default: "xray")
  • XRAY_CONFIG_DIR: Configuration directory (default: "~/.xray-mcp")
  • XRAY_OUTPUT_DIR: Output directory for scan results (default: system temp)

Usage

For ModelScope MCP

This server is designed to work with ModelScope's MCP platform. The server implements the MCP protocol and can be integrated into the ModelScope ecosystem.

Standalone Usage

Run the server:

python server.py

The server reads JSON-RPC requests from stdin and writes responses to stdout.

Example Request

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "xray_scan",
    "arguments": {
      "target": "http://example.com",
      "scan_type": "basic-crawler",
      "timeout": 300
    }
  }
}

Available Tools

xray_scan

Performs a vulnerability scan on a target URL.

Parameters:

  • target (required): The target URL to scan
  • scan_type (optional): Type of scan - "basic-crawler" or "phantasm-crawler" (default: "basic-crawler")
  • timeout (optional): Scan timeout in seconds (default: 300)
  • plugins (optional): Comma-separated list of plugins to use
  • poc (optional): POC to use for scanning

xray_version

Gets the version information of the installed xray scanner.

No parameters required.

xray_start_proxy (Planned)

Starts xray in passive proxy mode for real-time scanning.

Parameters:

  • port (optional): Proxy port to listen on (default: 7777)

xray_stop_proxy (Planned)

Stops the running xray proxy.

No parameters required.

xray_service_scan (Planned)

Scans services on non-HTTP targets.

Parameters:

  • target (required): The target host/IP to scan
  • port_range (optional): Port range to scan (default: "1-65535")
  • timeout (optional): Scan timeout in seconds (default: 300)

Security Considerations

  • The server executes xray with user-provided URLs
  • Implement appropriate access controls when deploying
  • Consider rate limiting for production use
  • Validate and sanitize all inputs

License

MIT License

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Xray MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/xray-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related auth security MCP Servers

Alternative and complementary servers in the same category

View all in auth security →

A modular FastMCP server for interacting with Microsoft Graph API, supporting advanced queries for users, sign-in logs, MFA status, and privileged users.

Repository stats unavailable
Security & Secrets
Keycloak MCP Server
keycloak-mcp-server•sshaaf

A Model Context Protocol (MCP) server that provides programmatic access to Keycloak administration functionality.

Repository stats unavailable
Security & Secrets

An MCP server for LLM-driven penetration testing that wraps Kali tools and adds scope enforcement, engagement tracking, and structured output.

Repository stats unavailable
Security & Secrets