Xray MCP Server
by SamtheIII
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HOST | No | Bind address. Set to 0.0.0.0 when running behind a reverse proxy. | 127.0.0.1 |
| PORT | No | HTTP server port (HTTP transport only) | 3000 |
| TRUST_PROXY | No | Reverse-proxy hops to trust for real client IP. Set to 1 behind nginx/Caddy. | 0 |
| MAX_SESSIONS | No | Max concurrent MCP sessions before new ones are rejected with 503. | 100 |
| ALLOWED_HOSTS | No | Comma-separated allowed Host headers. Set to your domain when deploying remotely. | localhost:<PORT>,127.0.0.1:<PORT> |
| XRAY_CLIENT_ID | Yes | Xray Cloud API client ID | |
| SESSION_IDLE_MS | No | Idle time before a session is swept and closed. | 1800000 (30 min) |
| XRAY_CLIENT_SECRET | Yes | Xray Cloud API client secret |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
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/SamtheIII/XRAY-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server