Skip to main content
Glama

Xray MCP Server

Dockerfile847 B
FROM python:3.9-slim # Install system dependencies RUN apt-get update && apt-get install -y \ wget \ unzip \ ca-certificates \ && rm -rf /var/lib/apt/lists/* # Create app directory WORKDIR /app # Download and install xray RUN wget https://github.com/chaitin/xray/releases/latest/download/xray_linux_amd64.zip \ && unzip xray_linux_amd64.zip \ && chmod +x xray_linux_amd64 \ && mv xray_linux_amd64 /usr/local/bin/xray \ && rm xray_linux_amd64.zip # Copy server files COPY server.py requirements.txt ./ # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Create results directory RUN mkdir -p /app/xray-results # Set environment variables ENV XRAY_PATH=/usr/local/bin/xray ENV XRAY_OUTPUT_DIR=/app/xray-results ENV PYTHONUNBUFFERED=1 # Run the server CMD ["python", "server.py"]

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zhangning77-tech/xray-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server