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.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

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.

Upstream README

View this exact version on GitHub

README.md · cfc44d3cd973 · Fetched 2026-11-13 11:23:54 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

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.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

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